cost 78 ms
无法在 TestNG 中的单个浏览器实例中运行来自多个类的多个测试用例 - Unable to run multiple test cases from multiple classes in a single instance of browser in TestNG

我正在尝试运行放置在不同类中的多个测试用例,但是当我运行代码时,最后一个 class 创建了一个新的 chrome 驱动程序实例。 这段代码与公司的工作有关,因此我无法详细分享完整的代码,但我会尽可能多地分享,以帮助您更好地理解。 这是代码: 总机 Class: 第二个 Class: 最后 clas ...

Selenium chrome 驱动程序在使用 action.dragAndDrop 时挂起(等待物理鼠标移动) - Selenium chrome driver hangs while using action.dragAndDrop ( waiting for physical mouse movment )

我正在尝试在此站点https://app.involve.me/上使用拖放操作我正在做的步骤是: 登录网站从头开始创建一个新项目尝试从右侧的列表中拖放一个项目(无论是什么项目)。 每次我拖动项目 selenium 都会挂起,直到我移动我的物理鼠标,然后 selenium 才会继续测试我使用 Tes ...

为 TestNG 工厂提供数据提供者以调用测试方法 - 无法多次调用测试 - Providing TestNG factory with data provider to invoke test methods - Not able to invoke test multiple times

我使用了测试数据提供者和工厂的样本数据,更像是从具有多个值的 excel 行中读取。 因此,每个 Map 表示每行的列名和值并将其添加到列表中具有从 excel 读取的所有值。 现在返回List<HashMap>的Object[][] ,因此在工厂中它必须具有相同的签名。 在这里,如果我 ...

使用 java 从 testng 中的 DataProviders 调用时减少 arguments 的数量 - Reduce number of arguments when calling from DataProviders in testng using java

我正在从 Excel 文件中读取数据,假设我在 Java testNG 中有 5 行 15 列。 查看以下代码 另一个 class 用于处理数据 因此,在这里我需要减少 verifyReports 方法中的参数计数,并且应该能够在同一方法中检索整个记录。 注意:参数计数将来可能会更改。 所以我尝试了 ...

在 selenium 的浏览器中输入各种用户名和密码组合的最佳方法是什么? - What could be the best way to input various combination of username and password into browser in selenium?

我需要使用 selenium 测试登录表单。 该步骤通过输入用户名和密码的各种组合进行检查。 例如。 . 我已经使用 TestNG 来执行测试。 有没有其他方法可以使用,否则就可以了。 POM 可以用于此目的吗? ...

尽管在运行测试用例时未显示错误,但未选中复选框。有人可以提供建议以获得解决方案 - Checkbox not getting selected although it does not show error while running the test case.Can someoone give suggesstions to get a solution

通过定位器:有人可以提出建议来解决这个问题吗 测试页有测试用例: 页面包含定义 by 定位器的方法 HTML : ...

Appium 在尝试使用 xpath 在滚动视图中找到它时给出空响应 - Appium giving null response when trying to find it inside a scroll view using xpath

我目前是 appium 的新手。 我正在尝试单击我的应用程序滚动视图中的一个项目,其中 xpath 找到了该元素。 在第 1 条 syso 声明中,我是真的。 和 seocnd syso 语句我正在执行点击。 但是在 appium 服务器日志里面。 click() 函数返回 null。 当我 ...

无法使用 webdrivermanager - Testng - Java - Maven 启动 Firefox 81.0 - Unable to launch Firefox 81.0 with webdrivermanager - Testng - Java - Maven

我通过 -Dbrowser=firefox 传递 mvn 命令从不启动 firefox。 下面是我初始化浏览器的代码,它适用于 Chrome,但不启动 Firefox 或 Edge。 我已将 webdrivermanager 最新的 maven 依赖项 4.2.2 添加到我的 pom.xml。 我分 ...


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