grinder
TRANSCRIPT
![Page 1: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/1.jpg)
Grinder and soapUI
Java based testing tools
![Page 2: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/2.jpg)
![Page 3: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/3.jpg)
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
![Page 4: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/4.jpg)
•Originally developed by Paco Gómez 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
![Page 5: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/5.jpg)
Key features•Generic Approach•Flexible Scripting Tests•Distributed Framework•Mature HTTP Support
![Page 6: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/6.jpg)
Capabilities
• Load Testing • Capacity Testing• Functional Testing • Stress Testing
![Page 7: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/7.jpg)
Getting started
• The Grinder processes • Tests and test scripts • Network communication • Output
![Page 8: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/8.jpg)
The Grinder processes
![Page 9: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/9.jpg)
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
![Page 10: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/10.jpg)
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.
![Page 11: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/11.jpg)
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
![Page 12: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/12.jpg)
Demonstration and code walk through
![Page 13: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/13.jpg)
![Page 14: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/14.jpg)
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.
![Page 15: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/15.jpg)
•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
![Page 16: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/16.jpg)
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
![Page 17: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/17.jpg)
Capabilities• Functional Testing• Load testing• Web service mocking
![Page 18: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/18.jpg)
What is mocking?• Rapid Web Services Prototyping• Client testing/development• Test Driven Development
![Page 19: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/19.jpg)
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
![Page 20: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/20.jpg)
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
![Page 21: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/21.jpg)
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
![Page 22: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/22.jpg)
Demonstration and code walk through
![Page 23: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/23.jpg)
Q&A
Thanks for your attention!
![Page 24: Grinder](https://reader033.vdocuments.us/reader033/viewer/2022061123/5476c8fcb4af9fdc698b457b/html5/thumbnails/24.jpg)
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