0% found this document useful (0 votes)
79 views

Software Testing Lab Manual 3

The document describes designing test cases using equivalence class partitioning for a program that classifies triangles based on side lengths. Equivalence classes are identified for valid and invalid input ranges as well as for the output types. Test cases are generated that cover each equivalence class.

Uploaded by

Arya Raju
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views

Software Testing Lab Manual 3

The document describes designing test cases using equivalence class partitioning for a program that classifies triangles based on side lengths. Equivalence classes are identified for valid and invalid input ranges as well as for the output types. Test cases are generated that cover each equivalence class.

Uploaded by

Arya Raju
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 50

Lab File

DEPARTMENT
OF
COMPUTER SCIENCE AND ENGINEERING

BACHELOR OF TECHNOLOGY
IN
COMPUTER SCIENCE AND ENGINEERING

Submitted To: Submitted By:


Dr. Arun Prakash Agrawal Tanvi Kapani

A2309216210

7CSE-3Y

2016-2020

AMITY SCHOOL OF ENGINEERING AND TECHNOLOGY

AMITY UNIVERSITY UTTAR PRADESH

1
INDEX

No. Category Code Name of Date of Date of Max Marks Sign.


Experiment Allotment of Evaluation obtaine
of experiment Marks d of
Assignment Faculty

1. Mandatory LR (10) Design test 1


Experiment cases using
Boundary
value analysis
by taking
quadratic
equation
problem

2. Design test 1
cases using
Equivalence
class
partitioning
taking triangle
problem
3. Design test 1
cases using
Decision table
taking triangle
problem
4. Design 1
independent
paths by
calculating
cyclometic
complexity
using date
problem

5. Design 1
independent
paths by taking
DD path using
date problem
6. Design the test 1
cases for login
page of
2
AMIZONE
7. 1

Manual
Testing for
PAN card
verification
8. Generate test 1
case for ATM
machine
9. Overview of 1
Testing process
using Rational
Robot
10. Write a script 1
to record
verification
point using
Rational Robot
(For GUI
testing of
single click on
window OS)
11. Write a script
to record
verification 1
point for Clip
Board and
alphanumeric
values using
Rational Robot
12. Write a script 1
to record
verification
point for
CASE
INSENSITIVE
values using
Rational Robot
13. Write a script 1
to record
verification
point for
RANGE
values using
3
Rational Robot
14. Write a script 1
to record
verification
point for
OBJECT
PROPERTIES
values using
Rational Robot

Experiment 1

4
AIM: Design test cases using Boundary value analysis by taking quadratic
equation problem

SOFTWARE REQUIRED: C++ language

THEORY:

Boundary Value Analysis is a test case design technique, if there is lot of input
textboxes and dropdown boxes then will use Boundary Value analysis technique to
simplify the test design. By using Boundary Value Analysis technique testers will
create test cases for the data input required fields. Partition system inputs and outputs
into’ equivalence sets’

EXAMPLE 1
– If input is a 5-digit integer between 10,000 and 99,999, equivalence partitions are<
10,000, 10,000 - 99, 999 and > 10, 000
• Choose test cases at the boundary of these sets
– 00000, 09999, 10000, 99999, 10001

EXAMPLE 2
Consider a program with two input variables x and y. These input variables have
specified boundaries as:
a≤x≤b
c≤y≤d

The boundary value analysis test cases for our program with two inputs variables (x
and y) that may have any value from 100 to 300 are: (200,100), (200,101), (200,200),
(200,299), (200,300), (100,200), (101,200), (299,200) and (300,200). This input
domain is shown in Figure. Each dot represents a test case and inner rectangle is the
domain of legitimate inputs. Thus, for a program of n variables, boundary value
analysis yield 4n + 1 test cases.

PROBLEM STATEMENT: Consider a program for the determination of nature


ofroots of a quadratic equation. Its input is a triple of positive integers, say a,b,c and
values may be from interval 0 to 100. The program output may have one of the
following words: Not a Quadratic Equation, Real roots, Imaginary roots and Equal
roots. Design the boundary value test cases.

PROGRAM
5
#include<stdio.h>
#include<iostream.h>
#include<conio.h>
#include<math.h>
#include
#include
void main( )
{
clrscr( );
int a,b,c,d;
2
cout<<"The quadratic equation is of the type a(x )+bx+c=0" <cout<<"Enter the
value of a:"<<end1;
cin>>a;
cout<<"Enter the value of
b:"<cin>>b; cout<<"Enter the value
of c: "<cin>>c; d = (b*b)-4*a*c;
if((a<0)||(b<0)||(c<0)||(a>100)||(b>100)||(c>100))
cout«"Invalid input"«end1;
elseif(a==0)
cout<<"Not a quadratic
equation"< elseif(d==0)
cout<<"Roots are
equal"< else if(d<0)
cout<<"Imaginary
roots"<<end1; else
cout<<"Real
roots"< getch();
}
</end1;
</end1;

Results: TEST CASES

In the above program, we consider the values as 0 (Minimum), 1 (Just above Minimum),
50 (Nominal), 99 (Just below Maximum) and 100 (Maximum)

Test a b c Expected Output Actual Output


Case ID

1 50 50 0 Real Roots Real Roots

2 50 50 1 Real Roots Real Roots

3 50 50 50 Imaginary Roots Imaginary Roots

4 50 50 99 Imaginary Roots Imaginary Roots

5 50 50 100 Imaginary Roots Imaginary Roots

6 50 0 50 Imaginary Roots Imaginary Roots

6
7 50 1 50 Imaginary Roots Imaginary Roots

8 50 99 50 Imaginary Roots Imaginary Roots

9 50 100 50 Equal Roots Equal Roots

10 0 50 50 Not a Quadratic Equation Not a Quadratic Equation

11 1 50 50 Real Roots Real Roots

12 99 50 50 Imaginary Roots Imaginary Roots

13 100 50 50 Imaginary Roots Imaginary Roots

7
8
Experiment 2
AIM: Design test cases using Equivalence class partitioning by taking triangle
problem

SOFTWARE REQUIRED: C language

THEORY: Equivalence Class Testing

In this method, input domain of a program is partitioned into a finite number of


equivalence classes such that one can reasonably assume, but not be absolutely sure,
that the test of a representative value of each class is equivalent to a test of any other
value.

Two steps are required to implementing this method:

1. The equivalence classes are identified by taking each input condition and
partitioning it into valid and invalid classes. For example, if an input
condition specifies a range of values from 1 to 999, we identify one valid
equivalence class [1<item<999]; and two invalid equivalence classes
[item<1] and [item>999].
2. Generate the test cases using the equivalence classes identified in the
previous step. This is performed by writing test cases covering all the valid
equivalence classes. Then a test case is written for each invalid equivalence
class so that no test contains more than one invalid class. This is to ensure
that no two invalid classes mask each other.

Figure: Equivalence partitioning

Most of the time, equivalence class testing defines classes of the input domain.
However, equivalence classes should also be defined for output domain. Hence,
we should design equivalence classes based on input and output domain.

Consider a program for the classification of a triangle. Its input is a triple of positive
integers (say a,b,c) from the interval [1,100]. The output may be [Scalene, Isosceles,
Equilateral, Not a triangle].

PROGRAM USED:

9
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int a,b,c;
clrscr();
printf("Enter first side");
scanf("%d",&a);
printf("Enter second
side"); scanf("%d",&b);
printf("Enter third side");
scanf("%d",&c);
if((a+b)<c)

{
printf("It is not a triangle");
}
else if((a==b)&&(b==c)&&(c==a))
{
printf("It is an equilateral triangle");
}
else if((a==b)||(b==c)||(c==a))
{
printf("It is an isoscales triangle");
}
else if ((a!=b)&&(b!=c)&&(c!=a))
{
printf("It is an scales triangle");
}
getch();
}

TEST CASES:

Output domain equivalence class test cases can be identified as follows:

O1={<a,b,c>:Not a triangle with sides x,y,z}

O2={<a,b,c>:Equilateral triangle with sides x,y,z}

O3={<a,b,c>:Isosceles triangle with sides x,y,z }

O4={<a,b,c>:Scalene triangle with sides x,y,z}

10
S.NO. a b c Expected Error
Output Refining
1. 50 100 50 Not a
Triangle
2. 100 99 50 Scalene
Triangle
3. 50 50 99 Isosceles
Triangle
4. 50 50 50 Equilateral
Triangle

Input domain equivalence class test cases can be identified as follows:

I1= {x: x<1}

I2= {x: 1<=x<=100}

I3= {x: x>100}

I4= {y: y<1}

I5= {y: 1<=y<=100}

I6= {y: y>100}

I7= {z: z<1}

I8= {z: 1<=z<=100}

I9= {z: z>100}

I10= {<x,y,z>: x=y=z}

I11= {<x,y,z>: x!=y, y!=z, x!=z}

I12= {<x,y,z>: x=y, x!=z}

I13= {<x,y,z>: x=z, x!=y}

I14= {<x,y,z>: y=z, y!=x}

I15= {<x,y,z>: x=y+z}

I16= {<x,y,z>: x>y+z}

I17= {<x,y,z>: y=x+z}

11
I18= {<x,y,z>: y>x+z}

I19= {<x,y,z>: z=x+y}

I20= {<x,y,z>: z>x+y}

S.NO. a b c Expected Error


Output Refining
1. 0 50 50 Invalid Input
2. 50 50 50 Equilateral
Triangle
3. 101 50 50 Invalid Input
4. 50 0 50 Invalid Input
5. 50 50 50 Equilateral
Triangle
6. 50 101 50 Invalid Input
7. 50 50 0 Invalid Input
8. 50 50 50 Equilateral
Triangle
9. 50 50 101 Invalid Input
10. 60 60 60 Equilateral
Triangle
11. 40 50 30 Scalene
12. 50 50 60 Isosceles
13. 50 40 50 Isosceles
14. 60 50 50 Isosceles
15. 100 50 50 Not a Triangle
16. 30 20 10 Not a Triangle
17. 50 100 50 Not a Triangle
18. 25 100 25 Not a Triangle
19. 50 50 100 Not a Triangle
20. 10 10 30 Not a Triangle

TEST RESULTS
We have performed 4 test cases to perform Output Domain Equivalence Class
Testing while there are 20 test cases to perform Input Domain Equivalence Class
Testing of A triangle problem which has resulted into above expected outputs.
.

12
Experiment 3

AIM: Design test cases using Decision table by taking triangle problem

SOFTWARE REQUIRED: C language

THEORY: Decision Table based Testing

In case of Decision Based Table method a set of conditions are defined and based on
them the corresponding actions are performed. Based on n inputs i.e. conditionsthere
n
are 2 possible actions.

Consider a program for the determination of type of triangle. Its input is a triple of
positive integers (say a,b,c) from the interval [1,100]. The output may be Scalene or
Isosceles or Equilateral or Not a triangle.

PROGRAM USED:

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int a,b,c;
clrscr();
printf("Enter first side");
scanf("%d",&a);
printf("Enter second side");
scanf("%d",&b);
printf("Enter third side");
scanf("%d",&c);
if(((a+b)<c)||((a+c)<b)||((b+c)<a)))
printf("Not a triangle");

else if((a==b)&&(b==c)&&(c==a))

printf("Equilateral triangle");

else if((a==b)||(b==c)||(c==a))

printf(“ Isosceles triangle");

else if ((a!=b)&&(b!=c)&&(c!=a))

printf("Scales triangle");

getch();
}

13
DECISION TABLE
Actions :
a1= Not a Triangle
a2= Scalene Triangle
a3= Isosceles Triangle
a4= Equilateral Triangle
a5= Impossible

C1: a,b,c are sides of


triangle? N Y
C2: a=b?
C3: a=c? -- Y N
C4: b=c? -- Y N Y N
-- Y N Y N Y N Y N
a1: Not a Triangle X

a2:Scalene Triangle X

a3:IsoscelesTriangle X X X

a:Equilateral Triangle X

X X X
a5: Impossible
Decision Table

C1: a<b+c? F T T T T T T T T T T
C2: b<a+c? - F T T T T T T T T T
C3: c<a+b? - - F T T T T T T T T
C4: a=b? - - - T T F F F T T F
C5: a=c? - - - T F T F T F T F
C6: b=c? - - - F T T T F F T F
a1= Not a Triangle X X X
a2:Scalene Triangle X
a3:Isosceles Triangle X X X
a4:EquilateralTriangle X
a5: Impossible X X X
Elaborated Decision Table

TEST CASES

S.NO. a b c Expected Error


Output Refining
1. 4 1 2 Not a Triangle
2. 1 4 2 Not a Triangle
3. 1 2 4 Not a Triangle

4. 20(a=b) 20(b!=c) 20(a=c) Impossible


14
5. 50(a=b) 50(b=c) 50(a!=c) Impossible
6. 50(a!=b) 50(b=c) 50(a=c) Impossible
7. 70 50 50 Isosceles
8. 50 70 50 Isosceles
9. 50 50 70 Isosceles
10. 30 30 30 Equilateral
11. 40 50 60 Scalene

TEST RESULTS: Various conditions are taken into account and respective
actionsbased on them are identified, thus generating the required test cases for the
problem statement.

15
Experiment 4

AIM: Design independent paths by calculating cyclometic complexity using


date problem

SOFTWARE REQUIRED : C

THEORY : Cyclometric complexity gives the maximum number of


independentpaths in a program
McCabe’s cyclomatic metric V(G) =e–n+ 2P.
Where, e: Number of edges
n : Number of nodes
P : Number of connected Components

Two alternate methods are available for the complexity calculations.


1. Cyclomatic complexity V(G) of a flow graph G is equal to the number of
predicate (decision) nodes plus one.
V(G)= π +1
where π is the number of predicate nodes contained in the flow graph
G.
2. Cyclomatic complexity is equal to the number of regions of the flow graph.

PROBLEM STATEMENT : Given the present date in the form of a triplet of


Day,Month and Year. To check whether the date is valid or invalid. If valid then
output is the previous date.

PROGRAM

# include<iostream.h>
# include<conio.h>
1. void main()
2. {
3. clrscr();
4. int day,month,year,flag=0;
5. int prev_day,prev_month,prev_year;
6. cout<<"enter the date(dd/mm/yyyy):";
7. cout<<"\n enter the day:";
8. cin>>day;
9. cout<<"\n enter the month:";
10. cin>>month;
11. cout<<"\n enter the year:";
12. cin>>year;
13. if((day>=1 && day<=31)&&(month==1 || month==3||month==5||month==7||
month==8|| month==10||month==12)&& (year>=1))
14. {
15. cout<<"the date entered is valid:"<<day<<"/"<<month<<"/"<<year;
16. flag=1;
17. }

16
18. else if((day>=1 && day<=30)&&(month==4 || month==6||month==9||
month==11)&& (year>=1))
19. {
20. cout<<"the date entered is valid:"<<day<<"/"<<month<<"/"<<year;
21. flag=1;
22. }
23. else if((day>=1 && day<=29) && (month==2) && (year>=1) && ((year
%100==0 && year%400==0)||(year%100!=0 && year%4==0)))
24. {
25. cout<<"the date entered is valid:"<<day<<"/"<<month<<"/"<<year;
26. flag=1;
27. }
28. else if((day>=1 && day<=28) && (month==2) &&(year>=1))
29. {
30. cout<<"the date entered is valid:"<<day<<"/"<<month<<"/"<<year;
31. flag=1;
32. }
33. else
34. {
35. cout<<"\n The date is invalid";
36. }
/*calculating previous date*/
37. if(flag==1)
38. {
39. if(day>=2)
40. {
41. prev_day=--day;
42. cout<<"\nThe previous date is:"<<prev_day<<"/"<<month<<"/"<<year;
43. }
44. else if(day==1)
45. {
46. if(month==1)
47. {
48. prev_day=31;
49. prev_month=12;
50. prev_year=--year;
51. cout<<"\nThe previous date
is:"<<prev_day<<"/"<<prev_month<<"/"<<prev_year;
52. }
53. if(month==5||month==7||month==10||month==12)
54. {
55. prev_day=30;
56. prev_month=--month;
57. cout<<"\nThe previous date is:"<<prev_day<<"/"<<prev_month<<"/"<<year;
58. }
59. else if(month==2||month==4||month==6||month==8||month==9||
month==11)
60. {
61. prev_day=31;
62. prev_month=--month;
63. cout<<"\nThe previous date is:"<<prev_day<<"/"<<prev_month<<"/"<<year;

17
64. }
65. else if(month==3)
66. {
67. if((year %100==0 && year%400==0)||(year%100!=0 && year%4==0))
68. {
69. prev_day=29;
70. prev_month=--month;
71. cout<<"\nThe previous date
is:"<<prev_day<<"/"<<prev_month<<"/"<<year;
72. }
73. else
74. {
75. prev_day=28;
76. prev_month=--month;
77. cout<<"\nThe previous date
is:"<<prev_day<<"/"<<prev_month<<"/"<<year;
78. }
79. }
80. }
81. }
82. getch();
83. }

Conclusion: With the help of flow graph, Number of Independent path will be
calculated

18
Experiment 5

AIM: Design independent paths by taking DD path using date problem

SOFTWARE REQUIRED : C

THEORY : DD path Graph is the reduced form of the original graph of a program.
Itis created in order to provide simplicity in case of programs which have a large
number of Line Of Code(LOC). It is done by merging the linear continuous set of
instructions by a single node, keeping the decision nodes as it is. Thus reducing the
size of the original graph.

PROBLEM STATEMENT : Given the present date in the form of a triplet of


Day,Month and Year. To check whether the date is valid or invalid. If valid then
output is the previous date.

PROGRAM

# include<iostream.h>
# include<conio.h>
1. void main()
2. {
3. clrscr();
4. int day,month,year,flag=0;
5. int prev_day,prev_month,prev_year;
6. cout<<"enter the date(dd/mm/yyyy):";
7. cout<<"\n enter the day:";
8. cin>>day;
9. cout<<"\n enter the month:";
10. cin>>month;
11. cout<<"\n enter the year:";
12. cin>>year;
13. if((day>=1 && day<=31)&&(month==1 || month==3||month==5||month==7||
month==8|| month==10||month==12)&& (year>=1))
14. {
15. cout<<"the date entered is valid:"<<day<<"/"<<month<<"/"<<year;
16. flag=1;
17. }
18. else if((day>=1 && day<=30)&&(month==4 || month==6||month==9||
month==11)&& (year>=1))
19. {
20. cout<<"the date entered is valid:"<<day<<"/"<<month<<"/"<<year;
21. flag=1;
22. }
23. else if((day>=1 && day<=29) && (month==2) && (year>=1) && ((year
%100==0 && year%400==0)||(year%100!=0 && year%4==0)))
24. {
19
25. cout<<"the date entered is valid:"<<day<<"/"<<month<<"/"<<year;
26. flag=1;
27. }
28. else if((day>=1 && day<=28) && (month==2) &&(year>=1))
29. {
30. cout<<"the date entered is valid:"<<day<<"/"<<month<<"/"<<year;
31. flag=1;
32. }
33. else
34. {
35. cout<<"\n The date is invalid";
36. }
/*calculating previous date*/
37. if(flag==1)
38. {
39. if(day>=2)
40. {
41. prev_day=--day;
42. cout<<"\nThe previous date is:"<<prev_day<<"/"<<month<<"/"<<year;
43. }
44. else if(day==1)
45. {
46. if(month==1)
47. {
48. prev_day=31;
49. prev_month=12;
50. prev_year=--year;
51. cout<<"\nThe previous date
is:"<<prev_day<<"/"<<prev_month<<"/"<<prev_year;
52. }
53. if(month==5||month==7||month==10||month==12)
54. {
55. prev_day=30;
56. prev_month=--month;
57. cout<<"\nThe previous date is:"<<prev_day<<"/"<<prev_month<<"/"<<year;
58. }
59. else if(month==2||month==4||month==6||month==8||month==9||
month==11)
60. {
61. prev_day=31;
62. prev_month=--month;
63. cout<<"\nThe previous date is:"<<prev_day<<"/"<<prev_month<<"/"<<year;
64. }
65. else if(month==3)
66. {
67. if((year %100==0 && year%400==0)||(year%100!=0 && year%4==0))
68. {
69. prev_day=29;
70. prev_month=--month;
71. cout<<"\nThe previous date
is:"<<prev_day<<"/"<<prev_month<<"/"<<year;
20
72. }
73. else
74. {
75. prev_day=28;
76. prev_month=--month;
77. cout<<"\nThe previous date
is:"<<prev_day<<"/"<<prev_month<<"/"<<year;
78. }
79. }
80. }
81. }
82. getch();
83. }

Conclusion: With the help of DD path graph, Number of Independent path will be
calculated

21
Experiment 6

Objective:Design the test cases for login page of AMIZONE


Software used:Manual testing
Procedure:

HOME PAGE:
test URL : https://www.amizone.net
Preconditions: Open Web browser and enter the given url in the address bar. Home
page must be displayed. All test cases must be executed from this page.

Observations/ discussions/ output:

Test Test test case test steps test test test defect
case id case desc Step expected actual case status prority severity
name status (P/F)
Login01 Validate To verify enter login an error design high
Login that Login name less message
name on than 3 chars “Login
login page (say a) and not less
must be password than 3
greater and click character
than 3 Submit s” must
characters button be
displayed
enter login an error design high
name less message
than 3 chars “Login
(say ab) and not less
password than 3
and click character
Submit s” must
button be
displayed
enter login Login design high
name 3 success
chars (say full or an
abc) and error
password message
and click “Invalid
Submit Login or
button Passwor
d” must
be
displayed
Login02 Validate To verify enter login an error design high
Login that Login name message
name on greater than “Login
login page 10 chars not
should not (say greater
be greater abcdefghijk) than 10
than 10 and character
characters password s” must
22
and click be
Submit displayed
button

enter login Login design high


name less success
than 10 full or an
chars (say error
abcdef) and message
password “Invalid
and click Login or
Submit Passwor
button d” must
be
displayed
Login03 Validate To verify enter login an error design high
Login that Login name message
name on starting with “Special
login page specail chars not
does not chars allowed
take (!hello) in login”
special password must be
characters and click displayed
Submit
button
enter login an error design high
name ending message
with specail “Special
chars chars not
(hello$) allowed
password in login”
and click must be
Submit displayed
button
enter login an error design high
name with message
specail “Special
chars in chars not
middle(he&^ allowed
llo) in login”
password must be
and click displayed
Submit
button
Pwd01 Validate To verify enter an error design high
Passwor that Password message
d Password less than 6 “Passwor
on login chars (say a) d not less
page must and Login than 6
be greater Name and character
than 6 click Submit s” must
characters button be
displayed
enter Login design high

23
Password 6 success
chars (say full or an
abcdef) and error
Login Name message
and click “Invalid
Submit Login or
button Passwor
d” must
be
displayed
Pwd02 Validate To verify enter an error design high
Passwor that Password message
d Password greater than “Passwor
on login 10 chars d not
page must (say a) and greater
be less Login Name than 10
than 10 and click character
characters Submit s” must
button be
displayed
enter Login design high
Password success
less than 10 full or an
chars (say error
abcdefghi) message
and Login “Invalid
Name and Login or
click Submit Passwor
button d” must
be
displayed
Pwd03 Validate To verify enter Login design high
Passwor that Password success
d Password with special full or an
on login characters(s error
page must ay !@hi&*P) message
be allow Login Name “Invalid
special and click Login or
characters Submit Passwor
button d” must
be
displayed
Llnk01 Verify To Verify Click Home Home design low
Hyperlin the Hyper Link Page
ks Links must be
available at displayed
left side on Click Sign Sign Up design low
login page Up Link page
working or must be
not displayed
Click New New design low
Users Link Users
Registrati
on Form
must be
displayed
24
Click Page with design low
Advertise Informati
Link on and
Tariff
Plan for
Advertise
rs must
be
displayed
Click Contact design low
Contact Us Informati
Link on page
must be
displayed
Click Terms Terms Of design low
Link the
service
page
must be
displayed
Flnk01 Verify To Verify Click Home Home design low
Hyper the Hyper Link Page
links Links must be
displayed displayed
at Footer Click Sign Contact design low
on login Up Link Informati
page on page
working or must be
not displayed
Click Page with design low
Contact Us Informati
Link on and
Tariff
Plan for
Advertise
rs must
be
displayed
Click Terms Of design low
Advertise the
Link service
page
must be
displayed
Click Terms Privacy design low
Of Policy
Membership page
Link must be
displayed
Click Privacy design low
Privacy Policy
Policy Link page
must be
displayed
Lblnk01 Verify To Verify Click NEW New design low
Hyper the Hyper USERS Link Users
25
links Links located in Registrati
displayed login box on Form
at Login must be
Box on displayed
login page Click New New design low
working or Users(Blue Users
not Color) Link Registrati
located in on Form
login box must be
displayed
Click Forget Passwor design mediu
Password d m
Link located Retrieval
in login box Page
must be
displayed

Conclusions:

Test cases have been formulated.

26
Experiment 7

Objective:Manual testing for PAN card verification


Software used:Manual Testing
Procedure:A PAN card number is taken as an input and checked for errors.

Observations/ discussions/ output:

Test Expected
Case Name Description Steps Result Priority

Verify if all are


1 1st 5 characters alphabets in capital i) Characters are numerical Invalid! Medium

ii) Characters are


alphanumeric Invalid!

iii) Special characters


entered (including space) Invalid!
iv) All alphabets (small) Invalid!
v) All alphabets (capital) Valid! High

Verify if next 4
characters are
2 Next 4 characters numerals i) Characters are alphabets Invalid! Medium

ii) Characters are


alphanumeric Invalid!

iii) Special characters


entered (including space) Invalid!
iv) All numerals Valid! High

Verify there is only


one more capital
3 Last character alphabet i) Numeral Invalid! High
ii) Alphabet (small) Invalid!
iii) Alphabet (more than 1) Invalid!
iv) No character Invalid!
v) Alphabet (capital) Valid!

Conclusions:

Test cases have been formulated and PAN card number has been checked.

27
Experiment 8

Objective: Generate test case for ATM machine


Software used:Manual testing
Procedure:An ATM card is swapped and checked for errors.

Observations/ discussions/ output:

Test Case Name Description Expected Result Priority


1) Card swapping a) Card rejected 1) Withdraw card/ invalid card 1) Low
b) Card accepted 2) Enter your PIN 2) High
2) Enter PIN a) Invalid PIN 1) a) Try again 1) Low

b) After 3 attempts, card gets


blocked
b) Valid PIN 2) Banking options 2) High
3) Balance enquiry a) Saving account 1) Min Rs.10,000/- 1) High
b) Current account 2) Min Rs. 1000/- 2) High
4) Cash withdrawl a) Enter amount 1) a) Cash not available 1) Low
b)Cash available

2) a) Enter amount in multiple of


b) Incorrect amount 100's. 2) a) High
b) Try again b) Low
5) Statement receipt a) Mini statement 1) Listing 1) High
b) Want a receipt 2) a) Yes 2) a) High
b) No b) Low

6) PIN change a) Enter current PIN 1) a) Invalid 1) a) Low


b) Valid b) High
b) If valid 2) Entet new PIN 2) High

Continue
7) transaction a) Yes 1) Enter the options 1) High
b) No 2) Exit 2) High

Conclusions:

Test cases have been formulated and ATM card has been tested.

Experiment 9

28
AIM: Overview of Testing process using Rational Robot

Steps required to work on Rational Robot

Step 1: Click on Start -> Rational Software -> Rational Administrator

Step 2: On Admin Window right click on Project and enter Project name
andLocation

29
Step 3: Keep Password Blank and click on next->finish

Step 4: On a new Configuration Project Window under Test Assets click on Create

30
Step 5: Select the Microsoft Access as the Database and click on next -> finish

31
Step 6: In the Rational Administrator window click on Rational Robot Icon that
th
is10 from right

Step 7: After giving the name a GUI Record Window is displayed as follows

32
Step 8: You may now perform any function on the operating system and this
GUIwill record each and every event that occurs

Step 9: Stop the recording and click on third icon named Specify Log
Informationand make build file giving your testing name and a new window will
open containing log information specifying whether it is pass or fail

33
Conclusion: We understood all the steps needed to work on Rational Robot

34
Experiment 10

AIM: Write a script to record verification point using Rational Robot (For GUI
testing of single click on window OS)

Steps:

1.) File>New>Script.
2.) Name : Login1
Description=Log in to the Classics Online
Application 3. ) Press Ok
4.) In Rational robot main Window
Place cursor at the beginning of blank line after start application
command 5.) Record>Insert at cursor
6.) On GUI Record toolbar click Display GUI Insert
Toolbar 7.) click write to Log
Message=Verify the initial state of classics online application
Description=The next VP will verify initial state of classics
Online. Result option=None
Ok
8.)On GUI Record Toolbar click display GUI Insert
Toolbar Click windows Existence
Name=Login1
Ok
Click Select
Drag Object Finder pointer to Classics Login Dialog Box and release the
mouse Ok
Ok
9.)In classics Login dialog box,click ok
10.)On GUI Record toolbar , click Stop Recording
button. 11.)Exit Classics Online.
12.)Playback the script file>Playback(Select Login1>ok,Accept default log
info.) 13.) Look at the results.

1. we can do testing with our manual script file script1. click on insert-verification
point- 13 options are available like Alphanumeric, Object, Menu, Object
properties etc.

35
14. if we want to test object properties, select it

Click ok.

36
Object finder tool will available. Click on tool (hand icon) and drag on the object or
button where you want to test the properties of classic online script file.

Suppose I leave it on order it button. Click ok. Then its properties will detect.

37
All properties are identified and display.

We can do modifications in the properties. After that click ok. It will come to
normal windoe.

38
Now we have to run both of the script file. Click on playback script icon, that is
displayed on standard toolbar.

A playback window will open. Where we have to choose our script1 file.

39
Click ok

Click ok

40
12 result will display

Result as test pass or fail will be displayed.

41
42
Experiment 11

AIM: Write a script to record verification point for Clip Board and
alphanumeric values using Rational Robot

Testing the CLIPBOARD option

Testing the ALPHANUMERIC option

43
44
Experiment 12

AIM: Write a script to record verification point for CASE INSENSITIVE


values using Rational Robot

Testing the CASE INSENSITIVE option

45
46
Experiment 13

AIM: Write a script to record verification point for RANGE values using
Rational Robot

Testing the RANGE option

47
48
Conclusion: We checked the script and got the results in terms of pass/fail.

49
Experiment 14

AIM: Write a script to record verification point for OBJECT PROPERTIES


values using Rational Robot

Testing the OBJECT PROPERTIES option

Conclusion: We checked the script and got the results in terms of pass/fail.

50

You might also like