Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create json file for test cases?

Inter
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 11, 2023

Trying to create a json file to import into jira xray as test cases? But I get the error "You cannot import Tests without an Action parameter.". What is wrong?

 

[
    {
        "fields": {
            "summary": "Summary",
            "components": [ {"name": "Compo"}]
        },
//        "type": "Manual",
        "steps": [
            {
                "index":1,
                "fields":{
                    "action":"Step 1",
                    "data":"input Data 1",
                    "result":"Excepted result 1"
                 }
            },
            {
                "index":2,
                "fields":{
                    "action":"Step 1",
                    "data":"input Data 1",
                    "result":"Excepted result 1"
                 }
            }
        ]
    }
]

1 answer

1 vote
Ewelina Hereć
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 12, 2023
[

{

"fields":{

"action":"Step 1",

"data":"input Data 1",

"expected result":"Excepted result 1"

}

},

{

"fields":{

"action":"Step 2",

"data":"input Data 2",

"expected result":"Excepted result 2"

}

}

]

Suggest an answer

Log in or Sign up to answer