| Forums.Sureshkumar.net : A Perfect Place to Share Knowledge Blogs Games Magazines |
|
|||||||
| Testing Interview / Technical Questions Kindly solve an many as questions you can. It will sharpen your skills and those solutions will help others too. |
![]() |
|
|
LinkBack | Thread Tools | Rate Thread | Display Modes |
|
|
#16 (permalink) |
|
Junior Member
Join Date: Jun 2008
Age: 23
Posts: 7
Thanks: 0 Thanked 0 Times in 0 Posts Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1
|
Re: What is the difference between stub and driver?
hi am keerthi, u said that completed cstp certification so can u send me any cstp material that u had prepared well becoz am going to write cstp on 23rd august so plz send me urgently
|
|
|
|
|
|
#17 (permalink) |
|
Junior Member
Join Date: Jul 2008
Posts: 18
Thanks: 2 Thanked 0 Times in 0 Posts Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 1
|
Re: What is the difference between stub and driver?
Please refer the attachment for difference between two.
__________________
Regards, Rakesh
|
|
|
|
|
|
#18 (permalink) |
|
Senior Member
Join Date: Oct 2008
Age: 26
Posts: 103
Thanks: 1 Thanked 17 Times in 10 Posts Thanks: 1
Thanked 17 Times in 10 Posts
Rep Power: 3
|
Re: What is the difference between stub and driver?
S_No
Stubs Driver 1 A piece of code that simulates the activity of missing component A piece of code that passes test case to another piece of code 2 Stubs are created integration testing like Top-down approach Drivers are created integration testing like bottom-up approach 3 Stubs are simulations of the sub-code that otherwise is very gives full control to the test code Driver takes care that the entry point of the application is masked by that of the test code and difficult to execute in the test code 4 A stub is a brief section of compilable code that serves as a class a driver is a brief test program that demonstrates the functionality of a class or a portion of placeholder for future work 5 It is a temporary called program.It functions similarly like sub modules It is a temporary Calling program.It functions similarly like main module for calling the sub when called by the main module 6 Stub is a simple routine that takes the place of the real routine Stubs let you check the interfaces and higher levels of the program The approach is to write a program that passes input data to the unit under test and compares the output to the truth 7 A piece of code that simulates the activity of missing components A piece of code that passes test cases to another piece of code 8 stub is a piece of special code that which is used to simulate the set up environment missing or not yet constructed driver is a code that which invokes the code to be tested 9 Stub is a skeleton of function having function header. This function can have actual statements or simple statements which can be replaced with the actual code Driver is a small program used to test a function
__________________
Antony Prabhu ![]() Software Engineer chennai. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|