Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20755

Assertion for delete responses.

$
0
0

I have a delete request which doesnt return anything in reponse. Sucessful deletion gives me a 204 status code and deletes the row from the table. 

 I would like to assert from the response that on successfully deletion i dont see the row in the table.

 

my request looks like this:

{
"CompanyId":"1",
"RoleName":"CopyofHr",
"ActionTakenBy":3144
}

 

In a groovy step i get these  3 values from the Database.which i have parameterized to get  top 1 values from DB.  All these three fields are coming from table called roles. On deletion a row is deleted from role.

How can i do a assertion that the row is actually deleted.

 

 

 

please help.

 


Viewing all articles
Browse latest Browse all 20755

Trending Articles