Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question related to jmeter testing with multiple pages/buttons

 
Sandeep Kumar B
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am testing a question/answer based test application
I coded using selenium/web driver the automation test to start the test and only go through all the questions by clicking the answer button(radio buttons) and clicking next which shows next question and its all working fine
My question is how can I use jmeter to do the same simulating multiple users?
The issue is its not one page, but its a series of operation...Register on the website, click Submit...then keep clicking answers and click next until the test is over
Is this doable in jmeter? Any tutorial
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sandeep Kumar B wrote:The issue is its not one page, but its a series of operation...Register on the website, click Submit...then keep clicking answers and click next until the test is over
Is this doable in jmeter? Any tutorial

jMeter is for black box testing mostly done against web services where you give some input and expect some output.

What you're trying to achieve is more UI component testing which is difficult and not suited for jMeter kind of testing.

If you're really doing an performance testing (that is what jMeter is used for) I suggest to look out for which services are being used in background for your question/answer app and try to test them thru jmeter for multiple users, that take you at least closer to your goal.
 
Dmitri Tikhanski
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Browser sends HTTP requests to server. JMeter basically does the same with some nuances:

1. You have to create requests manually
2. JMeter does not support Javascript apart from downloading it as embedded data
3. You need to manually manage stuff like cache, cookies, headers, etc.

To start with I would suggest recording your use case via JMeter HTTP Proxy Server + Recording controller

After you'll have initial recorded scripts you can see how it works and enhance with some randomization and logic using JMeter logic controllers i.e. For Each Controller, If Controller, etc.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic