Active TopicsActive Topics  Display List of Forum MembersMemberlist  CalendarCalendar  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin


 One Stop Testing ForumSoftware Testing @ OneStopTestingBeginners @ OneStopTesting

Message Icon Topic: hi Guys Please Help

Post Reply Post New Topic
Author Message
jepatabo
Newbie
Newbie
Avatar

Joined: 29Mar2008
Location: Malta
Online Status: Offline
Posts: 1
Quote jepatabo Replybullet 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 IP Logged
Post Reply Post New Topic
Printable version Printable version

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



This page was generated in 0.070 seconds.
Vyom is an ISO 9001:2000 Certified Organization

© Vyom Technosoft Pvt. Ltd. All Rights Reserved.

Privacy Policy | Terms and Conditions
Job Interview Questions | Placement Papers | Free SMS | Freshers Jobs | MBA Forum | Learn SAP | Web Hosting