Working with Test Scripts |
All of your test script editing is done inside of your IDE. You can open a test script directly from your IDE or from TestManager.
To open a test script in TestManager, click File > Open Test Script > type, where type is one of the following:
Then select the script you want to open. TestManager checks the Windows Registry to find the IDE associated with the test script. If TestManager doesn't find an IDE associated with the test script, it opens Windows Notepad.
When you save a test script, the location where you store the script and any accompanying source files varies:
ProjectName\DatastoreName\DefaultTestScriptDatastore\TMS_Scripts
Any future scripts that you create for this project are stored in the same test script source folder. This location cannot be changed once it is defined.
Only script files can be stored outside of the Rational project. TestManager stores other related files, such as any datapool and log files, as well as references to the script files, within the current Rational project.
For information about how TestManager stores compiled scripts at test runtime, see Returning Information from Test Scripts.
If a script is part of a Java package, the script must be stored in a path that consists of the test script source folder path plus the name of the package. For example, if the path is D:\TestScripts and the test script you are storing is included in the package com.rational.test, store the script in the following location:
D:\TestScripts\com\rational\test
When you generate a test script with Robot, a .java file is created for the script. The file name is assigned by the Robot user during the recording operation.
The maximum name length of scripts stored inside the Rational datastore is 40 characters. Script names cannot contain spaces.
The maximum name length of scripts stored outside of the Rational datastore is limited only by the constraints of the operating system.
Rational Test Script Services for Java | Rational Software Corporation |
Copyright (c) 2003, Rational Software Corporation | http://www.rational.com support@rational.com info@rational.com |