Class ProgrammaticTestExecutor

java.lang.Object
org.fhirfrog.frog.junit.ProgrammaticTestExecutor

public class ProgrammaticTestExecutor extends Object
Executes TestScript/TestPlan files via DynamicTest execution. Captures TestResult objects for TestReport generation.
  • Constructor Details

    • ProgrammaticTestExecutor

      public ProgrammaticTestExecutor()
  • Method Details

    • executeTestScript

      public JUnitExecutor.ExecutionResult executeTestScript(String filePath, String serverUrl, Path fixtureBasePath)
      Execute a TestScript file via JUnit.
    • executeTestScript

      public JUnitExecutor.ExecutionResult executeTestScript(String filePath, String serverUrl, Path fixtureBasePath, String igPackage, String remoteTerminologyServerUrl)
      Execute a TestScript file via JUnit, with validateProfileId assertions checked against a real IG package (plus its full transitive dependency closure) and/or an external terminology server. See TestScriptEngine's igPackage and remoteTerminologyServerUrl builder options for what these resolve.
      Parameters:
      igPackage - "<id>#<version>" (e.g. "hl7.fhir.au.core#2.0.0"), or null to skip IG package validation (existing behaviour).
      remoteTerminologyServerUrl - base URL of an external FHIR terminology server, or null to skip remote terminology lookups (existing behaviour).
    • executeTestPlan

      public JUnitExecutor.ExecutionResult executeTestPlan(String filePath, String serverUrl, Path fixtureBasePath)
      Execute a TestPlan file via JUnit.