Differences

This shows you the differences between two versions of the page.

Link to this comparison view

proxy_server_setup [2016/09/22 02:36]
127.0.0.1 external edit
proxy_server_setup [2017/12/24 01:41] (current)
admin
Line 7: Line 7:
 To define proxy server, add / modify the following config settings: To define proxy server, add / modify the following config settings:
  
-    ​ProxyHost=myhost +  ​ProxyHost=myhost 
-    ProxyPort=1234 +  ProxyPort=1234 
-    ProxyUserID=abc +  ProxyUserID=abc 
-    ProxyPassword=xxx+  ProxyPassword=xxx
  
 //​ProxyUserID//​ and //​ProxyPassword//​ are only required if your proxy server requires user id and password. If your proxy server does not require user id and password to access the internet, then leave these properties blank or delete them. //​ProxyUserID//​ and //​ProxyPassword//​ are only required if your proxy server requires user id and password. If your proxy server does not require user id and password to access the internet, then leave these properties blank or delete them.
Line 16: Line 16:
 Another way to define proxy server is to edit //​startTestOptimalServer.bat//​ (for windows) or //​startTestOptimalServer.sh//​ (for mac/linux) and add the following "​-D"​ java command-line argument: Another way to define proxy server is to edit //​startTestOptimalServer.bat//​ (for windows) or //​startTestOptimalServer.sh//​ (for mac/linux) and add the following "​-D"​ java command-line argument:
  
-    ​java -Dhttp.proxyHost=myproxyserver.com -Dhttp.proxyPort=80 ... +  ​java -Dhttp.proxyHost=myproxyserver.com -Dhttp.proxyPort=80 ...
-    ​+
  
 ---- ----
Line 24: Line 23:
  
 This is usually ok since most likely your AUT is running within your intranet thus no need to access internet. However should you want to test applications hosted on the internet and you also have proxy server defined, you can force the model execution to use proxy server by setting the following config property (rel.4.4.0):​ This is usually ok since most likely your AUT is running within your intranet thus no need to access internet. However should you want to test applications hosted on the internet and you also have proxy server defined, you can force the model execution to use proxy server by setting the following config property (rel.4.4.0):​
 +
   proxy.force = true   proxy.force = true
  
Line 31: Line 31:
  
 You can use one or both of the following config settings to make //​TestOptimal//​ simulate http request from a certain browser (rel. 4.4.0): You can use one or both of the following config settings to make //​TestOptimal//​ simulate http request from a certain browser (rel. 4.4.0):
 +
   HTTP.UserAgent=Mozilla/​5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/​20100101 Firefox/​22.0   HTTP.UserAgent=Mozilla/​5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/​20100101 Firefox/​22.0
   HTTP.Referer=@ThisServer@   HTTP.Referer=@ThisServer@
Print/export
QR Code
QR Code proxy_server_setup (generated for current page)