Lecture 3 - Test Cases and Test Suites -> Quick Intro -> Test Case Structure -> Results Of The Test Case Execution -> Useful Attributes Of The Test Case -> Data-Driven Test Cases -> Maintainability Of Test Cases -> The Number Of Expected Results Inside One Test Case -> Bad Test Case Practices -> Test Suites -> States Of A Test Case -> The Importance Of Creativity -> Three Important Factors That Affect Test Cases
All that we’ve talked about so far can be used in suggested form, but I want you to grasp the main thing:
Testing is a creative process and thus assumes a search for perfection.
So, you have to search until you find what’s BEST for your concrete company and concrete situation. Let’s illustrate the creative approach by rewriting our credit card test cases:
Table 1
Test case ID | Priority | Card Type | Expected Result One |
ССPG0001 | 1 | Visa | 10 |
ССPG0002 | 1 | MasterCard | 20 |
AEPL0001 | 1 | AmEx | 30 |
SETUP and ADDITIONAL INFO Go to Test Portal>More Stuff>QA KnowledgeBase to “See QA KB“ In order to run SQL1 go to Test Portal>Helpers>DB Connect Utility. SQL1: select result from cc_transactions where order_id = <order id>; How to get credit card balance: Test Portal>Helpers>Credit Card Balance Viewer |
IDEA: payment can be made by credit cards from Table 1. 1. Generate Credit Card (See QA KB) and copy card number into the temporary text file. 2. Get credit card balance and write it down: ____ 3. Create New Account (See QA KB) 4. Login 5. Find Search Keyword (See QA KB) 6. Do search 7. Add found book to the Shopping cart. 8. Copy card number from the temporary text file and Do Checkout (See QA KB) !!! While doing it, write down amount of payment: ____ 9. Write down order id: ____ 10. Make DB query: SQL1 10.A. Verify that Step 10 result = Expected Result One 11. Get credit card balance and write it down: ____ 11.A. Verify that Step 11 result = Step 2 result – Step 8 result |
Lecture 3 - Test Cases and Test Suites -> Quick Intro -> Test Case Structure -> Results Of The Test Case Execution -> Useful Attributes Of The Test Case -> Data-Driven Test Cases -> Maintainability Of Test Cases -> The Number Of Expected Results Inside One Test Case -> Bad Test Case Practices -> Test Suites -> States Of A Test Case -> The Importance Of Creativity -> Three Important Factors That Affect Test Cases