Text Check

Text check in LoadRunner

The text check is used to check if a word or string is present in the server response, as its name implies. Running a text check for each page in the web script is a best practice. You’ll learn how to use text in LoadRunner as a “text control” and what text to use in this post.

How to include text review during recording?

1. Choose the text you want to use as the text control on the website while recording the script.

2. Select the ‘Insert Text Control’ button on the VuGen floating bar.

LoadRunner Text Check

3. The script is updated with the web_reg_find() method containing the chosen content. VuGen always adds the text checker function (web_reg_find) before the web page request with the selected text. The text proofing function is placed in the same place in the script as the proofing routines.

What word or string qualifies as text verification?

A control text (word or string) must be included in the content control function that appears appropriately in the response while the scenario is running. Each individual word or string can be selected when a text content check is displayed on the website. Use the text that appears in the most recently updated frame if your website is divided into multiple frames. See how to choose a text for a content check on any page by taking a look at the “Web Tours” website:

a. Check the URL

Verification text can be: Welcome to the Web Tours website.

LoadRunner Text Check - Web Tour

b. Login

    the text control can say “Welcome”.

LoadRunner Text Check - Login Page

c. Select ‘Flights’.

Find Flight could be the text checker.

https://www.perfmatrix.com/wp-content/uploads/2020/01/LoadRunner_Content_Check_Web_Tour_03.png

d. Choose a flight

The text of the check can be taken off the flight

https://www.perfmatrix.com/wp-content/uploads/2020/01/LoadRunner_Content_Check_Web_Tour_04.png

e. page for payments

The control text can be: Payment information

https://www.perfmatrix.com/wp-content/uploads/2020/01/LoadRunner_Content_Check_Web_Tour_05.png

f. Billing page

Thanks, it could be a text check.

https://www.perfmatrix.com/wp-content/uploads/2020/01/LoadRunner_Content_Check_Web_Tour_06.png

To add the text control to the LoadRunner (VuGen) script, follow the flow shown in the GIF image above:

https://www.perfmatrix.com/wp-content/uploads/2020/01/LoadRunner_Content_Check_Text_Check_GIF.gif

Before running the script again, make sure to select “Enable image and text controls”.

Enable image and text checks in Runtime Settings > Internet Protocol > Preferences > Checks

LoadRunner Text Check - Runtime Settings
Scroll to Top