软件测试课堂测验第一次测验:Consider an application App that takes two inputs name and age, where name is a nonempty string containing at most 20 alphabetic characters and age is an integer that must satisfy the constraint 0≤age≤120
The App is required to display an error message if the input value provided for age is out of range
The application truncates any name that is more than 20-character in length and generates an error message if an empty string is supplied for name
(1)Please find out the equivalence classes(等价类)
(30 分)(2)Construct test cases using the equivalence classes derived in(1) (20 分)答案:Consider a method fp, brief for findPrice, that takes two inputs code and qty
The item code is represented by the integer code and the quantity purchased by another integer variable qty
fp accesse