Skip to main content

GT-Framework UI Tests

Use GT-Framework UI Tests to test the UI of an application. This build is available only with GT Framework at Garmisch or later release.

Build parameters

Before you run the TeamCity build, you can modify its parameters. Note that these modified values override parameters specified through other means, for example through configuration files.

Configuration parameters

Configuration parameterDescription
GT Framework capabilitiesAdditional GT: Framework arguments.
TestCafe argumentsTestCafe arguments for UI behavior and functional test suites.
Behavior Tests argumentsCucumber arguments for UI behavior test suites.
Functional Tests argumentsTest arguments for UI functional test suites.
TestCafe ImageDocker image used to run GT framework tests. Docker images remain compatible with ski releases until a new image for the release is provided. The default value is mammoth-docker and you can override it.

System properties

System propertyDescription
Enable/Disable GT: ManagementSelect to enable GT: Management.
XRAY Feature DirPath to feature files to synchronize with Jira Cloud by GT: Management.
XRAY Filter IdJira filter ID for scenario labels to synchronize with Jira Cloud by GT: Management.
XRAY Project IdJira project ID to synchronize to Jira Cloud with GT: Management.
XRAY Reports DirRepository for generated Cucumber reports that XRay uses to synchronize. Must be located within the GT-Framework folder.

Environment variables

Environment variableDescription
BillingCenter base URLBase URL of BillingCenter against which you can run the GT Framework tests.
ClaimCenter base URLBase URL of ClaimCenter against which you can run the GT Framework tests.
ContactManager base URLBase URL of ContactManager against which you can run the GT Framework tests.
Headless runWhen set to the default value %env.headless%, the GT Framework UI test is run without any interaction with a browser.
Jira API TokenJira API token for GT: Management.
Jira API URLJira API URL for GT: Management.
Jira API UserJira API user for GT: Management.
PolicyCenter base URLBase URL of PolicyCenter against which you can run the GT Framework tests.
XRAY Client IDClient ID for Xray Test Management in Jira for GT: Management.
XRAY Client SecretClient secret for Xray Test Management in Jira.
XRAY import/export limitMaximum number of features that can be exported or imported before XRay stops. The default value is 100.

Tip:

If your tests fail and you suspect that the selectors aren't visible because of the window size, you can change the window size with the following command: npm run gt-ui-tests -- --browser="chrome '--window-size=1920,1080'" --headless=false.

Run GT Framework UI tests

To run the testing build:

  1. In TeamCity, select your project and go to GuidewireTestingFramework.

  2. Select GT-Framework Tests.

  3. Select Run.

    • In the Changes tab, select the branch that you want to use for testing.
    • In the Parameters tab, specify the configuration parameters and environment variables. These changes aren't persistent and apply only to a single run of the TeamCity build.
  4. Select Run Build.