Showing results for 
Search instead for 
Did you mean: 

Validate parameters and automate tests

New Member

Validate parameters and automate tests

Hej from Sweden,

What we would like to achieve is to validate that the parameters are within our "AllowedValues". Currently we have hardcoded them, but our ambition is to automate as much as possible. Question is how can we achive the validation of parameters in a dynamic way.

Endpoint example
1.Ids API


-itemType= [JH,KH]

Allowed Values:
Refer the documentation API (https://{base-domain}/api/items/v1/ids/params)
-itemType = [KH, JH, VH, SH, BH]
-itemNoEnd = {numeric}
-itemState = ["Saleable","Approved","Removed"]


Validate parameters in Service VPro APIs
https://{base-domain}/api/items/v1/ids?itemNoEnd=7&itemState=(Sales)&itemType=(XYZ) //Should NOT be valid//


Steps we want to verify:
1.Validate the input parameters.
2.Item Type & State:
Reponse contains only that item type and state.
3.Generate Item No:


New Here?
Join us and watch the welcome video:
Script Wanted
Check out this week's challenge!

Create a script to generate an email when an assertion fails for the TechCorner tag!

Scripts created in July:
- A script to change the request body before sending it to the server