How to run BDL tests

The Genero BDL tests that you have compiled, are run from the command line as shown.

When running tests, it is recommend that you pass the name of the application and how to test it as an argument. This can be either:

  • a command (for direct mode)
  • an URL (when running tests over GAS)

Examples of running tests for both methods are given. For an example of how to handle the argument values in your code, see the sample $FGLDIR/testing_utilities/ggc/samples/SimpleTest.

Before you begin:
  • It is assumed that you have compiled the Genero BDL test file, for example myapp_tests.4gl.
  • It is assumed that you have placed the compiled file in the directory path/to/myTests.
  1. To run the tests through the GAS using the application URL, type the commands shown below:
    cd path/to/myTests ; 
              fglrun myapp_tests http://localhost:6394/ua/r/myapp

Or alternatively you can run the test in direct connection mode without using the GAS.

  1. To run the tests using a stand-alone DVM, type the command:
    cd path/to/myTests ; fglrun myapp_tests "fglrun myapp"
    Important: It is assume that the BDL test file has been placed in the same directory as the tested application, for example path/to/myTests.