Testlum Structure

To start working with Testlum, you need to create a directory with your project's resources which will contain the main folders of your directory and global-config- file with global configuration settings for your project. As Testlum requires the presence of mandatory folders that must be in the structure of your resources, these folders will contain the data for testing, and the test scenarios themselves.

  • config
  • data
  • locators
  • report
  • scenarios

Config folder is used to keep different configurations for your environment. There are 2 XML files in this folder:

  • integration.xml
  • ui.xml

integration.xml - file, where you can set up all integrations you need (API, Websocket, DBs, etc).

For instance:

XML
Copy

As you see, you are able to integrate as much APIs, Websockets and DBs as you need at once.

ui.xml -file, where you can set up browsers for Web UI testing that you need, including web, mobile and native applications.

XML
Copy

Folder data - root folder for test data (used to store datasets and files for migration, in various formats).

Inside this, you also have the option to separate your test files into separate folders for a readable structure and ease of use.

When you first start Testlum, inside the "data" folder, we left the default folder "variations" for storing test data, which you can change in the future.

You can create folders inside data:

  • credentials
  • javascript
  • patches
  • variations

credentials - Folder for storing system user data for authorization within the test scenario.

JSON
Copy

javascript - Folder to store JS files for <javascript> command that uses these files.

Javascript
Copy

patches - Folder to store datasets for testing ( sql, csv, javascript, xlsx, partiql, bson, shell and others).

SQL
Copy

variations - Folder in which a data set is created and stored for interacting with the WEB (in the format csv).

CSV
Copy

Locators - folder, where element locators are stored (For interaction with WEB).

Inside of locators folder should be such folders as:

  • component - a folder for storing locators that refers to the footer, and header elements of the pages. (It is recommended to separate these locators for structuredness and ease of use)

  • pages - a folder in which the locators of a particular page are stored

(In the xml file with locators, which is located in the pages folder, it is possible to request the desired footer and header component using the command: <include>).

XML
Copy

This way we will be able to pass locators that are in the component folder to the scenarios through the xml file pages.

Report - Folder in which the test report will be generated and divided by the date where the test pass report will be generated.

Scenarios - Folder for creating and storing test scenarios.

XML
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
On This Page
Testlum Structure