TestNode Settings
Change TestNode Port Number
Appvance IQ communicates with a TestNode over port 8080 for HTTP and 8443 for HTTPS by default.
-
Stop Appvance IQ.
-
Navigate to \aiq_distribution\TestNode\etc
-
Open jetty-http.xml in notepad editor or similar
-
Search for 8080 and replace the port number with any preferred value
-
Save the file
-
Restart Appvance IQ
Confirm the TestNode is on the new port number by browsing the new location. For example, after setting the TestNode to run on port 7070, browse
http://:7070/TMServer/ws/TestNodeand see the message: TestNode. Hi there, this is an AXIS service! Perhaps there will be a form for invoking the service here.
Changing TestNode Memory Settings
To set the memory for an installed TestNode, change the contents of /AIQ/TestNode/startup.bat for Windows and /AIQ/TestNode/startup.sh for Unix and Mac OS X systems. These files contain the following command line:
@"%Java_HOME%/bin/java" -Xmx128M -DSTOP.PORT=8079 -DSTOP.KEY=secret -jar start.jar @echo "TestNode? Started"
Adjust the memory settings using the -Xmx parameter.
Enabling Java Server Mode for Faster TestNode Performance
The Java Virtual Machine (JVM) running the TestNode uses just-in-time compilation and other techniques to deliver the performance of your tests. You have two choices of JVM: Java Runtime Environment (JRE) and Java Development Kit (JDK.)
To see which JVM you are running, open a command shell and run: java -version.
The JDK offers a special -server switch. This tells the JVM to use pre-compilation and other techniques to improve your test performance. The tradeoff of -server is the test will take longer to start and use more memory.
Proxy Server Configuration
If you normally need a proxy service to access Web sites, instruct Appvance IQ to use the proxy with the following instructions for Appvance Designer 2.0
For Appvance Designer 2.0, configure the external proxy by editing /Appvance IQ/sahi/userdata/config/userdata.properties and setting these properties:
-
ext.http.proxy.enable=true
-
ext.http.proxy.host=external_proxy_server_hostname_or_ip
-
ext.http.proxy.port=external_proxy_server_port
If your proxy needs authorization, you should set these properties too:
-
ext.http.proxy.auth.enable=true
-
ext.http.proxy.auth.name=proxy_authorization_username ext.http.proxy.auth.password=proxy_authorization_password.
Make the same changes with ext. HTTPS settings for HTTPS sites.
-
In addition, if you need to bypass the external proxy for some local sites you need to configure that too in sahi.properties like this:
ext.http.both.proxy.bypass_hosts=localhost|127.0.0.1|*.yourinternaldomain.com
Note that there is only one bypass setting for both HTTP and HTTPS.
For TestNode, configure the external proxy by changing the settings in the Options tab when using the Scenario Builder to configure the TestScenario.
Appvance IQ/TestNode/startup.sh (or .bat)Appvance IQ/Appvance Monitor/startMonitor.sh (or .bat)
Last updated: November 06, 2023
If you have any feedback on this topic, please contact us at documentation@appvance.ai