Transaction validation in loadrunner using web_reg_find function

  • We can use the SaveCount attribute of web_reg_find function to validate the transactions.
  • SaveCount attribute of web_reg_find function saves the number of matches (count) found for the given text in a parameter.
  • We need to use this Count value in the IF block to validate the transaction.
  • If the Count value is greater than 0 we will pass the transaction else we will fail it.
Code Snippet:


No comments:

Post a Comment