简体   繁体   English

将Selenium Webdriver与Java-EE集成

[英]Integrate Selenium Webdriver with Java-EE

I wish to make make my Selenium Webdriver scripts user friendly. 我希望使Selenium Webdriver脚本易于使用。 Currently I'm creating my automation scripts using Selenium Webdriver with Test-NG framework. 目前,我正在使用带有Test-NG框架的Selenium Webdriver创建自动化脚本。 To Run the project I Run the xml file as Test-NG suite. 要运行项目,我将XML文件作为Test-NG套件运行。

I possess basic knowledge of Java-EE. 我具有Java-EE的基本知识。 Is there any way to integrate these two? 有什么办法可以整合这两个? Idea is to use Java-EE for running automation scripts and Test-NG framework for Test Reports. 想法是使用Java-EE运行自动化脚本,并使用Test-NG框架生成测试报告。

  1. Just create a web application using any of the web technology like Struts/Spring MVC/Angular 只需使用任何Web技术(例如Struts / Spring MVC / Angular)创建一个Web应用程序
  2. Using Maven add Selenium dependencies 使用Maven添加Selenium依赖项
  3. Start automating your tests 开始自动化测试
  4. Create some UI - And using Java/TestNG call your selenium keywords/test-cases - 'You can generate your testNG.xml at run time, based on UI inputs'. 创建一些UI-使用Java / TestNG调用您的硒关键字/测试用例-“您可以在运行时根据UI输入生成testNG.xml”。

Please let me know if you need any other details. 如果您需要其他详细信息,请告诉我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM