2. Create a Test Case

Applies to ReadyAPI 3.56, last modified on November 21, 2024

To begin, you need a project with at least one test case.

  1. Select File > New Functional Test to create a new functional test.

    ReadyAPI: Creating a new REST project
  2. Select Endpoint.

    ReadyAPI: Selecting an URL as a source for the test

    Click the image to enlarge it.

  3. Enter the following URL:

    http://localhost:8092/user?email=

    ReadyAPI: Entering an URL for the new project

    Click the image to enlarge it.

  4. Click Next.

  5. On the next page of the wizard, select if you want to create a new project for the URL you have added, or add it to the existing project.

    ReadyAPI: Specify project

    Click the image to enlarge it.

    Click Next to continue.

  6. On the next page of the wizard, you can add assertions to new requests. In this tutorial, we will not use the suggested assertions, so unselect them and click Next.

    ReadyAPI: Add assertions page

    Click the image to enlarge it.

  7. ReadyAPI will create a project and display a confirmation dialog. In the dialog, click Add Data and specify a data source in the subsequent dialog.

    ReadyAPI: The project creation confirmation dialog
  8. Download a sample file to use it as a data source, or create another file.

  9. Specify a name for the data source and the full path to the file in the Add New Data dialog.

    ReadyAPI: The Add New Data dialog

    Click the image to enlarge it.

ReadyAPI will now import the data and create a test with a data source loop that will use the attached file. You can configure the data source now.

Data import specifics

When you create a data-driven test as described above, ReadyAPI tries to create property expansions automatically. Double-click the data source in the Navigator to see the imported data.

If you select Import property names from file, ReadyAPI will create data source properties using data from the first row of the Excel file. Then, it will create property expansions for each request parameter in the order identical to the data source values.

ReadyAPI: Importing properties

Click the image to enlarge it.

Otherwise, ReadyAPI creates data source properties using request parameters, then it populates the columns of the Excel file with these properties. Property expansions link parameters to the properties that have the same name.

ReadyAPI: Importing properties with request properties

Click the image to enlarge it.

Prev          Next

See Also

Excel Files as Data Sources

Highlight search results