Software Testing-Lc2

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

OUTCOME

BASED LAB
TASK REPORT

1
DEVELOPING AND TESTING THE PROGRAM FOR
ABSOLUTE LETTER GRADING PATH TESTING

OUTCOME BASED LAB TASK REPORT

Submitted by

DHANUSH S

BANNARI AMMAN INSTITUTE OF TECHNOLOGY


(An Autonomous Institution Affiliated to Anna University,
Chennai) SATHYAMANGALAM-638401

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

I certify that the declaration made above by the candidates is true.

(Signature of the Guide)

JANAGI R

3
TABLE OF CONTENTS

CHAPTER NO. TITLE PAGE NO.

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.

S.No Rubrics Reward points awarded


1
2
3
4
5
Total (150 reward points)

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:

• Examine and understand the requirements and specifications of the software


application
• Identify valid and invalid inputs with expected outputs in order to check that
the system detects them properly
• Create test cases with different test scenarios and inputs
• Execute the test cases
• Verify the expected outcomes with the actual outcomes
• Fix errors from failed test cases
• Retest the application to ensure fixed bugs are not recurring

To write an effective test case use the following steps


1. Keep things simple and transparent.
2. Make test cases reusable.
3. Keep test case IDs unique.
4. Peer review is important.
5. Test cases should have the end user or defined requirements in mind.
6. Specify expected results and assumptions.

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:

#Edges=25, #Nodes=18, #P=1


V(G)= E-N+2P = 25-18+2 = 09

P1: 1-2-4-6-8-10-11-17-19-20 E Grade


P2: 1-2-4-6-8-9-11-16-19-20 D Grade
P3: 1-2-4-6-7-11-15-19-20 C Grade
P4: 1-2-4-5-11-14-19-20 B Grade
P5: 1-2-3-11-13-19-20 A Grade
P6: 1-2-4-6-8-10-11-13-19-20
P7: 1-2-4-6-8-10-11-14-19-20
P8:1-2-4-6-8-10-11-15-19-20
P9: 1-2-4-6-8-10-11-16-19-20

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

Proposed Process Plan Actual Plan Executed


Write a program in any language to Program is written in C language
develop test cases

Write efficient test cases Efficient test cases were developed

Test the program with valid and invalid test Valid and invalid test cases were tested
cases successfully

Skill: SOFTWARE TESTING Date: 28/10/2022 Name: DHANUSH S

13
REFLECTION SHEET

S/N Problems Counter measures Status

1. Difficulty in deriving graph and Discussed with trainer and resolved


block diagram it

2. Difficulty in writing test cases Self-understood and resolved

Skill: SOFTWARE TESTING Date: 28/10/2022 Name: DHANUSH S

Status Legend :
Self-understood and resolved
Discussed with Trainer and resolved
Yet to discuss / find solution

14

You might also like