Skip to main content
Version: 3.7.x

Testing Commerce

The Jenkins jobs described in this section run Commerce system and unit tests.

The run-cortex-system-tests job

The run-cortex-system-tests Jenkins job in CloudOps for Kubernetes runs Cortex Cucumber tests defined in the Self Managed Commerce (ep-commerce) code, against a deployed Self Managed Commerce environment. The parameters this job uses are:

Jenkins parameters

kubernetesNickname

Specifies the nickname of the existing Self Managed Commerce environment against which to run the Cortex system tests.

cloudOpsForKubernetesRepoURL

The Git repository from which to pull CloudOps for Kubernetes code.

cloudOpsForKubernetesBranch

The branch of CloudOps for Kubernetes to use.

epCommerceRepoURL

The Git repository from which to pull the Self Managed Commerce code where the tests are defined.

epCommerceBranch

The branch of Self Managed Commerce to use.

epCommerceCredentialId

The Jenkins credentials to use when checking out the ep-commerce code.

The run-select-commerce-tests job

The run-select-commerce-tests Jenkins job in CloudOps for Kubernetes runs Commerce tests against an installed Self Managed Commerce deployment package. The job independently builds the deployment package for each job run. The parameters this job uses are:

Jenkins parameters

SELECTED_TEST_STRING

The string value of the commerce tests to run.

cloudOpsForKubernetesBranch

The branch of CloudOps for Kubernetes to test.

cloudOpsForKubernetesRepoURL

The Git repository from which to pull CloudOps for Kubernetes code.

epCommerceBranch

The branch of Self Managed Commerce to test.

epCommerceRepoURL

The Git repository from which to pull the Self Managed Commerce code where the tests are defined.

epCommerceCredentialId

The Jenkins credentials to use when checking out the Self Managed Commerce code.

passBuildEvenIfTestsFail

Set the parameter to true if you would like the build to be marked as unstable even if the tests fail.

FAIL_AT_END

Set the parameter to true if you would like the build to exit as a failure at the end of all of the tests execution if one the tests fail. If you would like the job to exit on the first test failure and ignore the remaining tests, then set the parameter to false.

The run-recursive-commerce-tests job

The run-recursive-commerce-tests Jenkins job in CloudOps for Kubernetes runs all of the Commerce user-acceptance tests under a specified point of the Commerce source tree. It first performs a local build, then recursively finds all user acceptances tests under the package specified in the parameters, and finally runs those tests as well as the test specified in the parent pom.xml file. The parameters this job uses are:

Jenkins parameters

moduleToTestRecursively

The string value of the Self Managed Commerce module whose tests you want to run. You can specify the module name (eg: extensions) or the path to pom.xml file (eg: extensions/pom.xml). All the the tests defined in that module and any sub-modules will be run.

cloudOpsForKubernetesBranch

The branch of CloudOps for Kubernetes to test.

cloudOpsForKubernetesRepoURL

The Git repository from which to pull CloudOps for Kubernetes code.

epCommerceBranch

The branch of Self Managed Commerce to test.

epCommerceRepoURL

The Git repository from which to pull the Self Managed Commerce code where the tests are defined.

epCommerceCredentialId

The Jenkins credentials to use when checking out the Self Managed Commerce code.

passBuildEvenIfTestsFail

Set the parameter to true if you would like the build to be marked as unstable even if the tests fail.

FAIL_AT_END

Set the parameter to true if you would like the build to exit as a failure at the end of all of the tests execution if one the tests fail. If you would like the job to exit on the first test failure and ignore the remaining tests, then set the parameter to false.