Activity: Web app testing with ISP

(no submission)
Purpose:
Instruction:

You may make a copy of a worksheet and complete this activity, or simply type your answers in any text editor.

You may work alone or with at most two other students in this course. (max size = 3)


Consider a small web app, convert.php (source code), that allows users to convert measurements.

Design IDM(s) for the app, write tests that satisfy Base Choice Coverage, and then automate your tests. Note: Try to keep your partitioning simple and choose a small number of partitions and blocks.

  1. List all of the input variables, including the state variables
  2. Define characteristics of the input variables. Make sure you cover all input variables
  3. Partition the characteristics into blocks
  4. Do all the partitions you design satisfy completeness and disjointness properties? If not, revise the partitions (refer to task #3)
  5. Assign values for each block
  6. Write a set of test requirements that satisfies Base Choice Coverage
  7. Based on your test requirements (previous question), identify any infeasible test requirements you might have, and fix them if possible
  8. Write a test set (i.e., a set of test cases), using the values from step 5
  9. [optional] Automate your tests, using Selenium. You may create a Selenium test file from scratch or use the provided template.

Copyright © 2025 Upsorn Praphamontripong
Released under the Creative Commons License CC-BY-NC-SA 4.0 license.
Last updated 2025-09-21 12:37