Text Verifications
Example
Let’s say you need to check the result of creating public static void main method stubs while adding a new Java Class.
So you go through the following steps:
-
Create a new test case, add required contexts
-
Start recording.
- Create new Java class and check “create public static void main stubs” option.
-
Stop recording - your actions have been recorded as ECL script:
-
In a test case editor go to Verification tab and press Add button Click Capture button and select Widget text verification type. Set verification name and press Finish. Now, while you are in a Capture mode, select Java Class editor. Your verification will be added into a test:
-
If you open verification you can see that it contains the styled text to verify and the widget to take the text from. Verification checks both:
- text content
- and text styles.
If you want to verify a plain text only, then select Ignore text styling and colors option.
-
Now, when you run your test case, it’s verification result will be shown in a Execution View: