Annotating a test during recording
You can add comments, add transactions, or change a page name while you record a test. The advantage of adding these elements during (rather than after) recording is that you can place the annotations in the test exactly where you want. In addition, because annotations are part of the recorded test, they are regenerated when you regenerate the test. You can also insert split points into a test during record.
Procedure
- Start recording the test. The Recorder Test Annotations toolbar opens near the top of the screen.
-
Click the appropriate icon.
You can use the following options in the Recorder Test Annotations toolbar to add comments, record synchronizations, or take screen captures during the recording:
- Click the Insert comment icon to add a comment to the recorded test. A prompt is displayed for you enter a comment.
- Click the Capture screen icon to add a screen capture to the recorded test. Screen and window captures make your
tests easier to read and help you visualize the recorded test. You can change the settings
for screen captures and add a comment to the image.Note: The Capture screen option does not capture the mobile screen correctly when you record a mobile test on the emulator or simulator. To work around this problem, you can edit the test to replace the incorrectly captured screen with the image from the SmartShot view.
- Click the Start Transaction icon and Stop Transaction icon to start and stop the transaction and to manually add a transaction folder to the recording. Transactions can be nested.
- Click the Split point icon to insert a split point into the recorded test. With split points, you can generate multiple tests from a single recording, which you can replay in a different order with a schedule. See Splitting a test during recording for more information about splitting a test.
- When recording an HTTP test, click the Change page name icon to change the page name. In the resulting test, the page element in the test editor uses the new name, however the original name is preserved in the Page Title Verification Point area so that page title verification points still work correctly.
- Close the client program to stop the recording.
- If you inserted a split point during the recording, on the Destination page, in the Test Generation wizard, specify the location for the split test or merge the split recordings together.