有没有办法加快Selenium Server的加载时间? [英] Is there any way to speed up the Selenium Server load time?

查看:138
本文介绍了有没有办法加快Selenium Server的加载时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按照设计,Selenium会在每次运行新测试时制作Firefox配置文件的新副本。我发现这个复制时间是一个相当大的瓶颈,特别是在运行100次测试时。 (重新复制配置文件需要5-15秒)。

By design, Selenium makes a new copy of your Firefox profile each time a new test is run. I find this copy time is a considerable bottleneck, especially when running 100s of tests. (5-15 seconds to copy the profile anew).

有没有人知道这有什么覆盖行为?我更喜欢我的Selenium服务器只重用相同的firefox配置文件。我知道这违反了干净地设置你的测试设备的理念,但这是我愿意采取的捷径,因为我的测试并没有对我的firefox配置文件产生重大影响,足以危及未来的测试。

Does anyone know of any override behavior for this? I'd prefer my Selenium server to just reuse the same firefox profile. I know this violates the "cleanly set up your test fixtures" philosophy, but it's a shortcut I'm willing to take, as my tests don't materially alter my firefox profile enough to jeopardize future tests.

推荐答案

我同意这是一个问题。很高兴每次都有一个Firefox进程的新副本,但通过重新生成Firefox配置文件,将启动时间加倍有点过分。如果您在 http://jira.openqa.org 上打开错误报告,请发送电子邮件至patrick@browsermob.com我很乐意确保我们能够找到解决方案。

I agree this is a problem. It's nice to have a new copy of a Firefox process each time, but a bit overkill to double the startup time by regenerating the Firefox profile. If you open a bug report on http://jira.openqa.org and email me at patrick@browsermob.com I'll be happy to make sure we get a solution in place.

PS:我已经为自己解决了这个问题。我们使用相同的Firefox配置文件,只是核对缓存和cookie数据库。但我真的应该把这个改变修改回Selenium来源。

PS: I've solved this problem as a one-off for myself. We use the same Firefox profile and just nuke out the cache and cookies DB. But I really should just patch that change back to the Selenium source.

这篇关于有没有办法加快Selenium Server的加载时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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