Human Interaction, Testing and Deployment
IB Computer Science · System Fundamentals
Usability and accessibility. A system that works but is hard to use will be worked around, so usability is a functional requirement rather than a decoration. Standard usability principles: make system state visible, match the user's vocabulary rather than the developer's, keep interfaces consistent, prevent errors rather than only reporting them, allow undo, and minimise the load on memory by showing options instead of requiring recall. Accessibility is the design of systems usable by people with visual, hearing, motor or cognitive impairments: screen-reader compatibility, sufficient colour contrast and never using colour alone to carry meaning, keyboard operability, captions, and adjustable text size. Accessible design consistently improves usability for everyone, which is the argument to make when a question asks whether it is worth the cost.
Testing. Test data must be chosen deliberately in three categories. Normal data is within the accepted range and should be processed correctly. Boundary (extreme) data is at the edge of the accepted range and is where off-by-one errors live — if valid marks run from 0 to 100, the boundary cases are 0, 100, and also the values just outside. Abnormal (erroneous) data is outside the range or of the wrong type and must be rejected gracefully. Testing proceeds from unit tests of individual modules, through integration testing of modules working together, to user acceptance testing, which is the only stage that answers whether the system meets the original requirements. A crucial limitation: testing can show the presence of faults, never their absence.
Deployment. Four changeover methods trade cost against risk. Direct changeover switches over at once: cheapest and fastest, but with no fallback. Parallel running operates both systems together and compares outputs: safest and it detects data errors, but it doubles the workload. Phased introduces one module at a time. Pilot deploys the whole system to a small part of the organisation first, limiting damage and allowing lessons to be learned. Data migration is the most under-estimated risk: differences in format and character encoding, incompatible or duplicated codes, missing fields and local conventions all mean data must be cleaned and reconciled, not merely copied.
Documentation and training. User documentation may take the form of manuals, embedded help, online tutorials or live support; training may be self-instruction, formal classes or remote sessions, and the right choice depends on the number of users, how dispersed they are and how complex the task is. Both must be planned as part of the project rather than added at the end.
Worked example: Choosing test data for a small function without missing any case
A function takes an integer score and returns a grade: 0 to 39 is Fail, 40 to 69 is Pass, 70 to 100 is Distinction. Scores outside the range 0 to 100 must be rejected. List the set of test data and explain why each value is chosen.
Solution
Principle of choice: each boundary generates THREE values to try — just below, exactly at, and just above. In this problem there are four boundaries: 0, 40, 70 and 100.
Normal data — one value in the middle of each range. Choosing 20 must give Fail, 55 must give Pass, 85 must give Distinction. These three values prove the main logic works, but they almost never detect errors.
Boundary data — this is the part that finds errors. At the boundary 0: trying 0 must give Fail, and trying negative 1 must be rejected. At the boundary 40: trying 39 must give Fail, trying 40 must give Pass. At the boundary 70: trying 69 must give Pass, trying 70 must give Distinction. At the boundary 100: trying 100 must give Distinction, trying 101 must be rejected. The pair 39 and 40 together with the pair 69 and 70 are the two most important pairs, because an off-by-one error — using less than instead of less than or equal to — is exposed only at exactly these two pairs and at no other value.
Invalid data — it must cover several different kinds of error, not only numbers outside the range. A large negative number such as negative 20 and a large number such as 150 to test the range check. A string of characters such as "seventy" to test the type check. A real number such as 70.5 to force the program to decide clearly: round, truncate the decimal part, or reject — and what matters is that this decision is consistent with the specification. An empty or blank value to test the case where nothing is entered.
Conclusion on method. A good test set is not the one with the most values but the one in which every value is chosen for a reason. If you cannot explain why a value is in the set, that value contributes nothing. And remember the fundamental limit: this test set can only prove that no errors have been found, not that the function is correct.
Worked example: Choosing a changeover method for three different situations
Choose the changeover method for each case and justify it: (a) the payroll system of a company with 2,000 employees; (b) the point-of-sale system of a chain of 80 stores; (c) the book-lending system of a school library with 600 students.
Solution
(a) Payroll system — parallel running. The deciding feature is that the cost of an error is extremely high and cannot be hidden: paying wages incorrectly has legal consequences, loss of trust and manual correction for each person. Parallel running lets both systems run for two to three pay periods and each payroll be compared; every discrepancy must be explained before the old system is switched off. The cost is doubled data entry for a few periods, but that is a reasonable price. In addition, payroll runs on a monthly cycle so the comparison has natural milestones.
(b) Chain of 80 stores — pilot changeover. The deciding feature is that the organization consists of many identical units, so it is entirely possible to deploy fully in a small group and then expand. Choose about five representative stores that are sufficiently different — one large, one small, one in an area with poor connectivity — run for a few weeks, fix the problems that emerge, then roll out in waves. The advantage is that the damage if it fails is limited to five stores, and the deployment team learns a great deal before scaling up. Parallel running is not sensible here because entering orders twice at the counter is impossible during selling hours.
(c) School library — direct changeover, during a vacation. The deciding feature is that the consequences of an error are low and there is a window of downtime. If the new system malfunctions, the library can record loans and returns on paper for a few days without significant harm. A direct changeover during vacation allows the data to be transferred and checked when no transactions arise, and it is the cheapest — significant given a school's budget. The accompanying condition is that the old data must be fully backed up and there must be a plan to go back.
The principle to draw out for answering every question of this type. Do not memorize the four methods and then choose at random. Ask three questions: how severe is the consequence of a serious error, can the two systems be operated at the same time, and does the organization consist of many identical units suitable for a pilot. These three questions almost always point straight to a single method.
Common mistake
Trap 1 — treating testing as proof that the program is correct. Testing proves the PRESENCE of errors, never their ABSENCE. Stating this limit is an easy mark in evaluation questions.Trap 2 — confusing boundary data with invalid data. Boundary data lies right at the EDGE of the valid range and MUST be accepted or rejected exactly according to the specification; invalid data lies outside the range or is of the wrong type and must be rejected. For each boundary try three values: just below, exactly at, just above.
Trap 3 — treating data migration as a copying operation. Different formats, different character encodings, duplicate codes, empty fields and conventions specific to each department must all be cleaned and reconciled; skipping this step makes the new system start with wrong data and every figure afterward is wrong too.