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

VuGen TrueClient Evaluate Javascript question

$
0
0

I need to verifiy a dynamic value of cells in a table which should be numeric but for some reason are sometimes displayed with parenthesis.

I've written a javascript function in an "Evaluate Javascript on Object" step which sucessfully gets the value from the cell and removes the non numeric chars, but the issue now is that I'm not sure about how to evaluate this new value in a way that affects the script flow (eg. generate an error if the value is different from the expected value).

Adding the comparison to the Evaluate Javascript step doesn't seem to work the way I need. The javascript is evaluated, but the script doesn't seem to care about whether the result of the numeric comparison in the javascript code is true or not.

I basically just need something like a  "Verify" step for a value that's been calculated in an "Evaluate Javascript on Object" step. How can I do that?

 

Regards.


Viewing all articles
Browse latest Browse all 3978

Trending Articles



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