Automated test to create a new incident fail to run from POST request

tal133
Mega Explorer

Hello

 

Don't know if this is the correct forum to raise the issue, but here goes..

 

I created a test in SNow ATF which runs 3 steps - create new incident form, add values in its mandatory fields, and save it. The test works flawlessly from within SNow automation page.

 

The issue is that I'm trying to invoke the test from Postman using POST request and it fails on error 400 bad request:

{
    "error": {
        "message": "Requested URI does not represent any resource",
        "detail": null
    },
    "status": "failure"
}
 
 
Using basic authentication with the itil user.
Content type is "application/json" and body of message contains only empty brackets [ ].
 
The weird thing is that if I run the URL of https://<server_name>.service-now.com/api/now/v2/table/incident?sys_id=<sys_id> it works without an issue, however only the first step of the test seem to be run ->
the incident is created empty (caller, configuration item and description - which I pass as hardcoded info in the test itself).
 
At this point I'm not sure what is missing, plugin wise, etc. in the SNow instance, or if the test URL is the right way to invoke all the test's steps.
 
What am I missing?
 
Thanks!
0 REPLIES 0