Hi All,
I have a couple of test JIRA tickets.
names are TEST1, TEST2,TEST3
I created a test execution ticket via REST API say MYTESTEXECUTION
I am trying to attach TEST1,TEST2,TEST3 to MYTESTEXECUTION
Actually this TEST1,.....TEST100 are in a csv. So I read them to a python array.
When I feed this in my REST API, like TEST1,TEST2,TEST3 it is working.
But, if I pass the array as argument, it is not attaching the tests to the test execution ticket.
response = requests.post(
'myJIRAServer/rest/raven/1.0/api/testexec/'+str(issue_key)+'/test',
headers=headers,
json=json_data,
)
if(response.status_code == 200):
print "success"
myTestArray = ["TEST1","TEST1","TEST1"]
where jason_data is
json_data = {
'add': [
"TEST1","TEST2","TEST3" # Working
#myTestAarray --->this is commented now. If I comment above line and use
#myTestArray, it is not woking
],
}