what is test harness?

Answer Posted / nams

“A test harness simply is to create the correct framework and use it (and all of its constituent elements) to control the entire activity as to get the most of the situation- whether automation or integration.

it is time to explore what Test harness means in the context of “Integration Testing”.

Integration testing is to put together two or modules (or units) of code that interact with each other and to check whether or not the combined behavior is as expected or not.

Ideally, Integration testing of two modules should and would be possible to carry out when both of them are 100% ready, unit tested and good to go.

However, we do not live in a perfect world- which means, one or more modules/units of code that are to be the constituent elements of the integration test might not be available. To solve this situation we have stubs and drivers.

Stud is usually a piece of code that is limited in its function and will substitute or proxy for the actual module of code that needs to take its place.

Example: To further explain this, let me use a scenario

If there is a unit A and Unit B that are to be integrated. Also, that Unit A sends data to Unit B or in other words, Unit A calls Unit B.

------------
Unit A if 100% available and unit B is not, then the developer can write a piece of code that is limited in its capability ( what this means is the Unit B if it has 10 features, only 2 or 3 that are important for integration with A) will be developed and is used for integration. This is called a STUB.

The integration would now be: Unit A->Stub (substituting for B)

On the other hand, if Unit A is 0% available and Unit B is 100% available, the simulation or proxy has to be Unit A here. Therefore when a calling function is replaced by auxiliary code, then it is called the DRIVER.

The integration in this case would be: DRIVER (substituting for A) -> Unit B

The entire framework: The process of planning, creating and usage of stubs and/or drivers to carry out the integration testing is called the Test Harness.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to write defects in excel sheets when defects occured

1530


what we have to read to gain knowledge in banking and financial domain(software testing) for 4+ experience

1743


You have a testing team of 10 members, and now you have to reduce it by 5 member and you dont want to increase risk in your product, you are try to cover all functionality to test. What test Strategy you follow.

2139


what is difference between win 98 and win 2000 poertating system?which is better one?

1732


1.What types of documents would you need for QA, QC, and Testing?

4927






Anyone tell me the test cases of Shopping Favorite

1521


When did u complete testing ? Which scenrio should not be in automation testing ? why ?

2396


Can you please explain me how to do testing of an E-insurance project end to end process..

2208


what is the diff. bw separate database testers and manual testers with sql knowledge guys... iam confusing so much ,,in cmpny database testers are not working on manual..? both positions are same are not? explian clesly with example? thank u

1730


What is the Diff between Code Walkthrough & Code Review? What is the diff between walkthrough and inspection? What is meant by GUI Testing?

1576


Which model is following in your company for developing software?

717


Usually customers won’t give all the requirements. How will you manage & collect all the necessary information?

764


hi, I m looking for a career in manual web testing. so PLZ anybody who have the practical knowledge of dis field help me. GIVE ME UR MAIL ID so that i can ask regarding some doubts. my MAIL ID is ankurtester819@gmail.com

1473


State a generalized process for load test? Or explain how you did it previously.

2089


what is acid testing?

2133