Professional Documents
Culture Documents
Testing Web-Based Application Web vs. Traditional Client-Server Systems
Testing Web-Based Application Web vs. Traditional Client-Server Systems
Testing Web-Based Application Web vs. Traditional Client-Server Systems
Traditional Client-
Testing Web-based Application Server Systems
• Client-side application
– GUI
– Compatibility
• Server-side application
Ye Wu – Control modeling
– Compatibility
http://www.ise.gmu.edu/~wuye
– Web-specific features
– Other issues, such as security and etc.
11/27/2001 © Ye Wu 1 11/27/2001 © Ye Wu 2
1
User Interface Implementation Testing Functional Tests
Capture/Replay tool • Unit testing
A capture replay tool is a set of software programs
that capture user inputs and stores it into a
format(script) suitable to be used at a later time to • Integration testing
replay the user inputs. – Black-box
– White-box
Pros: Easy, fast, efficient.
Cons: When the GUI changes, input sequences
previously recorded may no longer be valid.
11/27/2001 © Ye Wu 7 11/27/2001 © Ye Wu 8
11/27/2001 © Ye Wu 9 11/27/2001 © Ye Wu 10
2
p1 = PrintWriter out = response.getWriter();
out.println("<HTML>")
out.println("<Head><Title>" + title + "</Title></Head>)"
<HTML><HEAD><TITLE>Grade Query Page</TITLE></HEAD> out.println("<Body>")
<BODY> if(VALIDATE(ID,PASSWD))
<INPUT TYPE = "SUBMIT" NAME = SUBMIT VALUE=SUBMIT> out.println("<INPUT TYPE ="TEXT" NAME = "SUBJECT" SIZE = 50");
Functional Tests
S = { index.html }
• Atomic section coverage
C = { GRADE_SERVLET = p 1 · (p 2* | p 3) · p 4,
• Transition coverage
SEND_EMAIL = .... }
T = { S ==> GRADE_SERVLET,
GRADE_SERVLET.p3 ==> SEND_EMAIL,
• Testing stateless application
GRADE\_SERVLET .p3 ==> index.html } • Testing stateful application
Data-flow testing
11/27/2001 © Ye Wu 15 11/27/2001 © Ye Wu 16
11/27/2001 © Ye Wu 17 11/27/2001 © Ye Wu 18
3
S = Server response time
N = Network service time
Performance, load and stress tests B = Browser processing time
11/27/2001 © Ye Wu 21 11/27/2001 © Ye Wu 22
11/27/2001 © Ye Wu 23 11/27/2001 © Ye Wu 24
4
Configuration and Compatibility Configuration and Compatibility
Tests (1) Tests (2)
Server-side:
The objective of configuration and – Application servers
compatibility testing is to find errors in the – Web servers
application while it operate under the major – Databases servers
real-world user environments. – Firewall
– OS
– Hardware
– Concurrent applications
11/27/2001 © Ye Wu 25 11/27/2001 © Ye Wu 26
11/27/2001 © Ye Wu 27 11/27/2001 © Ye Wu 28
11/27/2001 © Ye Wu 29