aa1
2 years agoContributor
Automation script in ReadyAPI for Authentication
Hi, I am new to Ready API. I am trying to authenticate the user credentials and set it up as the script inside Auth Manager so that we can run the ready API test suites from the pipeline automaticall...
- 2 years ago
Hi aa1
The error message indicates that there is a missing semicolon (;) before a statement in the script.
Looks the body variable is defined without a semicolon at the end of the line.
Try adding a semicolon after body = [ grant_type: 'client_credentials', client_id: clientId ] like this:
body = [ grant_type: 'client_credentials', client_id: clientId ];
This should fix the error is what I believe – Give a try and let me know