PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • How to proceed?
  • Running the test of the current semi-dynamic page in the editor
  • Running the test of a sequence of semi-dynamic pages
  • Stopping the test of a semi-dynamic page
  • Notes
  • Directory of the files used for test
  • Generation codes
  • Managing the passwords (analysis or file)
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
The test of a single page allows you to run the current page in WEBDEV. This allows you to run the test of your project from a given page or to check the operating mode of a page as soon as its development is ended.
Reminder: A semi-dynamic page is used to generate static pages that contain data. Before running the test of a semi-dynamic page, you must generate the corresponding static HTML pages.
How to proceed?

Running the test of the current semi-dynamic page in the editor

To run the test of the current semi-dynamic page in the editor:
  1. Check whether the data files used are found in the directory of the files used for test (see the Notes).
  2. Select "Code .. Run the page test" (or press [F9]).
    Tip: To select the browser used when running the test of the page, click the test icon of the page. The arrow on the right expands a menu allowing you to choose the browser that will be used for test.
    The choice of the default browser can also be performed in the WEBDEV options.
    Click among the quick access buttons (or press [F9]).
    Tip: To select the browser used when running the test of the page, click the test icon of the page. The arrow on the right expands a menu allowing you to choose the browser that will be used for test.
    The choice of the default browser can also be performed in the WEBDEV options.
  3. Validate (if necessary) the generation of the corresponding HTML pages.
    Reminder: The following codes are run when the semi-dynamic pages are generated:
    • Declaring the global variables of pages
    • Initializing pages
  4. The editor is automatically minimized and the page is run.

Running the test of a sequence of semi-dynamic pages

To run the test of a sequence of semi-dynamic pages:
  1. Check whether the data files used are found in the directory of the files used for test (see the Notes).
  2. Start the tool for generating the static pages ("Tools .. WDGenPage").Start the tool for generating the static pages: on the "Tools" pane, in the "Web utilities" group, click "WDGenPage".
  3. Select the semi-dynamic page to generate.
  4. Click the "Generate" button.
    The following codes are run when the semi-dynamic pages are generated:
    • Declaring the global variables of the page
    • Initializing the page
  5. When the generation is over, select the page whose test must be run and click [Run the test]. You can run the test of the first generated static page. The editor is automatically minimized and the page is displayed in a browser.
During the test of a semi-dynamic page, the following processes are run:
  • loading the first page (browser code)
  • entering the first control of the first page (if this control has an entry process) (browser code)
During the test, all the page features can be run. You will have the ability to open other pages for example.
Versions 21 and later
Note: The last test run (window, query, report, ...) can be re-run from any project element via "GO .. Re-run the last test" found in the quick access buttons.
New in version 21
Note: The last test run (window, query, report, ...) can be re-run from any project element via "GO .. Re-run the last test" found in the quick access buttons.
Note: The last test run (window, query, report, ...) can be re-run from any project element via "GO .. Re-run the last test" found in the quick access buttons.

Stopping the test of a semi-dynamic page

Several methods can be used to stop the test:
  • 1st method: Close the site whose test is currently run. WEBDEV displays the editor that was used at the beginning of test.
    If the test was run from WDGenPage, you must exit from this tool.
  • 2nd method: Go back to the editor with the taskbar or with [Alt] + [Tab] and confirm the ending of the test. WEBDEV displays the editor that was used at the beginning of test.
Notes

Directory of the files used for test

To configure the data files used when running the test of the site in the editor:
  1. Display the project description ("Project .. Project description").Display the project description: on the "Project" pane, in the "Project" group, click "Description".
  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.

Generation codes

Two generation codes are available in a semi-dynamic page. These codes are server codes and they are used to enter the information required for the generation.
Some examples:
  • If the base file of the page (or the analysis) is password-protected, the password can be specified in the generation code.
  • If the base file of the page is a query with parameters, the parameters expected by the query can be specified in this code.
  • You also have the ability to call a class in this code.

Managing the passwords (analysis or file)

No password is requested when running the test of the page, no matter whether the page 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 it exists) or in the initialization code of the global variables of the semi-dynamic page.
  • If the page handles a file from a password-protected analysis, this password must be specified in HOpenAnalysis.
  • If the page handles one or more password-protected files, this password must be specified in HPass.
If the passwords are not specified, an error occurs when generating the page.
Minimum required version
  • Version 9
Comments
Click [Add] to post a comment