我们在 .testcafe-electron-rc "mainWindowUrl"属性中为可执行的电子应用程序(如 atom/vscode)指定什么?



我在看https://github.com/DevExpress/testcafe-browser-provider-electron存储库。要使用testcafe自动化电子应用程序,我认为我们需要在.testcafe电子rc中提供"mainWindowUrl"。常规电子应用程序中有index.html文件,我可以将其传递到mainWindowUrl,但我不确定我们应该为atom.exe/vscode.exe等可执行电子应用程序传递什么。

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

要测试可执行的电子应用程序,您应该以另一种方式配置"testcafe浏览器提供商插件"。有关更多信息,请参阅测试可执行电子应用程序部分。

最新更新