of 24
7/31/2019 Gri Ender
1/24
Grinder and soapUI
Java based testing tools
7/31/2019 Gri Ender
2/24
7/31/2019 Gri Ender
3/24
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
7/31/2019 Gri Ender
4/24
Originally developed byPaco Gmez andPeter Zadrozny
Philip Aston took ownership of the code, reworked it to create
Grinder 2
Shortly after began work on The Grinder 3
7/31/2019 Gri Ender
5/24
Key features
Generic Approach
Flexible Scripting Tests
Distributed FrameworkMature HTTP Support
7/31/2019 Gri Ender
6/24
Capabilities
Load Testing
Capacity Testing
Functional Testing Stress Testing
7/31/2019 Gri Ender
7/24
Getting started
The Grinder processes Tests and test scripts
Network communication
Output
7/31/2019 Gri Ender
8/24
The Grinder processes
7/31/2019 Gri Ender
9/24
The Grinder processes (cont)
Worker processes
Interpret Jython test scripts and perform tests using a number
ofworker threads
Agent processes
Manage worker processes
The console
Coordinate the other processes
Collate and display statistics
Script editing and distribution
7/31/2019 Gri Ender
10/24
Buzz Words Used Test is a unit of work against which statistics are
recorded. Tests are uniquely defined by a testnumberand 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.
7/31/2019 Gri Ender
11/24
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
7/31/2019 Gri Ender
12/24
Demonstration and code walk throug
7/31/2019 Gri Ender
13/24
7/31/2019 Gri Ender
14/24
What is soapUI?
soapUI is a free and open source desktopapplication.
Used for inspecting, invoking, developing,
simulating/mocking andfunctional/load/compliance testing of web
services over HTTP.
7/31/2019 Gri Ender
15/24
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
7/31/2019 Gri Ender
16/24
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
7/31/2019 Gri Ender
17/24
Capabilities
Functional Testing Load testing
Web service mocking
7/31/2019 Gri Ender
18/24
What is mocking?
Rapid Web Services Prototyping
Client testing/development
Test Driven Development
7/31/2019 Gri Ender
19/24
Getting Started
Download the latest soapUI tool from http://www.soapui.o
Install it according to the instructions on your system.
Create WSDL file describing the service
Create and Run the test case with different steps
7/31/2019 Gri Ender
20/24
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
7/31/2019 Gri Ender
21/24
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
7/31/2019 Gri Ender
22/24
Demonstration and code walk throug
7/31/2019 Gri Ender
23/24
Q&A
Thanks for your attention!
7/31/2019 Gri Ender
24/24
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
http://grinder.sourceforge.net/http://www.soapui.org/http://www.soapui.org/features.htmlhttp://www.soapui.org/comparison.htmlhttp://groovy.codehaus.org/Getting+Started+Guidehttp://groovy.codehaus.org/Getting+Started+Guidehttp://groovy.codehaus.org/Getting+Started+Guidehttp://groovy.codehaus.org/Getting+Started+Guidehttp://www.soapui.org/comparison.htmlhttp://www.soapui.org/features.htmlhttp://www.soapui.org/http://grinder.sourceforge.net/