Forum Discussion

venkathc's avatar
venkathc
New Contributor
9 years ago

how to Validate parametarized value in Response

Hi 

I have parametarized <foldername> in Request through groovy script, it will randamoly generates value and place it in the request @<folderName></folderName>  , want assert the same name in response.

Please suggest how to assert the same value which scrpit generates in request

 

For example : 

script generates random num : 1234 concontinate with : Test1234 which is the folder name passing as parameter in request

In Response i m getting : 

<StatusCode>204</StatusCode>
<StatusDesc>Folder Created</StatusDesc>

<folderList>
<folderName>Test1234</folderName>
<numberOfunreadmessages>0</numberOfunreadmessages>
</folderList>

 

here i have to assert folderName Test1234 which is randomly changing each time with every new request  

 

No RepliesBe the first to reply