简体   繁体   English

在同一个中央项目文件夹上运行带有多台计算机的 selenium webdriver IntelliJ/Java/JUnit

[英]Run selenium webdriver IntelliJ/Java/JUnit w/multiple computers on same central project folder

I would like to have laptops and vm's creating, maintaining and running selenium tests all from the same common IntelliJ Project folder on a network shared drive.我想让笔记本电脑和虚拟机从网络共享驱动器上的同一个通用 IntelliJ 项目文件夹中创建、维护和运行 selenium 测试。

Is it possible to setup a centralized project folder for IntelliJ so that multiple computers with IntelliJ installed running Selenium Webdriver and JUnit can execute the same tests from a singular location even at the same time?是否可以为 IntelliJ 设置一个集中的项目文件夹,以便多台安装了 IntelliJ 且运行 Selenium Webdriver 和 JUnit 的计算机甚至可以同时从单个位置执行相同的测试? I am not using robot.我没有使用机器人。

I am using IntelliJ 2017.2.3, Java 1.8.0_121, JUnit 4.12, Maven 3.3.9我正在使用 IntelliJ 2017.2.3、Java 1.8.0_121、JUnit 4.12、Maven 3.3.9

My advice here would be to do the following:我的建议是执行以下操作:

  • Make sure your project is in a reputable version control system (GitHub/Git)确保您的项目在信誉良好的版本控制系统 (GitHub/Git) 中
  • Determine your exact requirements of why you need to carry this out?确定您为什么需要执行此操作的确切要求?
  • Research selenium-grid (you can run tests on multiple browsers/devices at the same time, this way you could run them on one machine pointing to one grid instance, and on the other machine point it to another.研究 selenium-grid(你可以同时在多个浏览器/设备上运行测试,这样你就可以在一台机器上运行它们指向一个网格实例,而在另一台机器上将它指向另一个。
  • Look into CI/CD (Jenkins) - This will allow you to parameterize your tests so you can kick them off at specific times pointing to different grid instances.查看 CI/CD (Jenkins) - 这将允许您参数化您的测试,以便您可以在指向不同网格实例的特定时间启动它们。

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

相关问题 使用相同的Firefox窗口在Selenium WebDriver(Java)中运行多个测试 - Using the same Firefox Window to run multiple tests in Selenium WebDriver (Java) Java Selenium中多个类中Webdriver的相同实例 - Same instance of Webdriver in multiple classes in Java Selenium 带有Java的Selenium Webdriver错误 - Selenium Webdriver Error w/ Java 在 docker 中运行整个 selenium 项目(Gradle + Selenium + java + junit + docker) - Run whole selenium project in docker (Gradle + Selenium + java + junit + docker) 如何使用Webdriver,Java和Junit / TestNG运行多个浏览器实例? - How to run multiple browsers instance with Webdriver, Java and Junit/TestNG? 如何在Linux中运行Selenium WebDriver测试用例项目(在Java中完成) - How to run the selenium webdriver test case project(done in java) into Linux Selenium WebDriver Java / JUnit-“获取表”元素 - Selenium WebDriver Java / JUnit - Getting table element 自定义Selenium Java Junit4 Webdriver导出器 - Customising the Selenium Java Junit4 Webdriver exporter 如何使用带有Java的Selenium WebDriver多次单击同一按钮 - How to click on a same button multiple times using Selenium WebDriver with Java 无法在IntelliJ 2018.2.2 w / Gradle 4.9中运行JUnit 5测试 - Unable to run JUnit 5 test in IntelliJ 2018.2.2 w/ Gradle 4.9
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM