Writing a Sample Test Case...
1) Tasks
2) What is Test Case?
3) Test Case Template
4) Write a Sample Test Case
5) Execute the Test Case
------------------------------
1) Tasks
Important Tasks inward are,
i) Understanding the Requirements
ii) Derive Test Scenarios for Test Requirements
iii) Documenting / Writing Test Cases, too Test Data Collection
iv) Executing Test Cases
v) Reporting Defects if you lot abide by whatsoever divergence from Expected.
vi) Tracking Defects
vii) Re & Regression Testing too Closing Defects
viii) Evaluating function out Criteria too Test Closure
Note: Regression Testing is Cycle, nosotros comport regression Testing Cycle 1, Cycle 2...and at halt Final Regression. Re & Regression Tests depends on complexity of the application too Strength of the Development Team.
------------------------------
2) What is Test Case?
A gear upwardly of input values, execution preconditions, expected results too execution postconditions, developed for a detail objective or exam condition, such equally to practise a detail plan path or to verify compliance alongside a specific requirement.
------------------------------
3) Test Case Template
Test Case Template may vary from 1 companionship to another, roughly times 1 projection to roughly other inward the same company. If you lot familiar alongside anyone Test Case too hence you lot tin easily write exam Cases using whatsoever type of Test Case Template.
I am going to innovate a Model Test Case Template,
Sample Test Case Template:
i) Test Case Id: a Unique Name to position the Test Case
ii) Test Case Title: Title or Name of the Test Case
iii) Module Id: Name of the primary module or sub-module existence Tested
iv) Precondition: Status earlier the Test Case Execution
v) Test Steps: Steps for Executing the Test Case
vi) Test Data: Required Input Data for Executing the Test Case
vii) Expected Result: Expected Result equally per Requirements
viii) Post-condition: Status After Test Case Execution
x) Status: Pass or Fail Status later comparison Expected Results alongside Actual Results
xi) Comments: (Optional)
------------------------------
4) Write a Sample Test Case
i) Test Case Id: U_TC_001
ii) Test Case Title: Gmail Login Functionality
iii) Module Id: User
iv) Precondition: Valid Gmail Id too Password
v) Test Case Steps:
i) Launch the Browser too Navigate to www.Gmail.com
ii) Write / Type Valid Gmail ID inward the "Edit Box"
iii) Click on "Next" Button
iv) Write / Type Valid Password inward the Edit Box
v) Click on "Sign In" Button
vi) Test Data:
i) Gmail Id: gcr1977
ii) Password: gcbannureddy
vii) Expected Result: (* After Test Case Execution)
viii) Post-Condition: User Gmail Page opened alongside all options similar Compose, Delete etc...
ix) Actual Results: (* During Test Case Execution)
x) Status: (* After Test Case Execution)
xi) Comments:
------------------------------
5) Our Test Case later the Execution
i) Test Case Id: U_TC_001
ii) Test Case Title: Gmail Login Functionality
iii) Module Id: User
iv) Precondition: Valid Gmail Id too Password
v) Test Case Steps:
i) Launch the Browser too Navigate to www.Gmail.com
ii) Write / Type Valid Gmail ID inward the "Edit Box"
iii) Click on "Next" Button
iv) Write / Type Valid Password inward the Edit Box
v) Click on "Sign In" Button
vi) Test Data:
i) Gmail Id: gcr1977
ii) Password: gcbannureddy
vii) Expected Result:
i) Gmail Home Page is Opened
ii) Gmail ID is Entered
iii) Another Webpage is opened which gives an pick to Enter Password
iv) Password is Entered
v) User is logged inward to Gmail.
viii) Post-Condition: User Gmail Page opened alongside all options similar Compose, Delete etc...
i) Gmail Home Page Opened
ii) Gmail ID Entered
iii) Another Webpage opened too It has an pick to Enter Password
iv) Password Entered
v) User logged inward to Gmail.
x) Status:
i) Step 1: Pass
ii) Step 2: Pass
iii) Step 3: Pass
iv) Step 4: Pass
v) Step 5: Pass
Test Case: Pass
xi) Comments: Smooth Execution, too Fields too User Friendly
------------------------------
Note 1: You tin roughly fields to this Test Case if required, Ex: Tester's Name, Environment, Date of Creation, Date of Execution etc...
Anyhow Test Case Template may vary shape 1 companionship to roughly other too 1 projection to another, based compass of the Project unremarkably nosotros tin Select Test representative Template.
Note: Usually nosotros write Manual Test Cases inward Excel File using our Company prescribed format, if nosotros role whatsoever Test Tool like, ALM, Jira etc... too hence they supply Test Case temple too User/Tester tin document Test Cases, too 1 to a greater extent than matter roughly Test Tools supply options to customize the Test Case Template.
------------------------------