public void runTestPlan(String resourcePath, ClassLoader cl, String baseApiUrl) {
        TestPlan testPlan = TestUtil.loadTestPlan(resourcePath, cl);
        log("");
        log("-------------------------------------------------------------------------------");
        log("Executing Test Plan: " + resourcePath);
        log("   Base API URL: " + baseApiUrl);
        log("-------------------------------------------------------------------------------");
        log("");
        for (TestGroupType group : testPlan.getTestGroup()) {
            log("-----------------------------------------------------------");
            log("Starting Test Group [{0}]", group.getName());
            log("-----------------------------------------------------------");

            for (TestType test : group.getTest()) {
                String rtPath = test.getValue();
                Integer delay = test.getDelay();
                log("Executing REST Test [{0}] - {1}", test.getName(), rtPath);
                if (delay != null) {
                    try {
                        Thread.sleep(delay);
                    } catch (InterruptedException e) {
                    }
                }
                if (rtPath == null || rtPath.trim().isEmpty()) {
                    continue;
                }
                RestTest restTest = TestUtil.loadRestTest(rtPath, cl);
                runTest(restTest, baseApiUrl);
                log("REST Test Completed");
                log("+++++++++++++++++++");
            }

            log("Test Group [{0}] Completed Successfully", group.getName());
        }

        log("");
        log("-------------------------------------------------------------------------------");
        log("Test Plan successfully executed: " + resourcePath);
        log("-------------------------------------------------------------------------------");
        log("");
    }
Called to run a test plan.

@param resourcePath
@param cl
@param baseApiUrl
test/common/src/main/java/io/apiman/test/common/util/TestPlanRunner.java