Forum Discussion

ivan_sy's avatar
ivan_sy
Contributor
13 years ago

Is there a way to do Checkpoint based on the Last Operation Result?





I have a keyword test of our application "Adding attachments"

the expected result is that the value of the string "Total: X" (where X is a numeric character) will get incremented by the number of attachments that was successfully uploaded. There’s a data-driven loop and a variable that gets ++ every time it loops , which at the end of the loop results to the total successful attachments. The keyword test can do this (not a problem)



However, i have to feed the Strings "Total:10" and "Total: 15" (say five were attached from an existing 10 attachments) to a script. That script does the screening (stringtoInt and does the arithmetic) and returns (Int) the difference which is 5

How can I can create a checkpoint that will compare the last operation result against a variable value?



1 Reply

  • another example that I can use this is that, I have a script that dissects the insides of an Infragistics Toolbar.



    this allows our test developers to easily copy the object's MappedName to the parameter of a script routine and it will return the 3rd string.



    Then i need to have is a checkpoint that the "Last Operation Result" is the string "Record Successfully Added"