Quick Start: Regression testing
This quick start uses the OfficeStore demo to create a regression test for the Account application.
- Open the OfficeStore demo.
- Right-click on the Officestore Model group node and select New Application.
- Enter the name RegressionTest.
-
Right-click on the RegressionTest application node and select
Advanced Properties.
The Advanced Properties window opens.
- From the Dependencies page, ensure the src library node is checked and click Apply > OK.
- (Optional) Remove the default configuration node within the RegressionTest node as it is not used.
-
Expand the src library node, right-click on the
Account_prg configuration node, and select Create Test
Configuration.
The Create Test window opens.
-
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.
- Select the RegressionTest application to create the test configuration in this node.
-
Click OK.
The Test Account_prg test configuration node is created.
- Rename the Test Account_prg test configuration node to AccountModify.
- (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.
- (Optional) To ignore time spent between action when replaying the test scenario, navigate to the Properties view, check the No Wait property.
-
Right-click on AccountModify test configuration node and select
Generate Test Scenario.
The project compiles and executes the Account_prg application.
-
(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. -
Modify an existing user in the application:
-
Click Modify.
-
Change the first name of the user presented.
-
Click Accept.
-
Select File > Exit.
Genero Studio creates the test scenario as a .4gl file.
-
- Save the generated .4gl in the RegressionTest node.
- (Optional) Save the the GUI logs file.
- Select the AccountModify test configuration node.
-
(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.
-
- 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.