Web Apps Testing
Web Apps Testing
Meenakshi D’Souza
Overview
Web application
Web services
The issues for testing web applications can be divided into three
broad categories:
Testing static hyper text web sites.
Testing dynamic web applications.
Testing web services.
Web applications Testing static web sites Testing dynamic web applications
Categories
This is not program testing, but checking that all the HTML
connections are valid.
The main issue to test for is dead links, i.e., links to URLs
that are no longer valid.
We should also evaluate several non-functional parameters:
Load testing
Performance evaluation
Access control issues
Web applications Testing static web sites Testing dynamic web applications
Version to purchase:
1
0
1
0
Small Medium Large
Web applications Testing static web sites Testing dynamic web applications
User name
User name: Alan >Turing Age: 500 should be
plain text
Version to purchase:
only.
1
0
0
1
Age should
Small Medium Large
be between
18 and 110.
Web applications Testing static web sites Testing dynamic web applications
<FORM>
<INPUT Type=”text” Name=”username” Size=20>
<INPUT Type=”text” Name=”age” Size=3 Maxlength=3>
<P> Version to purchase:
Bypass testing
<FORM>
<INPUT Type=”text” Name=”username” Size=20>
<INPUT Type=”text” Name=”age” Size=3 Maxlength=3>
<P> Version to purchase:
Atomic sections
Component Expressions
ID = request.getParameter (“Id”);
passWord = request.getParameter (“Password”);
retry = request.getParameter (“Retry”);
PrintWriter out = response.getWriter();
P1 = out.println (“<HTML><HEAD><TITLE>”+title+
“</TITLE></HEAD><BODY>)”
if ((Validate (ID, passWord)) {
P2 = out.println (“<B> Grade Report </B>”);
for (int I=0; I < numberOfCourse; I++)
P3 = out.println(“<p><b>”+courseName(I)+“</b>”+ courseGrade(I)+“</p>”);
} else if (retry < 3) {
P4 = retry++;
out.println(“Wrong ID or wrong password”);
out.println(“<FORM Method=“get” Action=“gradeServlet”>);
out.println(“<INPUT Type=”text” Name=”Id” Size=10>”);
out.println(“<INPUT Type=”password” Name=”Password” Width=20>”);
out.println(“<INPUT Type=”hidden” Name=”Retry” Value=”+(retry)+“>”);
out.println(“<INPUT Type=”submit” Name=”Submit” Value=”submit”>”);
out.println(“<a href=”sendMail”>Send mail to the professor<A>”);
Web applications Testing static web sites Testing dynamic web applications
get() get()
login.html syllabus.html
get(Id, Password,retry)
get(Id, Password,retry)
gradeServlet
P1
P2
get()
P4 P5 sendMail
P3
P6
Web applications Testing static web sites Testing dynamic web applications
Some references