Executing a Project Test Plan
The test plan will execute a series of project methods test cases in order
Test Center
A test plan lets the user test complex use cases using several test cases from several methods.
The Test Center menu offers the management of test plans.
![Test Plans](https://files.readme.io/4e780478b6f1c635c166ac838faaab7aea271ecb8a9cd2f61943a8b503d9f08b-image.png)
Test Plans
Create a Test Plan
On the Test Center page, click on the Create Test Plan button.
It will open a modal, where you can define the test plan name, project and a list of project test cases.
![Create a Test Plan](https://files.readme.io/f47689b7cd1bad1038e390aef07511dbbe32b0c009dc381f4692768943bcc336-image.png)
Create a Test Plan
Review & Edit Test Plans
You can expand the test plans to review the test plan test case results history
![](https://files.readme.io/e7893a3caf84b7c1adb4f5b3d4dfb648cc6ac5b5befbfc266fdd9832bc8bd554-image.png)
![Test Plan Test Cases History](https://files.readme.io/8cb983eb5de258d32291ca18e4d5c47b73ae07485f6d911c24222a18a6bd0589-image.png)
Test Plan Test Cases History
Run a Test Plan from the UI
You can run any test plan from the UI
![Run a Test Plan](https://files.readme.io/cf15a9346c6232cd91018fbcd8b9f6a0b6f1f6d18524a3258c31f880385f5c7d-image.png)
Run a Test Plan
The test cases will run in order, the first test case error result will result in a test plan error
Run a Test Plan from the CLI
You can also run a test plan from the CLI:
CLI Command
ol test plan --name test-plan1 --report
Options:
Option | Type | Description |
---|---|---|
-n, --name | Text (String) | Test plan name |
-p, --profiles | Text (String) | Connection profiles separated by ',' |
-r, --report | Flag | Generate a JUnit format test plan report |
-rp, --report-path | Path | Specify a path for the test plan report |
Example
ol test plan --name test-plan --profiles test --report --report-path /tests
Response:
test-plan > test1 PASSED
test-plan > good-test PASSED
test-plan > default FAILED
test-plan > good-test-2 SKIPPED
test-plan > sap-test SKIPPED
test-plan FAILED
5 tests completed, 1 failed, 2 skipped. executed in 5354ms.
FAILED
An XML report file will be created in the specified path.
test-plan-240926102019.xml
{"flowResult":{"statusCode":500,"lastStepName":null,"body":{"errorMessage":"SAP JCo library is not found in the classpath"}}}Updated 4 months ago