Adding values to an image synchronization
You can replace or add alternative values in an image synchronization element so that synchronization is not restricted to the exact recorded image. Alternative values can also be useful in updating the test if the behavior of the application changes.
Before you begin
If you are using optical character recognition, simply click Add in an image synchronization element in the test editor to add an alternative value, and enter a new text string in the Expected text field.
If you are using the bitmap hash code synchronization or optical character recognition, you can use the following method to add an alternative hash code or recognized text value.
Procedure
To add an alternative value to an image synchronization:
- After inserting an image synchronization element, run the
test from the Run menu.If possible, arrange for the alternative condition to occur before starting the run. The test should produce an image synchronization timeout when the alternative condition is encountered.
- In the Performance Test Runs view,
right-click the test log container, and then select Display
Test Log.The test log opens in the editor with the Overview page selected.
- Click the Events tab.
- Expand the top line of the Events hierarchy and navigate to the Image timeout element that was produced during the run.
- Select the image timeout to open the Citrix Image
Synchronization view.If necessary, you can open the Citrix Image Synchronization view manually by selecting . When an image timeout is selected, this view shows the actual screen area encountered during the test and the expected image, as well as the corresponding hash codes or recognized text values.
- You can either add the new hash code or recognized text
value to the image synchronization as an alternative value or you
can replace the existing value with the new value.
- To add the actual hash code or recognized text as an alternative value, click the Add value button.
- To replace the expected value with the new value, click the Replace value button.