我目前正在使用C#、nunit和Selenium构建一个自动化项目,我正在尝试创建一个安装类,它将在任何TestFixture运行之前初始化selenium webdriver,并且在所有这些设置结束之后,尝试在每个TestFixture OneTimeSetUp属性中从TestFixture中获取webdriver,可以这样做吗?或者我应该将selenium类更改为static,以便能够在每个TestFixture设置中获得driver字段吗?
所以基本结构是这样的:
[SetUpFixture]
public class Test
{
[OneTimeSetUp]
publ
当我尝试运行多个webdriver测试,每个测试都试图使用firefox时,我遇到了问题。
下面是我得到的错误
Exception in thread "main" org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms
Build info: version: '2.41.0', revision: '3192d8a', time: '2014-03-27 17:18:15'
System info:
如何使用Selenium WebDriver在不同的浏览器上同时运行多个测试?
我在java工作,我甚至尝试下载selenium网格:selenium-server-独立-2.33.0.jar文件。
即使在手术之后,
I am not able to execute these commands on the command prompt
java -jar selenium-server-独立-2.33.0.jar -role集线器-port 4444
java -jar selenium-server-独立-2.33.0.jar -role节点-hub .
还有别的选择吗?
AppiumDriver的单个实例能同时运行多个不同的测试吗?
我在一个类中有两个测试,如下所示:
public class mainTest {
@Test
public void mainMenu(){
}
@Test
public void goToViews() {
}
}
单个驱动程序实例能否同时(同时)运行这两个测试(这些测试在本地应用程序上)?还是每个测试都需要一个单独的驱动实例?
我的工作是自动化,这是基于Cucumber,gradle。我无法并行执行这些特性文件,不确定需要做什么。但我能够按顺序运行/执行功能文件。
Can somebody please look into this issue and provide me some inputs.
**Below is my build.gradle file**
plugins {
id 'java'
id 'maven-publish'
//id 'java-lib
我有一个场景,需要使用相同的数据提供程序并行运行selenium测试。据我所读,这是可能的,但无法使它工作,我有一个中心和一个节点运行在一台机器上,而另一个节点运行在另一台机器上。
My DataProvider
// Data provider for Storage Rule Suite
@DataProvider(name = "StorageRuleDataProvider", parallel =true)
public static Object[][] getStorageData(Method m) {
return TestUtil.getData(m
我使用selenium web驱动程序在safari浏览器中运行我的测试用例。
我将2.48用于safari,2.48.2用于java中的selenium web驱动程序。
我遇到了一些safari浏览器的问题。如下所示:
1. In single run, safari browser communicate with my webserver quickly but if i choose parallel run, safari driver communication becomes very slow.
2.As it takes more time to communicate
我正在使用testNG和Selenium并行运行4。我的Java文件如下所示:
public class SecondNGTest {
public static WebDriver driver;
public static ChromeOptions chromeOptions;
public static final String USERNAME = PRIVATE";
public static final String AUTOMATE_KEY = "PRIVATE";
public static
我正在使用testNG并行运行一些Selenium测试,我的suite.xml如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite thread-count="20" name="Suite" parallel="methods">
<test name="Test1" g