How to manage Selenium Project Code using different package (Like page object model/Keyword driver framework)

我只是一个虾纸丫 提交于 2020-01-03 04:34:08

问题


Being first time user for automation I am looking for help related to organization of automation project and other related stuff. Can any one please share sample project with me to star with. I can able write script but I can not able manage code in java. Suggest me any best way any website.


回答1:


When starting new web/mobile UI test automation using selenium webdriver, you also need to choose one of the framework that provides common black-box testing needs. Even if you start with available unit testing (white-box testing)frameworks like junit/testng/jbehave/cucumber, it is not enough for black-box testing.

Automation framework provides driver management and other automation aspects. There are several frameworks available that you can use. One of the well known framework is QMetry Automation Framework.

To start with, Checkout and refer qaf-blank project for ant + ivy or qaf-blank-project-maven for maven.

If you are new to automation you should walk through step-by-step-tutorial

Resource and test data management is crucial for any test automation, this will managed in accordance to your framework. For example, You can have resources and test data in separate directory for each environment and configure to at the time of execution. refer resource management



来源:https://stackoverflow.com/questions/41340252/how-to-manage-selenium-project-code-using-different-package-like-page-object-mo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!