本文介绍了是否可以在没有硒网格的情况下并行执行?或(仅使用testNG就足够了?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Selenium Webdriver的初学者.因此对于并行执行,通常我们会在xml文件中进行更改,例如 parallel ="methods" thread-count ="3" ,而我的疑问是:

I am beginner in selenium webdriver. so for parallel execution normally we do changes in xml file like parallel="methods" thread-count="3" and my doubt is:

在没有硒网格的情况下是否可以并行执行?还是只用testNG就足够了?

Is the parallel execution possible without selenium grid?or only testNG is enough?

推荐答案

是的,您可以在没有网格的情况下并行运行UI测试,或者直接在没有集线器的情况下直接使用硒网格节点.TestNG中的每个线程都会打开其他浏览器窗口,但是如果您的应用程序将以一个用户会话的身份管理来自主机的所有连接,则会遇到无法预料的问题.

Yes, you may run UI tests in parallel without grid, or using only selenium grid node directly, without hub. Each thread in TestNG will open additional browser window, but you will get unpredictable issues in case when you application will manage all connections from you host as one user session.

这篇关于是否可以在没有硒网格的情况下并行执行?或(仅使用testNG就足够了?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 18:10