170 likes | 449 Views
Automation of Software Test. Eunyoung Hwang. Agenda. What is software test automation? pros and cons Return on investment (ROI) Test automation tools Demo for Selenium IDE . Motivation!. 143,529,861 Links. Test Automation . To automate a manual process by using testing tool
E N D
Automation of Software Test EunyoungHwang
Agenda • What is software test automation? • pros and cons • Return on investment (ROI) • Test automation tools • Demo for Selenium IDE
Motivation! 143,529,861 Links
Test Automation • To automate a manual process by using testing tool • The use of software to control the execution of tests • The comparison of actual outcomes to predicted outcomes • The setting up of test preconditions, other test control , test reporting functions • Using the right tool for the project can reduce time and costs
Return on Investment gains costs By company, Keane
Return on Investment By company, Keane
Two General Approaches • Code-driven testing • Uses testing frameworks such as the xUnits (eg. Junit, PHPUnit) • Executes unit tests to verify that the program runs as expected • Key feature of Agile software development for Test-driven development • Graphical user interface testing • Allows users to interactively record and playback any number of times, comparing actual results to those expected • Pros - requires little or no software development on any GUI application • Cons - relabeling a button or moving it to another part of the window may require re-recording
Simple example in PHPUnit (1) Regular PHP code Simple Automated Testing Code
Simple example in PHPUnit (2) Testing array operations with PHPUnit
Selenium RC and PHPUnit Selenium RC is a test tool that allows you to write automated user-interface tests for web applications in any programming language Result if fails
Summary • Test automation • pros and cons • Return on investment (ROI) • Tools • PHPUnit • Selenium IDE
References • [1] http://www.opensourcetesting.org • [2] http://www.nickjenkins.net/prose/testingPrimer.pdf • [3] http://www.softwareqatest.com/qatweb1.html • [4] http://www.keane.com/resources%2Fpdf%2FWhitePapers%2FWP_ROIforTestAutomation.pdf • [5] JussiKasurinen, OssiTaipale, and Kari Smolander, “Software Test Automation in Practice: Empirical Observations,” Advances in Software Engineering, vol. 2010, Article ID 620836, 18 pages, 2010. doi:10.1155/2010/620836 • [6] http://www.csd.uwo.ca/courses/CS614b/DiLoreto1.pdf • [7] http://en.wikipedia.org/wiki/Test_automation
Return on Investment By company, Keane 3