how do I compare my test output to expected output
Hi, I am sorry this is a very basic question.
I am going through the HELP fies of Testcomplate.
It says: "the basic test squence is:
1. Define expected output....
4. Compare to expected output"
My question is, how do I compare the actual output after I run my script in TestComplete with the expected output? I mean how is the comparison one within Test Complete?
Is it by saving an expected output or result under the Stores? or not?
Re: how do I compare my test output to expected output
It depends, in part, on what output you are comparing.
For example, in our case, we are comparing SQL data to a set of expected values. For our purposes, those expected values are stored in a CSV file. So, we use custom code to export the data to a CSV and then use routines to compare, record by record, column by column (don't worry... we're smarter than that...) the two files and report the differences.
If you're doing screen images, then you can use the Regions.Compare from the stores object.
Same thing with GUI components.
If you're comparing an output file to a set of expect results, you'll need someway of making TestComplete aware of the result file and what file you are comparing to.
So... in other words, I'm turning the question back to you... what are you comparing? Depending upon your answer, there's any number of ways of doing that.