问题标签 [wct]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
41 浏览

polymer-1.0 - 如何使用聚合物在 WCT 上阅读 this.$$('#startdate').value

我无法从 this.$$('#startdate').value 读取值到 WebComponentTest(WCT)

0 投票
0 回答
37 浏览

polymer-2.x - 如何在 WCT 上定义“过滤器”?

在此处输入图像描述如何在 WCT 上读取属性“过滤器”运行 WCT 时出现错误“无法读取未定义的属性“过滤器”我们如何在 WCT 套件上定义过滤器

0 投票
1 回答
556 浏览

selenium - Selenium 在 Jenkins Pipeline 中运行 WCT 时在启动错误之前退出

在 Jenkins 管道中运行 WCT 时出现错误。我在底部分享了错误的详细信息。这些错误可能与 Openshift 有关。也许你可以分享你的意见。

注意:我的测试是在 Openshift 上运行的。

第一种情况: -> 我使用 chrome 配置运行。在这种情况下,我收到以下错误。此错误消息很清楚。我们必须安装 chrome。但我不知道该怎么做。

错误:

错误图片:

图像-1

第二种情况:

-> 由于上述错误,我将浏览器配置更改为 firefox。但这次我犯了一个不同的错误。这个错误对我来说很复杂。我需要有关此错误的更多详细信息。根据我的研究,这可能有很多原因。也许我们应该在 Openshift 上添加/更改一些选项。

笔记:

拿起 JAVA_TOOL_OPTIONS: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Dsun.zip.disableMemoryMapping=true 10:12:47.767 INFO [GridLauncherV3.parse] - Selenium 服务器版本:3.141.59,修订:e82be7d358 10:12:47.857 INFO [GridLauncherV3.lambda$buildLaunchers$3] - 在端口 33226 2019-11-12 10:12:47.903:INFO::main 上启动独立的 Selenium 服务器:记录已初始化 @385ms 到 org.seleniumhq.jetty9.util.log.StdErrLog 10:12:48.154 INFO [WebDriverServlet.] - 初始化 WebDriverServlet 10:12:48.252 INFO [SeleniumServer.boot] - Selenium 服务器已启动并在端口 33226 上运行

在这条线上等待太多了。之后,我中止了手动管道。因为这个过程不会继续。

错误:

错误图片:

图像-2

0 投票
0 回答
23 浏览

javascript - Out of memory issue with Chrome and unit tests

I have a test suite of around 800 tests in a repository. When I run the tests locally I end up with an Aw Snap screen at some point during the tests running. It's more or less running on the build server (running headless), but locally it breaks almost every time.

Is there any way to free up memory to make it possible to run through the tests locally again? It's an issue that recently started to appear and we haven't changed the unit tests to something that should cause this issue so I am afraid that it has to do with a Chrome update or so.

Chrome either loses connection to the dev tools with a Render Process Gone error or DevTools was disconnected from the page.

If I run the tests in incognito it actually says it ran out of memory.

We have an index file that runs WCT.loadSuites([arrayOfSuites]) and each unit test have their own file with suite(), setup and tests.

We're using Polymer 3.

Thanks