• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Webservice performance testing with SoapUI
 

Webservice performance testing with SoapUI

on

  • 602 views

 

Statistics

Views

Total Views
602
Views on SlideShare
539
Embed Views
63

Actions

Likes
0
Downloads
0
Comments
0

2 Embeds 63

http://folami.nghelong.com 59
http://9033734_6243fc73a0af92aad1d4f418a065e081c8a59a3b.blogspot.com 4

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Webservice performance testing with SoapUI Webservice performance testing with SoapUI Presentation Transcript

    • Webservice Performance Testing with SoapUI (LoadUI) Nguyen Huu Phuoc, MEng. HCMC, 11/2013
    • Agenda • What is Performance Testing? • Performance Testing Kinds • Using LoadUI for Performance Testing • The advanced topics
    • Performance Testing • Creating or simulating artificially load. • Measuring how the system handle the load.
    • Performance Testing Kinds (1/2) • Baseline Testing – – • Load: Expected or normal load Goal: Find the metrics under normal load. Load Testing – – • Load: High load. Goal: Find the metrics under high load. Stress Testing – Load: High load. – Goal: Find the system breaking point
    • Performance Testing Kinds (2/2) • Soak Testing – – Time: Long period. – • Load: normal load or high load. Goal: Find unwanted behavior emerges over time . Scalability Testing – Load: Like Load test but increase the complexity or size of request. – Goal: Find the metrics under high volumes of data
    • Using LoadUI For LoadTest • What is LoadUI? • Quick Start: – Create a new LoadTest – Run the LoadTest – Add Assertions to a LoadTest
    • Using LoadUI For LoadTest • LoadUI: – LoadUI is a free load testing tool which is integrate into SoapUI – LoadUI provides the following features: • Distributed Load Testing: Allow user to distribute Load Tests to multiple LoadUI agents. • Run multiple Test Cases simultaneously. • Long-run tests. • Interactive load testing: Change parameter real time.
    • Using LoadUI For LoadTest • Create a new LoadTest: – In Navigator > Right click on a Test case >New Loa dTest – In New LoadTest dialog, enter your LoadTest nam e > Click on OK button.
    • Using LoadUI For LoadTest • Run the LoadTest – Modify pre-configured LoadTest with the desired values. – Run the LoadTest. – We will see the statistic table during the LoadTest running.
    • Using LoadUI For LoadTest • Add Assertions to a LoadTest: – In the LoadTest editor, select “LoadTest Assertion” ta b at the bottom of the editor. – Click LoadTest Assertion button in the LoadTest Assert ion menu bar. – In the Add Assertion dialog, select Step Maximum and click OK button. – In the TestStep Max Assertion window, modify anythi ng you want and click OK button. – The assertion is added successfully. – Run test again.
    • The Advanced Topics • Test Strategies. • Available Assertions. • Export Data & Statistics • Scripting.
    • Test Strategies • • • Simple Strategy  Baseline, Load and Soak Testing. Fixed-Rate Strategy  Guarantee the number of executions within a certain time. Variable Load Strategies: – Variance: varies the number of threads over time in a “sawtooth” manor. – Burst: Recovery testing, bursting thread in short duration and do baseline testing after that. – Thread: The linearly change in number of threads. – Grid: The relative change in number of threads. – Script: The number of thread is scripted.
    • Available Assertions • • • • • Step Average: Asserts that the average value d oesn't exceed the specified limit. Step TPS: Asserts the TPS (transaction per sec ond) value Step Minimum: Asserts the max value Step Status: Check that the underlying executi on status is successful. Max Errors: Check that the number of failures.
    • Export Data & Statistics • Export statistics to CSV. • Export Statistics Diagrams to CSV. • Export Data Continuously: Using Statistic Log
    • Scripting • LoadUI allow user make the following TestCas e-specific scripting hooks: – Setup and TearDown scripts – Access to LoadTest related objects in a TestCase sc ript – The objects we can use in the scripts: • context • log • loadTestRunner
    • THANK YOU ! Nguyen Huu Phuoc, MEng. Homepage: http://hữuphướcnguyễn.vn http://phuocnh.nghelong.com