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 to work on the learning portfolio
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 another student in this course.
(feel free to make use of any communication channels of your choice)
Consider a small web app,
convert.php
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.