|
| Invoking other Web Scripts and Applications : | Function Index |
Function Description:
Invoke another web script from the one currently being executed.
For more details refer "Chaining the Scripts".
How to Define:
callScript("Web Script Name","Web Script Path")
Mandatory Parameters:
WebScriptName = Script name to be called.
WebScriptPath = Script path (relative to the web scripts directory).
Example:
callScript("test","case1/test")
Return Values:
Whether script execution successfully completed or not
Function Description:
Invoke another web script from the one currently being executed.
Execute up to the line number specifed
For more details refer "Chaining the Scripts".
How to Define:
callScriptUpto("Web Script Name","Web Script Path", Line number)
Example:
callScriptUpto("test","case1/test",75)
Return Values:
Whether script execution successfully completed or not.
Function Description:
Invoke another web script from the one currently being executed.
Execute from the line number specifed
For more details refer "Chaining the Scripts".
How to Define:
callScriptFrom("Web Script Name","Web Script Path", Line number)
Example:
callScriptFrom("test","case1/test",75)
Return Values:
Whether script execution successfully completed or not.
Function Description:
Invoke any application (.exe, .bat etc) running in the system.
Current script execution will be suspended till the called Application is executed completely.
How to Define:
invokeApplication("Command line")
Example:
invokeApplication("C:\Mozilla\Mozilla.exe")
Return Values:
Status String
Function Description:
Invoke any application (.exe, .bat etc) running in the system.
Called Application will be started on new thread. Calling script's execution will continue
How to Define:
invokeApplicationInThread("Command line")
Example:
invokeApplicationInThread("C:\Mozilla\Mozilla.exe")
Return Values:
Status String
Function Description:
To invoke any application (.exe, .bat etc) running in the system with arguments to be passed (if any).
Current script execution will be suspended till the called Application is executed completely.
How to Define:
invokeApplicationWithArgs("<fileName>","<arguments>")
Note: Use forward slash for all path separators in your command. Also, when specifying multiple arguments, separate the arguments with space.
Example:
invokeApplicationWithArgs("C:\Mozilla\Mozilla.exe","-P
default http://www.google.com")
Return Values:
0 for Success
1 for Failure
invokeApplicationInThreadWithArgs
Function Description:
To invoke any application (.exe, .bat etc) running in the system with arguments to be passed (if any).
Called Application will be started on new thread. Calling script's execution will continue.
How to Define:
invokeApplicationInThreadWithArgs("<fileName>","<arguments>")
Note: Use forward slash for all path separators in your command. Also, when specifying multiple arguments, separate the arguments with space.
Example:
invokeApplicationInThreadWithArgs("C:\Mozilla\Mozilla.exe","-P default http://www.google.com")
Return Values:
0 for Success
1 for Failure
|