Confusion (Please help)
Here is what I am trying to do. I have these list of Settings in a tree view. Some are checked, some are not (there are check boxes). Now there lots of these settings to be checked for the test. So when I am recording a test script I check each setting in the list whether it is checked off or not. These will be saved as Object Property Verification points?? Now if I do this for every setting (meaning check each of them while recording), it will be a very big chunk of code, and lots of time checking each item.
I was wondering if a do while or a for loop would work, which would scroll down the list and check their initial state while recording, and save the state of each setting while recording. So that when I play back, it just checks against the initial state, against the current state. The state of these check boxes are there by default. What I am trying to point out is that I will be running the recorded test on another machine which has a fresh install of the application.
Please advise me on this. I read something about Custom Verification points, but could not understand much. If that is something that would help me, please advise on how they work, and how i could use them.
Many thanks in advance,
Re: Confusion (Please help)
I think you're out of luck as far a recording this sort of thing is concerned. A good solution would be to use SQAGetProperty to capture the value of the property you are interested in. You could then compare the value returned from SQAGetProperty with a baseline stored in, say, a CSV file or a database, and write your results to the log file using SQALogMessage.
Not as nice as being able to record it, but a pretty straight forward bit of code and once it's done you won't have to do it again!