GetArgs Function


Returns the arguments passed to a script.


lsArgs = GetArgs()
Variable Description
lsArgs The returned script arguments. LIST OF STRING.


GetArgs returns a copy of the argument list of the script that Silk Test Classic is currently running. GetArgs returns a list of strings whose items correspond to the arguments passed to the current script.

You pass arguments to a 4Test script using the Arguments text box in the Runtime Options dialog box by writing them after the script name in a 4Test suite (.s) file or when you start Silk Test Classic from the command line.


[-] testcase GetArgsExample ()
	[ ] // list of arguments passed to a script
	[ ] LIST OF STRING lsArgs
	[ ] lsArgs = GetArgs()
	[-] ListPrint(lsArgs)