0

I have a scenario:

 1. I am hitting a page /news-item-list which has 10 news items (urls).
 2. I am using regular expression extractor for fetching 1 random url
    between these 10 urls present on /news-item-list page.

BUT,

These urls has " | " sign which converts in some sort of code when it is requested from the server. as soon as this url is hit, it redirects to some other url.

I want the url on which it is redirected to be fetched (after hitting the url I fetched by regular expression extractor) and my useful url is the "redirected url".

I can not pass the url in http request sampler as it will generate syntax errors in my reports. I want some way by which I can pass the url extracted using regular expression extractor example:

www.abc.in/hello/newsitem|newsitem1

Hitting this given url in such a way that it is hit and requested by the server and when hit I get redirected url example:

www.abc.in/hello/newsitem/redirect/actual_news_item1

But not with https request sampler because it will give me:

"Response code: Non HTTP response code: java.net.URISyntaxException"

and than I want to get/store the redirected url obtained by sending a request by previous fetched url and pass the stored/redirected url into another https sampler.

  • Hi, Alzeenia! Here is the link where you can find article how to properly edit your question by sqa.stack conventions. – Bulat Jul 17 at 7:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.