|
|
|
|
|
- Overview
- Test in the simulator
- Test in the emulator
- Test in native mode
- Direct test on the device
- Stopping the project test
- Stopping a project test in the simulator
- Stopping the test of a project in the emulator
- Stopping a project test on the mobile device
- Remarks
- Directory of the data files used for testing
Testing a Mobile application
To test the current project on the development computer (in the simulator): - Click
in the quick access buttons (or press Ctrl + F9). - If you have not yet defined the first window of the project, a window appears allowing you to select it.
If the application is intended to be used on phones and tablets, two windows are displayed: - a window for defining the first window of the project on phones.
- a window for defining the first window of the project on tablets.
- Close the warning window for the simulator mode.
- The editor is automatically minimized and the project is run.
Remarks: - The result of some features depends on the platform used (OS, string format, etc.). There may be some differences when testing the application in the simulator or directly on the device.
- You can debug your application in the simulator. This mode allows you to quickly debug a new function or test an algorithm, but implies some significant differences. For example:
- Windows file paths are used.
- string format.
- WLanguage functions or mobile-specific features not available on Windows.
To define the test mode options:- On the "Project" tab, in the "Test mode" group, expand "Test mode" and select "Test mode settings".
- Specify:
- the command line to pass to the application during testing. This command can be personal or common to all users.
New in version 2025the mode used by the vault during testing. For more details, see Secret string vault. Note: This feature is only available from version 2025 Update 1. For more details, see Test mode settings. iOS14 widgets: You can directly test iOS 14 widget windows in the WINDEV Mobile simulator. The characteristics of widget windows are taken into account.
To test the current project in the emulator: - Expand
in the quick access buttons: "Test project (xxx emulator)". - The application is automatically generated.
- A window allows you to select the emulator or the device onto which the application will be copied and run. This window is used to create an emulator if necessary.
- Select the desired emulator and validate.
- The emulator and the application start.
Direct test on the device To test the current application on a device connected to the development computer: - Expand
in the quick access buttons. - Select:
"Debug on mobile device". The mobile device can be: - directly connected to the PC via USB.
"Debug on <Mobile device name>". In this case, it is necessary to download an application to the device first. For more details, see Testing an iOS application on a mobile device.
- If the application has not been generated, the application generation wizard will automatically start.
- The application is copied to the device and is then run.
For more details, see: Stopping the project test Stopping a project test in the simulator There are several methods to stop a test in the simulator: - 1st method: Close the application being tested. WINDEV or WINDEV Mobile displays the editor that was open when the test was started.
- 2nd method: Close the application test window.
- 3rd method: Go back to the editor via the taskbar (or Alt + Tab) and stop the test. WINDEV or WINDEV Mobile displays the editor that was open when the test was started.
Stopping the test of a project in the emulator To stop the test of a project in the emulator, all you have to do is close the application in the emulator. You can also close the emulator. However, if you are going to test other applications, it is recommended to keep it open since it can take quite a long time to open. Stopping a project test on the mobile device When testing directly on the device, simply stop the application on the device. Directory of the data files used for testing To configure the data files used when testing the site in the editor: - Open the project description window. To do so, go to the "Project" tab, "Project" group, and select "Description".
- In the "Data files" tab, select the location of the test files:
- Current directory: Data files will be located in the project's EXE subdirectory.
- Specific directory: Data files will be located in the specified directory.
Reminder: When testing the application, the data files used are those located on the development computer. The file system also corresponds to the Windows system for PC. To avoid any problems when the application is used in a real-case scenario, use InTestMode to differentiate between the access to the data files in test mode and at runtime.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|