A P P E N D I X C |
Specifying HTTP Headers |
For an administrator, two files can influence the contents of the HTTP response headers generated by the Relay when a test device requests a bundle:
The default CentralInstallDir/admin/shared/conf/httpheaders.properties file contains these lines:
Cache-Control=no-cache Pragma=no-cache
These lines disable caching in many networks and devices. The second line is for HTTP 1.0 devices. Disabling caching is important for downloading test bundles by a URL bookmark. For tester convenience, the Relay gives every bundle the same URL, namely
http://ipAddressPort/appContext/jad/harnessID/getNextApp.jad.
When a tester requests this URL with a bookmark, a caching facility in the network or the test device can repeatedly return a test bundle that has already been run. Disabling caching forces the device or network to obtain the correct bundle from the Relay.
You can create or modify a harness-local httpheaders.properties file to disable caching by your network or by a particular test device. You can also add lines to perform additional network or device tuning.