180 likes | 351 Views
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. Outline. Introduction Related Work The Approach
E N D
An Automated Approach for Acceptance WebTest Case Modeling and ExecutingXP ,2010102522064 蔡侑儒Felipe M. Besson , Delano M. Beder , and Marcos L. ChaimSchool of Arts, Sciences and Humanities University of S˜ao Paulo
Outline • Introduction • Related Work • The Approach • Conclusions
Reason for reading this research ? • Web applications Become an essential part of many business strategies • Highly competitive environment • Frequent changes • Frequent customer’s feedbacks • Short deadlines • Highly customized • Incremental deliverables
Introduction Agile 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
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)
Related Work • Test case skeletons • derived from tree paths
Related Work • The ATTD current approaches and tools • Difficult to use • Need to learn new programming language • Bad interface
The goal of this approach • Graphical interface • Assist developers to automatically generate acceptance tests • Supply a communication interface between the customer and the development team • Automatically execute acceptance test cases
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
Ex. Book shop website books are added into the shopping cart Sign in debit Choose the type of payment First purchase? Confirm credit card Sign up
Step 2 • Each user story is mapped into a graph • Based on Qian’s work • removes the existing cycles • generates a test tree
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.
Step 5 • Finally • Testing scenarios are converted into automated test scripts
Step 6 • Then • Use AWTAF tool to run the automated acceptance test case modeled
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 study Further experiments are planned