Target Products: WSO2 Identity Server & Asgardeo Tool Used: Postman + Newman
This repository contains an automated API testing suite for WSO2 Identity Server and Asgardeo, aimed at improving test efficiency, reducing test time, and ensuring better API reliability, especially where UI-based testing is time-consuming.
This test suite focuses on comprehensive backend-level API validation for WSO2 Identity Server and Asgardeo. The primary goal is to ensure correctness, security, and stability of all exposed API endpoints critical to Identity and Access Management.
Key Areas Covered:
- Authentication & Authorization
- Token generation and validation
- Session and consent management
- OAuth2/OpenID Connect flows
- SCIM (User & Role Management)
- User creation, update, deletion
- Role assignment and group management
- Attribute-level access validation
- Application Management
- Registering and configuring service providers
- Application update and deletion workflows
- SAML/OIDC configurations
Other Core APIs as listed in the WSO2 Identity Server latest API documentation including:
- Identity Provider APIs
- Consent Management
- Tenant Management
- Claim Management
- Account Recovery and Self-Service APIs
- Validate API response structure and error handling
- Automate regression checks using Postman and Newman
- Enable CI/CD-ready test execution
- Generate detailed HTML test reports
- Improve developer support and test scalability
- Workspace Setup Postman collections created and executed using Postman app
Environment variables to be added for token management and API base URLs
- API Collections Grouped by functional modules:
Authentication (OAuth) SCIM v2 APIs (Users, Groups, Roles) Applications (App lifecycle) Test scripts include JavaScript validations (status codes, response data)
- Test Execution Use Newman CLI for running collections:
newman run collection.json -k
- CI/CD Integration GitHub Actions workflow includes:
Starting WSO2 Identity Server (build or Docker)
Running Newman CLI tests
Uploading test artifacts and HTML reports
- Reporting Newman generates:
Detailed CLI output
HTML reports for summary & debugging
- Maintenance Test cases stored in Git repo with version control
Test suite designed for modularity and easy scaling
Regular updates to match API spec changes