Jmeter cookie handling while page redirect

Viewed 1545

Scenario:

  • Login (URL 1)

  • Launch link from landing page

  • Newly launched link (URL 2)

URL 1 and URL 2 has same domains but different sub-domains. Have added HTTP Cookie Manager

When I am running my script using Jmeter 3.2 which has only HC4CCookieHandler

Login is passing Launching the link which has different subdomain is failing, and on verifying there are No Cookies added in the request, here the session ID and other cookies should have been added to the request.

Can some one please help here?

Also added Beanshell post-processor to extract cookies from logon response and added as pre-processor to the redirected request, but is giving error.

Error: jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: ``import org.apache.jmeter.protocol.http.control.CookieManager;

1 Answers
Related