Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > Testing Tools & QA > Testing Interview / Technical Questions
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

Testing Interview / Technical Questions Kindly solve an many as questions you can. It will sharpen your skills and those solutions will help others too.

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 18-08-08, 02:27 PM   #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 keerthi.smile is on a distinguished road
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
keerthi.smile is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 19-08-08, 12:50 PM   #17 (permalink)
Junior Member
 
raakeysh's Avatar
 
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 raakeysh is on a distinguished road
Re: What is the difference between stub and driver?

Please refer the attachment for difference between two.
Attached Files
File Type: doc Stub & driver.doc (25.5 KB, 18 views)
__________________
Regards,
Rakesh
raakeysh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 18-10-08, 12:59 PM   #18 (permalink)
Senior Member
 
antojap20's Avatar
 
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 antojap20 is on a distinguished road antojap20 is on a distinguished road
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.
antojap20 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +6.5. The time now is 07:23 AM.





Search Engine Optimization by vBSEO 3.1.0