0% found this document useful (0 votes)
13 views3 pages

Specmatic vs WireMock in API Testing

The document outlines the end-to-end testing life cycle, API integration and automation strategies, and key performance testing factors, particularly in the banking domain. It discusses automation tools, OTP integration methods, and cloud testing experiences while emphasizing the importance of process optimization and contract testing in API development. Additionally, it highlights the significance of schema testing and API chaining for ensuring compatibility and structural integrity in software applications.

Uploaded by

bapatlaa
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views3 pages

Specmatic vs WireMock in API Testing

The document outlines the end-to-end testing life cycle, API integration and automation strategies, and key performance testing factors, particularly in the banking domain. It discusses automation tools, OTP integration methods, and cloud testing experiences while emphasizing the importance of process optimization and contract testing in API development. Additionally, it highlights the significance of schema testing and API chaining for ensuring compatibility and structural integrity in software applications.

Uploaded by

bapatlaa
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

1.

End-to-End Testing Life Cycle


Starts with Requirement Analysis → Test Planning → Test Case Design →
Test Environment Setup → Test Execution → Defect Reporting and Tracking
→ Test Closure. Automation can span design to execution for regression-
heavy modules.

2. API Integration & Automation


Integration: Use tools like Postman to verify manually, then implement in
automation using libraries such as RestAssured (Java) or HTTPClient
(C#).
Automation: Structure includes request building, assertion of response
payload, status codes, headers, and logging. TOSCA can be used for API
modules with chaining logic.

3. Key Performance Testing Factors

 Load profile & peak concurrency

 Throughput & response time SLAs

 Infrastructure (CPU, memory, DB I/O)

 Tools: JMeter, LoadRunner, Gatling

 Realistic data and user behavior modeling

4. Banking Domain Scenarios

 Fund Transfer, RTGS/NEFT/IMPS

 Loan Origination & EMI processing

 Account KYC updates

 Failed transaction handling

 Credit scoring
Heavily regulated, so compliance and security testing are
paramount.

5. OTP Integration in Automation


If intercepted via SMS: Integrate with Android’s SMS Retriever API, or use
emulators with permission to access SMS inbox.
Alternative: Use mock OTP API/stubs for non-production testing.

6. Cloud Testing Experience


Check functionality, performance, and scalability of apps on AWS, Azure,
or GCP. Includes infrastructure validation, autoscaling, failover testing,
and cost optimization checks.
7. API Implementation in Projects
In Agile, API contracts (e.g., Swagger/OpenAPI) are shared early. Devs
implement endpoints, QA tests independently using mocks (via
WireMock/Postman), then integrate with actual services.

8. Process & Work Optimization


Examples:

 Reusable test automation frameworks

 Early automation in Sprint (Shift Left)

 Reduced execution time using parallel runs (e.g., Selenium Grid,


Azure DevOps)

 CI/CD pipeline integration for automated smoke suites

9. Automation Tools Previously Used

 Functional: Selenium, Cypress, TOSCA, UFT

 API: Postman, RestAssured, TOSCA API, SOAP UI

 CI/CD: Jenkins, Azure DevOps

 Versioning: Git, Bitbucket

10. API Chaining (with Example)


Chaining passes dynamic data between API calls.
Example:

 POST /login → returns token

 GET /profile using that token in headers


Implemented in automation using variable storage and parameter
substitution (TOSCA or Postman supports this).

11. Automating OTP on Mobile App


Use tools like Appium with Android permissions to read messages.
Flow:

1. Interact with UI to trigger OTP

2. Access device inbox (using Appium + ADB)

3. Extract OTP using regex

4. Input OTP into app

12. Schema Testing in API Testing


Validates that the API response matches a predefined JSON/XML schema.
Helps in catching structural issues like missing fields, type mismatches.
Tools: Postman, RestAssured with JSON Schema Validator.
13. Contract Testing
Ensures compatibility between consumer and provider of an API.
Tools like Pact help simulate and verify expectations, crucial in
microservice architecture. Detects breaking changes early before full
integration.

You might also like