Testing your App
Testing practices
Before you submit your app, test it to make sure that its working correctly. Once you submitted your app, the Overwolf team will review and test it. This applied to both first time submissions and app updates.
Consistent UID
Ensure that the Product Name (or Name) and Author in package.json (inside app.asar) are consistent across all versions.
Devtools for Electron apps
If your app window was created using webPreferences: {devTools: true}:
- Use
ctrl+Shift+Ito enter the developer tools window..
If your app is launched from an .exe file:
- Run your app with the
--remote-debugging-port=9222. - Open a browser window and navigate to http://localhost:9222/ to see the debugging window.
If you have scripts for building and debugging your app make sure they contain:
"start": "ow-electron \--remote-debugging-port=9222"
Windows
Resolution compatibility
-
Before you test your app, set the DPI to 100% and window resolution to 1920 x 1080.
-
Change your screen resolution to the following settings and make sure that the app window stays within the borders of your screen:
- 1366 x 720 - 100 DPI
- 1366 x 768 - 100 DPI
- 1920 X 1080 - 125 DPI
- 2560 x 1440 - 100 DPI
- 3840 X 2160 - 150 DPI
Window states
Use the following tests with your app to find compatibility issues with different window states:
- Launch the game your app supports, then test the app when the game is in full screen. Make sure everything is located where you want it.
- Change to windowed mode and make sure that everything is where you want it.
Window behavior when "out of focus"
Overwolf only displays overlays in-game when the game is in focus. That means that whenever your game is alt+tab or minimized, no app window should appear.
To test this behavior:
- Launch the game your app supports. Make sure that the app launched correctly.
- Use Alt + Tab to get out of the game, and make sure that your app window does not show on desktop.
- Alt+tab back to the game, the app should work normally.
Overlay
In-game behavior
Test preconditions: The user is running the game your app supports.
- Open the app window with the designated hotkey and make sure the overlay appears properly.
- Test general app functionality in-game and ensure your features work.
- Press the app window in spots where clicks going through to the game would have an effect. For example, click an app button which covers an in-game menu and make sure your clicks only affect the app layer and never that menu.
Hotkeys
General functionality
-
Use the hotkey to launch the app and ensure it launches properly.
-
Use the hotkey again to minimize your app.
-
Change your app's designated hotkey and make sure the change appears in the app's settings.
-
Use the changed hotkey to launch the app and ensure it launches properly.
-
Use the changed hotkey again to minimize your app.
-
Allow the user to change the hotkey combination from inside your app’s settings panel by automatically directing the user to the settings page. Make sure that the new hotkey is updated automatically in your app without needing to re-launch the app. For more information about hotkeys, see Hotkeys.
Test mid-game installation
Preconditions: Uninstall your app to perform the following test.
-
While in-game, install the app.
-
Use hotkey to launch the app and verify that it successfully opens.
-
Use hotkey again to minimize the app.
-
Change the designated hotkey and use it again to launch the app.
-
Used the changed hotkey again to minimize the app.
-
Whenever a user changes their hotkey, verify that your app changes both functionality and UI.
Desktop
Desktop app behavior
- Launch your app while in desktop, verify that the app window appears about 10 seconds or less. It is acceptable that the app displays a loader until it's ready for use.
- Test your app's desktop functionality and features.
- Close the app. Verify that all windows are closed upon exit as well as all app related processes.
- Relaunch the app, and verify all functionality is working correctly.
Game specific apps
If your app supports a specific game only, make sure it runs when you launch that game and that it doesn't launch for other non-supported games.
Performance
Memory & CPU Usage
Preconditions: Open both the Overwolf task manager (if applicable) and the Windows task manager.
- Use your app's basic functionality, ensure it doesn't hang, lag or stops responding.
- Use the app while checking the Overwolf task manager (if applicable). App memory usage should rise and fall. If it doesn't drop back down after rising, the app might have a memory leak.
- Click the performance tab in Windows Task manager and watch for spikes in CPU, memory or network usage while using your app.