Api

  • Handles database connection info

  • #UriPath= https://de-qa.azurefd.net api.uriPath = http://45.76.245.149:1337
    api.parallelTestcasePath = "../apiTestData/testcases/"
    api.actionTestcasePath = "../apiTestData/keywords/action/"
    api.templaePath=""
    # set file name to run single csv file
    api.testCaseFile = ""
    api.testCase = ""
    # timeout in seconds
    api.timeout.connect.seconds = 5
    # will retry the request, expecting to pass validation for duration of specified duration in seconds
    api.timeout.validation.isEnabled = false
    api.timeout.validation.seconds = 2

    Parameters

    parameters

    description

    api.uriPath

    base uri path for the api requests

    api.parallelTestcasePath

    the location of the test case csv files for parallel runs

    api.actionTestCasePath

    the location of the test case csv files for external csv files.

    api.templatePath

    file path for test templates. This could include xml files to be used for request body of api calls

    api.testCaseFile

    test case file name for running a single csv file. Located at either parallelTestcasePath or sequentialTestcasePath, depending on what type of tests are executed

    api.testCase

    single test case in a csv file to run. testCaseFile must be set for this to be valid

    api.timeout.connect.seconds

    timeout duration for connecting to the api url

    api.timeout.validation.enabled

    Enable timeout validation. Timeout validation will retry tests the api test until the validation requirement is met, within the duration specified.

    Can be set in CSV file as well, in the RestFulAPI Interface, Option column.

    • will override value set in Config file

    eg. WAIT_FOR_RESPONSE:2

    • 2 is the number of seconds to wait for the validation requirement to be met.

    • Validation requirement set at columns:

      RespCodeEx, ExpectedResponse

    To disable in CSV file, set in Option column:

    NO_VALIDATION_TIMEOUT

    api.timeout.validation.seconds

    Max wait time for validation. Timeout validation will retry tests the api test until the validation requirement is met, within the duration specified.