Repository navigation
Replies: 2 comments
|
Hi Vlad! Yes, the automated-testing approaches described in the Electron documentation are relevant to Electron.NET because Electron.NET uses Electron to run cross-platform desktop applications. However, the test setup may require some adjustments to account for the .NET application startup process. I would consider two approaches for end-to-end testing: 1. Playwright Playwright has experimental support for Electron through its This could be a good option if you want to test user workflows, UI interactions, and application functionality. Documentation: 2. WebdriverIO WebdriverIO also supports desktop application testing with Electron. Its Electron service can help launch the application and automate interactions with its windows. This is another option worth considering, especially if you prefer a WebDriver-based testing approach. Documentation: I would also recommend separating testing into different levels:
One important consideration is how Electron.NET launches the application. You may need to configure the testing framework to start the actual Electron.NET application rather than a standalone Electron application. I hope these suggestions help you choose a suitable testing approach! |
|
Have you looked at our own integration tests (e.g., https://github.com/ElectronNET/Electron.NET/blob/main/src/ElectronNET.IntegrationTests/ElectronFixture.cs)? I think this might be what you are looking for. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
What is recommended for automated testing of an Electron.NET application? I see https://www.electronjs.org/docs/latest/tutorial/automated-testing for electronjs but I am not sure if it also applies to Electron.NET.
Thanks,
Vlad
All reactions