Quantcast
Channel: LoadRunner Practitioners Forum topics
Viewing all articles
Browse latest Browse all 3978

Making web_reg_save_param robust

$
0
0

I am relatively new to correlation, updating existing scripts for a new release of our product.  The existing scripts extract correlation values like this one to get the value of the "name" attribute of an input tag:

 

web_reg_save_param("c_EB1", "LB=Duration (days): </span></td><td colspan=\"1\"></td><td colspan=\"1\" align=\"left\" valign=\"top\"><table cellpadding=\"0\" cellspacing=\"0\"><tr><td valign=\"top\"><input name=\"", "RB=\"", "ORD=1", LAST);

 

which depends a whole lot on all the (non-relevant) HTML between the display text and the input field tag. Any minor change in the style breaks this correlation (e.g. the cellpadding changed, a 'style' attribute was adeded, etc, and this script broke).

 

Is there some way to make this more robust against changes in the HTML? What I really want is an LB with a simple wildcard that would represent an arbitrary number of characters, e.g.

 

"LB=Duration(days): * <input name=\"

 

This seems so simple and obvious, I must be missing some easy solution...?

 

Thanks for any ideas...


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>