8000 Parameterized scenario with simple values and CSV rows · Issue #283 · authorjapps/zerocode · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Parameterized scenario with simple values and CSV rows #283
Closed
@authorjapps

Description

@authorjapps

GIVEN I have defined set of input parameters to drive the tests
WHEN I create a simple value source
THEN I will run the steps for each value once for each parameter

GIVEN I have defined set of input parameters as CSV to drive the tests
WHEN I create a simple CSV source
THEN I will run the steps for each row once for each parameter in that row

e.g.

Simple value source

    "parameterized": {
        "valueSource":[
            "octocat",
            "userX",
            ...
        ]
    }

CSV value source

    "parameterized": {
        "csvSource":[
            "octocat, The Octocat, San Francisco, 583231",
            "userX, User X, UK, 847799",
            ...
        ]
    }

A full scenario will look like below:

{
    "scenarioName": "Fetch and assert GitHub userNames",
    "steps": [
        {
            "name": "get_user_details",
            "url": "/users/${0}",    <--- 1st time:'octocat', 2nd time:'userX'
            "operation": "GET",
            "request": {
            },
            "assertions": {
                "status": 200,
                "body": {
                    "login" : "${0}"  <--- 1st time:'octocat', 2nd time:'userX'
                }
            }
        }
    ],
    "parameterized": {
        "valueSource":[
            "octocat",
            "userX"
        ]
    }
}

Metadata

Metadata

Labels

feature-requestNew feature which can be introduced

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0