Multiple verification points
User Gareth (email@example.com) posted:
Could someone help with the best way to create VP's for the following
My AUT displays a multi tab form with details of each particular case.
I would like to be able to check the object text properties (on this multi
tab form) for a list of cases...
Can something like this work?
For x = 1 to SizeofArray
CaseNo = Array(x)
Result = GenericObjectVP _
I have tried this method, but all the VP's fail, due to no baseline data
being captured. Do I have to create the Baseline data in a csv format
first, or is there another way? The contents of the Array (ie caseno's)
will be the same for each test cycle...
Any advice would be appreciated
Re: Multiple verification points
User (firstname.lastname@example.org) posted:
I would recommend getting away from the VP functions and creating your own
test functions. For example, you could write a test Sub that takes
parameters for specifying the Recognition String, Property to test and
Expected Value, and uses SQAGetProperty() to capture the specified
property and compare it to the expected property value, then log a
PASS/FAIL result and any other useful information you want to include
(e.g., the RecStr, Expected and Actual values).
This could be called in a loop by creating lists (e.g., delimited string
variables) containing RecStr's and Expected values to use for each
With this method, you can store your input variables in the script or in a
separate text file, spreadsheet, database, etc.