testing - 对于像atom/vscode这样的可执行 Electron 应用程序,我们在.testcafe-electron-rc的 "mainWindowUrl"属性中指定什么?

标签 testing automated-tests electron e2e-testing testcafe

我正在查看https://github.com/DevExpress/testcafe-browser-provider-electron存储库。 要使用 testcafe 自动化 Electron 应用程序,我发现我们需要在 .testcafe-electron-rc 中提供“mainWindowUrl”。常规 Electron 应用程序中包含 index.html 文件,我可以将其传递给 mainWindowUrl,但我不确定我们应该为atom.exe/vscode.exe 等可执行 Electron 应用程序传递什么。

最佳答案

如果 TestCafe 找不到主窗口 URL,它将显示应用程序初始化期间打开的 URL 列表。您可以指定一个空字符串作为 mainWindowUrl 的值,等待 TestCafe 显示错误并使用显示列表中的链接。

关于testing - 对于像atom/vscode这样的可执行 Electron 应用程序,我们在.testcafe-electron-rc的 "mainWindowUrl"属性中指定什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58894709/

相关文章:

javascript - Electron Builder 生成的二进制文件的操作系统特定目录

testing - 如何测试具有多个客户端的 socket.io 服务器?

java - 如何仅运行修改后的测试?

silverlight - Silverlight 应用程序的自动化测试 : MS Test Manager vs Selenium

java - 在 Java 中在运行时访问方法调用参数

javascript - 处理来自 Electron (或其他桌面平台)的 oauth2 重定向

javascript - Electron Web Workers 不支持 NodeJS 模块

testing - 在不打开浏览器的情况下使用 chromeDriver 运行 Geb 测试

php - 在一页上测试两个表单 `press` 指令总是提交第二个表单

java - 仅运行特定功能,首先开始一些测试