GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing  >  Common
Go To First  |  Previous Question  |  Next Question 
 Common  |  Question 148 of 248    Print  
The user is expected to enter an integer value into each of the three text fields. Upon hitting the OK button the program will print a message in a separate dialog box stating whether the triangle is scalene (all sides are different lengths), isosceles (two sides are the same length), or equilateral (all three sides are the same length).
Write a set of test cases (i.e. specific sets of data) that you feel would adequately test this program. Write the tests so that someone other than you can run them.

  
Total Answers and Comments: 2 Last Update: November 21, 2009     Asked by: kpworld 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 26, 2007 03:17:35   #1  
kamatchi        

RE: The user is expected to enter an integer value int...

Three different sets of values should be chosen.
Each set should be entered separately

For eg:
First data set(7 8 9)
Second data set(9 9 8)-isosceles triangle
Third data set(9 9 9)-equilateral triangle


Test case for first data set:
Enter the data (A B C) in to the fields-the data should be displayed in the appropriate fields

Check whether

1. A#B#C and click ok button. The dialog box should be displayed as scalene triangle
2. A B#C and click ok button. The dialog box should be displayed as Isoceles Triangle
3. A B C and click ok button. The dialog box should be displayed as Eqilateral Triangle .



 
Is this answer useful? Yes | No
November 20, 2009 13:22:24   #2  
kurtz182 Member Since: November 2009   Contribution: 132    

RE: The user is expected to enter an integer value into each of the three text fields. Upon hitting the OK button the program will print a message in a separate dialog box stating whether the triangle is scalene (all sides are different lengths), isoscele

There is not enough information to create a complete test suite. I would ask the Business Analyst or Project Manager the following questions before I begin authoring test cases:
1) Is there any validation performed on the text boxes? Will a message appear if users enter alpha or special characters (Examples: a-z A-Z !@#$) into the text boxes?
2) Is there a size limit on the number of characters the text boxes can accommodate?
3) Is there an upper limit on the numeric value that the program will accept?
4) How does the program handle zero (0)? What message occurs?
5) How will the dialog message appear in each case for scalene isosceles and equilateral? What is the specific message?
6) Is there any text in the dialog prior to user input?

Prerequisites:
1) Test Cases will be labeled TC. For example Text Case 1 TC1.
2) Text Boxes will be labeled TB. For example Text Box 1 TB1.
3) The equal sign means 'gets'. For example TB1 3 means text box 1 gets the number 3. Enter the number 3 in this text box.
4) The dialog text may vary from test case description. Please make sure the text reflects the proper type of triangle.

I would author only the following test cases until I receive answers to the previous questions.

Test Case Titles
TC1: TB1 1 TB2 2 TB3 3; click ok; dialog reflects 'scalene'
TC2: TB1 5 TB2 8 TB3 5; click ok; dialog reflects 'isosceles'
TC3: TB1 7 TB2 7 TB3 7; click ok; dialog reflects 'equilateral'

TC4: TB1 75 TB2 87 TB3 92; click ok; dialog reads 'scalene'
TC5: TB1 31 TB2 45 TB3 45; click ok; dialog reads 'isosceles'
TC6: TB1-60 TB2-60 TB3 60; click ok; dialog reads 'equilateral'

TC7: TB1 794 TB2 1073 TB3 652; click ok; dialog reads 'scalene'
TC8: TB1 983 TB2 983 TB3 2983; click ok; dialog reads 'isosceles'
TC9: TB1 729 TB2 729 TB3 729; click ok; dialog reads 'equilateral'


 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : First of all, 'test bug' is not any  word, defined in any softare engineering book. But the 'software bug', is an error or flaw in a computer program that may prevent it from working correctly or produce an incorrect or unintended ...

What is Traceability Matrix ? Is there any interchangeable term for Traceability Matrix ?Are Traceability Matrix and Test Matrix same or Different ?
Read Answers (28) | Asked by : Jilanibasha

Latest Answer : HiA test procedure is a formal specification of test cases to be applied to one or more target program modules. Test procedures are executable. A process called the VERIFIER applies a test procedure to its target modules and produces an exception report ...

Latest Answer : Test Cases prepared to test the application would be Build Acceptance Test Cases, GUI Test Cases, Functional Test Cases, Integration Test Cases, Compatibility Test Cases, System Test Cases, Positive & Negative Test Cases, Performance Test ...
Read Answers (15) | Asked by : prabath

Test Plan consists of test scope, test strategy, test schedule, resources required, roles and responsibilities, etc., but the key element is "Schedule". 
Latest Answer : Every thing is important in test planning... we cannot and must not give priorty to any of the element in the test plan...Regards,Narin ...
Read Answers (10) | Asked by : Bindu Puvvala

Test case consists of Test Steps, Expected Result, Actual Result, Result of the test case, etc., attributes, but the important one among all of them is "Expected Result". 
Latest Answer : I agree that test case elements may differ between industries and companies.  However, all test cases have the following elements, otherwise it would not be a complete test case:1) Test steps:  This makes sense because testers need to know ...
Read Answers (18) | Asked by : Bindu Puvvala

I said "I have written Test Cases directly from the Requirement Specifications." 
Latest Answer : The way this question is posed, there must be a distinction between test scenario and test case.  Test scenario and test case can not be the same thing here.  Therefore, in this context, test scenario refers to the business process flows that ...
Read Answers (8) | Asked by : Bindu Puvvala

Latest Answer : Yes we can write testcases based only Business requirements document or use cases, but if you want to write an effective test case you should have all the documents, like BRD, SRS, FRS,design docs, use cases, test plan. so that you can have a clear ...

Latest Answer : BRD is enough. ...

Latest Answer : For me bug and defect are same as both pointing to one mistake/failure/fault in the application code that prevents it from behaving as intended. In other words, While executing the application, if the application is deviating with respect to expected ...


 Sponsored Links

 
Related Articles

Breaking up XML into Relational Data

Breaking up XML into Relational Data While the preceding example shows how to construct an XML representation over relational data the example in this section illustrates how you can shred XML data back into relational data This reverse operation can be useful if your application works with relation
 

Querying Data with Oracle XQuery

Querying Data with Oracle XQuery Starting with Oracle Database 10g Release 2 you can take advantage of a full featured native XQuery engine integrated with the database With Oracle XQuery you can accomplish various tasks involved in developing PHP Oracle XML applications operating on any kind of dat
 

Retrieving XML Data

Retrieving XML DataTo retrieve XML data from an XMLType table you can use a SELECT SQL statement just as you would if you had to query a relational table For example to select the employee with the id set to 100 from the employees XMLType table discussed in the preceding section you might issue the
 

Using XMLType for Handling XML Data in the Database

Using XMLType for Handling XML Data in the Database Being an object type XMLType can not only be used to store XML data in the database but also to operate on that data via its built in methods Regardless of the storage model you choose XMLType provides a set of XML specific methods to operate on XM
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

ODP.NET - Techniques to Improve Performance while Retrieving Data

ODP NET Techniques to Improve Performance while Retrieving Data Performance tuning is a great subject in Oracle Volumes of books would not be enough to cover every aspect of performance tuning in Oracle However in this section we will only discuss the fundamental performance techniques while working
 

ODP.NET - Populating a Dataset with a Single Data Table

ODP NET Populating a Dataset with a Single Data Table A dataset is simply a group of data tables These data tables can be identified with their own unique names within a dataset You can also add relations between data tables available in a dataset mosgoogle The following code gives you the details o
 

ODP.NET - Retrieving Typed Data

ODP NET Retrieving Typed Data While retrieving values from OracleDataReader we can extract information available in individual columns of a particular row either by using column ordinal position values or column names mosgoogle Retrieving Typed Data Using Ordinals ODP NET provides data specific enum
 

ODP.NET - Retrieving Data Using OracleDataReader

ODP NET Retrieving Data Using OracleDataReader OracleDataReader is simply a read only and forward only result set It works only if the database connection is open and it makes sure that the connection is open while you are retrieving data As the data that it retrieves is read only it is a bit faster
 

ODP.NET - Fundamental ODP.NET Classes to Retrieve Data

ODP NET Fundamental ODP NET Classes to Retrieve Data To retrieve data from an Oracle database using ODP NET we need to work with a few of the ODP NET classes At this point we will discuss the most fundamental classes available in ODP NET for retrieving data mosgoogle The following is the list of fun
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape