How to verify json/xml contains string

Hi Any help appreciated, to validate specific string exists in json and xml. thanks!!

Hi @pavantambabathula - I have a sample API synthetic script that you can use for calling an API, which I assume is the type of scripted synthetic you require.

You should change the validateApiCall function to validate the json or xml based on your requirement.

Thanks… Can’t we achive http get function from scripted browser?? seems like http.get not working in scripted browser, I have to do other trasactions

It would be helpful if you expand on your requirements so we can provide guidance. Are you looking to check API’s, Browser or both in one script? It may be that you will need separate scripts.

1 Like

it works… thank you

1 Like