Ask a Question

How to send the parameter with different data type in readyAPI as a negative scenario in a Test Case

RaghavanG
New Contributor

How to send the parameter with different data type in readyAPI as a negative scenario in a Test Case

How to send the parameter with different data type in readyAPI as a negative scenario in a Test Case

 

I would like to validate my API with all the negative scenarios and as part of it I would like to give other datatypes in the query parameter in my API.

I have added my test Case and tried to parameterize but still we are getting the string alone as data type. How to do that? Please suggest some ideas on it.

1 REPLY 1
nmrao
Champion Level 2

Do you mean something like below?

 

https://example.com/api/resource?param1=123

 

https://example.com/api/resource?param1=abc - the service will return with 400 error code if user tries to pass incorrect data type for the query param.

 

Are youn't experience the same? Then should contact service provider.



Regards,
Rao.
cancel
Showing results for 
Search instead for 
Did you mean: