Install Behavior Testing Framework for ContactManager

Procedure

  1. Extract the Behavior Testing Framework distribution file.
    • The distribution file is named cm-isbtf.zip.
    • The distribution file is located in the core product's isbtf subdirectory.
  2. Install the framework files.
    1. In the extracted directory, navigate to the framework directory. This directory contains a modules directory.
    2. Merge the modules directory into the ContactManager directory.
    3. If messages appear that ask whether you want to merge modules and any other directories, select the option that merges the directory.
  3. Enable code generation of the native page model. This lets Behavior Testing Framework interact with PCF elements and screens.
    1. In the ContactManager directory, open the gradle.properties file in a text editor.
    2. Locate the isPcfTestCodegenEnabled property and set its value to true.
    3. Save and close the file.
  4. Add a command for running a Cucumber test suite to the build.gradle file.
    1. In the ContactManager directory, navigate to the modules/configuration directory.
    2. Open both the build.gradle file and the build.gradle_isbtf file in a text editor.
    3. In the build.gradle_isbtf file, locate the line that contains the following text:
      /** ISBTF: ONLY MERGE THE LINE BELOW */
    4. Copy the line between the /** ISBTF: ONLY MERGE THE LINE BELOW */ and /** ISBTF: ONLY MERGE THE LINE ABOVE */ lines.
    5. Paste the copied line at the end of the build.gradle file.
    6. Save and close the build.gradle file.
    7. Close the build.gradle_isbtf file.
  5. Some files in the PolicyCenter refer to generated PCFs. If the generated files do not exist, the application will not start. To ensure the files exist:
    1. Open Guidewire Studio.
    2. Click Codegen > Generate Page Configuration Classes. When the class generation is complete, Studio shows a "Page configuration codegen done..." message in the lower left corner.

Install the behavior testing example

Procedure

  1. In the extracted directory that you created in Install Behavior Testing Framework for ContactManager, navigate to the example directory. This directory contains a modules directory.
  2. Merge the modules directory to the ContactManager directory.
  3. If messages appear that ask whether you want to merge the modules and any other directories, select the option that merges the directory.
  4. If other messages that ask whether you want to replace existing files appear, select the options that replace the existing files.