Applies to TestComplete 14.30, last modified on November 21, 2019
  1. If your tested Electron application is running, close it.

  2. To start recording, from the TestComplete main menu, select Test > Record > Record Keyword Test:

    Testing Electron applications tutorial: Start recording
  3. Important: Expand the Recording toolbar, click Run App, and then select your tested Electron application:

    Testing Electron applications tutorial: Run the tested Electron application

    If you run your tested application not from TestComplete, but in any other way (for instance, from the command line), TestComplete will not be able to expose your application internal objects. To test Electron applications, always start them from TestComplete (see the Exposing Electron Applications section in the About Testing Electron Applications topic).

  4. TestComplete will launch the tested application:

    Testing Electron applications tutorial: Application main page
  5. Click anywhere within the main page of the application.

  6. Create a property checkpoint that will verify the text that the application window shows:

    • On the Recording toolbar, click Add Check. In the resulting Checkpoint wizard, click Object property:

      Testing Electron applications tutorial: Call the Checkpoint wizard

      Click the image to enlarge it.

    • Select the Hello World! text on the main page. To select the text, you can –

      Press , drag the target glyph to the text, and then release the mouse button.

      Click , move the mouse pointer to the text, and then press the Select object shortcut (by default, SHIFT+CTRL+A).

      Testing Electron applications tutorial: Select the text to check

      Click the image to enlarge it.

    • On the next page of the wizard, select the contentText property (selected by default):

      Testing Electron applications tutorial: Select the property to check

      Click the image to enlarge it.

    • Click Finish.

  7. Close your tested application and click Stop on the Recording toolbar.

TestComplete will stop the recording and open the recorded test:

Testing Electron applications tutorial: Recorded test

Click the image to enlarge it.

Prev     Next

See Also

Testing Electron Applications - Tutorial
About Testing Electron Applications

Highlight search results