Active Topics Memberlist Calendar Search Help | |
Register Login |
One Stop Testing Forum : Software Testing @ OneStopTesting : Beginners @ OneStopTesting |
Topic: hi Guys Please Help |
|
Author | Message |
jepatabo
Newbie Joined: 29Mar2008 Location: Malta Online Status: Offline Posts: 1 |
Topic: hi Guys Please Help Posted: 29Mar2008 at 6:40am |
im having a problem in understanding White box and black box testing, how can you unswer a typical question: A single element buffer can hold an integer number from the following range: -5 to 5. If the buffer is ‘empty’, a number can be inserted to the buffer, but deletion results in an error. If the buffer is ‘full’, a number cannot be inserted (i.e. an error should be reported), but deletion will work (i.e. the number stored in the buffer will be removed). Consider two operations on such a buffer: insert(number) and delete. A pseudo code for delete is given below: if status==empty then error else { status=full; if content<0 then write (“negative”) else if content >0 then write (“positive”) else write (“zero”) } (i) Use a ‘black box’ approach to generate test cases for insert(number). (ii) Use a ‘white box’ approach to generate test cases for delete. You are also required to draw a control graph for this operation. Thanks in advance |
|
Jean.
Post Resume: Click here to Upload your Resume & Apply for Jobs |
|
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.