Showing posts with label Software Testing Life Cycle. Show all posts
Showing posts with label Software Testing Life Cycle. Show all posts

Sunday, October 2, 2011

Software Test Life Cycle


Software testing life cycle identifies what test activities to carry out to accomplish quality assurance process in a software development project.

There are different kinds of software development life cycle such as Waterfall, Spiral, Agile, and many others. Software testing has its own life cycle that intersects with every stage of the SDLC either it is Waterfall, Spiral or Agile. However, SDLC varies from one to another based on size of project, test team, test in Scope/out of scope, and code release date (how frequently). So, knowledge about some of the major phase in STLC, quality assurance activities during phases and role of a tester, makes you as a tester always ready to accomplish your task with a mark. This picture describes one of widely used STLC phases.

Generally STLC for a single test cycle consists of phases:
1) Planning, 2) Analysis, 3) Design, 4) Initial Testing 5) Testing Cycles, 6) Final Testing and Implementation and 7) Post release

Planning:
      High level test plan
      Identify review process, Metrics
      Bug reporting procedures
      Acceptance criteria for QA
      schedule

Analysis Phase:
      Develop Test Case format , Validation Matrix
      Develop, and plan Test Cycles matrices and time lines
      Begin writing Test Cases based on Functional Validation matrix
      Map baseline data to test cases to business requirements
      Identify Automation, Manual and Types of testing ,
      Test environment, automation system setup.

Design:
      Test -plan(ning) review and verify.
      Review matrix (coverage).
      Continue working on Test Cases.(update, new )
      Finalize test case selection for each cycle for manual run and automation.

Initial Testing:
      Complete all plans, Test Case, scripting
      Unit test (Automated?)

Test Cycle:
      Test Cycle 1, run first set of test
      Report bugs - Triage(bug verification)- Bug fixes - Regression
      Add test cases as required
      Test Cycle 2, 3 ...

Final Testing and Implementation:
      Code Freeze
      Run Test cases for including performance level .
      Communicate defect tracking metrics.
      Regression
      Documents.

Post Release:
      Evaluation meeting - lesson learned
      Prepare final Defect Report and metrics. Develop strategies to prevent similar problems in future project.
      Milestones for improvements
      Environment clean-up, clean (tag and archive tests and data for that release) restore test machines to baseline for next test cycle.

Final summary:
What is testing?
Testing is the process of showing the presence of defects. Testing is the process of exercising or evaluating a system or system component by manual or automated means to verify that it satisfies specified requirements, or to identify differences between expected and actual results

Process of testing:
Testing = Verification + Validation
      Verification: building the product right.
      Validation: building the right product.
      A broad and continuous activity throughout the software life cycle.
      An information gathering activity to enable the evaluation of our work, e.g.
      Does it meet the users requirements?
      What are the limitations?
      What are the risks of releasing it.

Software Testing Life Cycle
Phase
Activities
Outcome
Planning
Create high level test plan
Test plan, Refined Specification

Analysis
Create detailed test plan, Functional Validation Matrix, test cases
Revised Test Plan, Functional validation matrix, test cases
Design
test cases are revised; select
which test cases to automate
revised test cases, test data
sets, sets, risk assessment
sheet

Construction
scripting of test cases to
automate,
test procedures/Scripts,
Drivers, test results,
Bugreports.
Testing ycles
complete testing cycles
Test results, Bug Reports
Functional Testing
execute remaining stress and
performance tests, complete
documentation
Test results and different
metrics on test efforts

Post Implementation
Evaluate testing processes
Plan for improvement of
testing process.


If you have any queries/feed back catch me on - knowthetesting@gmail.com 
Thank you 
Ram

Saturday, March 7, 2009

Software Testing Life Cycle

Software testing life cycle identifies what test activities to carry out and when (what is the best time) to accomplish those test activities. Even though testing differs between organizations, there is a testing life cycle.

Software Testing Life Cycle consists of six (generic) phases:
  • Test Planning,
  • Test Analysis,
  • Test Design,
  • Construction and verification,
  • Testing Cycles,
  • Final Testing and Implementation and
  • Post Implementation.
Software testing has its own life cycle that intersects with every stage of the SDLC. The basic requirements in software testing life cycle is to control/deal with software testing – Manual, Automated and Performance.


Test Planning

This is the phase where Project Manager has to decide what things need to be tested, do I have the appropriate budget etc. Naturally proper planning at this stage would greatly reduce the risk of low quality software. This planning will be an ongoing process with no end point.
Activities at this stage would include preparation of high level test plan-(according to IEEE test plan template The Software Test Plan (STP) is designed to prescribe the scope, approach, resources, and schedule of all testing activities. The plan must identify the items to be tested, the features to be tested, the types of testing to be performed, the personnel responsible for testing, the resources and schedule required to complete testing, and the risks associated with the plan.). Almost all of the activities done during this stage are included in this software test plan and revolve around a test plan.


Test Analysis

Once test plan is made and decided upon, next step is to delve little more into the project and decide what types of testing should be carried out at different stages of SDLC, do we need or plan to automate, if yes then when the appropriate time to automate is, what type of specific documentation I need for testing.
Proper and regular meetings should be held between testing teams, project managers, development teams, Business Analysts to check the progress of things which will give a fair idea of the movement of the project and ensure the completeness of the test plan created in the planning phase, which will further help in enhancing the right testing strategy created earlier. We will start creating test case formats and test cases itself. In this stage we need to develop Functional validation matrix based on Business Requirements to ensure that all system requirements are covered by one or more test cases, identify which test cases to automate, begin review of documentation, i.e. Functional Design, Business Requirements, Product Specifications, Product Externals etc. We also have to define areas for Stress and Performance testing.


Test Design

Test plans and cases which were developed in the analysis phase are revised. Functional validation matrix is also revised and finalized. In this stage risk assessment criteria is developed. If you have thought of automation then you have to select which test cases to automate and begin writing scripts for them. Test data is prepared. Standards for unit testing and pass / fail criteria are defined here. Schedule for testing is revised (if necessary) & finalized and test environment is prepared.


Construction and verification

In this phase we have to complete all the test plans, test cases, complete the scripting of the automated test cases, Stress and Performance testing plans needs to be completed. We have to support the development team in their unit testing phase. And obviously bug reporting would be done as when the bugs are found. Integration tests are performed and errors (if any) are reported.


Testing Cycles

In this phase we have to complete testing cycles until test cases are executed without errors or a predefined condition is reached. Run test cases --> Report Bugs --> revise test cases (if needed) --> add new test cases (if needed) --> bug fixing --> retesting (test cycle 2, test cycle 3….).


Final Testing and Implementation

In this we have to execute remaining stress and performance test cases, documentation for testing is completed / updated, provide and complete different matrices for testing. Acceptance, load and recovery testing will also be conducted and the application needs to be verified under production conditions.


Post Implementation

In this phase, the testing process is evaluated and lessons learnt from that testing process are documented. Line of attack to prevent similar problems in future projects is identified. Create plans to improve the processes. The recording of new errors and enhancements is an ongoing process. Cleaning up of test environment is done and test machines are restored to base lines in this stage.








Software Testing Life Cycle
Phase
Activities
Outcome
Planning
Create high level test plan
Test plan, Refined Specification
Analysis

Create detailed test plan, Functional Validation Matrix, test cases
Revised Test Plan, Functional validation matrix, test cases
Design

test cases are revised; select which test cases to automate
revised test cases, test data sets, sets, risk assessment sheet
Construction

scripting of test cases to automate,
test procedures/Scripts, Drivers, test results, Bugreports.
Testing cycles
complete testing cycles
Test results, Bug Reports
Final testing
execute remaining stress and performance tests, complete documentation
Test results and different metrics on test efforts
Post implementation
Evaluate testing processes
Plan for improvement of testing process