#CHECK#
Description
The #CHECK# reserved word modifies the behavior of a Set_Value action to be more like a Verify action. This can be useful when you want to set data in a particular field for one test case and verify the data in the same field for a different test case.
Note:
If the values are not equal, PTF will always try to update the value (unless the object is display-only). If the values are equal, PTF will not update the value.
Example
For example, a text box could be set and verified with the following two steps:
| Type | Action | Recognition | Parameters | Value |
|---|---|---|---|---|
|
Text |
Set_Value |
ID=PA_CLC_SUMMARY_CALC_NAME |
|
KUSPTEST |
|
Text |
Verify |
ID=PA_CLC_SUMMARY_CALC_NAME |
|
KUSPTEST |
Suppose, however, that the test calls for using two test cases: the first test case sets the calculation name equal to KUSPTEST, the second test case verifies the value of KUSPTEST.
The test case that sets the value to KUSPTEST would be constructed as shown in the first step of the previous example. The test case that verifies the value as KUSPTEST would be constructed as shown in the following example:
| Type | Action | Recognition | Parameters | Value |
|---|---|---|---|---|
|
Text |
Set_Value |
ID=PA_CLC_SUMMARY_CALC_NAME |
|
#CHECK#KUSPTEST |