development initiatives that meet functional specifications, but also to release fast,
responsive, and scalable applications.
If you are one who is striving to meet these performance expectations through systematic testing , this is the thread to read out for.
This guide assumes that you have a real commitment to determine performance objectives at early stages in the design and architecture of the application. That prevents you from having to spend unnecessary time and resources addressing performance and scalability deficits later in the life cycle.
Customers really want the software they purchase/use/subscribe to is safe ,stable, reliable, cost-effective, usable and attractive.
As a Quality Engineer , Mocked user , How can you ensure the performance or any other non-funtional requirements expectations are correctly met before the product/system is made available to users/consumers.
Assume you have a product well designed , implemented and tested , given for performing performance test against it , there are three steps to complete your role as a Quality engineer.
They are
● Measuring Application Performance
● Testing Application Performance
● Tuning Application Performance ( If not actual tuning, At least you should give directions to developers with places where it can be tuned and with what )
Measuring Application Performance
To determine whether your application meets its performance objectives and to help
identify bottlenecks, you need to measure your application’s performance and collect
metrics.
Metrics of particular interest tend to be response time, throughput, and
resource utilization (how much CPU, memory, disk I/O, and network bandwidth
your application consumes while performing its tasks).
Key part of the testing process is to capture metrics so that you can determine how close your
application is to meeting its performance objectives. This is the start point.
Measuring enables you to identify how the performance of your application
stands in relation to your defined performance goals and helps you to identify the
bottlenecks that affect your application performance.
It helps you identify whether your application is moving toward or away from your performance goals. Defining what you will measure, that is, your metrics, and defining the objectives for each
metric is a critical part of your testing plan.
Oh! Your QA plan doesn't have a section for performance. Let me put the statement in a different way. If you don't have a section for performance in your QA Plan , Is it a QA Plan?
What is performance goals?
How to have Performance goals added to your QA Plan?
Setting performance goals
Performance testing can serve different purposes.
- It can demonstrate that the system meets performance criteria.
- It can compare two systems to find which performs better.
- Or it can measure what parts of the system or workload causes the system to perform badly.
Many performance tests are undertaken without due consideration to the setting of realistic performance goals. The first question from a business perspective should always be "why are we performance testing?". These considerations are part of the business case of the testing. Performance goals will differ depending on the application technology and purpose however they should always include some of the following:
Performance Testing Web Applications Methodology
According to the Microsoft Developer Network the Performance Testing Methodology consists of the following activities:
- Activity 1. Identify the Test Environment. Identify the physical test environment and the production environment as well as the tools and resources available to the test team. The physical environment includes hardware, software, and network configurations. Having a thorough understanding of the entire test environment at the outset enables more efficient test design and planning and helps you identify testing challenges early in the project. In some situations, this process must be revisited periodically throughout the project’s life cycle.
- Activity 2. Identify Performance Acceptance Criteria. Identify the response time, throughput, and resource utilization goals and constraints. In general, response time is a user concern, throughput is a business concern, and resource utilization is a system concern. Additionally, identify project success criteria that may not be captured by those goals and constraints; for example, using performance tests to evaluate what combination of configuration settings will result in the most desirable performance characteristics.
- Activity 3. Plan and Design Tests. Identify key scenarios, determine variability among representative users and how to simulate that variability, define test data, and establish metrics to be collected. Consolidate this information into one or more models of system usage to be implemented, executed, and analyzed.
- Activity 4. Configure the Test Environment. Prepare the test environment, tools, and resources necessary to execute each strategy as features and components become available for test. Ensure that the test environment is instrumented for resource monitoring as necessary.
- Activity 5. Implement the Test Design. Develop the performance tests in accordance with the test design.
- Activity 6. Execute the Test. Run and monitor your tests. Validate the tests, test data, and results collection. Execute validated tests for analysis while monitoring the test and the test environment.
- Activity 7. Analyze Results, Tune, and Retest. Analyse, Consolidate and share results data. Make a tuning change and retest. Improvement or degradation? Each improvement made will return smaller improvement than the previous improvement. When do you stop? When you reach a CPU bottleneck, the choices then are either improve the code or add more CPU.