Software Quality Assurance TEST CASE Seminar: Oana FEIDI Quality Manager – Continental Automotive
What is a test case? Testing is a process centered around the goal of finding defects in a system [ IEEE 829 Definition ] A 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 case: test case definitions include the following information (as per IEEE 610) pre-conditions set of input values set of expected results how to execute the test and check results expected post-conditions
Test case structure - Information Information contains general information about Test case. Identifier is unique identifier of test case for further references, for example, while describing found defect. Test case owner/creator is name of tester or test designer, who created test or is responsible for its development Version of current Test case definition Name of test case should be human-oriented title which allows to quickly understand test case purpose and scope. Identifier of requirement which is covered by test case. Purpose contains short description of test purpose, what functionality it checks. Dependencies
Test case structure - Activity Testing environment/configuration contains information about configuration of hardware or software which must be met while executing test case Initialization describes actions, which must be performed before test case execution is started. For example, we should open some file. Finalization describes actions to be done after test case is performed. For example if test case crashes database, tester should restore it before other test cases will be performed. Actions step by step to be done to complete test. Input data description
Test case structure - Results Expected results contains description of what tester should see after all test steps has been completed Actual results contains a brief description of what the tester saw after the test steps has been completed. This is often replaced with a Pass/Fail . Quite often if a test case fails, reference to the defect involved should be listed in this column. Actual results field will be filled in after running the test case
Test case structure - Example
Exercise 1 Create test cases for solving the following equation: a * x * x + b * x + c = a , b, c real numbers [-150, 10] The following values are displayed in a pop-up x1, x2 If the selected numbers are not part of the interval the following error message is displayed " Error: invalid values.“ If a=0, the following error message will be displayed: “Not a quadratic equation. The coefficient a can not be zero.”
Exercise 2 Derive the test cases for the specification reviewed in the first seminar Use the structure from below: