Extending Tests in Commerce Manager
Extending Tests in Commerce Manager
Prerequisites
- Ensure that the core bundles are built before extending Commerce Manager.
- Ensure that the system-tests module is built:
- To build the system tests, navigate to the
extensions/cm/ext-cm-modules/system-tests
module and run the following
command:
mvn clean install -DskipAllTests
- To build the system tests, navigate to the
extensions/cm/ext-cm-modules/system-tests
module and run the following
command:
- Download the latest browser driver and update the extensions/cm/ext-cm-modules/ext-system-tests/selenium/src/test/resources/RepositoryMap.xml with the driver version.
- Update the RepositoryMap.xml with the bash value of the browser
driver.
- To get the bash values, run the openssl sha1 <filename>
command.
The <filename> specifies the <filelocation> in the RepositoryMap.xml file.
- To get the bash values, run the openssl sha1 <filename>
command.
Step 2: Running Subset of Tests
In the
extensions/cm/ext-cm-modules/ext-system-tests/selenium/src/test/java/com/elasticpath/cucumber/
module, right-click a TestsIT class and click
Run.
You can create your own local runner class to run your own tagged tests.
For example, RunLocalTestsIT.java runs your own tagged
tests at local.
Note:
Do not commit the local runner class and tags
that are only for the local testing purpose.