Active Topics Memberlist Calendar Search Help | |
Register Login |
One Stop Testing Forum : Types Of Software Testing @ OneStopTesting : Unit Testing @ OneStopTesting |
Topic: UnitTest Lesson # 01 |
|
Author | Message |
tanushree
Senior Member Joined: 04Apr2007 Online Status: Offline Posts: 2160 |
Topic: UnitTest Lesson # 01 Posted: 04Oct2007 at 1:05am |
For all members!
Identify Inputs For Unit Testing - Part I Please feel free to participate. This is a pilot run of interactive training. Please read all. So please do jump in here and provide your test cases along with why. I or someone will try to give review comments/questions once weekly along with a new lesson. Purpose of this exercise: Identify and list test cases. Source code is in blue along with code commentary. That does not mean it is starved of oxygen. -------------------------------------------------------- Code:
'- Copy/paste from top Begin COPY POINT to END COPY POINT above, to a file and not beyond. See further below for filing instructions. ' ' Why VBScript? You can run it on your desktop and experiment ' How? ' 1. Copy/paste the code into a new text file ' 2. Change the name to MyUnitTestLesson1.vbs ' 3. Double-click the icon to execute ' 4. Right-mouse over the file icon – select edit to edit it. ' 5. Change the numeric value in the msgbox IsEven call ' 6. Save and re-run This assumes that “unit” means one tests to the visible source code. For Our purposes “unit” is the same as “module” or “component”. This type of testing is unit testing and is also known as white-box, glass-box, or clear-box. [] What are some test cases you can come up with? [] How would you prove that the function does what it suggests? [] How would you expose it’s defects? Hint! Since there are no hard requirements, might there be some implied requirements as suggested by the name and implementation? [] Might there be defects with respect to the implied requirements? Post Resume: Click here to Upload your Resume & Apply for Jobs |
|
IP Logged | |
vragavender
Newbie Joined: 10Jan2008 Location: India Online Status: Offline Posts: 1 |
Posted: 05Feb2008 at 10:11pm |
super super !this is very helpful!
now i understand wat is unit testing, i want an exaple like for integration and system testing , and give me some vbs programs to understand please
thanks
|
|
IP Logged | |
Forum Jump |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
© Vyom Technosoft Pvt. Ltd. All Rights Reserved.