wood burning stoves 2.0*
The moose likes Testing and the fly likes Question related to jmeter testing with multiple pages/buttons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Question related to jmeter testing with multiple pages/buttons" Watch "Question related to jmeter testing with multiple pages/buttons" New topic
Author

Question related to jmeter testing with multiple pages/buttons

Sandeep Kumar B
Ranch Hand

Joined: Jul 10, 2011
Posts: 41
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

Joined: Feb 19, 2008
Posts: 2902
    
    1

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.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Dmitri Tikhanski
Greenhorn

Joined: Oct 13, 2013
Posts: 14
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question related to jmeter testing with multiple pages/buttons
 
Similar Threads
Run my test once it works more times it doesn't
Login Application Configuration on JMeter
Problem in using Regular Expression Extractor
Unit and Performance Testing using JMeter
Android testing, what *should* I be testing?