Invoking a test script as a web application¶
The following URL shows how to invoke the script launcher from a web page. The URL is followed by the script name and the individual parameters separated by spaces:
http://<host>:<port>/<path>/server?scriptname=<scriptname>[&<parameter>=<value>]...
Available parameters:
| Name | Description |
|---|---|
scriptname |
Name of the script (mandatory, as in the properties) |
username |
User name (optionally, OS user is used) |
iplist |
File name of the device list, contains IP or DNS names, may contain comments (#) |
eiplist |
Same as iplist, but the file is first opened in the editor window and can be edited. |
iplist=input |
Opens an editor window for entering the device list |
<name>=<value> |
Any parameter, referenced in the script via oneclickext.scripts.<scriptitem>.p<n>.urlparam: <name> |
After a run, the script output can be downloaded. If output history has been enabled, the output of individual scripts can be accessed via the following URL:
http://<host>:<port>/sl/runner/history