Quick Start: Regression testing

This quick start uses the OfficeStore demo to create a regression test for the Account application.

  1. Open the OfficeStore demo.
  2. Right-click on the Officestore Model group node and select New Application.
  3. Enter the name RegressionTest.
  4. Right-click on the RegressionTest application node and select Advanced Properties.
    The Advanced Properties window opens.
  5. From the Dependencies page, ensure the src library node is checked and click Apply > OK.
  6. (Optional) Remove the default configuration node within the RegressionTest node as it is not used.
  7. Expand the src library node, right-click on the Account_prg configuration node, and select Create Test Configuration.
    The Create Test window opens.
  8. Enter the information for the following fields:
    • Test name - Name your test configuration.
    • Module name - Enter the name of the module.
    • Working directory - Enter the directory for your test.
    • Command line arguments - Arguments provided to the tested module when generating the test.
  9. Select the RegressionTest application to create the test configuration in this node.
  10. Click OK.
    The Test Account_prg test configuration node is created.
  11. Rename the Test Account_prg test configuration node to AccountModify.
  12. (Optional) To change the the Test mode type, select the new configuration node, go to the Properties window, and change the Test mode property to tcp when using the GDC configuration, or ua when using the Genero Application Server (GAS) configuration.
  13. (Optional) To ignore time spent between action when replaying the test scenario, navigate to the Properties view, check the No Wait property.
  14. Right-click on AccountModify test configuration node and select Generate Test Scenario.
    The project compiles and executes the Account_prg application.
  15. (Optional) To specify a directory other than the directory that contains the executables for the application being tested, select theRegressionTest node and navigate to the Properties window. Select the Target directory property and update the value to the desired directory. For example, you can specify the RegressionTest application to place its compiled output in $(ProjectDir)/testbin. When this action is performed prior to generating the test scenario, the action fails.
  16. Modify an existing user in the application:
    1. Click Modify.

    2. Change the first name of the user presented.

    3. Click Accept.

    4. Select File > Exit.

      Genero Studio creates the test scenario as a .4gl file.

  17. Save the generated .4gl in the RegressionTest node.
  18. (Optional) Save the the GUI logs file.
  19. Select the AccountModify test configuration node.
  20. (Optional) From the Properties view, change the following:
    • Change the Forward GUI to display the actions of the test to the Genero Desktop Client (GDC)

    • Change the Speed Ratio to speed up the execution of the test.

  21. Right-click on the AccountModify test configuration node and select Execute.

The test executes according to the instructions in the test scenario file. The results appear in the Output view. For more information, go to Viewing test results in the Output view.

Edit the test scenario to add or remove steps from the test. See the Genero Ghost Client User Guide for more information.