Install Behavior Testing Framework for ContactManager
Procedure
-
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.
-
Install the framework files.
- In the extracted directory, navigate to the framework directory. This directory contains a modules directory.
- Merge the modules directory into the ContactManager directory.
- If messages appear that ask whether you want to merge modules and any other directories, select the option that merges the directory.
-
Enable code generation of the native page model. This lets Behavior Testing Framework
interact with PCF elements and screens.
- In the ContactManager directory, open the gradle.properties file in a text editor.
-
Locate the
isPcfTestCodegenEnabledproperty and set its value totrue. - Save and close the file.
-
Add a command for running a Cucumber test suite to the
build.gradle file.
- In the ContactManager directory, navigate to the modules/configuration directory.
- Open both the build.gradle file and the build.gradle_isbtf file in a text editor.
-
In the build.gradle_isbtf file, locate the line that contains
the following text:
/** ISBTF: ONLY MERGE THE LINE BELOW */ -
Copy the line between the
/** ISBTF: ONLY MERGE THE LINE BELOW */and/** ISBTF: ONLY MERGE THE LINE ABOVE */lines. - Paste the copied line at the end of the build.gradle file.
- Save and close the build.gradle file.
- Close the build.gradle_isbtf file.
-
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:
- Open Guidewire Studio.
- Click . 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
- 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.
- Merge the modules directory to the ContactManager directory.
- If messages appear that ask whether you want to merge the modules and any other directories, select the option that merges the directory.
- If other messages that ask whether you want to replace existing files appear, select the options that replace the existing files.
