Wednesday, July 9, 2014

UNIT – IV TESTING

My title page contents

1. Define software testing?
            Software testing is a critical element of software quality assurance and represents the ultimate review of specification, design, and coding.

2. What are the objectives of testing?
i. Testing is a process of executing a program with the intend of finding an error.
ii. A good test case is one that has high probability of finding an undiscovered error.
iii. A successful test is one that uncovers as an-yet undiscovered error.

3. What are the testing principles the software engineer must apply while performing the software testing?
i. All tests should be traceable to customer requirements.
ii. Tests should be planned long before testing begins.
iii. The pareto principle can be applied to software testing-80% of all errors uncovered during testing will likely be traceable to 20% of all program modules.
iv. Testing should begin “in the small” and progress toward testing “in the large”. v. Exhaustive testing is not possible.
vi. To be most effective, an independent third party should conduct testing.

4. What are the two levels of testing?
i. Component testing - Individual components are tested. Tests are derived from developer’s experience.
ii. System Testing - The group of components are integrated to create a system or sub-system is done. These tests are based on the system specification.

5. What are the various testing activities?
i. Test planning
ii. Test case design
iii. Test execution
iv. Data collection
v. Effective evaluation

6. Write short note on black box testing.
The black box testing is also called as behavioral testing. This method fully focus on the functional requirements of the software. Tests are derived that fully exercise all functional requirements.

7. What is equivalence partitioning?
Equivalence partitioning is a black box technique that divides the input domain into classes of data. From this data test cases can be derived. Equivalence class represents a set of valid or invalid states for input conditions. 

 
8. What is a boundary value analysis?
A boundary value analysis is a testing technique in which the elements at the edge of the domain are selected and tested. It is a test case design technique that complements equivalence partitioning technique.

9. What are the reasons behind to perform white box testing?
There are three main reasons behind performing the white box testing.
1. Programmers may have some incorrect assumptions while designing or implementing some functions.
 2. Certain assumptions on flow of control and data may lead programmer to make design errors. To uncover the errors on logical path, white box testing is must.
3. There may be certain typographical errors that remain undetected even after syntax and type checking mechanisms. Such errors can be uncovered during white box testing.

10. What is cyclomatic complexity?
Cyclomatic complexity is software metric that gives the quantitative  Measure of logical complexity of the program.
                       
11. How to compute the cyclomatic complexity?
The cyclomatic complexity can be computed by any one of the following ways.     1. The numbers of regions of the flow graph correspond to the cyclomatic complexity.
            2. Cyclomatic complexity (G), for the flow graph G, is defined as: V(G)=E-N+2, E -- number of flow graph edges, N -- number of flow graph nodes
            3. V(G) = P+1 Where P is the number of predicate nodes contained in the flow graph.

12. Distinguish between verification and validation.
Verification refers to the set of activities that ensure that software correctly implements a specific function.
Validation refers to a different set of activities that ensure that the software that has been built is traceable to the customer requirements.

13. What are the various testing strategies for conventional software?
i. Unit testing
ii. Integration testing.
iii. Validation testing.

iv. System testing.


<html>
<head>
<meta name="google-site-verification" content="0I3CCUKfnbZxnMuHc32ROH9w5u9C-ZRwkWTcNgdV5lM" />
<title> My title </title>
</head>
<body>
page contents
</body>
</html>

No comments:

Post a Comment