Docsity

SEN 321 - Software Quality Assurance: Lab 02 - Manual Testing - White Box Testing, Assignments of Mathematics

Toggle sidebar
bg1
SEN 321– Software Quality Assurance
Semester: _SPRING 2023__________ Date of Experiment: _____________________
Student name: MUHAMMAD MUNEEB Faculty Signature: ______________________
Student ID: _10731________________ Remarks/Comments: ____________________
Lab02
Manual Testing – White Box testing
PLOs
PLO1 – Engineering Knowledge
C1 – Recall
PLO5 – Modern Tool Usage
C3 - Apply
PLO8 – Ethics
P2 – Set
LAB TASK PERFORMANCE
CLO’s
Aspects of Assessments
Excellent (75-
100%)
Poor
(<50%)
Marks
CLO1
10%
Recall Recall the associated
concepts form theory
regarding basic concepts of
White box testing.
Complete understanding of the
concepts of testing / actively
participate during lecture.
Student lacks clear understanding
of concepts of testing/ Unable to
read and interpret it.
CLO4
80%
Tools Utilization Apply and
discover different basic level
features of software testing
using Modern tools and
languages
Accurately create test cases
obtain the correct output as per
requirement/ given tasks.
Not able to create test cases as per
requirement/ given tasks. don’t
understand how required output
and task is achieved.
CLO7
10%
Lab Safety Properly handle
lab infrastructure/safety
precautions
Properly h andle lab equipment
& obey safety measures.
Minor or no safety measurements
has been considered.
Total Marks: 10
PAF
-
KARACHI INSTITUTE OF ECONOMICS & TECHNOLOGY
College
of
Engineering
(
Software Engineering
)
pf3
pf4
pf5
pf8

Partial preview of the text

Download SEN 321 - Software Quality Assurance: Lab 02 - Manual Testing - White Box Testing and more Assignments Mathematics in PDF only on Docsity!

SEN 321– Software Quality Assurance

Semester: _SPRING 2023__________ Date of Experiment: _____________________ Student name: MUHAMMAD MUNEEB Faculty Signature: ______________________ Student ID: _ 10731 ________________ Remarks/Comments: ____________________ Lab02 Manual Testing – White Box testing PLOs PLO1 – Engineering Knowledge Bloom’s Taxonomy C1 – Recall PLO5 – Modern Tool Usage C3 - Apply PLO8 – Ethics P2 – Set

LAB TASK PERFORMANCE

CLO’s Aspects of Assessments Excellent (75- 100%) Average (50- 75%) Poor (<50%) Marks CLO 10% Recall Recall the associated concepts form theory regarding basic concepts of White box testing. Complete understanding of the concepts of testing / actively participate during lecture. Complete understanding of the concepts of testing / less actively participate during lecture. Student lacks clear understanding of concepts of testing/ Unable to read and interpret it. CLO 80% Tools Utilization Apply and discover different basic level features of software testing using Modern tools and languages Accurately create test cases obtain the correct output as per requirement/ given tasks. create test cases but obtain slightly different output as per requirement/ given tasks. Not able to create test cases as per requirement/ given tasks. don’t understand how required output and task is achieved. CLO 10% Lab Safety Properly handle lab infrastructure/safety precautions Properly handle lab equipment & obey safety measures. Moderate level lab handling and safety measurements Minor or no safety measurements has been considered. Total Marks: 10

PAF- KARACHI INSTITUTE OF ECONOMICS & TECHNOLOGY

College of Engineering (Software Engineering)

Objective:

  1. Make attendee familiar with Manual Software testing techniques.
  2. Make attendee familiar with White Box testing technique.
  3. Make attendee learn basic test cases to perform White box testing. Manual Testing : Manual Testing is a type of software testing in which test cases are executed manually by a tester without using any automated tools. The purpose of Manual Testing is to identify the bugs, issues, and defects in the software application. Manual software testing is the most primitive technique of all testing types and it helps to find critical bugs in the software application. White Box Testing: White box testing refers to a scenario where (as opposed to black box testing), the tester deeply understands the inner workings of the system or system component being tested. Gaining a deep understanding of the system or component is possible when the tester understands these at program- or code-level. So almost all the time, the tester needs to either understand or have access to the source code that makes up the system – usually in the form of specification documents. By performing testing at the most granular level of the system, you are able to build a robust system that works exactly as expected and ensure it will not throw up any surprises whatsoever. The key principles that assist you in executing white box tests successfully are:
  • Statement Coverage – ensure every single line of code is tested.
  • Branch Coverage – ensure every branch (e.g., true or false) is tested.
  • Path Coverage – ensure all possible paths are tested. Branch

In the above diagram, control flow graph of code is depicted. In the first case traversing through "Yes "decision, the path is A1-B2-C4-D6-E8 , and the number of covered edges is 1, 2, 4, 5, 6 and 8 but edges 3 and 7 are not covered in this path. To cover these edges, we have to traverse through "No" decision. In the case of "No" decision the path is A1-B3- 5 - D7 , and the number of covered edges is 3 and 7. So by traveling through these two paths, all branches have covered.

Case Covered Branches Path Path coverage

Yes 1, 2, 4, 5, 6, 8 A1-B2-C4-D6-E8 1 No 3,7 A1-B3- 5 - D7 1 Total Path covered 2

Lab Task: Consider the below pseudocode perform white box testing and record every steps involved. INPUT A & B C = A + B IF C> PRINT “ITS DONE” END IF IF A> PRINT “ITS PENDING” END IF Home Task: Consider the below code perform white box testing and record all the steps involved. class Test { // Method factorial static int factorial( int n) { if (n ==0) return 1; return n * factorial(n - 1); } // Driver method public static void Main() { int num = 5; Console.WriteLine("Factorial of " + num + " is " + factorial(5)); } }

LABTASK:

STATEMENT COVERAGE:

If we consider TestCase_01 to be (A=60 and B=70), then all the lines of code will be executed.

BRANCH COVERAGE:

TestCase_01: A=33, B= TestCase_02: A=25, B=

HOMETASK:

STATEMENT COVERAGE:

If we consider TestCase_01 to be (n=5), then all the lines of code will be executed.

BRANCH COVERAGE:

TestCase_01: n= 5 TestCase_02: n= 0

PATH COVERAGE:

Case Covered Branches Path Path coverage

Yes 1, 3, 5 A 1 - B3-D5 1 NO 1,2.4 A1-B2-C4 1 Total Path covered 2