Selenium -maxSession 适用于所有节点 [英] Selenium -maxSession for all Nodes

查看:106
本文介绍了Selenium -maxSession 适用于所有节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用带有量角器的 Selenium 测试.对于某些测试,我们需要对测试进行序列化,以便最多可以激活一个浏览器(在我们的例子中它也是一个用户).可以使用 -maxSession 参数限制会话,但这只会限制当前节点的会话.是否有可能对每个节点全局执行此操作,或者一个接一个地启动节点?

We are using Selenium testing with protractor. For some tests we need to serialize the testing, so that maximum one Browser (in our case it's also an user) can be active. It's possible to limit the sessions with -maxSession parameter, but that just limits it for the current node. Is there a possibility to do that globally for every node or to start the nodes one after each other?

推荐答案

哦,这比我想象的要容易.protractor.conf 中的参数 maxSessions: 1 似乎也适用于许多节点.

oh well it was easier than I thought. Parameter maxSessions: 1 in protractor.conf seems to work also with many nodes.

这篇关于Selenium -maxSession 适用于所有节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆