I have an object value (Quantity) and I need to increment it by 10.
I used 'Set variable value' method to read the onscreen object value to a variable. but I am not able to increment it with a desired value and make an entry on screen.
Requesting your help to resolve this issue.
Solved! Go to Solution.
Hi,
> if there are any special methods to be used to write the script output into the field?
.Keys() method for scripting.
Use On-Screen Action operation for Keyword test and configure it to call Keys method.
Hi,
Without knowing anything about your tested application and control you are working with, I may suggest something like this:
var aValue = obj.Quantity.Value;
aValue = aqConvert.VarToStr(aqConvert.varToInt(iValue) + 10);
obj.Quantity.Keys(aValue);
Thank you for the solution. I did work to a great extent and I have captured the value from the application, converted to Int and added another value 10 to it.
Log message display is working fine.
However, I am not able to write this value into the field in the application.
Note: Mine is a Keyword testing approach.
Could you please advise if there are any special methods to be used to write the script output into the field?
Hi,
> if there are any special methods to be used to write the script output into the field?
.Keys() method for scripting.
Use On-Screen Action operation for Keyword test and configure it to call Keys method.
Express gratitude toward, I want to do it, yet it requires some serious energy, thank you for sharing valuable data. Thanks for the info i will try to figure it out for more