| RIATest Documentation | Copyright © RIATest.com |
A set of test scripts for your application is called project. Project defines what scripts and in what order will be executed. Project view shows the project tree where all scripts included in this are shown. You can also combine scripts into groups. You can change the ordering of the scripts (and thus execution order) by drag'n'dropping script items in the tree.
To create a new project select File -> New Project. An empty new project will be created. Select File -> Save All, select a directory to store your project, enter name of the project and click Save.
Select this option if you want a browser window to be launched when project exuction starts. This option may be disabled if you are testing something other than an application that can be loaded in a browser window. For example RIATest include a RIAScript self-test project the purpose of which is verifying the syntax and operation of RIAScript language itself. This sample project does not need a browser window.
Depending on your decision regarding application loading scheme you have the 3 choices.
Using local loader
If you want to use RIATest Loader and your application SWF file is located on
a local drive select Use local Loader. In the Application
URL field type the file path of your application SWF file. The path
can be absolute or relative to project file location.
Using remote loader
If you want to use RIATest Loader but your application is located on a web server
then select Standalone application or using remote Loader option
and in the Application URL field type the following:
http://your-server-name/your-directory/RIATestLoader.html?rtLoadURL=url-of-your-applicaiton.swf
Using static compilation
If you have statically compiled RIATet agent and automation libraries with your
application then select Standalone application or using remote Loader
option and in the Application URL field enter location of your
application's wrapper HTML file (e.g. http://localhost/myapp/bin/app.html)
or file path of the wrapper HTML file (e.g. C:\My Projects\My
App\bin\app.html).
If selected RIATest will attempt to close the browser window after project execution finishes. You may want to unselect this option if for some reason you want to leave the browser window open after the test finishes. Note that for RIATest to be able to close the browser window it should have be a separate process. This is usually the case for Internet Explorer 6. For Firefox and Internet Explorer 7 all browser windows and tabs usually run under same process id which is not known to RIATest. It is possible to configure Firefox to use separate process when opening new window. For more details see Firefox documention.
If selected RIATest does not start executing script commands until it receives incoming RIATest Agent connection. RIATest Agent normally connects to RIATest IDE after the browser window opens and your application is loaded and initialized.