TestDataFromProfile Function Type

TestDataFromProfile Function Type


TestDataFromProfile functions enable users to retrieve specific test data from designated profiles, allowing for easy access and utilization of predefined datasets for testing purposes.


Prerequisites

Before utilising the different data generator functions, it's essential to understand basic concepts such as creating Test Cases and Test Steps and adding data generators in test steps. Additionally, familiarize yourself with Test Data Profile.


Selecting TestDataFromProfile as a Function Type for Data Generator

  1. Use NLP to create a new step in the test case and include a placeholder for test data.
  2. Click on the test data placeholder. From the Test Data Types dropdown menu, select the ! Data Generator option.
  3. On the ! Data Generators overlay screen, select the Type to Default. This will enable you to use a collection of built-in test data generators.
  4. Select TestDataFromProfile from the Function Type dropdown list. select testdatafromprofile function type from data generators
NOTE:

This action will display a list of built-in functions associated with the TestDataFromProfile function type, enabling you to select the appropriate function based on your requirements.


Get Test Data by SetName

  • Enables you to fetch test data by specifying the test data profile, dataset, parameter, and dataset index and returning corresponding data from the selected profile and dataset.
ℹ️Example:
Input Output
Profile: Customer Data Profile
Dataset: Active Customers
Parameter: Customer ID
Data Set: 1
12345
Profile: Order Data Profile
Dataset: Pending Orders
Parameter: Order ID
Data Set: 2
67890
Profile: Employee Data Profile
Dataset: Current Employees
Parameter: Employee ID
Data Set: 3
54321
Profile: Product Data Profile
Dataset: Available Products
Parameter: Product Code
Data Set: 4
P001

Get Test Data by RowNumber

  • Allows you to retrieve test data by specifying the row number within the profile and returning data from that row.
ℹ️Example:
  • Input: None (This function does not require any specific input)
  • Output:
    • Neha Grant
    • Vern Sanford
    • Michael Johnson
    • Sarah Davis