I’m trying to create a test case automatically using the Testrail API.
But creating custom test steps fails all the time (using field type “Test Case (Steps)” )
The HTTP Request seems to work properly for me, the test case it created too, but there are simply no steps after creation.
This is my steps field declaration:
And this is the way I put my step data into the HTTP request:
var stepData = HashMap<String,String>() stepData.put("content", "do something") stepData.put("expected", "expect something") data.put("steps_separated",stepData) sendPost(testrailURL + "index.php?/api/v2/add_case/" + sectionID, data)
On “http://docs.gurock.com/testrail-api2/reference-cases#get_case” is mentioned that a custom field has to be the prefix “custom_”. Could this be the reason?
If yes: Which workaround can I use to run my request successfully? It will be an important topic for test Automation in the future.
But I neither can’t change the field type, nor I can’t delete the existing field because there are already some projects containing lots of test cases using this field.
If no: What might be the Problem I miss?
Thanks and regards,