5 October 2012

What is a Test Case ?

What is a Test Case ?

Test Case : Few definitions:-

 
Test Case is designed by the tester based on the SRS document and Usecase document.Test case is set of activities with expected and actual results executed in sequence to validate the feature of an application.

Test Case is a procedure that guides a tester to execute a test.

Test Case is a set of Inputs, Executed Preconditions and Expected outputs developed to achieve a particular objective.

Test Case is a sequence of steps to test the correct behavior of a functionality/feature of an application

Test Case is the procedure to test any functionality or component of the application.

Test case in software engineering is a set of conditions or variables under which a tester will determine whether an application or software system is working correctly or not. Test cases are often referred to as test scripts, particularly when written. Written test cases are usually collected into test suites.

Test Case : Example:-
For a realistic example of a test case, I have built the following sample test case for www.google.com

1. In the URL field type in www.google.com and hit the ENTER key
2. On the web page, for each link (Images,gmail,maps,calender etc.)
a) Examine the link text
b) Click on the link, and verify that the link works
c) Verify that the new page is the correct page, as indicated by the link text
d) Verify that the little black arrow correctly indicates the current page
e) Click on the browser's BACK button
f) Verify that the link's color changed to the vlink color
3. Every page should be tested in the same way 

Formal test cases:

        In order to fully test that all the requirements of an application are met, there must be at least two test cases for each requirement: one positive test and one negative test.

Informal test cases:

        In scenario testing (Informal test cases), hypothetical stories are used to help the tester think through a complex problem or system. These scenarios are usually not written down in any detail.

Test case format:

* test case ID
* test case description
* test step or order of execution number
* related requirements
* expected Result
* test category
* author
* check boxes for whether the test is automatable and has been automated.

Additional fields that may be included and completed when the tests are executed:

* pass/fail
* remarks
* review comments