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 parameter | Description |
---|---|
GT Framework capabilities | Additional GT: Framework arguments. |
TestCafe arguments | TestCafe arguments for UI behavior and functional test suites. |
Behavior Tests arguments | Cucumber arguments for UI behavior test suites. |
Functional Tests arguments | Test arguments for UI functional test suites. |
TestCafe Image | Docker 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 property | Description |
---|---|
Enable/Disable GT: Management | Select to enable GT: Management. |
XRAY Feature Dir | Path to feature files to synchronize with Jira Cloud by GT: Management. |
XRAY Filter Id | Jira filter ID for scenario labels to synchronize with Jira Cloud by GT: Management. |
XRAY Project Id | Jira project ID to synchronize to Jira Cloud with GT: Management. |
XRAY Reports Dir | Repository for generated Cucumber reports that XRay uses to synchronize. Must be located within the GT-Framework folder. |
Environment variables
Environment variable | Description |
---|---|
BillingCenter base URL | Base URL of BillingCenter against which you can run the GT Framework tests. |
ClaimCenter base URL | Base URL of ClaimCenter against which you can run the GT Framework tests. |
ContactManager base URL | Base URL of ContactManager against which you can run the GT Framework tests. |
Headless run | When set to the default value %env.headless% , the GT Framework UI test is run without any interaction with a browser. |
Jira API Token | Jira API token for GT: Management. |
Jira API URL | Jira API URL for GT: Management. |
Jira API User | Jira API user for GT: Management. |
PolicyCenter base URL | Base URL of PolicyCenter against which you can run the GT Framework tests. |
XRAY Client ID | Client ID for Xray Test Management in Jira for GT: Management. |
XRAY Client Secret | Client secret for Xray Test Management in Jira. |
XRAY import/export limit | Maximum 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:
-
In TeamCity, select your project and go to GuidewireTestingFramework.
-
Select GT-Framework Tests.
-
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.
-
Select Run Build.