Fail on Error?
I am trying to record a script using HTTP/HTML for a testing application which is a XML file with status ok.I wanna make the script in such a way that if the status changes to error then the script should fail.
I know if i give a text check on OK and if it turns something else it will change but the xml file has Ok in four different places.So i wanna see if any of them changes to error then fail?
Anybody know how would i do that?
Re: Fail on Error?
As Madan mentioned there is a function called lr_xml_get_values to get a particular value from that xml, if you get the right value it will continue but if you get a different one you can use lr_fail and then make the script stop with lr_exit. You can check the LR Online Function Reference when you press F1 in Vugen for details on these functions and examples on each one.
If you are customer you can try posting on our internal forums for more personalized support.
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.