通过zalenium在ucelab中运行测试时出错

时间:2019-03-12 12:25:06

标签: zalenium

当我们通过zalenium在ucelab中运行测试时,曾经遇到过此错误

  

测试将转发到SauceLabs-{rotatable = true,   locationContextEnabled = true,   loggingPrefs=org.openqa.selenium.logging.LoggingPreferences@ba1bc350,   browserName = safari,javascriptEnabled = true,handlesAlerts = true,   requestOrigins = {url = http://webdriver.io,版本= 4.0.7,   name = webdriverio}} 12:57:46.905 [http://172.17.0.5:40001]信息   org.openqa.grid.internal.TestSlot-尝试在上创建新会话   测试槽{browserName = SauceLabs,maxInstances = 5,platformName = ANY}   12:57:46.908 [http://172.17.0.5:40001]信息   d.z.e.z.registry.ZaleniumRegistry-使用内部密钥进行测试   b1a66d37-c182-42e5-9c72-520df4d85de0分配给远程   (http://172.17.0.3:30001)在0秒(87毫秒)之后。 12:57:46.920   [SauceLabs] INFO d.z.e.z.p.CloudTestingRemoteProxy-当前正在使用   1次平行会议。尝试重新开始。 12:57:46.998   [qtp79290250-23]信息o.o.g.w.s.handler.RequestHandler-错误   转发新的会话Webdriver的新会话请求应   包含位置标头或“ application / json; charset = UTF-8”   带有会话ID的响应正文。   org.openqa.grid.common.exception.GridException:新的会话请求   对于webdriver,应包含位置标头或   带有会话ID的'application / json; charset = UTF-8'响应正文。     在   org.openqa.grid.internal.TestSession.updateHubIfNewWebDriverSession(TestSession.java:396)     在org.openqa.grid.internal.TestSession.forward(TestSession.java:240)     在   org.openqa.grid.web.servlet.handler.RequestHandler.forwardNewSessionRequestAndUpdateRegistry(RequestHandler.java:91)     在   org.openqa.grid.web.servlet.handler.RequestHandler.process(RequestHandler.java:114)     在   org.openqa.grid.web.servlet.DriverServlet.process(DriverServlet.java:85)     在   org.openqa.grid.web.servlet.DriverServlet.doPost(DriverServlet.java:69)     在javax.servlet.http.HttpServlet.service(HttpServlet.java:707)在   javax.servlet.http.HttpServlet.service(HttpServlet.java:790)在   org.seleniumhq.jetty9.servlet.ServletHolder.handle(ServletHolder.java:865)     在   org.seleniumhq.jetty9.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1655)     在   io.prometheus.client.filter.MetricsFilter.doFilter(MetricsFilter.java:170)     在   org.seleniumhq.jetty9.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1642)     在   org.seleniumhq.jetty9.servlet.ServletHandler.doHandle(ServletHandler.java:533)     在   org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:146)     在   org.seleniumhq.jetty9.security.SecurityHandler.handle(SecurityHandler.java:548)     在   org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)     在   org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)     在   org.seleniumhq.jetty9.server.session.SessionHandler.doHandle(SessionHandler.java:1595)     在   org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)     在   org.seleniumhq.jetty9.server.handler.ContextHandler.doHandle(ContextHandler.java:1340)     在   org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)     在   org.seleniumhq.jetty9.servlet.ServletHandler.doScope(ServletHandler.java:473)     在   org.seleniumhq.jetty9.server.session.SessionHandler.doScope(SessionHandler.java:1564)     在   org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)     在   org.seleniumhq.jetty9.server.handler.ContextHandler.doScope(ContextHandler.java:1242)     在   org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:144)     在   org.seleniumhq.jetty9.server.handler.StatisticsHandler.handle(StatisticsHandler.java:174)     在   org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)     在org.seleniumhq.jetty9.server.Server.handle(Server.java:503)处   org.seleniumhq.jetty9.server.HttpChannel.handle(HttpChannel.java:364)     在   org.seleniumhq.jetty9.server.HttpConnection.onFillable(HttpConnection.java:260)     在   org.seleniumhq.jetty9.io.AbstractConnection $ ReadCallback.succeeded(AbstractConnection.java:305)     在   org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:103)     在   org.seleniumhq.jetty9.io.ChannelEndPoint $ 2.run(ChannelEndPoint.java:118)     在   org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)在   org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)     在   org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)     在   org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)     在   org.seleniumhq.jetty9.util.thread.ReservedThreadExecutor $ ReservedThread.run(ReservedThreadExecutor.java:366)     在   org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)     在   org.seleniumhq.jetty9.util.thread.QueuedThreadPool $ 2.run(QueuedThreadPool.java:683)     在java.lang.Thread.run(Thread.java:748)

0 个答案:

没有答案