Adding Test Data

Updated 1 month ago by Adnan Pandjou

What is Test Data ?

Sofy’s test data capability enables QA teams to externalize test data variables so they can be reused across test cases.

Historically, testers have all too often resorted to scraps of paper or Excel files to store usernames, passwords, and test data specific parameters.

Fortunately, test data in Sofy makes it easy to centralize this data for creators to define such stateful data and share them with testers when they are executing the test. It is also serves the same purpose while creating no-code automated test cases using Sofy and during playback.  

Setting up test data in Sofy

To set up test data on Sofy, complete the following steps:

  1. Click on test data once you have uploaded your application
  2. Click on Create Test Data
  3. Define the variable name to be used
  4. Select type of test data
    1. Value, or
    2. Pattern, or
      1. Numeric: Useful in cases where you need a randomly generated numerical value contain "n" number of digits
      2. Alphabetic(n): Useful in cases where you need a randomly generated alphabetic string containing "n" number of characters, for example: "eEpI"
      3. Alphanumeric(n): Useful in cases where you need a randomly generated alphanumeric string containing "n" number of characters, for example: "hY6l"
      4. Date: Useful in cases where you need to specify or capture the date in a particular format such as "DD-MM-YYYY", "YYYY-MM-DD", "DD" and so on, for example, in cases where you may need Sofy to select "Today" or "Tomorrow" as the date. The "Preview" pane is also helpful in calibrating and verifying if the specified date is correct or not.
        1. As an example, you can first select your desired format from the Format dropdown:
        2. Once done, you can then specify the Type such as Specify Date or Day of the Week:
        3. In the end, you can tweak your date to suit your needs, for example, to obtain "Todays Date", you can specify the "n" value as 0, for "Tomorrow's Date", the "n" value would be "1" and so on:
    3. Secret: Useful in cases where you need to keep the underlying value of a test data variable concealed
  5. Enter the value and the corresponding description
  6. Click on Create


How did we do?