Forum Discussion
elysialock
10 years agoOccasional Contributor
Thanks everyone!
I'll give the Groovy script a try. Thanks Jeshtha!
@smadji: this won't work, as some of the URLs in the response have {parameters} appended to the end of the URL. I described this in my original post but probably not well. Basically the "junk" (i.e. parameters in curly brackets) is also appended to the end of the URL, which makes the resulting property-transferred-endpoint improperly formatted & invalid, which means I get a 400 or 404 error. I was looking for a way to strip out the extra junk at the end so that I had a properly-formatted URL that will work with my test cases.
I'll give the Groovy script a try. Thanks Jeshtha!
I have used property to store my URL and used property expension to call the property from the URL field.
So when I change environments I do it within the property only.
@smadji: this won't work, as some of the URLs in the response have {parameters} appended to the end of the URL. I described this in my original post but probably not well. Basically the "junk" (i.e. parameters in curly brackets) is also appended to the end of the URL, which makes the resulting property-transferred-endpoint improperly formatted & invalid, which means I get a 400 or 404 error. I was looking for a way to strip out the extra junk at the end so that I had a properly-formatted URL that will work with my test cases.
Related Content
- 5 years agokaiiii
- 6 years ago678
- 2 years agojaredjamieson
- 13 years agojitendra_1
- 2 years agoenriquebravo
Recent Discussions
- 4 minutes agodipsthorat
- 4 hours agoisbiat
- 2 days agoarmygrad