Activity: Web app testing with ISP
(no submission)
Purpose:
- Practice input space testing
- Apply ISP coverage criteria to test web app
- Practice / hands-on experience with Selenium
- Get ready for assignment 3, prepare for quiz 2 and the final exam
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.
- List all of the input variables, including the state variables
- Define characteristics of the input variables. Make sure you cover all input variables
- Partition the characteristics into blocks
- Do all the partitions you design satisfy completeness and disjointness properties?
If not, revise the partitions (refer to task #3)
- Assign values for each block
- Write a set of test requirements that satisfies Base Choice Coverage
- Based on your test requirements (previous question),
identify any infeasible test requirements you might have,
and fix them if possible
- Write a test set (i.e., a set of test cases), using
the values from step 5
- [optional] Automate your tests, using Selenium.
You may create a Selenium test file from scratch or use the provided
template.