Grinder and Soapui: Java Based Testing Tools

You might also like

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 24

Grinder and soapUI

Java based testing tools

What is Grinder?
The Grinder, a Java Load Testing Framework It easy to run a distributed test using many load injector machines It is a open source and easily available

Originally developed by Paco Gmez and Peter Zadrozny Philip Aston took ownership of the code, reworked it to create The Grinder 2 Shortly after began work on The Grinder 3

Key features
Generic Approach Flexible Scripting Tests Distributed Framework Mature HTTP Support

Capabilities
Load Testing Capacity Testing Functional Testing Stress Testing

Getting started
The Grinder processes Tests and test scripts Network communication Output

The Grinder processes

The Grinder processes (cont)


Worker processes
Interpret Jython test scripts and perform tests using a number of worker threads

Agent processes
Manage worker processes

The console
Coordinate the other processes Collate and display statistics Script editing and distribution

Buzz Words Used


Test is a unit of work against which statistics are recorded. Tests are uniquely defined by a test number and also have a description Thread Each worker process has a number of worker threads we can define thread as number simultaneous instances requesting the server. Run A single execution of a test script is called a run.

How do I start The Grinder?


Create a grinder.properties file Start the console Start the agent process Set the Script directory in Console Distribute Script files across agent processes Run the test Analyze the results

Demonstration and code walk through

What is soapUI?
soapUI is a free and open source desktop application. Used for inspecting, invoking, developing, simulating/mocking and functional/load/compliance testing of web services over HTTP.

soapUI was initially released to Sourceforge during September 2005. Since the initial release, soapUI has been downloaded more than 950,000 times The soapUI project is currently headed by a Swedish company Eviware Software AB since 2006

Key features
inspecting Web Services invoking Web Services developing Web Services Web Services Simulation and Mocking Functional, Load and Compliance testing of Web Services Uses Groovy as scripting language

Capabilities
Functional Testing Load testing Web service mocking

What is mocking?
Rapid Web Services Prototyping Client testing/development Test Driven Development

Getting Started
Download the latest soapUI tool from http://www.soapui.org Install it according to the instructions on your system. Create WSDL file describing the service Create and Run the test case with different steps

Groovy
Agile and Dynamic model Builds upon strengths of Java Inspired by languages like Python, Ruby and Smalltalk Almost zero-learning curve for Java developers Increases developer productivity Simplifies testing Integrated with java Generates Java bytecode

Groovy and soapUI


Groovy is an essential part of soapUI Groovy is used in soapUI primarily as a control step Groovy can access test steps through the testRunner instance. def request = testRunner.testCase.getTestStepByName( LoginProperties" ); def property = request.getProperty( UserName" ); println property.value

Demonstration and code walk through

Q&A Thanks for your attention!

References
http://grinder.sourceforge.net http://www.soapui.org/ http://www.soapui.org/features.html http://www.soapui.org/comparison.html http://groovy.codehaus.org/Getting+Started+ Guide

You might also like