Chapter 10. Running a test scenario locally
In Red Hat Decision Manager, you can either run the test scenarios directly in Business Central or locally using the command line.
Procedure
-
In Business Central, go to Menu
Design Projects and click the project name. - On the Project’s home page, select the Settings tab.
-
Select git URL and click the Clipboard
to copy the git url.
- Open a command terminal and navigate to the directory where you want to clone the git project.
Run the following command:
git clone your_git_project_url
git clone your_git_project_url
Copy to Clipboard Copied! Replace
your_git_project_url
with relevant data likegit://localhost:9418/MySpace/ProjectTestScenarios
.Once the project is successfully cloned, navigate to the git project directory and execute the following command:
mvn clean test
mvn clean test
Copy to Clipboard Copied! Your project’s build information and the test results (such as, the number of tests run and whether the test run was a success or not) are displayed in the command terminal. In case of failures, make the necessary changes in Business Central, pull the changes and run the command again.