...
The YAML that is shown here can also be stored in source control in the projet_root/fdtests
folder to allow for versioning of the test configuration. For example:
...
Info |
---|
|
...
While modifying the test configuration in the editor, available fields and values will always be suggested to you. As such understanding the YAML definition below is certainly NOT REQUIRED but certainly can be helpful in understanding how things work.
Field | Data type | Description | Notes |
---|---|---|---|
[testRoot] denoted | Array | Multiple tests can be defined in the YAML configuration and are separated by | Every test in the file must start with |
testName | String | Unique name of the test within the YAML configuration | When executing tests you can specify a specific name filter to execute individual tests |
description | String | Description of the test | - |
workflow | Object | The workflow that will be executed when executing this test | |
workflow/name | String | The name of the workflow as it appears in the workflow UI | Valid test workflow names show as editor suggestions. Can be triggered by typing or hitting |
workflow/inputs | Array | A list of workflow inputs for the specified workflow. Only inputs configured on the workflow are valid here | All available inputs for the specified workflow will be auto inserted when auto completing the inputs field, provided the name has already been specified |
workflow/inputs/code | String | Workflow Input Code for the specified workflow. It should match the code as seen on the workflow screen | Valid workflow input codes will be suggested provided the workflow name has been specified |
workflow/inputs/value | String | The value of the current workflow input | Can be plain text or variables can be used. |
workflow/inputs/groovy | Boolean | Flag indicating if the provided value should be treated as a groovy expression | |
tags | String | @Since 7.0.0.1 - A comma separated list of tags used for filtering tests on execution | Quick selection of tags can be accessed by hitting |
filters | Array | A list of filters that limit the conditions under which the given test will execute | For example an |
filters/type | String | The type of filter to use. Valid values are: | |
filters/value | String | The value of the supplied filter | Possible values are suggested based on the filter/type specified |
Integrating with Release/Pipeline
...
Executes any tests on projects in the Development Environment after deployment to the Development Environment. This means any tests with an
env
filter with a value ofDEVELOPMENT
or no filters at all would be executed as seen below.If using Package-based projects, only unique Tests (by Test Name) will be executed when multiple Packages from same Project are included in Release.
Code Block |
---|
--- testName: Postman Test description: Generated Postman Test filters: - type: env value: DEVELOPMENT workflow: name: PostmanDocker inputs: - code: FDPMN_COLLECTION_FILE value: .*collection.json # (Optional) null - code: FDPMN_ENVIRONMENT_FILE value: fdtests/postman_environment_TOMCATPOSTGRES.json |
...
When you choose a workflow name, consider including one of the values from the workflow prefix table
Workflow Inputs
Workflow inputs specified in the YAML configuration directly correspond with the inputs as seen in the workflow definition.
...
Then, add it to your workflow inputs and map it to your endpoint selection override. It controls where the test will be run.
...