Software testing - Revisited ;)
Before moving further towards introduction to software testing, we need to know a few concepts that will simplify the definition of software testing.
Before moving further towards introduction to software testing, we need to know a few concepts that will simplify the definition of software testing.
- Error: Error or mistake is a human action that produces wrong or incorrect result.
- Defect (Bug, Fault): A flaw in the system or a product that can cause the component to fail or misfunction.
- Failure: It is the variance between the actual and expected result.
- Risk: Risk is a factor that could result in negativity or a chance of loss or damage.
Thus Software testing is the process of finding defects/bugs in the system, that occurs due to an error in the application, which could lead to failure of the resultant product and increase in probability of high risk. In short, software testing have different goals and objectives, which often include:
- finding defects;
- gaining confidence in and providing information about the level of quality;
- preventing defects.
Scope of Software Testing
The primary function of software testing is to detect bugs in order to correct and uncover it. The scope of software testing includes execution of that code in various environment and also to examine the aspects of code - does the software do what it is supposed to do and function according to the specifications? As we move further we come across some questions such as "When to start testing?" and "When to stop testing?" It is recommended to start testing from the initial stages of the software development. This not only helps in rectifying tremendous errors before the last stage, but also reduces the rework of finding the bugs in the initial stages every now and then. It also saves the cost of the defect required to find it. Software testing is an ongoing process, which is potentially endless but has to be stopped somewhere, due to the lack of time and budget. It is required to achieve maximum profit with good quality product, within the limitations of time and money. The tester has to follow some procedural way through which he can judge if he covered all the points required for testing or missed out any. To help testers to carry out these day-to-day activities, a baseline has to be set, which is done in the form of checklists. Read more on checklists for software tester.
Software Testing Key Concepts
- Defects and Failures: As we discussed earlier, defects are not caused only due to the coding errors, but most commonly due to the requirement gaps in the non-functional requirement, such as usability, testability, scalability, maintainability, performance and security. A failure is caused due to the deviation between an actual and an expected result. But not all defects result to failures. A defect can turn into a failure due to the change in the environment and or the change in the configuration of the system requirements.
- Input Combination and Preconditions: Testing all combination of inputs and initial state (preconditions), is not feasible. This means finding large number of infrequent defects is difficult.
- Static and Dynamic Analysis: Static testing does not require execution of the code for finding defects, whereas in dynamic testing, software code is executed to demonstrate the results of running tests.
- Verification and Validation: Software testing is done considering these two factors.
- Verification: This verifies whether the product is done according to the specification?
- Validation: This checks whether the product meets the customer requirement?
- Software Quality Assurance: Software testing is an important part of the software quality assurance . Quality assurance is an activity, which proves the suitability of the product by taking care of the quality of a product and ensuring that the customer requirements are met.
Steps for Software Testing
Along with finding defects in the software, software testing aims to verify and validate the software, so that it complies with the business and technical requirements, works exactly as it is expected to and can be implemented again, when the existing factors do exist. Although software testing can be implemented at any point of time in the software development life cycle, it is normally implemented after the development stage has come to an end. Till the software development process is underway, it is the developers, who carry out the testing process, commonly referred to as white box testing. After the software has been handed over to the testing team, starts the black box testing. This brings us to what are the essential steps of software testing. Let's find out.
Note Scope of Testing
Although software testing aims to find defects in the software, it is important to note, that testing cannot assure that the software will work perfectly under all circumstances. It will only assure that the software will work perfectly under certain predetermined conditions. It is in the scope phase that it is decided upon, 'what is the software suppose to do'. It is important that the testing team understands the aim of the software. This will help in understanding the real time scenario, where the software is exactly going to be used. The documents created before the development process started should be analyzed and business rules have to be understood for the same. If there is any variance found in the document, the same should be raised during the meeting with the development team. Along with all the other tasks, there an important factors, which should not be forgotten while deciding the scope of testing. It is the stage when software testing stop. Else there are chances, that the testing process will go in a never ending loop.
Decide Testing Approach
Once the scope has been decided upon, the next stage of software testing is to decide the testing approach, that is going to be used. The methods and tools, which need to be used for the process are decided upon. At this stage, it is important to take the client assumptions and various dependencies and limitations into consideration.
Decide Testing Tasks
Now that the testing approach has been decided upon, the next step is to decide the tasks, that have to be completed in each testing phase. The documents to be delivered to the internal client (development team and stakeholders) and to the external client (end user) have to be decided upon. Giving the documents to the internal and external client keeps them in loop about the happenings.
Estimate Time and Budget
The next step is to estimate the time and budget necessary for the entire software testing lifecycle as well as for each of the phase of the cycle. In case any of the budget is overshooting, measures can be taken to curb them and get them on track.
Identify the Testing Phases
Now starts the actual task of testing the software. Normally, start and end date of each of the testing phase is identified, along with the phases that may overlap. It is in this phase that different software testing methodologies are used to test the software. Each of the methodology used has a different aim, while testing the software. This helps in testing maximum aspects of the software. The exit criteria for each of the phase is identified as well, so that the testing process can be stopped after the exit criteria has been met. When bugs have been identified in the software, the same are reported to the Testing Manager. The Manager creates a report along with the conditions in which the bug was reported. This is then forwarded to the development team, who study the bugs. They may accept some of the bugs and reject some of the bugs. After which they normally give the time necessary for fixing the bugs. Once the bugs are fixed, the software is sent back to the testing team for further testing.
Decide Testing Environment
The different hardware and software requirements necessary for testing the software should be identified in advance. Normally, wide range of test environments are decided upon. For example, if it is a software intended for use on the internet, then the software is tested on all the prominent browsers. There are times, when the software may work perfectly fine on one browser, but may show errors, when it is run on another browser.
Decide Retesting Strategy
If there is a problem with the software, it is sent back to the development team. When the problem has been fixed, the testing team has to test the software. The strategy to retest the software has to be place for the same.
Decide Regression Testing Strategy
Often it happens, that one defect is fixed and another defect is created. The aim of regression testing is to ensure that no more new bugs have been introduced in the software and the software is working perfectly.
Closure of Testing Activities
After the exit criteria has been met, start the test closer activities. In this step, the key outputs are captured, results, log, documents related to the project are put together. All of these go a long way and often prove to be of help for the future projects.
Along with finding defects in the software, software testing aims to verify and validate the software, so that it complies with the business and technical requirements, works exactly as it is expected to and can be implemented again, when the existing factors do exist. Although software testing can be implemented at any point of time in the software development life cycle, it is normally implemented after the development stage has come to an end. Till the software development process is underway, it is the developers, who carry out the testing process, commonly referred to as white box testing. After the software has been handed over to the testing team, starts the black box testing. This brings us to what are the essential steps of software testing. Let's find out.
Note Scope of Testing
Although software testing aims to find defects in the software, it is important to note, that testing cannot assure that the software will work perfectly under all circumstances. It will only assure that the software will work perfectly under certain predetermined conditions. It is in the scope phase that it is decided upon, 'what is the software suppose to do'. It is important that the testing team understands the aim of the software. This will help in understanding the real time scenario, where the software is exactly going to be used. The documents created before the development process started should be analyzed and business rules have to be understood for the same. If there is any variance found in the document, the same should be raised during the meeting with the development team. Along with all the other tasks, there an important factors, which should not be forgotten while deciding the scope of testing. It is the stage when software testing stop. Else there are chances, that the testing process will go in a never ending loop.
Decide Testing Approach
Once the scope has been decided upon, the next stage of software testing is to decide the testing approach, that is going to be used. The methods and tools, which need to be used for the process are decided upon. At this stage, it is important to take the client assumptions and various dependencies and limitations into consideration.
Decide Testing Tasks
Now that the testing approach has been decided upon, the next step is to decide the tasks, that have to be completed in each testing phase. The documents to be delivered to the internal client (development team and stakeholders) and to the external client (end user) have to be decided upon. Giving the documents to the internal and external client keeps them in loop about the happenings.
Estimate Time and Budget
The next step is to estimate the time and budget necessary for the entire software testing lifecycle as well as for each of the phase of the cycle. In case any of the budget is overshooting, measures can be taken to curb them and get them on track.
Identify the Testing Phases
Now starts the actual task of testing the software. Normally, start and end date of each of the testing phase is identified, along with the phases that may overlap. It is in this phase that different software testing methodologies are used to test the software. Each of the methodology used has a different aim, while testing the software. This helps in testing maximum aspects of the software. The exit criteria for each of the phase is identified as well, so that the testing process can be stopped after the exit criteria has been met. When bugs have been identified in the software, the same are reported to the Testing Manager. The Manager creates a report along with the conditions in which the bug was reported. This is then forwarded to the development team, who study the bugs. They may accept some of the bugs and reject some of the bugs. After which they normally give the time necessary for fixing the bugs. Once the bugs are fixed, the software is sent back to the testing team for further testing.
Decide Testing Environment
The different hardware and software requirements necessary for testing the software should be identified in advance. Normally, wide range of test environments are decided upon. For example, if it is a software intended for use on the internet, then the software is tested on all the prominent browsers. There are times, when the software may work perfectly fine on one browser, but may show errors, when it is run on another browser.
Decide Retesting Strategy
If there is a problem with the software, it is sent back to the development team. When the problem has been fixed, the testing team has to test the software. The strategy to retest the software has to be place for the same.
Decide Regression Testing Strategy
Often it happens, that one defect is fixed and another defect is created. The aim of regression testing is to ensure that no more new bugs have been introduced in the software and the software is working perfectly.
Closure of Testing Activities
After the exit criteria has been met, start the test closer activities. In this step, the key outputs are captured, results, log, documents related to the project are put together. All of these go a long way and often prove to be of help for the future projects.
No comments:
Post a Comment