Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article aims to explain how users can record and verify Partial Texts using the QAS custom step. Please refer In QAS, the verification of Partial Text is only possible using QAS CI/CD mode. Refer to the below steps to verify the Partial Text using Custom Step:

  • Step 1: Adding Partial Text a Custom Step to Steps Libraryverify Partial Text.

    • Navigate to \src\test\java\steps\common\StepsLibrary.java from your Project Root folder. Add the following code block to your 'StepsLibrary.java' file. Refer to the below screenshot and sample code for the same:

...

View file
nameCustomStep.txt

  • Step 2: Using Call the Custom Step in from the feature file.

    • Once you have recorded a Export the test case in QAS code from Test Recorder , export the test case code to your project. Refer to the help guide for detailed steps.

    • In your the exported feature file, you can use call the custom step of verifying Partial Text as shown in the below screenshot. Please note that the feature file step should be the same as the description of the Custom Step added to your StepsLibrary.

    • Replace the following parameters;
      {loc} : locator element.
      {text} : partial text that needs to be verified.

...

  • Step 3: Executing the feature file.

    • Execute the feature file via CI/CD mode or through the Execute Code button provided on the top right side of the QAS panel.

...

    • test case.