Trying to do something fairly simple.
I have a string that is returned from the server in the resopnse, however, there are mulitple values. The number of times the value will return is dynamic.
ie. on one iteration i may have 5 values returned, on the next I may have 19.
in Loadrunner, the web_reg_save_param has an option to get all occurneces and store the values in an array.
in QA I'm struggling to do this easily.
ExtractString(n,LB,RB) works, but only returns 1 occurnece, and I must specify this occurnece. If I exceed the number of occurneces, the script dies with an error...
works, however again, I must specify 'count'. putting it into a loop wont work, as i cannot determine the max value of occurneces.
Has anyone done this succesfully that may assist.
basically i need to find the max occurneces, then I can put it in a loop and save the strings...I'm unable to find max occurences.
I'd say you should submit this as an enhancement request, but I don't know that it's worth it since the understanding is QALoad will be depriciated within a few years. But perhaps it is worth trying.
Not sure which version you're on. I'm using 5.7 and they've "replaced" Get with ExtactString. The latter has a feature to get the last occurance. Assuming that the strings you are extracting are unique, you could get the last one then loop from the first until you match the last.