Showing posts with label Manual Testing. Show all posts
Showing posts with label Manual Testing. Show all posts

October 4, 2016

Software Development Life Cycle (SDLC)

What is SDLC?

                There are various software development approaches defined and designed which are used during development process of software, these approaches are we normally called as “Software Development Process Models” (e.g. Waterfall model, incremental model, V-model, iterative model, RAD model, Agile model, Spiral model, Prototype model etc.). Each process model follows a particular life cycle in order to ensure success in the process of software development.
Software life cycle models describe phases of the software cycle and the order in which those phases are executed. Each phase produces deliverables required for the next phase in the life cycle. i.e., the output of one phase will be the input for the next phase. For example once the requirements are collected we start the design phase and once the design phase is completed we will start developing/Code the application. Once the code is developed it will be assigned to the tester to test the application. If everything is properly developed we will deploy the code.
There are six phases in every Software development life cycle model:
  1. Requirement gathering and analysis
  2. Design
  3. Implementation OR coding
  4. Testing
  5. Deployment OR Installation
  6. Maintenance


 Requirement gathering and analysis
Business requirements are gathered in this phase. This phase is the main focus of the project managers and stake holders. Meetings with managers, stake holders and users are held in order to determine the requirements like: who is going to use the system? How will they use the system?  What data should be input into the system?  What data should be output by the system?  These are general questions that get answered during a requirements gathering phase. After requirement gathering these requirements are analyzed for their validity and the possibility of incorporating the requirements in the system to be development is also studied.
Output: Requirement Specification document is created which serves the purpose of guideline for the next phase of the model
Design
In this phase the system and software design is prepared from the requirement specifications which were studied in the first phase. System Design helps in specifying hardware and system requirements and also helps in defining overall system architecture.
Output: The system design specifications serve as input for the next phase of the model.
In this phase the testers comes up with the Test strategy, where they mention what to test, how to test.
Implementation / Coding
On receiving system design documents, the work is divided in modules/units and actual coding is started. Since, in this phase the code is produced so it is the main focus for the developer. This is the longest phase of the software development life cycle.
Output: Developed code/system as per the requirements in the system design and FRD for that release
Testing
After the code is developed it is tested against the requirements to make sure that the product is actually solving the needs addressed and gathered during the requirements phase. During this phase all types of functional testing like unit testing, integration testing, system testing, acceptance testing are done as well as non-functional testing are also done.
Output: Feedback on the developed code. Here there are two directions.
  • One is if the requirements are satisfied and the application is behaving as it is intended to then it will deployed to the production
  • Second is if many of the requirement are not satisfied or the application is not behaving as it is expected then it will be go the Coding phase
Deployment
After successful testing the product is delivered / deployed to the customer for their use.
As soon as the product is given to the customers they will first do the beta testing. If any changes are required or if any bugs are caught, then they will report it to the engineering team. Once those changes are made or the bugs are fixed then the final deployment will happen.
Output: End user experience on the deployed system, if he is facing any problem it will go to Maintenance Phase
Maintenance

Once when the customers starts using the developed system then the actual problems comes up and needs to be solved from time to time. This process where the care is taken for the developed product is known as maintenance.

Please find the below article to learn about the Agile software development guide 

Software Testing Life Cycle (STLC)

What is Software Testing Life Cycle (STLC)
Software Testing is not a single activity. It consists of several activities carried out in a systematic way to deliver an efficient software product. All these Activities /Phases constitute STLC.

Below are the Activities /Phases of STLC:
  1. Requirements Gathering phase
  2. Test Planning Phase
  3. Test Case Development Phase
  4. Environment Setup Phase
  5. Test Case Execution Phase
  6. Test Conclusion Phase
  7. Test Cycle Closure Phase
Each of these activities have a definite Activities & Deliverables associated with it

1. Requirement Phase: During this phase of STLC, we will analyze and study the requirements. Here in this phase we will discuss with stakeholders to understand the requirements clearly and try to find out whether the requirements are testable or not. This phase helps to identify the scope of the testing. If any feature is not testable, communicate it during this phase so that the mitigation strategy can be planned.
Activities
o    Identify types of tests to be performed (Smoke, Sanity, Regression and Automation testing etc.,).
o    Prioritize the requirements.
o    Prepare Requirement Traceability Matrix (RTM).
o    Identify test environment details where testing is supposed to be carried out.
o    Automation feasibility analysis (if required).
Deliverables 
o    RTM
o    Automation feasibility report. (if applicable)
2. Test Planning Phase: Infact, Test planning is the first step of the testing process. In this phase we identify the activities and resources which would help to meet the testing objectives. Typically this will done by Sr. QA Manager.
Activities
o    Preparation of test plan/strategy document for various types of testing
o    Test tool selection
o    Test effort estimation
o    Resource planning and determining roles and responsibilities.
o    Training requirement
Deliverables 
o    Test plan /strategy document.
o    Effort estimation document.
3. Test Case Development PhaseThe major task in this STLC phase is of creation of the detailed test cases. Prioritize the test cases also identify which test case will become part of the regression suite. Before finalizing the test case, It is important to carry out the review to ensure the correctness of the test cases. And it is also important to take the confirmation of the the test cases created before the actual execution starts. If automation testing is required, identify the test cases for automation and proceed for scripting the test cases and make sure that you sent them fro review and got confirmation.
Activities
o    Create test cases, automation scripts (if applicable)
o    Review and baseline test cases and scripts
o    Create test data (If Test Environment is available)
Deliverables 
o    Test cases/scripts
o    Test data
4. Test Environment Setup PhaseTest environment includes software and hardware conditions under which product is to be tested. Test environment set-up is one of the critical aspects of testing process and can be done in parallel with Test Case Development Stage. Test team may not be involved in this activity if the customer/development team provides the test environment. In this case test team is required to do a readiness check (smoke testing) of the given environment.
Activities 
o    Setup test Environment and test data
o    Perform smoke test on the build
Deliverables 
o    Environment ready with test data set up
o    Smoke Test Results.
5. Test Execution PhaseDuring this phase test team will carry out the testing based on the test plans and the test cases prepared. Bugs will be reported back to the development team for correction and once the bug is fixed by the development team, retesting/regression will be performed.
Activities 
o    Execute tests as per plan
o    Document test results, and log defects for failed cases
o    Map defects to test cases in RTM
o    Retest the defect fixes
o    Track the defects to closure
Deliverables 
o    Completed RTM with execution status
o    Test cases updated with results
o    Defect reports
6. Test Conclusion Phase: This phase concentrates on the exit criteria and reporting. We've to know the reporting persons. Depending on your project and stakeholders choice, you can decide on reporting whether you want to send out a daily report or weekly report etc.
There are different types of reports
o    DSR – Daily status report
o    WSR – Weekly status reports
The important point is, the content of the report changes and depends upon whom you are sending your reports.
o    If you are reporting to Project managers belong to testing background then they are more interested in the technical aspect of the project, so include the technical things in your report ( number of test cases passed, failed, defects raised, severity 1 defects etc.).
o    If you are reporting to upper stakeholders, they might not be interested in the technical things so report them about the risks that have been mitigated through the testing.
Activities
o    Provide the accurate figures and result of testing
o    Identify the risks which are mitigated
Deliverables 
o    Updated Taceability Metrics
o    Test Status report
o    Risk management report
7. Test Cycle Closure Phase: Testing team will meet , discuss and analyze testing artifacts to identify strategies that have to be implemented in future, taking lessons from the current test cycle.
The following are the tasks for the Test Closure:
o    Check for the completion of the test. Whether all the test cases are executed or mitigated deliberately. Check there are no severity 1 defects opened.
o    Do lessons learnt meeting and create lessons learnt document.( Include what went well, where are the scope of improvements and what can be improved)
Activities
o    Evaluate cycle completion criteria based on Time,Test coverage,Cost,Software,Critical Business Objectives , Quality
o    Prepare test metrics based on the above parameters.
o    Document the learning out of the project
o    Prepare Test closure report
o    Qualitative and quantitative reporting of quality of the work product to the customer.
o    Test result analysis to find out the defect distribution by type and severity.
Deliverables 
o    Test Closure report
o    Test metrics

May 23, 2012

Bug life cycle


Introduction:

Bug can be defined as the abnormal behavior of the software. No software exists without a bug. The elimination of bugs from the software depends upon the efficiency of testing done on the software. A bug is a specific concern about the quality of the Application under Test (AUT).

Bug Life Cycle:


In software development process, the bug has a life cycle. The bug should go through the life cycle to be closed. A specific life cycle ensures that the process is standardized. The bug attains different states in the life cycle. The life cycle of the bug can be shown diagrammatically as follows:
The different states of a bug can be summarized as follows:
  1. New
  2. Open
  3. Assign
  4. Test
  5. Verified
  6. Deferred
  7. Reopened
  8. Duplicate
  9. Rejected and
  10. Closed

Description of Various Stages:


1. New: When the bug is posted for the first time, its state will be “NEW”. This means that the bug is not yet approved.
2. Open: After a tester has posted a bug, the lead of the tester approves that the bug is genuine and he changes the state as “OPEN”.
3. Assign: Once the lead changes the state as “OPEN”, he assigns the bug to corresponding developer or developer team. The state of the bug now is changed to “ASSIGN”.
4. Test: Once the developer fixes the bug, he has to assign the bug to the testing team for next round of testing. Before he releases the software with bug fixed, he changes the state of bug to “TEST”. It specifies that the bug has been fixed and is released to testing team.
5. Deferred: The bug, changed to deferred state means the bug is expected to be fixed in next releases. The reasons for changing the bug to this state have many factors. Some of them are priority of the bug may be low, lack of time for the release or the bug may not have major effect on the software.
6. Rejected: If the developer feels that the bug is not genuine, he rejects the bug. Then the state of the bug is changed to “REJECTED”.
7. Duplicate: If the bug is repeated twice or the two bugs mention the same concept of the bug, then one bug status is changed to “DUPLICATE”.
8. Verified: Once the bug is fixed and the status is changed to “TEST”, the tester tests the bug. If the bug is not present in the software, he approves that the bug is fixed and changes the status to “VERIFIED”.
9. Reopened: If the bug still exists even after the bug is fixed by the developer, the tester changes the status to “REOPENED”. The bug traverses the life cycle once again.
10. Closed: Once the bug is fixed, it is tested by the tester. If the tester feels that the bug no longer exists in the software, he changes the status of the bug to “CLOSED”. This state means that the bug is fixed, tested and approved.
While defect prevention is much more effective and efficient in reducing the number of defects, most organization conducts defect discovery and removal. Discovering and removing defects is an expensive and inefficient process. It is much more efficient for an organization to conduct activities that prevent defects.
Guidelines on deciding the Severity of Bug:
Indicate the impact each defect has on testing efforts or users and administrators of the application under test. This information is used by developers and management as the basis for assigning priority of work on defects.
A sample guideline for assignment of Priority Levels during the product test phase includes:
  • Critical / Show Stopper: An item that prevents further testing of the product or function under test can be classified as Critical Bug. No workaround is possible for such bugs. Examples of this include a missing menu option or security permission required to access a function under test.
  • Major / High: A defect that does not function as expected/designed or cause other functionality to fail to meet requirements can be classified as Major Bug. The workaround can be provided for such bugs. Examples of this include inaccurate calculations; the wrong field being updated, etc.,
  • Average / Medium: The defects which do not conform to standards and conventions can be classified as Medium Bugs. Easy workarounds exists to achieve functionality objectives. Examples include matching visual and text links which lead to different end points.
  • Minor / Low: Cosmetic defects which does not affect the functionality of the system can be classified as Minor Bugs.