Differences

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

Link to this comparison view

Next revision
Previous revision
proxy_server_setup [2016/09/22 02:36]
127.0.0.1 external edit
proxy_server_setup [2021/01/05 03:00] (current)
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 ...
-    +
  
 ---- ----
-==== Force Model to use Proxy Server ==== 
-By default, proxy server is only used for validating license, checking for updates and downloading/applying updates. Therefore the model execution will not use proxy server even though proxy server is defined.  
- 
-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 
- 
----- 
-==== Avoid Proxy Filter ==== 
-Proxy server is capable of blocking certain internet requests using filters / rules. Your network admin may use the filters to block all non-browser requests. As the result //TestOptimal// server would not be able to access internet even though your browser is capable of browsing the internet on the same computer.   
- 
-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.Referer=@ThisServer@ 
-  
-where //@ThisServer@// will be dynamically replaced with your //TestOptimal// server url.  You may change //HTTP.UserAgent// to a different browser user agent string to simulate a specific browser.  You can find the user agent string for many of the browsers at:  http://seehowitruns.info/index.php?report=1&action=view_report