Print Page | Close Window

Stress testing

Printed From: One Stop Testing
Category: Types Of Software Testing @ OneStopTesting
Forum Name: Performance & Load Testing @ OneStopTesting
Forum Discription: Discuss All that is need to be known about Performance & Load Testing and its Tools.
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=119
Printed Date: 16Jun2024 at 1:53pm


Topic: Stress testing
Posted By: Amrita
Subject: Stress testing
Date Posted: 19Feb2007 at 4:34pm



Stress testing

        Stress testing tries to break the system under test by overwhelming its resources or by taking resources away from it (in which case it is sometimes called negative testing). The main purpose behind this madness is to make sure that the system fails and recovers gracefully -- this quality is known as recoverability.

        Where performance testing demands a controlled environment and repeatable measurements, stress testing joyfully induces chaos and unpredictability. To take again the example of a Web application, here are some ways in which stress can be applied to the system:

    * double the baseline number for concurrent users/HTTP connections
    * randomly shut down and restart ports on the network switches/routers that connect the servers (via SNMP commands for example)
    * take the database offline, then restart it
    * rebuild a RAID array while the system is running
    * run processes that consume resources (CPU, memory, disk, network) on the Web and database servers

        I'm sure devious testers can enhance this list with their favorite ways of breaking systems. However, stress testing does not break the system purely for the pleasure of breaking it, but instead it allows testers to observe how the system reacts to failure. Does it save its state or does it crash suddenly? Does it just hang and freeze or does it fail gracefully? On restart, is it able to recover from the last good state? Does it print out meaningful error messages to the user, or does it merely display incomprehensible hex codes? Is the security of the system compromised because of unexpected failures? And the list goes on.



Print Page | Close Window