Check Point and Output Value, What
is the difference between check point and output value
What is the difference between check
point and output value?
Check point is a verification point compares a
current value for any particular property with the expected result
value for the same property. On the Based of this comparison, it will
creates the status either PASS or FAIL.
Check points are basically used for validation purpose.
Checkpoint compares the expected result of the Test object with the
Actual result from the run time object and returns a pass or fail to
the test result.
An output value is a value captured during the test run
and can be saved in a particular position like the Data table
or even a variable. Unlike Check points, no PASS / FAIL status will
be created.
Output values enable to view the values
that the application takes during run time.When paramaterised, the
values change for each iteration. Thus by creating output values, we
can capture the values that the application takes for each run and
output them to the data table.
Difference between check point and
output value:
Open the test that includes the standard Checkpoints.
From expert view of the test we will watch only one line for example
From expert view of the test we will watch only one line for example
Window("Flight Reservation apps").WinButton("FLIGHT
Done").Check CheckPoint("FLIGHT Done")
Now You will do some editing in this line one so that it can
return any record or value.
NOTE: Checkpoint always returns a record like a function, it
will based on us whether we catch it or not.
Let us now capture it.
Assign the variable and capture the return value in same variable:
Assign the variable and capture the return value in same variable:
Dim return
return = Window("Flight Reservation Apps").WinButton("FLIGHT Done").Check CheckPoint("FLIGHT Done")
return = Window("Flight Reservation Apps").WinButton("FLIGHT Done").Check CheckPoint("FLIGHT Done")
msgbox (return)
One more thing we required to do here is that we need to enclose
Checkpoint ("FLIGHT") in braces. So that final
version looks like follwoing:
Dim return
return = Window("Flight Reservation apps").WinButton("FLIGHT Done").Check (CheckPoint("FLIGHT Done"))
msgbox (return)
return = Window("Flight Reservation apps").WinButton("FLIGHT Done").Check (CheckPoint("FLIGHT Done"))
msgbox (return)
Now execute the test script and watch the msgbox displaying with
the proper return value...
|
||
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
|
Virtual Objects with Example in QTP |
Cross Platform Testing |
|
|
|
What is Object Spy in QTP | Ordinal Identifiers Alone can Make an Object Unique |
|
||
|
|
|
Test Automation Frameworks Types |
No comments:
Post a Comment