dnb
7 years agoNew Contributor
JScript - Addition behavior in scripted tests
Hello, I have a rookie question about behavior of addition operation. I would like to take a value A (example: 100) from a text field and then add value B (example: 10) to value A and write s...
- 7 years ago
Not sure how you're using the convert... but you need to do it like this:
var x = obj.wText; obj.SetText(aqConvert.StrToInt(x) + 10)
This will convert the string to an integer value before doing the addition.
OR
var x = aqConvert.StrToInt(obj.wText); obj.SetText(x + 10)