1
votes

I am new to Jmeter. Please help me. I am trying to automate a scenario which will login to application with my username and password and then logout. My web application does not use session id for logins. It just uses username/password/unique cookie every time.

I recorded this script and put in test plan. On executing it, Jmeter creates hundreds of records in DB with same user name and timestamp.

How do I avoid this happening. Please help.

2
Can someone please helpuser2805281
Can some one please help. Struggling with this. Not sure how to make it work. Completely blocked on this case. I do not have any loop created and number of thread is only 1 and rampup perios is 1. Any help is much appreciated.user2805281

2 Answers

0
votes

You probable have set multiple thread users.

Under Thread Group change

  • Number of Threads (users) to 1.
  • Ramp-Up Period (in seconds) to 1.
  • Loop Count to 1
0
votes

You need to send different user name and timestamp each time so use:

  1. random string for user name for example ${__RandomString(10,abcdefg)}

  2. ${__time()} for timestamp