diff --git a/rtsl_util/CommonUtils/Dhis2CucumberTestTool/pom.xml b/rtsl_util/CommonUtils/Dhis2CucumberTestTool/pom.xml index 0a1100b..83fa376 100644 --- a/rtsl_util/CommonUtils/Dhis2CucumberTestTool/pom.xml +++ b/rtsl_util/CommonUtils/Dhis2CucumberTestTool/pom.xml @@ -97,6 +97,13 @@ v40.2.2 3.0.0 + + + org.freemarker + freemarker + 2.3.33 + + + + + + + diff --git a/rtsl_util/CommonUtils/Dhis2CucumberTestTool/src/main/resources/templates/register_facility_to_program.tpl.json b/rtsl_util/CommonUtils/Dhis2CucumberTestTool/src/main/resources/templates/register_facility_to_program.tpl.json new file mode 100644 index 0000000..20d3f73 --- /dev/null +++ b/rtsl_util/CommonUtils/Dhis2CucumberTestTool/src/main/resources/templates/register_facility_to_program.tpl.json @@ -0,0 +1,10 @@ +{ + "name": "Hypertension & Diabetes", + "shortName": "ncd_htn", + "programType": "WITH_REGISTRATION", + "organisationUnits": [ + { + "id": "${data.currentFaciliyId}" + } + ] +} diff --git a/rtsl_util/CommonUtils/Dhis2CucumberTestTool/src/test/resources/local_tests/logback.xml b/rtsl_util/CommonUtils/Dhis2CucumberTestTool/src/test/resources/local_tests/logback.xml index ce9f900..d28d845 100644 --- a/rtsl_util/CommonUtils/Dhis2CucumberTestTool/src/test/resources/local_tests/logback.xml +++ b/rtsl_util/CommonUtils/Dhis2CucumberTestTool/src/test/resources/local_tests/logback.xml @@ -11,7 +11,7 @@ - + diff --git a/rtsl_util/CommonUtils/Dhis2CucumberTestTool/src/test/resources/local_tests/scenarios/DemoDashboardAuditing.feature b/rtsl_util/CommonUtils/Dhis2CucumberTestTool/src/test/resources/local_tests/scenarios/DemoDashboardAuditing.feature index c4694d4..4b3c663 100644 --- a/rtsl_util/CommonUtils/Dhis2CucumberTestTool/src/test/resources/local_tests/scenarios/DemoDashboardAuditing.feature +++ b/rtsl_util/CommonUtils/Dhis2CucumberTestTool/src/test/resources/local_tests/scenarios/DemoDashboardAuditing.feature @@ -3,15 +3,19 @@ Feature: Demo Dashboard Auditing Scenario: Load Test Patients and check results Given I create a new Facility + Given I register that Facility for program "YQj5qpbzQxh" # # Patient 1 - Dead patient # Given I create a new Patient for this Facility with the following characteristics - | Field | Value | - | Name | Joe Bloggs | - | Registration_Date | 2024-01-16 | - | Has_hypertension | 'YES' | + | sB1IHYu2xQT | Test | + | YJGACwhN0St | true | + | jCRIT4GMMOS | YES | + | NI0QRzJvQ0k | 32 | + | Ot616hCy9j7 | KOLARA | + | ENRjVGxVL6l | TEST | + | v4DnYfXn9Mu | YES | Given That patient visited for Hypertension on "2024-01-16" with Blood Pressure reading 145:92 Given That patient visited for Hypertension on "2024-01-16" with Blood Pressure reading 145:92 Given That patient visited for Hypertension on "2024-02-02" with Blood Pressure reading 140:87