user2805281
user2805281

Reputation: 31

Jmeter: Creates multiple records for single user

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.

Upvotes: 1

Views: 342

Answers (2)

Ori Marko
Ori Marko

Reputation: 58772

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

Upvotes: 0

Man Ionut
Man Ionut

Reputation: 318

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

Upvotes: 0

Related Questions