0

I want to sign up. There are following fields in the signup form.

  1. email
  2. password
  3. confirm password

After signing up I am redirected to home page.

I am using CSV data set the config to create multiple users. When I look into the request I send (in view result tree) then all the data in csv are sent in the request. But the HTTP request which redirected me to home page fails.

What can be done so that I will redirect to the home page? Is there anything I am missing?

Note: I am redirected to the home page if I use individual data instead of CSV for the same test script.

  • have you added any assertions? and If it is not re-directing to home page check for which page it is redirecting. I hope your issue is due to may be due to user already exists with the requested data so it is not redirecting to home page. – QAMember Mar 30 '16 at 11:35
  • it is redirected back to sign up page. I am using new fresh data for creating users. I am using response assertion which assert text "Logout". If I don't use csv instead pass single value then the script works fine – kishor sharma Mar 30 '16 at 11:43
  • Please check once your csv data.May be it is having any extra ',' or '.' – QAMember Mar 30 '16 at 12:01
  • 1
    Have you verified that your CSV data is being correctly consumed by script or not? And then, try login with the same data which is shown in the Tree view. Don't pick data from CSV file, pick data from the Tree View of the Request. One more reason for this issue can be encoding of the Password in HTTP Request Sampler. – Dhiman Mar 30 '16 at 15:48
1

In majority of cases it indicates missing or incorrect parameter, try the following steps:

  1. Add HTTP Cookie Manager to your test plan. It might be the case that application expects a cookie and you need to send an appropriate one along with the redirect to home page
  2. There might be a mandatory dynamic parameter which needs to be extracted from sign-up page response and passed to home page request. If it is the case - you'll need to get it with i.e. Regular Expression Extractor, convert to JMeter Variable and use onwards.
  3. The best way to get to the bottom of any unexpected behaviour is capturing traffic from real browser and JMeter using sniffer tool like Wireshark, compare requests and ensure that requests you send with JMeter are absolutely the same as for browser (apart from dynamic parameters)
0

Sounds like a cache / cookie situation to me. As mentioned in the above comment, add a cookie manager and see whether that helps. Also dont forget to clear the cache and cookies before running the tests.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.