0
votes

I'm testing log in/out functionality in my application. On log in, I'm inserting a database entry, as well as for log out.

My test setup with JMeter:

  1. Recording a Test Plan using WorkBench -> Add -> Non - Test Elements -> HTTP(s) Test Script Recorder. [Login/Logout]

  2. Run the Test Plan.

On running the test plan, the user log in entry was inserted into the database, but on log out, the user entry was not deleted from the database.

Can someone suggest what I'm doing wrong?

2
Are you using any cookies/Security headers for session management in ur application?Nithin CV
Regarding application.I don't have knowledge what they using. Database values will be SlotId : 3837245D-B11C-4644-955C-82985CE26B75 SessionId : njxymqb3mijm223t4mvvqaf5 CreatedOn : 2014-06-09 12:12:46.923 and UserMapId : 38. UserMapId value was the login user value.jacksantho
You can try to use fiddler proxy tool (only 1 Mb in size) to check what the exact Headers,Cookies & Form data are passing while logout call is initiated. Then create http/https sampler based on that.Nithin CV
how to enable/copnfigure fiddler proxy tool in jmeter. Can you share me a link on fiddler proxy tool ?jacksantho
Fiddler proxy is different tool. Not a plugin to Jmeter. Plz refer telerik.com/fiddlerNithin CV

2 Answers

1
votes

Add Config Element -> HTTP Cookie Manager It should work

0
votes

Open J Meter via command prompt. Click on File, click on Template, disable the "User defined variables", "HTTP default requests".

  • List item