Forum Discussion
Hi SagarShroff
I have been thinking about how to accomplish this. There is not currently a quick way to do it, but I believe if you spend some time on the script, it will be very easy to change in the future. This is how I would approach it:
- Create a constant variable that contains the value you want in the request path.
- For each request in your scenario that will have a changing URL, create a Data Replacer for the request path. I attached an screenshot you can use as an example.
- When the request path value changes in a future release, simply edit the constant variable you created and all the requests using the data replacer will be updated automatically.
I also suggest going to our feature request forum and requesting some "find / replace all" functionality that could simplify this process going forward.
Hope this helps.
Hi @RyanHeidorn
Thanks for your quick reply and for your efforts for approaching to my problem.
Actually i had already done one time investment of development where i had replaced all my request path value with variable.
In next release a fix was implemented and http request were updated, due to which i had to re-record my requests in order to incorporate the changes.
As you mentioned a search-replace fits a perfect solution to my problem, i have already raised a requirement in the support group.
- RyanHeidorn10 years ago
Staff
Thanks Sagar.
I notified our product group about your feature request and recommended that it be added to our product roadmap for inclusion in a future release.