Custom query strings

You can pass information to your Test Pages using custom Query Strings through the Test Runner. Their values are visible from the Test Page using top.jsUnitParmHash.parameterName or top.jsUnitParmHash['parameterName'], where parameterName is the name of your Query String parameter. For example, using the URL d:\jsunit\testRunner.html?foo=bar results in top.jsUnitParmHash.foo returning bar.

This can be useful when you want to run your Test Page in different modes. For example, your suite might contain the Test Pages myTests.html?mode=0, and myTests.html?mode=1.