如何使用不同的包管理 Selenium 项目代码(如页面对象模型/关键字驱动程序框架) [英] How to manage Selenium Project Code using different package (Like page object model/Keyword driver framework)

查看:31
本文介绍了如何使用不同的包管理 Selenium 项目代码(如页面对象模型/关键字驱动程序框架)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为自动化的第一次用户,我正在寻找与自动化项目的组织和其他相关内容相关的帮助.任何人都可以与我分享示例项目以供明星使用.我可以编写脚本,但我无法在 Java 中管理代码.向我推荐任何网站的最佳方式.

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.

推荐答案

在使用 selenium webdriver 启动新的 Web/移动 UI 测试自动化时,您还需要选择提供常见黑盒测试需求的框架之一.即使您从可用的单元测试(白盒测试)框架开始,例如 junit/testng/jbehave/cucumber,也不足以进行黑盒测试.

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.

自动化框架提供驱动程序管理和其他自动化方面.您可以使用多种框架.众所周知的框架之一是 QMetry 自动化框架.

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.

首先,检查并参考 qaf-blank 项目 ant + ivy或 qaf-blank-project-maven 用于 maven.

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

这篇关于如何使用不同的包管理 Selenium 项目代码(如页面对象模型/关键字驱动程序框架)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆