Quick Start

Writing script quick start

There are 2 options to create a scenario:

  • manually adding all necessary commands
  • adding commands by Recorder
  1. Make sure that the Testlum folders structure meets the needs.
  2. Set up config files.
  3. Create a new directory in the ‘scenarios’ folder and add to it a new scenario.
  1. All scenarios have the same header.
XML
Copy
  1. The next necessary command in the script structure is the overview, with which you can add a description and the name of your test scenario.
  2. Write the necessary command tag that is needed to run the scenarios by command.
XML
Copy
  1. Add all necessary commands manually or by Recorder (necessarily in Settings turn on the flag showInRecorder="true" for the displaying in the Recorder).

Structure of the scenario

XML
Copy
  1. Create a file where you will store your locators - my_locators.xml in the locator's section according to the project structure.
  2. In this file, place the structure as in the example below and put the path to the item you want to interact within the script.

With this locator, you will be able to interact with the elements in your scenario.

XML
Copy
  1. Run Testlum
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard