Professional Documents
Culture Documents
Testing Challenges
? The web Browser has an ability to send
An Article: Going Faster-
Faster- information through a map of string to a web
server
Testing The Web Application ? The server deals with the requests by passing it off
to an engine running application code
? Test Client and server part
? Difficult to come up with testing framework for
testing both at once
1
Unit Test Example: Testing the Servlet
? Unit test, for a new piece, before coding ? For example: overloading service()
? Servlet subclass, or a whole hierarchy of different
? Positively affect overall code design
classes makes it difficult to test
? Code Reusability ? Test-first approach removes code that handles
? Loose coupling between classes request from the servlet itself and put it into its
own class
? Modified Service(): creating new object
(dispatcher) and handle the control to it.
? The dispatcher and each command object have
their own tests.
Acceptance Tests
? Allows product managers to express tests at the
scenario level Analysis and Testing of Web
? Testing tool that express operations in the system
and the expected results as XML. Applications
? EAI (Enterprise Application Integration) tool
configured to generate XML
? XML though workable, is awkward for a human
to write
? Evant Script Programming (ESP), which is more
compact and readable than XML
2
Analysis Model
Example: UML
3
Dynamic Validation (cont…) Dynamic Validation (cont…)
? White box testing criteria: ? Reduced Graph:
– Page testing
– Retain relevant entities
– Hyperlink testing
– Definition-use testing – Remove static pages not containing forms and
– All-use testing link all its predecessors to all its successors
– All-paths testing ? Effective way of generating test cases
? Def-use and All-paths criteria are often
impractical because of the infinite paths in a site
? But can be satisfied with additional constraints
Analysis Testing
4
ReWeb and TestWeb TestWeb
? Test case generation engine
? Determines path from model and generates
test cases
? Test cases are sequences of URLs
? Satisfying selected coverage criteria
? Input value supplied by user
Experiment
? ReWeb and TestWeb on Wordnet
(http://cogsci.princeton.edu/~wn/)
? Wordnet is a lexical reference system
? English nouns, verbs, adjective and adverb
are organized into synonym sets, each
representing one underlying lexical concept
? Different relation links the synonym sets
5
Test case Generation and
Execution Conclusion
? Feasible paths can be computed from path ? The technique and analysis proposed helps
expression e1e2e3(e4e5 + e6e7) in assessing the site quality
? Insert edge conditions (isNoun(word), etc) ? Allows a deep insight in the internal
? Select input to make each condition true functioning of the web applications
? Generate test cases ? Future work