Package org.fhirfrog.frog.junit
Class ProgrammaticTestExecutor
java.lang.Object
org.fhirfrog.frog.junit.ProgrammaticTestExecutor
Executes TestScript/TestPlan files via DynamicTest execution.
Captures TestResult objects for TestReport generation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteTestPlan(String filePath, String serverUrl, Path fixtureBasePath) Execute a TestPlan file via JUnit.executeTestScript(String filePath, String serverUrl, Path fixtureBasePath) Execute a TestScript file via JUnit.executeTestScript(String filePath, String serverUrl, Path fixtureBasePath, String igPackage, String remoteTerminologyServerUrl) Execute a TestScript file via JUnit, withvalidateProfileIdassertions checked against a real IG package (plus its full transitive dependency closure) and/or an external terminology server.
-
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, withvalidateProfileIdassertions checked against a real IG package (plus its full transitive dependency closure) and/or an external terminology server. SeeTestScriptEngine'sigPackageandremoteTerminologyServerUrlbuilder options for what these resolve.- Parameters:
igPackage-"<id>#<version>"(e.g."hl7.fhir.au.core#2.0.0"), ornullto skip IG package validation (existing behaviour).remoteTerminologyServerUrl- base URL of an external FHIR terminology server, ornullto skip remote terminology lookups (existing behaviour).
-
executeTestPlan
public JUnitExecutor.ExecutionResult executeTestPlan(String filePath, String serverUrl, Path fixtureBasePath) Execute a TestPlan file via JUnit.
-