UI AUTOMATION        Magus Chenhttp://magustest.com/blog/ maguschen@gmail.com
Agenda● What is UI Automation● Common tools and framework● Selenium2/WebDriver● Continuous Integration● Data Driven● Keywo...
What is UI Automation● End to End functional test● Executed by program● Verify result by program● Report defect by program...
Common tools and framework●   Commercial    ○ HP QuickTest Pro    ○ IBM Rational Functional Tester●   Open Source    ○ Sel...
Selenium2/WebDriver● Two sophisticated browser automation frameworks are   merged   ○ http://seleniumhq.org/   ○ http://co...
Continuous Integration● What is CI● Glue in UI Automation● Parallel test execution
Data Driven● Test data + re-usable test logic   Test data:  Fields                     Data set 1       Data set 2  Title ...
Keyword Driven● Based on data driven● Separate the test script developer and test case designer  Object            Action ...
Page Object Pattern● Reuse test code and reduce duplication● Readable test code● Focus on "What to do" instead of "How to ...
The Future● Parallel● Run in the cloud● Example: http://saucelabs.com
Upcoming SlideShare
Loading in …5
×

Ui automation

1,355 views

Published on

automation,selenium,webdriver, testing

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,355
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
14
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Ui automation

  1. 1. UI AUTOMATION Magus Chenhttp://magustest.com/blog/ maguschen@gmail.com
  2. 2. Agenda● What is UI Automation● Common tools and framework● Selenium2/WebDriver● Continuous Integration● Data Driven● Keyword Driven● Page Object Pattern● The Future
  3. 3. What is UI Automation● End to End functional test● Executed by program● Verify result by program● Report defect by program● Logging for debug
  4. 4. Common tools and framework● Commercial ○ HP QuickTest Pro ○ IBM Rational Functional Tester● Open Source ○ Selenium/WebDriver ○ Watir ○ FitNesse ○ Sikuli
  5. 5. Selenium2/WebDriver● Two sophisticated browser automation frameworks are merged ○ http://seleniumhq.org/ ○ http://code.google.com/p/selenium/● Pros ○ APIs in popular languages ○ Multi-Browser and Multi-OS ○ Support many test frameworks ○ Support AJAX
  6. 6. Continuous Integration● What is CI● Glue in UI Automation● Parallel test execution
  7. 7. Data Driven● Test data + re-usable test logic Test data: Fields Data set 1 Data set 2 Title test title one long title Description simple desc unicode desc Test logic: ○ Navigate to target page ○ Fetch test data ○ Enter title and description ○ Submit form ○ Verify result
  8. 8. Keyword Driven● Based on data driven● Separate the test script developer and test case designer Object Action Data Comment signin_username input magus@email.com username signin_password input password signin_btn click page refresh page_title check Login successfully
  9. 9. Page Object Pattern● Reuse test code and reduce duplication● Readable test code● Focus on "What to do" instead of "How to do"● Expose method that represent an element that can be seen and can be operated on the page driver.findElement(By.id("user")).sendKeys("magus"); driver.findElement(By.id("pwd")).sendKeys("password"); driver.findElement(By.id("submit")).click() VS login_page.login("magus", "password")
  10. 10. The Future● Parallel● Run in the cloud● Example: http://saucelabs.com

×