Lenina
15 years agoOccasional Contributor
How to feed TestCase1 response to TestCase2 request
Hi,
I have two test cases, executing TestCase1 returns a 'url' as response.
I need to extract a particular string from that url and give that string as input for TestCase2.
eg: Response is like: http://servername:8080/application/url/58
Now i need to extract last integer value '58' and store it in some property, pass this property as input into TestCase2 execution.
Searched in google, but didn't find anything useful.
Please help me if you know the way to do it.
Thanks,
Lenina
I have two test cases, executing TestCase1 returns a 'url' as response.
I need to extract a particular string from that url and give that string as input for TestCase2.
eg: Response is like: http://servername:8080/application/url/58
Now i need to extract last integer value '58' and store it in some property, pass this property as input into TestCase2 execution.
Searched in google, but didn't find anything useful.
Please help me if you know the way to do it.
Thanks,
Lenina