基于硒的 tests/scripts 如何为 enterprise/project/application 执行?

How are the selenium based tests/scripts executed for a enterprise/project/application?

这听起来可能是一个非常基本的问题,selenium 脚本是如何为 enterprise/project/application 执行的? 脚本是在 java 中使用定位器等创建的,许多测试是 created.Tests 是通过 TestNG 构建的,我可以 运行 这些测试通过 IDE(对我来说是 eclipse)使用 运行 作为“TestNG 套件”。由于我正处于硒的学习阶段,我很好奇,如果这是唯一的方法或其他一些过程。 我想了解完整的 packaging/deployment/execution 脚本是如何与其他依赖项一起发生的,例如 TestNG 的附加库或 excel 实用程序等(使用 maven 或其他)。

我试过在网上搜索,但找不到此类内容,或者我搜索的方式不正确。

任何 enterprise/project/application 的

Selenium tests/scripts 都是在用于开发 测试框架 的组件的帮助下执行的。有许多 ToolsFrameworks 可用,它们可以集成以执行 Selenium 相关 测试。其中一些如下:

  • Tests 可以作为独立的 Java 程序或通过 TestNG[=29= 执行].您可以在
  • 中找到相关讨论
  • 你也可以整合Maven to execute the Tests. You can find a relevant discussion in How to start FireFoxDriver using Selenium 3.4.0 using Maven?
  • 你也可以整合Jenkins to execute the Tests. You can find a relevant discussion in
  • 你也可以整合Cucumber to execute the Tests. You can find a relevant discussion in Cucumber test not running