4. Configure the Data Source

Let’s configure the added Data Source test step to use a text file as a data source.

  1. Select the File data source.

    Functional API testing: Select the File data source
  2. Download sample.txt to use it as a data source.

  3. Click Browse and specify the downloaded file.

  4. ReadyAPI offers you to import properties. In this tutorial, we will add them manually, so click No.

    Functional API testing: Import properties from a file
  5. The data source already contains the email property. Click add.png to add the Expected name property.

    Functional API testing: Add a data source property
  6. In the sample file, we use the colon symbol as a separator, so enter ":" in the Separator field.

    Functional API testing: Specify the separator symbol
  7. To test whether the data source is configured correctly, click run.png and specify a certain number of rows to get.

    Important

    When you test the data source, it assigns the obtained value to its properties. You will need it later in the tutorial.

    ReadyAPI shows obtained values in the Data Log:

    Functional API testing: Test data source

After you make sure that the data source works correctly, you can configure the test step to use that data.

Prev Next

See Also

Publication date: