Software Testing
Software Testing
Design and develop a program in a language of your choice to solve the triangle problem defined
as follows: Accept three integers which are supposed to be the three sides of a triangle and
determine if the three values represent an equilateral triangle, isosceles triangle, scalene triangle,
or they do not form a triangle at all. Assume that the upper limit for the size of any side is 10.
Derive test cases for your program based on boundaryvalue analysis, execute the test cases and
discuss the results.
NextDate Function(1812≤year≤2012)
NextDate is a function has three variables (month, day, and year), for years from 1812 to 2012.
it return the next date which user input. Month, day and year are all integer, and satisfy these
conditions below:
1 ≤ month ≤ 12
1 ≤ day≤ 31
1812 ≤ year ≤ 2012
Lock-Stock-Barrel Commission
Rifle salespersons in the Arizona Territory sold rifle locks, stocks, and barrels made by a gunsmith
in Missouri. Lock = $45.00, stock = $30.00, barrel = $25.00. Each salesperson had to sell at least
one complete rifle per month ($100) .The most one salesperson could sell in a month was 70 locks,
80 stocks, and 90 barrels
Each salesperson sent a telegram to the Missouri company with the total order for each town (s)he
visits 1≤towns visited≤10, per month
Commission: 10% on sales up to $1000, 15% on the next $800, and 20% on any sales in excess of
$1800
Chose two tasks, design the test cases (including of Boundary value test cases; Robust
boundary value test cases; boundary value test cases of worst case; robust boundary value
test cases of worst case and test your program.
Chose two tasks, design the test cases (including of weak normal test cases; weak robust test
cases; strong normal test case, strong robust test cases of worst case and test your program.
Design test cases using cause-effect graph method and test your program.