1. Prepare Your Electron Application for Testing

Applies to TestComplete 14.40, last modified on April 22, 2021

The information in this topic applies to web tests that implement the default approach (rely on Name Mapping and run in local environments).

TestComplete can only test Electron-based applications distributed as Windows-compatible executables. To make our Quick Start application available for testing, we will run it by using Electron prebuilt binaries:

  1. Get the Quick Start sample application’s source files from the Electron repository:

    https://github.com/electron/electron-quick-start

  2. Get the Electron prebuilt binaries from the Electron repository:

    https://github.com/electron/electron/releases

  3. Unpack the binaries.

  4. Place the Quick Start application files you have downloaded from the repository (package.json, web pages, scripts, and other files) to the resources/app folder of the unpacked Electron binaries:

    Testing Electron applications tutorial: Electron application structure
  5. (Optional.) If you want to, rename the downloaded electron.exe binary to fit your tested application name, for example, quick-start.exe:

    Testing Electron applications tutorial: Rename the application executable
  6. Launch the resulting binary. Electron will start your application:

    Testing Electron applications tutorial: Launch the application

To learn more about packaging and distributing Electron applications, see the Electron documentation.

Prev     Next

See Also

Testing Electron Applications - Tutorial
About Testing Electron Applications

Highlight search results