小编Mar*_*lef的帖子

InternetExplorerDriver缩放级别错误

我正在尝试对IE8运行测试,但我遇到了一个奇怪的问题:

  1. 在创建webdriver实例(driver = Selenium :: WebDriver.for:ie)时,IE启动并且WebDriver抛出异常:

    "启动Internet Explorer时出现意外错误.浏览器缩放级别设置为0%"

  2. IE似乎显示无法连接到IE驱动程序服务器,但如果我手动刷新浏览器,它连接就好了.

    我在网上查了一下,只有两个人似乎报了这个.一种可能的解决方案是确保所有区域都具有相同的"保护模式"设置.

    我的环境是Windows 7和IE8与IE驱动程序服务器v2.25.3,我正在使用Ruby绑定.

有任何想法吗?

selenium webdriver selenium-webdriver

19
推荐指数
5
解决办法
4万
查看次数

Selenium 2 Grid - 了解您的测试使用的节点

是否有可能知道selenium网格集线器为您的测试分配了哪个节点?我的测试需要与节点机器上的其他服务进行通信,以便执行selenium不支持的配置.

标记

selenium-grid selenium-webdriver

13
推荐指数
1
解决办法
7164
查看次数

Selenium 2 - 为IE和Chrome设置用户代理

我需要在IE和Chrome中更改用户代理值以进行一些测试.我遇到的唯一的硒2例子只适用于FirefoxDriver.

有没有人设法更改IE和Chrome的用户代理?

标记

webdriver selenium-webdriver

11
推荐指数
2
解决办法
1万
查看次数

VS2017条件断点 - "不支持在此上下文中评估本机方法"

我正在调试Service Fabric应用程序,需要根据对象id的值使用条件断点.所以我放置了一个条件断点来实现

c.id == "43rregfjlh32";
Run Code Online (Sandbox Code Playgroud)

但是,当调试器击中断点时,我收到以下消息:

断点的条件无法执行.条件是 c.id == "43rregfjlh32".返回的错误是`方法System.String.op_Equality()的方法调用本机方法System.Environment.FailFast().不支持在此上下文中评估本机方法.单击"确定"以停止此断点.

我在网上看了一下,尝试启用托管兼容模式之类的东西,如某些帖子中所建议的那样.但是,这不起作用.

debugging conditional-breakpoint azure-service-fabric visual-studio-2017

10
推荐指数
1
解决办法
559
查看次数

Jenkins/Hudson SVN问题

我的Jenkins安装有一个(奇怪的)问题,基本上会导致SVN更新失败.

堆栈跟踪显示两个问题:

hudson.util.IOException2: revision check failed on (my repo)....
Run Code Online (Sandbox Code Playgroud)

Caused by: org.tmatesoft.svn.core.SVNException: svn: OPTIONS (my repo)
Run Code Online (Sandbox Code Playgroud)

如果我在发生这种情况后重新运行构建,一切正常.

标记

由ganders编辑完全相同的问题:

这是我的机器上的堆栈跟踪导致此错误.它似乎在尝试访问SVNExternals目录(.../trunk/common)时出现,并且由于某种原因它在第一次尝试访问时没有凭据.然后下一次,它工作得很好:

hudson.util.IOException2:hudson.scm上 的hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:189)上的https://myserver.com/....../TrialsMobile/trunk/common上的修订检查失败 . SubversionChangeLogBuilder.run(SubversionChangeLogBuilder.java:132)位于hudson.model.AbstractProject.checkout(抽象工程)的hudson.scm.SubversionSCM中.java:1414)at hudson.model.AbstractBuild $ AbstractBuildExecution.defaultCheckout(AbstractBuild.java:671)at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)at hudson.model.AbstractBuild $ AbstractBuildExecution.run(AbstractBuild. java:580)at hudson.model.Run.execute(Run.java:1676)at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)at hudson.model.ResourceController.execute(ResourceController.java:88)at hudson.model.Executor.run(Executor.java:231)引起:org.tmatesoft.svn.core.SVNCancelException:svn:E 200015:选项/ svn/mobilena/ios/TrialsMobile/trunk/common在org.tmatesoft.svn的org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:384)失败. core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:373)org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:361)at org. tmatesoft.svn.core.internal.io.dav.DAVConnection.performHttpRequest(DAVConnection.java:707)org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:627)at org. tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:102)org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1020)at org.在org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.getRevisionNumber(SvnNgRepositoryAccess.java:118)的tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(DAVRepository.java:180). tmatesoft.svn.core.internal.wc2.SvnRepositoryAcc ess.getLocations(SvnRepositoryAccess.java:148)位于org.tmatesoft.svn.core.internal.wc2.remote的org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.createRepositoryFor(SvnNgRepositoryAccess.java:45).在org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner的org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLog.run(SvnRemoteLog.java:35)的SvnRemoteLog.run(SvnRemoteLog.java:160).在org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1238)的org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)运行(SvnOperationRunner.java:20) at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:967)atg.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:872)at hudson.scm.SubversionChangeLogBuilder.buildModule (SubversionChangeLogBuilder.java:177)... 11更多引起:org.tmatesoft.svn.core.SVNCancelException:svn:E200015:没有要尝试的凭据.org.tmatesoft.svn.core.internal.wc.SVNErrorManager.cancel(SVNErrorManager.java:37)上的org.tmatesoft.svn.core.internal.wc.SVNErrorManager.cancel(SVNErrorManager.java:32)中的身份验证失败.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.getFirstAuthentication(DefaultSVNAuthenticationManager.java:185)org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:694)at org .tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:382)... 29更多

svn hudson hudson-plugins jenkins jenkins-plugins

6
推荐指数
1
解决办法
1993
查看次数

我可以在使用Spectron进行测试时调试我的电子应用程序吗?

我正在使用Spectron,mocha和chai-as-promise运行测试.我的IDE是Visual Studio Code.

我从测试中启动应用程序如下:

this.app = new Application({
        path: electron,
        args: ['.']
    });
// Then at some point I run this.app.start()
Run Code Online (Sandbox Code Playgroud)

我可以将Visual Studio Code调试器连接到此应用程序吗?我可以运行调试我的测试代码,但我需要在某个时候调试应用程序.

mocha.js electron visual-studio-code spectron

5
推荐指数
1
解决办法
296
查看次数

Selenium2:使用selenium grid 2截取屏幕截图

是否可以使用selenium grid 2截取屏幕截图?RemoteWebDriver类未实现TakesScreenshot接口.

标记

screenshot webdriver webpage-screenshot selenium-webdriver

2
推荐指数
1
解决办法
3962
查看次数

rspec:未定义的局部变量或方法`be_true'

我使用的是rspec 2.4.0和黄瓜0.6.4.我正在运行一个简单的场景(为了这个问题):

Scenario: Simple Test
When I test something
Run Code Online (Sandbox Code Playgroud)

步骤定义:

require 'rspec'
require 'rspec/expectations'

When /^I test something$/ do
  result = (1==1)
  result.should be_true
end
Run Code Online (Sandbox Code Playgroud)

当我运行这个场景时,我遇到以下问题:

 undefined local variable or method `be_true' for #<Object:0x1b3b424> (NameError)
Run Code Online (Sandbox Code Playgroud)

我也使用bundler来管理我的依赖项.

我在做一些明显不对的事吗?

问候,

标记

rspec cucumber bundler rspec2 rspec-expectations

2
推荐指数
1
解决办法
1679
查看次数