PC SOFT

WINDEV的在线文档

  • Overview
  • How do I proceed?
  • Notes
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Overview
Running the test of a single window allows you to run the current window in WinDev. This enables you to run the test of your project from a given window or to check the operating mode of a window as soon as it is developed.

If the test of the window triggers no error, ti can be transformed into an automatic test script for the window.

Like for the project test, the debugger can be started as soon as a problem occurs.

How do I proceed?
Running the test of the current window

To run the test of the current window from the editor, select "Code .. Run the window test" (or [F9]). The editor is automatically minimized and the window is run.

To run the test of the current window from the editor, clickamong the quick access buttons. The editor is automatically minimized and the window is run.

When running the test of a window, the following processes are run:
  • declaring the classes,
  • initializing the project,
  • declaring the global variables of the current window,
  • initializing the controls found in the current window,
  • initializing the current window,
  • the current window takes focus,
  • entering the first control of the current window (if this control has an entry process).
When the test is run, all the features of the window can be run. You will have the ability to open other windows for example.

Note: To run the test of a window that expects one or more parameters, a default value must be given to the parameters in their declaration.

18版本和更高版本
Minimizing (or not) the editor during the test

During a test, the editor is minimized by default. Depending on the hardware configuration (large screen, 2 screens, ....), this minimize operation is not required.

To keep the editor opened:

1. On the "Home" pane, in the "Environment" group, expand "Options" and select "Options of the code editor".

2. In the "Debugger" tab, uncheck "Minimize the editor in test mode".

3. Validate.

18新版本
Minimizing (or not) the editor during the test

During a test, the editor is minimized by default. Depending on the hardware configuration (large screen, 2 screens, ....), this minimize operation is not required.

To keep the editor opened:

1. On the "Home" pane, in the "Environment" group, expand "Options" and select "Options of the code editor".

2. In the "Debugger" tab, uncheck "Minimize the editor in test mode".

3. Validate.

Minimizing (or not) the editor during the test

During a test, the editor is minimized by default. Depending on the hardware configuration (large screen, 2 screens, ....), this minimize operation is not required.

To keep the editor opened:

1. On the "Home" pane, in the "Environment" group, expand "Options" and select "Options of the code editor".

2. In the "Debugger" tab, uncheck "Minimize the editor in test mode".

3. Validate.

Stopping the test of a window

Several methods can be used to stop the test:
  • 1st method: Close the application whose test is currently run. WinDev displays the editor that was used when starting the test.
  • 2nd method: Go back to the editor with the taskbar or with [Alt] + [Tab] and confirm that the test must be stopped. WinDev displays the editor that was used when starting the test.

Converting the test of a window into an automatic test

If the test of the window is completed without error, you have the ability to save the operations performed during the test in an automatic test:

1. When going back to the editor, click .

2. The automatic test is automatically added to your project. The description window of the automatic test is displayed.

3. Specify the name of the test and its description if necessary.

4. Validate.

Note: If a window is opened from the initialization code of the project, a test is also created for this window. The "Automatic test" code of the project is modified to take the test of this window into account.

Notes
Directory of the files used for test

To configure the data files used when running the test of the application in the editor:

1. Display the project description ("Project .. Project description").

1. Display the description of the project: on the "项目" pane, in the "项目" group, click "描述".

2. In the "File" tab, select the location of the test files:
  • Current directory: The data files will be found in the EXE sub-directory of the project.
  • Specific directory: The data files will be found in the specified directory.

Managing the passwords (analysis or file)

No password is requested when running the test of the window, regardless of whether the window is associated with a password-protected analysis or with a password-protected file.

The necessary passwords must be specified by programming in the initialization code of the project:

  • If the window uses a file found in a password-protected analysis, this password must be specified in H打开数据模型.
  • If the window uses one or more password-protected files, this password must be specified in H密码.
A WLanguage error occurs when running the window test if the passwords are not specified in the initialization code of the project.