- Java IDE (IntelliJ Idea, Eclipse etc.)
- Java jdk and jre
Tests are executed via JUnitRunner but cucumber.filter.tags should be specified in junit-platform.properties at first. (for example "not @ignore" will run all except test marked with @ignore tag) Other option - run tests from feature files. You can run whole feature or specific scenario with "Run" button which is located next to it
Target environment should be specified in CucumberHooks.class (DEV, QA or PROD although the last one should be used carefully and only with approval within TA team)
CI configuration of tests can be found in .circleci/config.yml.
Tests on CI are being executed within Jobs.Build.Steps node -run option. Commands are located here
Latest executions of tests can be found in CircleCI. If you see 404 after navigating there it means that your git account doesn't have read access to repository since CircleCI inherits permissions from gitHub.
Below you can find postman export of API call which needs to be invoked to trigger build. 3 things needs replacement: Below you can find postman export of API call which need to be invoked to trigger build. 4 things needs replacement:
- $CIRCLE_CI_TOKEN - used as username parameter of basic auth, can be acquired in CI environment.
- ENVIRONMENT parameter determine on which environment tests will be executed (make sure that you have specified it in lowercase).
- TestTag - specify tag which you want to run on CI (could be multiple tags).
- ApiTrigger - set to this param to true to run automation job on_demand
curl --location --request POST 'https://app.circleci.com/pipelines/github/KWRI/ui-automation-kwfs/pipeline' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'x-attribution-login: string' \
--header 'x-attribution-actor-id: string' \
--header 'Authorization: Basic $CIRCLE_CI_TOKEN' \
--data-raw '{
"branch": "master",
"parameters": {
"ENVIRONMENT": "[qa or prod]",
"TestTag": "{TestTag}",
"ApiTrigger": true
}
}'
This repository has following scheduled events:
- Nightly executions - Regression scope every night of working week;
Each test step should have description of its functionality in case if definition of step itself doesn't provide enough information. Also, you can refer to StepsLibrary.
- ui-financial-statement