framework for web automation testing
DESCRIPTION
Framework for Web Automation Testing presentation shows you all the benefits of useage framework constructions in automation tests development for Web project. all the approaches are shown in images.TRANSCRIPT
![Page 1: Framework for Web Automation Testing](https://reader034.vdocument.in/reader034/viewer/2022052621/55850150d8b42aae2f8b4c4d/html5/thumbnails/1.jpg)
© 2012GlobalLogic Inc. 1
Taras LytvynTest Automation Framework
![Page 2: Framework for Web Automation Testing](https://reader034.vdocument.in/reader034/viewer/2022052621/55850150d8b42aae2f8b4c4d/html5/thumbnails/2.jpg)
© 2012GlobalLogic Inc. 2
Automation testing Frameworks overview
In this case, framework (test automation framework) - a proper organization of tests in the process of automated testing in terms of architecture test scripts building.
The automation framework is defined as a set of concrete “test objects”, and also ways of their relationships with additional functionality.
![Page 3: Framework for Web Automation Testing](https://reader034.vdocument.in/reader034/viewer/2022052621/55850150d8b42aae2f8b4c4d/html5/thumbnails/3.jpg)
© 2012GlobalLogic Inc. 3
COMPARISON Tool
![Page 4: Framework for Web Automation Testing](https://reader034.vdocument.in/reader034/viewer/2022052621/55850150d8b42aae2f8b4c4d/html5/thumbnails/4.jpg)
© 2012GlobalLogic Inc. 4
Tests without Framework Tests with Framework
![Page 5: Framework for Web Automation Testing](https://reader034.vdocument.in/reader034/viewer/2022052621/55850150d8b42aae2f8b4c4d/html5/thumbnails/5.jpg)
© 2012GlobalLogic Inc. 5
Examples:client – server STAX
![Page 6: Framework for Web Automation Testing](https://reader034.vdocument.in/reader034/viewer/2022052621/55850150d8b42aae2f8b4c4d/html5/thumbnails/6.jpg)
© 2012GlobalLogic Inc. 6
Examples: keyword-driven approach
![Page 7: Framework for Web Automation Testing](https://reader034.vdocument.in/reader034/viewer/2022052621/55850150d8b42aae2f8b4c4d/html5/thumbnails/7.jpg)
© 2012GlobalLogic Inc. 7
Examples:Web oriented
![Page 8: Framework for Web Automation Testing](https://reader034.vdocument.in/reader034/viewer/2022052621/55850150d8b42aae2f8b4c4d/html5/thumbnails/8.jpg)
© 2012GlobalLogic Inc. 8
• Test scripts code unification
• Convenient refactoring
• Easy to write new functionality (add new features), modification of existing features
WHY Frameworks?
![Page 9: Framework for Web Automation Testing](https://reader034.vdocument.in/reader034/viewer/2022052621/55850150d8b42aae2f8b4c4d/html5/thumbnails/9.jpg)
© 2012GlobalLogic Inc. 9
• Easy connection of additional modules or libraries and their usage
• Implementation of new automation tool (e.g. introduction of new versions of current tool that requires code changes)
![Page 10: Framework for Web Automation Testing](https://reader034.vdocument.in/reader034/viewer/2022052621/55850150d8b42aae2f8b4c4d/html5/thumbnails/10.jpg)
© 2012GlobalLogic Inc. 10
• Clarity and readability of code
• Cross functionality (e.g. cross-browser testing), adding testing support for running tests on additional devices (dependency feature)
![Page 11: Framework for Web Automation Testing](https://reader034.vdocument.in/reader034/viewer/2022052621/55850150d8b42aae2f8b4c4d/html5/thumbnails/11.jpg)
© 2012GlobalLogic Inc. 11
Why Structured design of automation code ?
EASY for test execution• Convenient tests launching (all tests, only separate
set of tests, etc.)
• Separation and division tests on suites
![Page 12: Framework for Web Automation Testing](https://reader034.vdocument.in/reader034/viewer/2022052621/55850150d8b42aae2f8b4c4d/html5/thumbnails/12.jpg)
© 2012GlobalLogic Inc. 12
Automation Framework for web:
![Page 13: Framework for Web Automation Testing](https://reader034.vdocument.in/reader034/viewer/2022052621/55850150d8b42aae2f8b4c4d/html5/thumbnails/13.jpg)
© 2012GlobalLogic Inc. 13
Realization example:
![Page 14: Framework for Web Automation Testing](https://reader034.vdocument.in/reader034/viewer/2022052621/55850150d8b42aae2f8b4c4d/html5/thumbnails/14.jpg)
© 2012GlobalLogic Inc. 14
Peasants in mind hierarchy
![Page 15: Framework for Web Automation Testing](https://reader034.vdocument.in/reader034/viewer/2022052621/55850150d8b42aae2f8b4c4d/html5/thumbnails/15.jpg)
© 2012GlobalLogic Inc. 15
Page Object Architecture
![Page 16: Framework for Web Automation Testing](https://reader034.vdocument.in/reader034/viewer/2022052621/55850150d8b42aae2f8b4c4d/html5/thumbnails/16.jpg)
© 2012GlobalLogic Inc. 16
![Page 17: Framework for Web Automation Testing](https://reader034.vdocument.in/reader034/viewer/2022052621/55850150d8b42aae2f8b4c4d/html5/thumbnails/17.jpg)
© 2012GlobalLogic Inc. 17
Extension Points• Page Loader Class• Classes with additional functionality (JS’s, Sikuli
methods, etc.)• Logger• …
![Page 18: Framework for Web Automation Testing](https://reader034.vdocument.in/reader034/viewer/2022052621/55850150d8b42aae2f8b4c4d/html5/thumbnails/18.jpg)
© 2012GlobalLogic Inc. 18
• Automation Framework is indispensable part of Automation Testing implementation
• Gives us:– mechanism to drive the application under test– executing the tests in needed order, with preferences– quick test fixing– reporting results
![Page 19: Framework for Web Automation Testing](https://reader034.vdocument.in/reader034/viewer/2022052621/55850150d8b42aae2f8b4c4d/html5/thumbnails/19.jpg)
© 2012GlobalLogic Inc. 19
< QUESTIONS ? >
![Page 20: Framework for Web Automation Testing](https://reader034.vdocument.in/reader034/viewer/2022052621/55850150d8b42aae2f8b4c4d/html5/thumbnails/20.jpg)
© 2012GlobalLogic Inc. 20
Taras Lytvynautomation QC in Global Logic inc.email : [email protected]: http://testers.lviv.ua/automation_blog