RIATest 2 Documentation Copyright © RIATest.com

RIATest command line parameters

/b Batch mode, no GUI. Usefull for running from command line, from batch files and from build tools. Usually combined with /r and /p to run a project.
/e number Maximum error limit for scripts execution, 0 - no error limit. If specified number of errors is encountered the execution is aborted.
/l launch-action Set launch action. Either one of predefined actions: default,ie,firefox or a command line to execute (e.g. "cmd.exe /c")
/o output-file-name Write output messages to specified file. Only has effect if combined with /b parameter.
/ox output-file-name Write output messages in XML format to specified file. Only has effect if combined with /b parameter.
/p path-to-project-file Open the specified project in IDE or run it if combined with /r
/r Run the project specified by parameter /p
/t seconds Maximum execution time in seconds. If execution takes longer than specified seconds it is aborted.
/d "name1=val1;name2=val2;..." Predefine project global variables (access from script using getProjectGlobal() function).
/rf filename Read section "[ProjectView/DisabledScripts]" from filename and do not run scripts found in this section. Format of the file is the same as .rtw file generated by RIATest IDE.

Exit codes

When executed in batch mode riatest.exe returns the following exit codes:

0 Success. Also returned when no errors are encountered during execution of tests.
1 Nothing to do. Happens if you use /b without /r
2 Invalid command line parameters
3 Invalid output file specified (or cannot open specified file)
4 Cannot open specified project file
5 Errors encountered during execution of scripts.
6 Timed out waiting for agent connection
7 Agent unexpectedly disconnected.
8 Aborted due to execution time limit violation
9 Aborted due to error count limit violation
>=127 Other errors