Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.
München Aachen Bamberg Berlin Boswil Đà Nẵng Dresden Grenoble Hamburg Köln Leipzig Nürnberg Prag Stuttgart Washington Zug
...
08.04.2019 2
08.04.2019 3
Hello World!
Anh Dang
mgm technology partners
vietnam
08.04.2019 4
Agenda
1. Testing in Software Development Life Cycle
2. Why automated testing?
3. From Manual to Automated te...
08.04.2019 5
Lost money
Ariane 5: 7 billion USD
Kill people
Therac-25
Minor
• Discomfort using
• Invisible effects
08.04.2019 6
Testing in Software Development Life Cycle (SDLC)?
SDLC
08.04.2019 7
Manual testing
08.04.2019 8
Why automated testing?
08.04.2019 9
Why automated testing?
08.04.2019 10
Test cases that are:
very boring
time-consuming
repeatedly executed
project depending
Which test cases t...
08.04.2019 11
Test cases that are:
newly designed
not executed manually at least once
frequently changing
No robot can loo...
08.04.2019 12
How should a TC automate?
08.04.2019 13
@Test
public void login_test() throws Exception {
driver.get("http://cafetownsend-angular-rails.herokuapp.co...
08.04.2019 14
Automation framework with open sources
08.04.2019 15
Intergrate to Jenkins
08.04.2019 16
Demo
08.04.2019 17
Summary
08.04.2019 18
650+ employees world wide
Facebook: mgm technology partners Vietnam
08.04.2019 19
Nächste SlideShare
Wird geladen in …5
×

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

74 Aufrufe

Veröffentlicht am

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.

Veröffentlicht in: Technologie
  • Als Erste(r) kommentieren

  • Gehören Sie zu den Ersten, denen das gefällt!

[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

×