lr_xml_get_values reporting failed transactions
Every lr_xml_whatever function I have tried (lr_xml_get_values, lr_xml_find, lr_xml_extract) always reports a failure in the "Test Results" if the data I am looking for is not found. Problem is, I expect it to not be found usually - this application reports a failure by including this piece of xml, and if there is no failure it doesn't show up.
I have "NotFound=Continue" so at least the script doesn't quit, but after every run it reports a bunch of errors, 1 per successful iteration.
I'm looking for a good quick way to review that the script succeeded, but this is throwing off my usual approach of checking for green in test results.
There simply has to be a better way to parse the XML. Is there a function or an option I am missing?
1. Version: Performance Center 8.1, but just working in Vugen (8.1.4) at the moment.
2. Protocol: Web Services (soap_request)
6. LR Features: Don't know.
7. License: Permanent
9. WinXP SP2
10. Haven't yet
Re: lr_xml_get_values reporting failed transactions
David, I think I understand what you are trying to do, but am a bit confused between what you describe and your topic title??
At this level, I am thinking you add you own custom logging for failures?? Are you aware that you can use LR_PASS or LR_FAIL in you end transaction statements and arrive at either with some decision logic?
Can you perhaps break this down a bit more into individual requirements (what you are trying to do) in order to clear any confusion?