How to write a good testcase?give example

Questions by varadha

Showing Answers 1 - 24 of 24 Answers

pugal

  • Feb 13th, 2006
 

we can say the testing is the type of destruction, form theat what are problem should involved in that product..

example of 'calculator'

we can give unique no. it's said to be "ID"

i.e  ID = 1

Test Case Description :

check the calculator should have all buttons..i.e 0-9..

the result will be also logged... such as actual and expected result..

and another example

ID = 2

Test Case Description

check all the basic operation symbol.. such as +,-,*,/,%

similarly we can write more test case for that..

Ajeet Kumar Singh

  • Mar 2nd, 2006
 

  Writing a good test cases means to test the data more and more which is almost universially accepted.

Eg:- If we testes date format, then we have to test all the universially accepted formats including the given format in the SRS.

  Was this answer useful?  Yes

Venkateswaran.M

  • Mar 3rd, 2006
 

Uncover maximium number of errors or Bugs with minimium testcases, then the test case is considered a Good Testcase.

  Was this answer useful?  Yes

mummasani

  • Mar 13th, 2006
 

maintain less number of steps to cover the objective and also the number of testcases is not more than 1.6 times of number of objects

  Was this answer useful?  Yes

sabitha

  • Mar 16th, 2006
 

test case is document thatdescribes an input,action,or event and expected response,todetermine if a feautres of application is working correctly.

  Was this answer useful?  Yes

giri

  • Mar 23rd, 2006
 

good testcase has to cover the entire AUT and make sure application mets its expectation when it is delivering.

  Was this answer useful?  Yes

Sagar Medimi

  • Mar 30th, 2006
 

A set of test inputs,executions, and expected results developed for a particular objective.

  Was this answer useful?  Yes

Srinivas Gunda

  • Apr 14th, 2006
 

Techniques for writing Good Test cases

1.First do some home work what do you want to test for a requirement

2.claisfy the type of requirement(GUI,Functional,Database..)

3.Gather maximum information related and affected areas with this requirement

4.In Deails section write  this information(if you are using TD) which will be more useful for other testers

5.Use very simple English and general words in writing the description.(please don't show ur english talent here).All test steps should be low level.

6.Provide test data(if possible).

7.Write in details SQL Queries(it will save time while executing. Some people will not share their SQL knowledge in the scripts.)

8.Write clear Expected Result.

If you follow all the steps it will helpful to other testers and developes while execution and debugging(for developers)

Thanks

Srinivas Gunda

Sr. Test Researcher

UK

mummasani

  • Jun 8th, 2006
 

maintain less number of steps to cover the objective and also the number of test steps is not more than 1.6 times of number of objects

  Was this answer useful?  Yes

suba

  • Nov 3rd, 2006
 

1.To write a test case to the product the tester to know the product fully

2. The communication is should be good (The third person should understand the test case

3.It is to say the bug in the product to correct for the good output

  Was this answer useful?  Yes

pooja

  • Jan 21st, 2007
 

good test case is that which can cover all the user expectations with the software.i.e test case should be use case driven.

example- while testing ATM, we should test whether

1) ATM lets the user to withdraw money in minimum steps or not.

2) If there is any change in ATM interface, our test case should not be changed.

                   

  Was this answer useful?  Yes

Steps to carry out the test. See step formating rules below.

  1. visit LoginPage
  2. enter userID
  3. enter password
  4. click login
  5. see the terms of use page
  6. click agree radio button at page bottom
  7. click submit button
  8. see PersonalPage
  9. verify that welcome message is correct username

  Was this answer useful?  Yes

divyag

  • Jan 9th, 2011
 

To write good testcase it should be like
Verifying the objective
Easy to maintain
Less no. of testcases covering max functionalities
Easy to understand.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions