Software Test
Software Test
Our team has been assigned to build a calculator application. Thanks to our workaholic software analyst, we have the specification done, and our rather precipitous programmers can't wait to have their hands dirty on it. However, all this haste makes our meticulous team leader feels a bit uncomfortable unless there is a way to make sure everything is being built as it should be. Fortunately, everybody here has been talking about you experties to force things to work as they should. So, we'd like your help to provide us a documented way to test the quality of the application. This document should give us guidance of what to do and what to expect from each test. You don't have to cover all the tests, but pick several that you find important. The following is the specification of the calculator application: The UI has the following menu structure: Function Mode Simple arithmetic Trigonometry Display mode Regular Scientific The UI provides the following buttons: Numeric keys (0-9). Decimal marker (.). Exponent marker for scientific notation, and error indicator (E). Negative sign (-). This is not to be used for a subtraction. Two function buttons, depending on the function mode. Result (=). No clear button is available. User can choose between two function modes from the menu. Simple arithmetic ( function buttons will be multiplication and division). Trigonometry (function buttons will be sin and its inverse). No other functionalities are provided (no addition, subtraction, cos, etc). User can choose between two display mode from the menu. Scientific (between E-5 and E+5, and only one digit to left of decimal point) E.g.: 1.23E+3 = 1230 (valid) 12.3E+2 is not valid since there are two digits to the left of the decimal point. Regular (no separator for thousands). E.g.: 12345678 (valid) 123456.7 (valid) 12,345.6 is not supported. The display can hold up a max of 10 characters. This includes non-numeric character such as ., -, E, +. If button E is followed by a number, the display will automatically show E+ followed by the number. For example, it will display E+2 instead of E2. User can toggle between the two display modes anytime. The displayed number should be converted automatically upon a toggle. User can toggle between the two function modes anytime. The permitted way to use the calculator is: For a number: positive or negative integer, positive or negative float. Each can be in regular or scientific form, depending on the display mode. For multiplication/division: a number, function, a number, result. For sin/inverse sin: a number, function. The first number can be typed in as a new number or taken directly from the current number being displayed. Pressing an incorrect sequence will give no effect. E.g. 2 x 3 x will not display the result. The display would still show 3. If error occurs, the display will show E.