Seeking Guidance on API Automation Testing Frameworks for DHIS2

Hello,

I’m currently working on automating API tests for DHIS2 and have started writing test scripts using Postman. However, I haven’t found a clear, established framework to build upon and would appreciate any guidance from the community.

Has anyone worked with or come across a structured API automation testing framework for DHIS2? I’m looking for recommendations, best practices, or insights on how to efficiently implement test automation for DHIS2 APIs.

I’d greatly appreciate any advice or direction. Thank you in advance for your help!

Hi @Sasquatch

Welcome to the DHIS2 Community! :tada:

This docs (Introduction - DHIS2 Documentation) explains each endpoint. You can also find a number of examples on DHIS2 API - user | DHIS2 .

Would you like to share an example of what you’re looking for?

Thanks!

Hello

Thanks for the welcome and the reply!

Currently, I manually create test data to register patients as Tracked Entity Instances, enroll them into appropriate programs (including event programs where patient information is selected), and validate the data. I’m looking to transition these tasks to an automated process and integrate them into a CI/CD pipeline for continuous validation during deployments.

The examples you shared on the DHIS2 API are appreciated! I would like to know if there is a way to export the examples you provided here into Postman?

Thanks!

Hey,

Thanks! :slight_smile:

You can copy the request and then in Postman, it’s possible to paste the cURL directly in the request bar to import:

It’d be great to get feedback and what additional questions you might have when you run the testing.