How to write the test cases?
Test cases are written based on documents(adopted by the organization) like Business Requirement Specification(BRS) , Functional Specification(FS) or any other document which functionally describe the application.
It is good practice to write the test cases in early phase of development.
An ideal Test cases cover three section
- History of Test cases (Written by, Reviewed by, Approved by).
- Scenarios
- Scenario description & steps to achieve that scenario.
When to start test case execution ?
Execution of test cases can be started after successful completion of Smoke test.
Key Points :
- Every Test cases must be discrete.
- Test cases must be tune with the flow of application & should be in simple language.
- Test case should cover most of the functionality.
Test Case Design technique :
1. Test cases can be derived directly from a requirement specification or black box test design technique. These techniques are :
> Boundary Value Analysis
> Equivalence Partitioning
> Decision Table Testing
> State Transition Diagrams
> Use case Testing
2. Test case can also be derived from structure of System These techniques are :
> Statement Coverage
> Branch coverage
> Path Coverage
> LCSAJ Testing
3. Test cases can also be derived from tester experience on similar systems These techniques are :
> Error Guessing
> Exploratory Testing
1. Test cases can be derived directly from a requirement specification or black box test design technique. These techniques are :
> Boundary Value Analysis
> Equivalence Partitioning
> Decision Table Testing
> State Transition Diagrams
> Use case Testing
2. Test case can also be derived from structure of System These techniques are :
> Statement Coverage
> Branch coverage
> Path Coverage
> LCSAJ Testing
3. Test cases can also be derived from tester experience on similar systems These techniques are :
> Error Guessing
> Exploratory Testing
Equivalence class partitioning : Divide all possible inputs into classes (partitions) such that
• There is a finite number of input equivalence classes
• You may reasonably assume that
• The program behaves analogously for inputs in the same class
• A test with a representative value from a class is sufficient
• if representative detects fault then other class members will detect the same fault
Below is an example with test case for Equivalence when a finance account will accept age only for 18-40 :
Test case :
SR | Objective | Steps | Test data | Expected | Actual | Status |
1 | Verify the age input box funct |
input the numeric value in Age |
0 to 18 | Message " You are not eligible |
||
Input the invalid numeric valu |
-1 | Message "Please enter valid da |
||||
Input the valid numeric value |
18-40 | green confirmation message sho |
||||
input the value in numeric to |
More than 40 | Message "You can not apply to |
Testing boundary conditions of eq. classes is more effective
i.e. values directly on, above, and beneath edges of eq. classes
• Choose input boundary values as tests in input eq. classes
instead of, or additional to arbitrary values
• Choose also inputs that invoke
output boundary values
( values on the boundary of output classes )
Below is an example of test case for Boundary value :
SR | Objective | Steps | Test data | Expected | Actual | Status |
1 | Verify the age input box funct |
input the numeric value in Age |
-1 | Message "Please enter valid da |
||
Input the invalid numeric valu |
0 | Message " You are not eligible |
||||
Input the valid numeric value |
17 | Message " You are not eligible |
||||
input the value in numeric to |
18 | green confirmation message sho |
||||
input the numeric value in Age |
19 | green confirmation message sho |
||||
input the numeric value in Age |
40 | green confirmation message sho |
||||
input the numeric value in Age |
41 | Message "You can not apply to |
Decision Table Testing :
if different combinations of inputs result in different actions then it is difficult to to show using equivalence partitioning and boundary value analysis.
Example : If an web page have two input box A & B where A is mandatory & if A or both are enable than only submit button will enable :
Condition Rule 1 Rule 2 Rule 3
Input box A (Mandatory) F T F
input box B F F T
Expected : Submit button F T F
Use case testing technique : Test case can also be derived from usecase documents .
Test Management tools:
- QTest
- PractiTest
- ZEPHYR
- Test collab
- Xqual
- Test Rail
- Test Lodge
- Jira (Also a bug tracking tool)
- IBM Rational Quality Manager
- HP Quality Center
Test Plan
A Test plan is a document which is very similar to project plan but mainly focusing on testing which would be done.It have the various section inside it, which explain how, when & what should be tested in a particular project.
It varies from organization to organization & project to Project.
The effectiveness of testing depends on robustness of test plan.
Test Plan Definition :A Software test Plan is a document that describes testing activities, scope, strategy, testing tools, Environment etc
ISTQB Definition: A document describing the scope, approach, resources and schedule of intended test activities. It identifies amongst others test items, the features to be tested, the testing tasks, who will do each task, degree of tester independence, the test environment, the test design techniques and entry and exit criteria to be used, and the rationale for their choice,and any risks requiring contingency planning. It is a record of the test planning process.
Test Plan TYPES :
Test plan can be divided into three major categories :
Master Test Plan : This test plan set a bench mark or parameter how other test plan should be created.
Testing Level Specific Test Plan : Like Unit testing Test Plan, Integration Testing Test Plan etc.
Testing Types specific Test Plan: Like Penetration Testing Test Plan, Security Testing Test Plan etc.
Here i have uploaded a sample TEST Plan Which can be downloaded by click the below link. Test plan can be divided into three major categories :
Master Test Plan : This test plan set a bench mark or parameter how other test plan should be created.
Testing Level Specific Test Plan : Like Unit testing Test Plan, Integration Testing Test Plan etc.
Testing Types specific Test Plan: Like Penetration Testing Test Plan, Security Testing Test Plan etc.
This sample test plan cover almost features of a test plan.
Click here to download sample of Test Plan
Tags :What is Test Plan?,What are main components of test plan?, how to create test plan?, Download Sample test plan
RTM : RTM stands for REQUIREMENT TRACEBILITY MATRIX and it is a document which Map functionalities to test cases.
Key Points :
>> In General, Rows have functionalities & column have Test case ID.
>> It ensure that each functionality have been covered in test cases.
>> When a Requirement will change then Associated test case will change & Changes can be traced easily.
>> Its life start with the project & and ends with the project.
Leased Line Services are a game-changer for businesses! 🚀 With dedicated bandwidth and reliable connectivity, they ensure smooth operations even during peak hours. Perfect for enterprises that can't compromise on speed or security. 💻✨
ReplyDeletehttps://gigmax.in/leased-line/