Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

[DevDay2019] Test like a robot - Test automation for beginners - By: Dang Thi Tu Anh, QA Engineer at mgm technology partners Vietnam

25 views

Published on

Imagine we are playing football and testers are the most important players in this game. They are like goalkeepers who catch the ball (bugs or failures) to protect the goal.

Then a hero appears to help, he works like a robot testing and retesting during day and night. We can build this robot with open source softwares. She will demonstrate how to build this robot with cucumber and selenium frameworks.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

[DevDay2019] Test like a robot - Test automation for beginners - By: Dang Thi Tu Anh, QA Engineer at mgm technology partners Vietnam

  1. 1. München Aachen Bamberg Berlin Boswil Đà Nẵng Dresden Grenoble Hamburg Köln Leipzig Nürnberg Prag Stuttgart Washington Zug Test like a robot - test automation for beginners Anh Dang Da Nang, 2019
  2. 2. 08.04.2019 2
  3. 3. 08.04.2019 3 Hello World! Anh Dang mgm technology partners vietnam
  4. 4. 08.04.2019 4 Agenda 1. Testing in Software Development Life Cycle 2. Why automated testing? 3. From Manual to Automated test cases 4. Build a robot 5. Intergate with Jenkins 6. Demo + Q&A
  5. 5. 08.04.2019 5 Lost money Ariane 5: 7 billion USD Kill people Therac-25 Minor • Discomfort using • Invisible effects
  6. 6. 08.04.2019 6 Testing in Software Development Life Cycle (SDLC)? SDLC
  7. 7. 08.04.2019 7 Manual testing
  8. 8. 08.04.2019 8 Why automated testing?
  9. 9. 08.04.2019 9 Why automated testing?
  10. 10. 08.04.2019 10 Test cases that are: very boring time-consuming repeatedly executed project depending Which test cases to automate?
  11. 11. 08.04.2019 11 Test cases that are: newly designed not executed manually at least once frequently changing No robot can look and feel Which test cases shouldn’t be automated?
  12. 12. 08.04.2019 12 How should a TC automate?
  13. 13. 08.04.2019 13 @Test public void login_test() throws Exception { driver.get("http://cafetownsend-angular-rails.herokuapp.com/login"); String userXpath = "//label[./span[text() = 'Username*']]/input"; String passXpath = "//label[./span[text() = 'Password*']]/input"; driver.findElement(By.xpath(userXpath)).clear(); driver.findElement(By.xpath(userXpath)).sendKeys("Luke"); driver.findElement(By.xpath(passXpath)).clear(); driver.findElement(By.xpath(passXpath)).sendKeys("Skywalker"); driver.findElement(By.tagName("button")).click(); Assert.assertThat("Log out button displayed", isDisplayed, is(equalTo(true)));} Normal automation test
  14. 14. 08.04.2019 14 Automation framework with open sources
  15. 15. 08.04.2019 15 Intergrate to Jenkins
  16. 16. 08.04.2019 16 Demo
  17. 17. 08.04.2019 17 Summary
  18. 18. 08.04.2019 18 650+ employees world wide Facebook: mgm technology partners Vietnam
  19. 19. 08.04.2019 19

×