Question

Define “Stub” and “Driver” classes and describe the difference between them.

Define “Stub” and “Driver” classes and describe the difference between them.

Homework Answers

Answer #1

Stub:-

Stub is a subordinate modules that are called by the module to be tested.

It is nothing but a dummy sub-program that does minimal data manipulation, provides verification of entry and returns the returns the module under testing.

Driver:-

Driver is a main program that accepts test case data, passes that data to the component to be tested and prints the related or obtained results.

Following are the differences between "stub" and "driver":

1. Stub is a Top Down integration whereas driver is a Bottom up integration.

2. Stub is allowed to test the upper levels of code when the lower levels of code are not yet developed. whereas Driver is allowed to test lower level when upper level of code is not developed yet.

3. Stub id the called program whereas the driver is the calling program.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Define “Stub” and “Driver” classes and describe the difference between them. (without plagiarism)
Define “Stub” and “Driver” classes and describe the difference between them. (without plagiarism)
you are required to define sex and gender, as well as state the difference between them....
you are required to define sex and gender, as well as state the difference between them. The question is, "Do you think life would be easier if the construct of gender did not exist at all? State YES, OR NO, AND SUPPORT YOUR ANSWER..
Define (or describe the difference between a PARAMETER and a STATISTIC. For the Test Types, below,...
Define (or describe the difference between a PARAMETER and a STATISTIC. For the Test Types, below, identify the parameter and statistic values for each. 1-variable Means 2-variables Means 1-variable Proportion 2-variables Proportions
The four classes of grafts are autograft, isograft, allograft and xenograft. Briefly describe/define each.
The four classes of grafts are autograft, isograft, allograft and xenograft. Briefly describe/define each.
Describe evaluative and determinant criteria.What is the difference between them?What attributes do you consider to be...
Describe evaluative and determinant criteria.What is the difference between them?What attributes do you consider to be evaluative and determiant criteria in the selection of a new apartment.
What is the difference between an account based forecasting and driver based forecasting?
What is the difference between an account based forecasting and driver based forecasting?
What is the difference between account based forecasting and driver base forecasting
What is the difference between account based forecasting and driver base forecasting
What Are the five income classes in Distribution of income? Describe each of them. Why income...
What Are the five income classes in Distribution of income? Describe each of them. Why income distribution in more developed countries is less unequal? How do you measure that?
Define and distinguish the difference between soralia and soredia.
Define and distinguish the difference between soralia and soredia.
define risk and return and discuss the ralationship between them.
define risk and return and discuss the ralationship between them.