Professional Documents
Culture Documents
Software Testing-Lc2
Software Testing-Lc2
Software Testing-Lc2
BASED LAB
TASK REPORT
1
DEVELOPING AND TESTING THE PROGRAM FOR
ABSOLUTE LETTER GRADING PATH TESTING
Submitted by
DHANUSH S
OCTOBER 2022
2
DECLARATION
I affirm that the lab task work titled “DEVELOPING AND TESTING THE PROGRAM
FOR ABSOLUTE LETTER GRADING PATH TESTING” being submitted as the record
of original work done by us under the guidance of JANAGI R, Assistant Professor,
Department Of Computer Science And Engineering.
DHANUSH S
191CS156
JANAGI R
3
TABLE OF CONTENTS
1. OBJECTIVE OF TASK 6
METHODOLOGY PROPOSED 6
2.
CODING 9
3.
OUTPUT 10
5.
6. RESULT 11
7. REFERENCE 12
4
OUTCOME BASED LAB TASKS
RUBRICS FORM (*to be filled by the lab handling faculty only)
Student name:
Register number:
Name of the laboratory:
Name of the lab handling faculty:
Name of the task:
Experiments mapped:
1.
2.
3.
5
DEVELOPING AND TESTING THE PROGRAM FOR
ABSOLUTE LETTER GRADING PATH TESTING
OBJECTIVE OF TASK:
To 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
METHODOLOGY PROPOSED:
Performing black box tests require you to follow a certain approach. The following
list gives you an overview of the general steps that need to be performed:
6
Efficiency testing tests the number of test cases executed divided by the unit of
time. The unit of time is generally in hrs. It tests the measure of code and the
testing resources that are required by an application to perform a specific function.
1 Start
3
4
5
6
7
8
9
10
11
13 14 15 16 17
19
20 End
7
Independent Paths:
Pre-Conditions/Issues:
Percentage Per is a positive Float Number
8
CODING:
int main()
{
float per;
char grade;
scanf("%f",&per);
if(per>=90) grade= 'A';
else if(per>=80 && per<90) grade ='B';
else if(per>=70 && per<80) grade ='C';
else if(per>=60 && per<70) grade='D';
else grade='E';
switch(grade)
{
case 'A': printf("\nEXCELLENT"); break;
case 'B':printf("\nVery Good"); break;
case 'C' : printf("\nGood"); break;
case 'D': printf("\nAbove Average"); break;
case 'E': printf("\n Satisfactory"); break;
}
printf("\t The percentage = %f and grade is %c ",per,grade);
return 0;
}
9
OUTPUT:
10
RESULT:
To 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
REFRENCE:
1. https://en.wikipedia.org/wiki/Software_testing#Black-box_testing
2. https://www.geeksforgeeks.org/program-to-check-whether-a-triangle-is-
equilateral-isosceles-or-scalene/
3. https://www.manning.com/books/effective-software-
testing#:~:text=Effective%20Software%20Testing%20is%20a,%2Dto%2D
maintain%20test%20code.
4. https://www.parasoft.com/blog/how-to-write-test-cases-for-software-
examples-tutorial/
12
PROCESSPLAN
Test the program with valid and invalid test Valid and invalid test cases were tested
cases successfully
13
REFLECTION SHEET
Status Legend :
Self-understood and resolved
Discussed with Trainer and resolved
Yet to discuss / find solution
14