Add text checks and image checks (Web Vuser protocols)

Note: Applies to: Web Vuser protocols. For a list of web Vuser protocols, see Web Vuser types.

Add a text check while recording

  1. In the web browser, select the desired text.

  2. Click the Insert Text Check button on the VuGen Recording toolbar. VuGen adds a web_reg_find function to the script.

    Note: When recording a multi-protocol script, you can only insert a text check in the web part of the script.

Back to top

Add a text check after recording

  1. In the Snapshot pane, display a snapshot that contains the text you want to verify.

  2. In the Snapshot pane toolbar, click HTTP Data to display the HTTP Data view of the snapshot.
  3. In the snapshot, select the text you want to verify. The text must be located in a response section of the snapshot - not in a request section.

  4. Right-click and select Add Text Check Step from the menu.

  5. Modify the options in the Find Text dialog box. For details on the dialog box options, press F1 when in the dialog box to open the Function Reference.
  6. Click OK to insert the function into the Vuser script.

Back to top

Add other text checks after recording

  1. In the script editor, locate the position where you want to insert the check.

  2. Select View > Toolbox to open the Toolbox.

    1. To insert a web_reg_find function, in the Toolbox, under Services, select web_reg_find.

    2. To insert a web_global_verification function, in the Toolbox, under Services, select the required web_global_verification function.

  3. Drag the selected function to the required location in the Editor.

  4. Enter the required details in the dialog box that opens. For details on the dialog box options, press F1 when in the dialog box to open the Function Reference.
  5. Click OK to insert the function into the Vuser script.

Back to top

Add an image check after recording

  1. In the Editor, locate the position where you want to insert the check.

  2. Select View > Toolbox to open the Toolbox.

  3. In the Toolbox, under Web Checks, select web_image_check.

  4. Drag the selected web_image_check function to the required location in the Editor.

  5. Enter the required details in the Image Check Properties dialog box. For details on the dialog box options, press F1 when in the dialog box to open the Function Reference.

  6. Click OK to insert the function into the Vuser script.

See also:

Back to top