Tutorial: functional testing with JMeter

In this article by Emily H. Halili, we will give you a walkthrough on how to create a Functional Test Plan as we incorporate and configure JMeter elements to support functional testing.

JMeter is a 100% pure Java desktop application. JMeter is found to be very useful and convenient in support of functional testing. Although JMeter is known more as a performance testing tool, functional testing elements can be integrated within the Test Plan, which was originally designed to support load testing. Many other load-testing tools provide little or none of this feature, restricting themselves to performance-testing purposes.

Besides integrating functional-testing elements along with load-testing elements in the Test Plan, you can also create a Test Plan that runs these exclusively. In other words, aside from creating a Load Test Plan, JMeter also allows you to create a Functional Test Plan. This flexibility is certainly resource-efficient for the testing project.

Preparing for Functional Testing

JMeter does not have a built-in browser, unlike many functional-test tools. It tests on the protocol layer, not the client layer (i.e. JavaScripts, applets, and many more.) and it does not render the page for viewing. Although, by default that embedded resources can be downloaded, rendering these in the Listener | View Results Tree may not yield a 100% browser-like rendering. In fact, it may not be able to render large HTML files at all. This makes it difficult to test the GUI of an application under testing. However, to compensate for these shortcomings, JMeter allows the tester to create assertions based on the tags and text of the page as the HTML file is received by the client. With some knowledge of HTML tags, you can test and verify any elements as you would expect them in the browser.It is unnecessary to select a specific workload time to perform a functional test. In fact, the application you want to test may even reside locally, with your own machine acting as the "localhost" server for your web application. For this article, we will limit ourselves to selected functional aspects of the page that we seek to verify or assert.


Continue to part 1: Using JMeter components



Emily H. Halili Is the author of the book: A practical beginner’s guide to automated testing and performance measurement for your websites. Click here for more information on her book.


Related Posts by Categories

Comments

3 Responses to "Tutorial: functional testing with JMeter"

toronto condos for sale said... April 16, 2012 at 3:22 AM

Soft loft developments, on the other hand, are new constructions and usually allow for more open layouts and unique design characteristics.

Dzmitry said... January 27, 2013 at 9:16 AM

Great!
I think, using JMeter for functional testing may allow us find functional bugs, which only appear under high load.
Here is some more tips&tricks about using JMeter - http://community.blazemeter.com/knowledgebase/topics/10018-jmeter-tutorials

TestWithUs said... May 7, 2013 at 6:26 AM

SWIFT Interview questions on

http://testwithus.blogspot.in/p/swift.htm

For selenium solution visit
http://testwithus.blogspot.in/p/blog-page.html


For QTP interview questions

http://testwithus.blogspot.in/p/qtp-questions.html


www.searchyourpolicy.com




Post a Comment

Recent Articles

Top Commenters

Recent Comments