An Automated Approach for Acceptance Web Test Case Modeling and Executing XP,2010 102522064...

18
An Automated Approach for Acceptance Web Test Case Modeling and Executing XP ,2010 102522064 蔡蔡蔡 Felipe M. Besson , Delano M. Beder , and Marcos L. Chaim School of Arts, Sciences and Humanities University of S˜ao Paulo

Transcript of An Automated Approach for Acceptance Web Test Case Modeling and Executing XP,2010 102522064...

Page 1: An Automated Approach for Acceptance Web Test Case Modeling and Executing XP,2010 102522064 蔡侑儒 Felipe M. Besson, Delano M. Beder, and Marcos L. Chaim.

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

Page 2: An Automated Approach for Acceptance Web Test Case Modeling and Executing XP,2010 102522064 蔡侑儒 Felipe M. Besson, Delano M. Beder, and Marcos L. Chaim.

2

Outline

• Introduction

• Related Work

• The Approach

• Conclusions

Page 3: An Automated Approach for Acceptance Web Test Case Modeling and Executing XP,2010 102522064 蔡侑儒 Felipe M. Besson, Delano M. Beder, and Marcos L. Chaim.

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

Page 4: An Automated Approach for Acceptance Web Test Case Modeling and Executing XP,2010 102522064 蔡侑儒 Felipe M. Besson, Delano M. Beder, and Marcos L. Chaim.

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

Page 5: An Automated Approach for Acceptance Web Test Case Modeling and Executing XP,2010 102522064 蔡侑儒 Felipe M. Besson, Delano M. Beder, and Marcos L. Chaim.

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)

Page 6: An Automated Approach for Acceptance Web Test Case Modeling and Executing XP,2010 102522064 蔡侑儒 Felipe M. Besson, Delano M. Beder, and Marcos L. Chaim.

6

Related Work Test case skeletons derived from tree paths

Page 7: An Automated Approach for Acceptance Web Test Case Modeling and Executing XP,2010 102522064 蔡侑儒 Felipe M. Besson, Delano M. Beder, and Marcos L. Chaim.

7

Related Work The ATTD current approaches and tools Difficult to use Need to learn new programming language Bad interface

Page 8: An Automated Approach for Acceptance Web Test Case Modeling and Executing XP,2010 102522064 蔡侑儒 Felipe M. Besson, Delano M. Beder, and Marcos L. Chaim.

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

Page 9: An Automated Approach for Acceptance Web Test Case Modeling and Executing XP,2010 102522064 蔡侑儒 Felipe M. Besson, Delano M. Beder, and Marcos L. Chaim.

9

The Approach

Page 10: An Automated Approach for Acceptance Web Test Case Modeling and Executing XP,2010 102522064 蔡侑儒 Felipe M. Besson, Delano M. Beder, and Marcos L. Chaim.

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

Page 11: An Automated Approach for Acceptance Web Test Case Modeling and Executing XP,2010 102522064 蔡侑儒 Felipe M. Besson, Delano M. Beder, and Marcos L. Chaim.

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

Page 12: An Automated Approach for Acceptance Web Test Case Modeling and Executing XP,2010 102522064 蔡侑儒 Felipe M. Besson, Delano M. Beder, and Marcos L. Chaim.

12

Step 1

Page 13: An Automated Approach for Acceptance Web Test Case Modeling and Executing XP,2010 102522064 蔡侑儒 Felipe M. Besson, Delano M. Beder, and Marcos L. Chaim.

13

Step 2 Each user story is mapped into a graph

Based on Qian’s work removes the existing

cycles generates a test tree

Page 14: An Automated Approach for Acceptance Web Test Case Modeling and Executing XP,2010 102522064 蔡侑儒 Felipe M. Besson, Delano M. Beder, and Marcos L. Chaim.

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.

Page 15: An Automated Approach for Acceptance Web Test Case Modeling and Executing XP,2010 102522064 蔡侑儒 Felipe M. Besson, Delano M. Beder, and Marcos L. Chaim.

15

Step 5 Finally Testing scenarios are

converted into automated test scripts

Page 16: An Automated Approach for Acceptance Web Test Case Modeling and Executing XP,2010 102522064 蔡侑儒 Felipe M. Besson, Delano M. Beder, and Marcos L. Chaim.

16

Step 6 Then Use AWTAF tool to run the automated acceptance test case

modeled

Page 17: An Automated Approach for Acceptance Web Test Case Modeling and Executing XP,2010 102522064 蔡侑儒 Felipe M. Besson, Delano M. Beder, and Marcos L. Chaim.

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

Page 18: An Automated Approach for Acceptance Web Test Case Modeling and Executing XP,2010 102522064 蔡侑儒 Felipe M. Besson, Delano M. Beder, and Marcos L. Chaim.

18

Q&A