An Automated Approach for Acceptance Web Test Case Modeling and Executing XP,2010 102522064...
-
Upload
adele-malone -
Category
Documents
-
view
226 -
download
0
Transcript of An Automated Approach for Acceptance Web Test Case Modeling and Executing XP,2010 102522064...
An Automated Approach for Acceptance WebTest Case Modeling and Executing
XP ,2010102522064 蔡侑儒
Felipe M. Besson , Delano M. Beder , and Marcos L. ChaimSchool of Arts, Sciences and Humanities University of S˜ao Paulo
2
Outline
• Introduction
• Related Work
• The Approach
• Conclusions
3
Reason for reading this research ? Web applications
Become an essential part of many business strategies
Highly competitive environment Frequent changes Frequent customer’s feedbacksShort deadlines Highly customized Incremental deliverables
4
IntroductionAgile software development processes
Test-Driven Development (TDD) Drawback : tests are only written by the developer
Acceptance Test-Driven Development (ATDD)
Acceptance tests written by the customer
Understanding exactly what customers want
5
Related Work A Web Testing Model - by Qianet al
A web application is defined in a PFD (Page Flow Diagram)Then converted into a PTT (Page Test Tree)
6
Related Work Test case skeletons derived from tree paths
7
Related Work The ATTD current approaches and tools Difficult to use Need to learn new programming language Bad interface
8
The goal of this approach1. Graphical interface
2. Assist developers to automatically generate acceptance tests
3. Supply a communication interface between the customer and the development team
4. Automatically execute acceptance test cases
9
The Approach
10
Tools Suite Two tools are both open source
AcceptLink : Correspond to a web application developed in PHP and Java steps 1 to 5
AWTAF (Automated Web Test Application Framework) : Automate web functional tests execution using Selenium RC,
HttpUnit or HtmlUnit step 6
11
Ex. Book shop websitebooks are added
into the shopping cart
First purchase
?
Sign up
Sign inChoose the type
of payment
credit card
debitConfir
m
12
Step 1
13
Step 2 Each user story is mapped into a graph
Based on Qian’s work removes the existing
cycles generates a test tree
14
Steps 3 and 4 All the testing scenarios generated are displayed
the customer and developers discusses and validates
If the customer considers a particular scenario correct inform the inputs and expected results
If not steps 1, 2 and 3 have to be do again until the customer considers
it correct.
15
Step 5 Finally Testing scenarios are
converted into automated test scripts
16
Step 6 Then Use AWTAF tool to run the automated acceptance test case
modeled
17
Conclusions This paper described an approach to assist the ATDD use in web applications.
In comparison to current ATTD tools supporting customer-developement team communication test scenario selection using a summary graph
New features allowing to test AJAX features are under studyFurther experiments are planned
18
Q&A