Skip to main content

Test Data Management with External JSON in TestGrid

OverView:

A JSON (JavaScript Object Notation) file is a lightweight and structured format used to store and exchange data. It is widely used in test automation to manage test data in a flexible and readable way. JSON supports nested structures, which makes it ideal for representing complex data such as multiple environments, user roles, or configurations. Using JSONPath expressions, specific values can be extracted and used during test execution.

JSON-based data handling enhances test automation efficiency by enabling flexible and scalable test design.

How we can use the JSON file in TestGrid for extracting the values from JSON:

Step No. 1- Log in to the TestGrid portal using your valid credentials and get started with Scriptless/Codeless Automation.
Step No. 2: Create or Access a Scriptless/Codeless Project:
  • Navigate to Automation → Codeless from the top menu.

Step No. 3: How can we upload the JSON file in the TG Drive option?
  • Go to the TG Drive option under more tools, where you can see the TG Drive option.
  • Create the folder and upload the JSON file as seen in the below image.
  • Once the file was uploaded on TG Drive, you could switch the tab from public to local, and you would get the local link, which is used in your TC.

Step No. 4: How we can use the JSON link in test case generation and creation.
  • Go to the codeless [your project, test suite & Test case] you can create the TC for this.
  • After copying the link, append your domain to the JSON file path.
    "https://your_domain/drive/file/7?user_token=Your_User_Token".
  • Paste the updated JSON link into your test case where required. Use this link to fetch and extract values using JSONPath


You can view the results in Codeless → Test Results, where detailed execution reports with step-by-step screenshots are available for validation.

Using JSON files in TestGrid enables efficient and dynamic test data handling. It improves test scalability, maintainability, and overall execution flexibility.

Table of Contents