🍱TestData Configuration

Our product, ScriptlessAutomation, is designed with a straightforward and efficient test data configuration to support various testing environments. The test data is stored within the testdata directory, which is located using System.getProperty("user.dir")/testdata/. This organisation facilitates easy access and management of test data for web, API, and mobile testing.

Directory Structure Overview:

[test_data]

├───[web]
│   └───[page_object_locators]
│   │   └───[locators.properties]
│   └───[test_case_flows]
│   │    └───[TestDirectory]
│   │        └───[TestID_GroupName.csv]
│   └───[dynamic_strings]
│   │    │───[qa]
│   │    │   └───[test.properties]
│   │    └───[sandbox]
│   │        └───[test.properties]



├───[api]
│   └───[JsonRepository]
│       └───[file.json]
│   └───[test_case_flows]
│       └───[TestDirectory]
│           └───[TestID_GroupName.csv]

└───[mobile]
    └───[page_object_locators]
    │   └───[locators.properties]
    └───[test_case_flows]
        └───[TestDirectory]
            └───[TestID_GroupName.csv]

Detailed Description:

  • testdata Directory: This is the main directory for storing all test data. It's structured to categorize data according to the testing environment.

  • Subdirectories (web, API, Mobile): These folders are designated for specific testing environments. Each folder contains test data relevant to its environment, ensuring easy navigation and organisation.

  • test_case_flows: This subdirectory, found within each platform category (web, API, Mobile), houses the test cases pertinent to that particular platform. It serves as a dedicated repository for storing platform-specific test scenarios.

  • TestDirectory: This represents directories within each testing environment. Name these directories according to the specific tests or functionalities they cover.

  • TestID_GroupName.csv Files: These CSV files are crucial for containing the test data. The naming format TestID_GroupName.csv is strategically chosen for its clarity and ease of identification.

    • TestID: This is a unique identifier that corresponds to the ID used in your test management system. It ensures that each test data file is directly traceable to a specific test case.

    • GroupName: This refers to the test group's main category, such as sanity, smoke, or regression tests. It helps in categorising the tests and facilitates easier access for specific types of testing.

Using the Test Data:

  • To access the test data, navigate to the testdata directory in the root of the product's directory structure.

  • Choose the relevant environment (web, API, or Mobile) through testNgConfiguration.properties and then select the appropriate TestDirectory or TestID_GroupName.csv through testManagementConfiguration.properties

  • Inside, you'll find CSV files named according to our naming convention, which you can use for your testing purposes.

This test data configuration is part of our commitment to making ScriptlessAutomation easy to test and integrate into your systems. The organized structure ensures that you can quickly find and utilize the data necessary for thorough and efficient testing.

Last updated

Was this helpful?