It is black-box testing technique, test engineers will use Decision Table to document the complicated scenarios, the advantage of decision table is it will cover each and every possible conditions and combinations.
Decision table contains two values
1. Conditions
2. Actions
lets discuss decision table with an example.
In this example i am taking an email login page example for decision table.
For login to any email application first we need to enter email and password.
Building decision table for Email and Password
In the above table "F" indicates the invalid data and "T" indicates the valid data. For the above scenario we have 4 possible conditions .
4 Test cases for above example: (here iam writing only testcase title)
1.Verify that user should not able to login to the email application with invalid email and invalid password.
2.Verify that user should not able to login to the email application with valid email and invalid password.
3. Verify that user should not able to login to the email application with invalid email and valid password.
4. Verify that user should able to login to the email application with valid email and valid password.
In the above testcases first 3 test cases are negative testcases and 4th test case is positive test case.
Lets take some complex example.
In this example i am including blank field also, Total 9 combinations are there in this example.
9 Testcases:
1.Verify that user should not able to login to the email application with blank email and blank password.
2.Verify that user should not able to login to the email application with blank email and invalid password.
3.Verify that user should not able to login to the email application with blank email and valid password.
4.Verify that user should not able to login to the email application with invalid email and blank password.
5.Verify that user should not able to login to the email application with invalid email and invalid password.
6.Verify that user should not able to login to the email application with invalid email and valid password.
7.Verify that user should not able to login to the email application with valid email and blank password.
8.Verify that user should not able to login to the email application with valid email and invalid password.
9.Verify that user should able to login to the email application with valid email and valid password.
In the above test cases First 8 are the negative testcases and 9th test case is positive test case
Tags:
Decision table contains two values
1. Conditions
2. Actions
lets discuss decision table with an example.
In this example i am taking an email login page example for decision table.
For login to any email application first we need to enter email and password.
Building decision table for Email and Password
In the above table "F" indicates the invalid data and "T" indicates the valid data. For the above scenario we have 4 possible conditions .
4 Test cases for above example: (here iam writing only testcase title)
1.Verify that user should not able to login to the email application with invalid email and invalid password.
2.Verify that user should not able to login to the email application with valid email and invalid password.
3. Verify that user should not able to login to the email application with invalid email and valid password.
4. Verify that user should able to login to the email application with valid email and valid password.
In the above testcases first 3 test cases are negative testcases and 4th test case is positive test case.
Lets take some complex example.
In this example i am including blank field also, Total 9 combinations are there in this example.
9 Testcases:
1.Verify that user should not able to login to the email application with blank email and blank password.
2.Verify that user should not able to login to the email application with blank email and invalid password.
3.Verify that user should not able to login to the email application with blank email and valid password.
4.Verify that user should not able to login to the email application with invalid email and blank password.
5.Verify that user should not able to login to the email application with invalid email and invalid password.
6.Verify that user should not able to login to the email application with invalid email and valid password.
7.Verify that user should not able to login to the email application with valid email and blank password.
8.Verify that user should not able to login to the email application with valid email and invalid password.
9.Verify that user should able to login to the email application with valid email and valid password.
In the above test cases First 8 are the negative testcases and 9th test case is positive test case
Tags:
No comments:
Post a Comment