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

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

Review & Edit Test Plans

You can expand the test plans to review the test plan test case results history.

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

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:

OptionTypeDescription
-n, --nameText (String)Test plan name
-p, --profilesText (String)Connection profiles separated by ','
-r, --reportFlagGenerate a JUnit format test plan report
-rp, --report-pathPathSpecify 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.

XML Report

Filename: test-plan-240926102019.xml

<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="test-plan" tests="5" failures="1" time="4698" skipped="2">
   <testcase name="test1"/>
   <testcase name="good-test"/>
   <testcase name="good-test-2">
      <skipped></skipped>
   </testcase>
   <testcase name="sap-test">
      <skipped></skipped>
   </testcase>
   <testcase name="default">
      <failure message="Operator: EQUALS&#xa;Expected:&#xa;Status Code: 200&#xa;Actual:&#xa;Status Code: 500&#xa;">{"flowResult":{"statusCode":500,"lastStepName":null,"body":{"errorMessage":"SAP JCo library is not found in the classpath"}}}</failure>
   </testcase>
</testsuite>