Please copy and paste this embed script to where you want to embed

Software Testing Laboratory

2013-14

SOFTWARE TESTING LABORATORY Subject Code: 10ISL68

25

Hours/Week: 03

I.A. Marks: Exam Hours:

03 Total Hours: 42

50

Exam Marks:

1. 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. Derive test cases for your program based on decision-table approach, execute the test cases and discuss the results. 2. 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 boundary- value analysis, execute the test cases and discuss the results. 3. 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 equivalence class partitioning, execute the test cases and discuss the results. 4. Design, develop, code and run the program in any suitable language to solve the commission problem. Analyze it from the perspective of dataflow testing, derive different test cases,

execute these test cases and discuss the test results. 5. Design, develop, code and run the program in any suitable language to Solve the commission problem. Analyze it from the perspective of Department of ISE, DSCE-Bangalore 1

Page

Software Testing Laboratory

2013-14

Boundary value testing, derives different test cases, execute these test cases and discuss the test results. 6. Design, develop, code and run the program in any suitable language to solve the commission problem. Analyze it from the perspective of equivalence class testing, derive different test cases, execute these test cases and discuss the test results. 7. Design, develop, code and run the program in any suitable language to solve the commission problem. Analyze it from the perspective of decision table-based testing, derive different test cases, execute these test cases and discuss the test results. 8. Design, develop, code and run the program in any suitable language to implement the binary search algorithm. Determine the basis paths and using them derive different test cases, execute these test cases and discuss the test results. 9. Design, develop, code and run the program in any suitable language to implement the quicksort algorithm. Determine the basis paths and using them derive different test cases, execute these test cases and discuss the test results. discuss the test results. 10. Design, develop, code and run the program in any suitable language to implement an absolute letter grading procedure, making suitable assumptions. Determine the basis paths and using them derive different test cases, execute these test cases and discuss the test results. 11. Design, develop, code and run the program in any suitable language to implement the NextDate function. Analyze it from the perspective of boundary value testing, derive different test cases, execute these test cases and discuss the test results. 12. Design, develop, code and run the program in any suitable language to implement the NextDate function. Analyze it from the perspective of equivalence class value testing, derive different test cases, execute these test cases and discuss the test results.

Department of ISE, DSCE-Bangalore 2

Page

Software Testing Laboratory

2013-14

1. 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. Derive test cases for your program based on decision-table approach, execute the test cases and discuss the results. 1.1 REQUIREMENTS: R1. The system should accept 3 positive integer numbers (a, b, c) which represents 3 sides of the triangle. Based on the input it should determine if a triangle can be formed or not. R2. If the requirement R1 is satisfied then the system should determine the type of the triangle, which can be • Equilateral (i.e. all the three sides are equal) • Isosceles (i.e Two sides are equal) • Scalene (i.e All the three sides are unequal) else suitable error message should be displayed. Here we assume that user gives three positive integer numbers as input. 1.2 DESIGN: From the given requirements we can draw the following conditions: C1: a

View more...
2013-14

SOFTWARE TESTING LABORATORY Subject Code: 10ISL68

25

Hours/Week: 03

I.A. Marks: Exam Hours:

03 Total Hours: 42

50

Exam Marks:

1. 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. Derive test cases for your program based on decision-table approach, execute the test cases and discuss the results. 2. 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 boundary- value analysis, execute the test cases and discuss the results. 3. 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 equivalence class partitioning, execute the test cases and discuss the results. 4. Design, develop, code and run the program in any suitable language to solve the commission problem. Analyze it from the perspective of dataflow testing, derive different test cases,

execute these test cases and discuss the test results. 5. Design, develop, code and run the program in any suitable language to Solve the commission problem. Analyze it from the perspective of Department of ISE, DSCE-Bangalore 1

Page

Software Testing Laboratory

2013-14

Boundary value testing, derives different test cases, execute these test cases and discuss the test results. 6. Design, develop, code and run the program in any suitable language to solve the commission problem. Analyze it from the perspective of equivalence class testing, derive different test cases, execute these test cases and discuss the test results. 7. Design, develop, code and run the program in any suitable language to solve the commission problem. Analyze it from the perspective of decision table-based testing, derive different test cases, execute these test cases and discuss the test results. 8. Design, develop, code and run the program in any suitable language to implement the binary search algorithm. Determine the basis paths and using them derive different test cases, execute these test cases and discuss the test results. 9. Design, develop, code and run the program in any suitable language to implement the quicksort algorithm. Determine the basis paths and using them derive different test cases, execute these test cases and discuss the test results. discuss the test results. 10. Design, develop, code and run the program in any suitable language to implement an absolute letter grading procedure, making suitable assumptions. Determine the basis paths and using them derive different test cases, execute these test cases and discuss the test results. 11. Design, develop, code and run the program in any suitable language to implement the NextDate function. Analyze it from the perspective of boundary value testing, derive different test cases, execute these test cases and discuss the test results. 12. Design, develop, code and run the program in any suitable language to implement the NextDate function. Analyze it from the perspective of equivalence class value testing, derive different test cases, execute these test cases and discuss the test results.

Department of ISE, DSCE-Bangalore 2

Page

Software Testing Laboratory

2013-14

1. 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. Derive test cases for your program based on decision-table approach, execute the test cases and discuss the results. 1.1 REQUIREMENTS: R1. The system should accept 3 positive integer numbers (a, b, c) which represents 3 sides of the triangle. Based on the input it should determine if a triangle can be formed or not. R2. If the requirement R1 is satisfied then the system should determine the type of the triangle, which can be • Equilateral (i.e. all the three sides are equal) • Isosceles (i.e Two sides are equal) • Scalene (i.e All the three sides are unequal) else suitable error message should be displayed. Here we assume that user gives three positive integer numbers as input. 1.2 DESIGN: From the given requirements we can draw the following conditions: C1: a

Thank you for interesting in our services. We are a non-profit group that run this website to share documents. We need your help to maintenance this website.

To keep our site running, we need your help to cover our server cost (about $400/m), a small donation will help us a lot.