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
Hi there, I am new to the world of testing. Is there any place where I can have a look at an actual specification documents or test plans or test cases. This will help me in generating a level of confidence. Looking forward to your replies
If I want to check compability of software in a MAC OS then which steps shold I follow?
What are the Important test scenarios which can be used for testing a web site?
What is an audit report? Whom is it done by?
Scenario A year ago we developed a standards compliant website for a client. Their site is very popular resulting in the client wanting to be able to track how it is being used by their users. The first part of this project is to create a Login function so that users can be identified on the website. The data supplied by users would have to be handled securely. You have been allocated this project to work on. You will be responsible for the task from start to finish and will be expected to give feedback to your manager. User expectations The client wants their users to be able to login using a page that fits in with the website design. Tom wants to access the website but doesn’t want his login information to be available to anyone else. Paul doesn’t want to login to the website because he’s not a frequent user. Task Please provide some feedback on how you would do the following:- Being the only Test Engineer on this task, what would your approach be for this requirement? Identify the key areas for testing this page. What tools if any, would you use to perform the testing, bearing in mind that the testing will be done without using an ‘automated test tool’. Provide a sample test case that could be used for testing this page, for example as a word or Excel document.
i) functional test cases can we consider for regression test ? or we have to write separet test cases for regression test ? ii) How to write the system test case and what are the technique shall we have to follow ?
1.what is a test condition ?
What are the different available models of sdlc?
What is the difference between a bug, a defect and an error?
Is compatabilitytestig and port testing are same
what type of quetion may be asked for experienced person in manual tester of 1 year?
What is XML Testing? Do we have any tools to test the XML? Please let me know.
Can anyone please answer the below question on Manual Testing: Tell me about atleast 5 bugs you come across in your last testing?
What are the main key components in web applications and client and server applications?
Name three reasons why the tester may choose to record in Context Sensitive mode.