Software Testing Books

Share Embed Donate


Short Description

software testing books, software testing, black box, quality assurance, agile methodology, software engineering, softwar...

Description

SOFTWARE O W SOFTWARE TESTING TESTING OVERVIE OVERVIEW OVERVIEW VERVIEW http://www.tutorialspoint.com/software_engineering/software_testing_overview.htm

Copyr ight © tutorialspoint.com tutorialspoint.com

Software Testing is evaluation of the software against requirements gathered from users and system specifications. Testing is conducted at the phase level in software development life cycle or at module level in program code. co de. Software Software testing comprises of Validation and Verification.

Software Validation Validation is process of examining whether or not the software satisfies the user requirements. It is carried out at the end of the SDLC. If the software matches requirements for which it was made, it is validated. Validation ensures the product under development is as per the user requirements. Validation Vali dation answers the question – "Are we developing developi ng the product which attempts all that user needs nee ds from this software ?". Validation emphasizes on user requirements.

Software Verification Verification is the process of confirming if the software is meeting the business requirements, and is developed adhering to the proper specifications and me thodologies. thodologies. Verification ensures the product being developed is according to de sign specifications. specifications. Verification answers the question– "Are we developing this product by firmly following all design specifications ?" Verifications concentrates on the design and system specifications.  Target  Targ et of the test test are Errors - These are actual coding mistakes made by developers. In addition, there is a difference in output of software and desired output, is considered as an error.

err or exists fault occurs. A fault, also known as a bug, is a result of an err or Fault - When error which can cause ca use system system to fail. system to perform per form the desired de sired task. Failure Failure - failure is said to be the inability of the system occurs occ urs when fault exist e xists s in the system.

Manual Manual Vs Automated Testing  Testing can either be done ma nually or using an automated testing tool: perfo rmed without taking help of automated a utomated testing tools. The Manual - This testing is performed software tester prepares test cases for different sections and levels of the code, executes the tests and repo rts the the result to the manager. mana ger. Manual testing is time and resource consuming. The tester needs to confirm whether or not right test cases are used. Major portion por tion of testing involves manual testing. procedur e done with aid of automated automa ted testing testing tools. The Automated  This testing is a testing procedure limitations with manual testing can be overcome using automated test tools. A test needs to check if a webpage can be opened in Internet Explorer. This can be easily done with manual testing. But to check if the web-server ca n take the load o f 1 million millio n users, it is quite impossible to test manually.  There  Ther e are software and hardware tools tool s which which helps tester tester in conducting loa d testing, testing, stress stress testing, testing, regression testing.

Testing Approaches Approaches

 Tests can be conducted based on two two approache appro aches s– Functionality Functionali ty testing testing Implementation testing When functionality function ality is being tested tested without taking taking the actual implementation implem entation in concern co ncern it i t is known known as black-box black-bo x testing. testing. The other o ther side is known as white-box testing where where not only functiona lity is tested but the the way it is implemented impleme nted is also analyzed. a nalyzed. Exhaustive Exhaustive tests are the bestbe st-desired desired method m ethod for a perfect perfe ct testing. testing. Every single single possible po ssible value in the range of the input and an d output values is tested. tested. It is not possible to test each and every value in real world scenario if the range o f values is large.

Black-box Black-box testing It is carried carr ied out to test functionality of the program. progra m. It is also called ca lled ‘Behaviora ‘Be havioral’ l’ testing. testing. The tester in this case, has a set of input values and re spective desired results. r esults. On On providing input, i nput, if the output matches with with the desired re sults, sults, the program is i s tested tested ‘ok’, and problematic proble matic otherwise. other wise.

In this testing testing method, the design and a nd structure of the code c ode are a re not no t known to to the tester, and testing engineers engine ers and end users user s conduct this test test on the software. software. Black-box testing techniques: Equivalence class - The input is divided into similar classes. If one element of a class passes the test, it is assumed assumed that all the class is passed.

e nd values. If these these values Boundary values - The input is divided into higher and lower end pass the test, test, it is assumed that all values in be tween tween may m ay pass too. tested. Cause-effect graphing - In both previous methods, only one input value at a time is tested. Cause (input) – Effect (output) (output) is a testing testing technique where combinations combi nations of input values are tested in a systematic systematic way. Pair-wise Testing - The behavior of software depends on multiple parameters. In pairwise testing, the multiple parameters are tested pair-wise for their different values.

system changes chan ges state on provision o f input. These systems systems are State-based testing - The system tested based on their states and input.

White-box testing It is conducted conducted to test program and its implementation, implementation, in order to improve code efficiency or structure. It is also kno wn as ‘Structural’ testing.

In this testing testing method, the design and structure of the code co de are known to the tester. tester. Programmers Program mers

of the code conduct this test on the code.  The below belo w are some White-box testing testing techniques: o f the control-flow contro l-flow testing to set up test test cases which Control-flow testing - The purpose of covers all statements and branch conditions. The branch conditions are tested for both being true and false, so that all statements can be covered. Data-flow testing - This testing technique emphasis to cover all the data variables included in the program. It tests where the variables were declared and defined and where they were used or changed.

Testing Levels  Testing itself itself may be defined define d at vario various us levels of SDLC. The testing process runs parallel paral lel to software development. Before jumping on the next stage, a stage is tested, validated and verified.  Testing separately is done just to make sure that there are no hidden hidd en bugs or issues issues left in the the software software.. Software is tested on various le vels -

Unit Testing While coding, the programmer performs some tests on that unit of program to know if it is error free. Testing is performed under white-box testing approach. Unit testing helps developers decide that individu individual al units of the program are a re working as per requirement requireme nt and are error free.

Integration Integration Testing Even if the units of software software are a re working fine individually, there is a nee d to find out if the units if  integrated together would also work without errors. For example, argument passing and data updation etc.

System Testing  The software is compiled as product produc t and then then it is tested as a whole. This can be accomplished accom plished using one or more of the following tests: Functionality testing - Tests all functionalities of the software against the requirement.

Thi s test proves how efficient efficie nt the software is. It tests tests the Performance testing - This effectiveness and average time taken by the software to do desired task. Performance testing is done by means mea ns of load loa d testing and stress testing testing where the software is put under high user and data load under various environment conditions. conditions. mea nt to work work on Security & Portability - These tests are done when the software is meant various platforms and accessed by number of persons.

Acceptance Acceptance Testing T esting When the software is ready rea dy to to hand over o ver to the customer it has to go through last la st phase of testing testing where it is tested for user-interaction and response. This is important because even if the software matches all user requireme requir ements nts and if user does not like the way it appears or works, it may be rejected. Alpha testing - The team of developer themselves perform alpha testing by using the system system as if it i t is being used in work environme e nvironment. nt. They try to to find out o ut how user would react rea ct to some action a ction in software and how ho w the the system system should respond re spond to inputs.

i s tested tested internally, interna lly, it is handed over to the users u sers to use it Beta testing - After the software is under their production environment only for testing purpose. This is not as yet the delivered product. produc t. Developers expect that users at this this stage stage will bring m inute problems, proble ms, which which were skipped to attend.

Regression Testing

Whenever a software product produc t is updated with with new code, feature fea ture or functionality, func tionality, it is tested thoroughly to detect if there is any negative impact of the added code. This is known as regression testing.

Testing Documentation  Testing documents docume nts are prepared pre pared at different differ ent stages stages -

Before Testing  Testing starts starts with with test test cases generation. gener ation. Following documents docume nts are needed ne eded for refere re ference nce – SRS document  - Functional Requirements document Test Policy document - This describes how far testing should take place before releasing the product.

responsibili ty matrix Test Strategy document - This mentions detail a spects of test team, responsibility and rights/responsibility of test manager and test engineer. Traceability Matrix document - This is SDLC document, which is related to requirement gathering process. As new requirements come, they are added to this matrix. These matrices help testers know the source of requirement. They can be traced forward and backward.

While Being Tested  The following fol lowing documents docume nts may be required require d while testing testing is started and is being done: tests required to be conducted. It Test Case document  - This docume nt contains list of tests includes include s Unit test test plan, Integration test plan, System System test plan and a nd Acceptance Acc eptance test plan. description of all test cases and procedures Test description - This document is a detailed description to execute them. re port as a result of the test. Test case report - This docume nt contains test case report e very test case report. re port. Test logs - This docume nt contains test logs for every

After Testing  The following fol lowing documents docume nts may be generated genera ted after testing testing : Test summary - This test summary is colle ctive analysis of all test reports and logs. It summarizes and concludes if the software is ready to be launched. The software is released under version c ontrol system system if it is ready rea dy to launch.

Testing vs. Quality Control, Quality Assurance and Audit We need nee d to understand that software software testing is different differe nt from software quality quali ty assurance, software quality control and software auditing. monitoring means, Software quality assurance - These are software development process monitoring by which which it is assured that all the measures mea sures are taken a s per the standards of orga nization.  This monitoring is done to make sure that proper software developme nt methods were were followed. pro duct. It Software quality control  - This is a system to maintain the quality of software product. may include functional and non-functional aspects of software product, which enhance the goodwill of the organization. This system makes sure that the customer is receiving quality product for their requirement and the product certified as ‘fit for use’. Software audit  - This is a review of procedure used by the organization to develop the software. A team of auditors, independent of development team examines the software process, procedure, requirements and other aspects of SDLC. The purpose of software software audit is to check that software software and a nd its development process, proc ess, both conform standards, rules and regulations.

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF