Generating a new test from a recorded session

Should you accidentally damage a test during editing, you can create a new test from the recorded session.

When you record a test, three files are created: the recording (.rec) file, the model (.recmodel) file, and the test (.testsuite) file. You generate a test from the model file, which the Test Navigator does not display. To see this file, you must open the standard Navigator (or Java Package Explorer) as illustrated in step one.
To generate a new test from a recorded session:
  1. Open the base Navigator by doing the following: select Window > Show View > Other, expand Basic, click Navigator, and click OK. The Navigator view opens and displays your test assets. For example, the figure below shows the Navigator view of a test named visitIBM.

  2. In the Navigator, right-click the .recmodel file for the test that you want to regenerate and select Generate Test. The Test Generation dialog box opens.

  3. Click Next to generate a new performance test. The Test Generation dialog box opens.

  4. In the list of projects (middle pane), click the Java project in which you want to store the new test.
  5. In the Test file name field, enter a name for the new test. Warning: if you use the name of the original test, the file will be overwritten and any changes that you have made to that test will be permanently lost.
  6. Click Finish.

Parent topic: Creating tests

Terms of use | Feedback
(C) Copyright IBM Corporation 2005. All Rights Reserved.