Hi Team,
I am using UiPath Studio Enterprise Version - Latest Version.
I want to create API Automation Tests in UiPath.
I want to put some assertions in POST - API request.
I have created a new Library Project.
and then I selected Activity named as - HTTP Request.
and then I clicked on IMPORT - and then I added a Curl.
UiPath successfully resolved the API endpoint and requests.
I can also see a response.
But can someone tell me,
How to Put some assertions to test the response ?
For example,
If I am sending a POST request to create a Customer with name John.
Then how do I add assertion in UiPath to make sure that Response contains the name as John.
Then you can use deserialize jaon activity and get the value you required…a json can be accessed using key value pairs… say output of deserialize is jobj then jobj("Keyneeded").ToString.Equals("John") …we cna check like this…this is for single level json…if its multi level then accordingly we can get the values by traversing
Also could you please let me know about generating test reports.
can we generate reports in UiPath which will tell us what has passed and what has failed.
If the test manager is there for you…then you can check the details from there…and export them to excel…if you want to do it from studio we have orchestrator api’s which we can leverage to get the results of the test cases