使用硒的量角器e2e测试未在IE11上运行TimeOut问题

时间:2018-05-07 10:03:44

标签: selenium protractor internet-explorer-11

我正在尝试在IE11上运行量角器e2e测试。测试失败并出现超时错误。

[Test Error Output]
A Jasmine spec timed out. Resetting the WebDriver Control Flow.
[19:03:47]
[should not allow Clifton to create a sub-folder inside a folder previously created by Emmett] Failed: JavaScript error in async script. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 1.29 seconds
Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
System info: host: '', ip: '10.50.10.158', os.name: 'Windows Server 2008 R2', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_79'
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=1, ignoreZoomSetting=false, enablePersistentHover=false, ie.ensureCleanSession=false, browserName=internet explorer, enableElementCacheCleanup=true, ie.enableFullPageScreenshot=true, unexpectedAlertBehaviour=dismiss, ie.fileUploadDialogTimeout=3000, ie.forceShellWindowsApi=false, version=11, pageLoadStrategy=normal, ignoreProtectedModeSettings=false, requireWindowFocus=true, initialBrowserUrl=http://localhost:48570/, ie.forceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=}]

我在下面尝试了不同的博客或发布/发布链接

  1. 从量角器e2e配置中增加测试用例时间。
  2. 更新量角器和selenium IE驱动程序版本。
  3. 在e2e配置中添加IE特定配置设置。 e.g

    能力:{

    elementScrollBehavior: 1,
        browserName: 'chrome',
        // IE specific, enables modifier keys (eg. CTRL+CLICK)
        requireWindowFocus: true,
        // If this is set to be true, specs will be sharded by file (i.e. all
        // files to be run by this set of capabilities will run in parallel).
        // Default is false.
        shardTestFiles: false,
        // Maximum number of browser instances that can run in parallel for this
        // set of capabilities. This is only needed if shardTestFiles is true.
        // Default is 1.
        maxInstances: 1,
        loggingPrefs: {
        //this is a chrome specific setting - no effect on other browser runs
        performance: "OFF"
        },
        nativeEvents: false,
        unexpectedAlertBehaviour: 'accept',
        ignoreProtectedModeSettings: true,
        enablePersistentHover: true,
        requireWindowFocus: true,
        ignoreZoomSetting: true,
        INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS: true
        }
    
    1. 按照以下链接http://elgalu.github.io/2014/run-protractor-against-internet-explorer-vm/#

      中的建议配置IE浏览器设置

      Protractor test in IE

    2. 使用browser.driver.get()代替browser.get(),如链接中所述:https://github.com/angular/protractor/issues/4268

  4. 他们在IE11上运行量角器e2e测试的任何限制吗?

0 个答案:

没有答案