The fast and the continuous

  • Upload
    sqalab

  • View
    1.994

  • Download
    1

Embed Size (px)

DESCRIPTION

Презентация Андрея Солнцева на SQA Days-16 14-15 ноября 2014, Санкт-Петербург, Россия www.sqadays.com

Citation preview

  • 1. UI-!

2. The fast andthe continuousAndrei Solntsev 3. 5 , 4. 1 5. ! 1 6. PageObjects 2 7. TestNG, JUnit 3 8. SSL ? 4 9. StaleElementException? 5 10. : 11. -!J. B. Rainsberger 12. Integration tests are SCAMhttp://devconfu.eu/video/239 J. B. Rainsberger 13. - 14. - 15. - 16. - 17. - ! 18. ? 19. ! 20. ! ! 21. !UI- - UI- 22. ! - UI- 23. - 24. - - 25. - - 26. -, . , -! 27. - - 28. - - ! 29. UI-? ! 30. Rocket science: 100 / 150 ? 31. Rocket science 32. WebDriver 33. 34. 35. ! LoginTest - 1 - 2 - 3 36. ! NewOrderTest - 1 - 2/fastLogin?user=bob&url=/orders/new 37. ? ! /fastLogin?user=bob&url=/orders/new 38. 39. In-memory H2, Sqlite- Jetty- Play! 40. @BeforeClasspublic static void startServer() {Server server = new Server(8080);WebAppContext shop =new WebAppContext("webapp","/shop");server.setHandlers(shop);http://habrahabr.ru/post/126066/server.start();} 41. ! @Testpublic void loginTest() {open(http://localhost:8080/shop);} 42. In-memory DBdb.url=jdbc:oracle:thin:@ip:1521:SIDdb.driver=oracle.jdbc.OracleDriver%test.db.url=jdbc:h2:mem:shop%test.db.driver=org.h2.Driver : 43. 5 , 44. 45. 300 4 !In-memory DB fastLogin 46. : https://vimeo.com/73128965 47. PageObjects 50 ! 48. TestNG vs JUnit ! - fastLogin UI- 1-2 100500 - -http://xpdays.com.ua/materials/junit-vs-testng/ 49. SSL https://test.firma.ru QA 50. SSL http://localhost:8080 QAhttp://localhost:8080 51. SSL ! http://localhost:8080 GIT> ant unit-tests> ant ui-tests 52. StaleElementException? ! 53. ru.selenide.orgStaleElementExceptionWebDriverWait.presenceOfElementLocatedImplicit timeout 54. ! - -! 55. :https://dl.dropboxusercontent.com/u/2856647/aikido.mp4 , 100500 , , 56. [email protected]/asolntsevselenide.org