jeudi 9 janvier 2020

postman collection runner pass an array of values in data file

I have an api definition like this :

{
"myVar01": "",
"myVar02": "",
"myVar03": "",
"myVar04": {
    "myVar04-01": "",
    "myVar04-02": "",
    "myDataArray": [
        {
            "myArrayVar01": "",
            "myArrayVar02": "",
            "myArrayVar03": "",
            "myArrayVar04": "",
            "myArrayVar05": ""
        },
        {
            "myArrayVar01": "",
            "myArrayVar02": "",
            "myArrayVar03": "",
            "myArrayVar04": "",
            "myArrayVar05": ""
        },
        .....
    ]
    ]
}

}

I have to create a data file to run several tests on this api, the question is how can I define my data file to create data for "myDataArray" structure?

Aucun commentaire:

Enregistrer un commentaire