cancel
Showing results for 
Search instead for 
Did you mean: 

Context Check in Loadrunner runtime setting

Former Member
0 Kudos

Hi Experts,

Can anyone plz tell me about what exactly content check under the runtime setting mean? with the example . How do i add a new application and new rule to it..

Thanks in advance

Regards,

Pallavi

Edited by: Darius Heydarian on Mar 26, 2008 4:47 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Pallavi,

You can use Content Check Rules in LoadRunner script to search through all returned pages for strings that match known messages.

You can use the web_reg_find function to do the same, but when you get an error LoadRunner reports it as u201Cfailed to find textu201D instead of something more descriptive.

You can create rules for any error messages you find during scripting and, and if you receive an error while running a scenario, add the error message from the snapshot in the scenario results directory (the snapshot on error feature is very useful).

So to add the rules using the runtime settings you need to know the text string you are looking for. Once you know that string, all you need to do is to enter the text to be searched, prefix and suffix for that text string. You can also do make it a case sensitive search.

Please look at the web_reg_find function help in loadrunner to get more details about the various options

And finally, ContentCheck rules can be easily exported and shared between scripts, which can be a nice time-saver.