Service virtualization - Virtualan integration with Openapi
Setup Guide:
- Pre-requisite:
- openapi-generator (With Virtualan version)
- Virtualan code:
- Implementation sample code with pet store :
- Deploy and Start the service:
- It just supports only for Spring REST services as of now:
- Run the following command:
- mvn -U -Dmaven.javadoc.skip=true clean install
- java -jar virtualan-pet.jar
- Usage and Testing:
- Navigate to the http://localhost:<8080>/virtualan-ui.html to set up the Mock data.
Test the Service with any rest client: Hope you have satisfied with the response :)
Thank you for visiting to this page..
Benefits of Virtualan:
- Setup your request and response for the given Request parameters(Path/Query/RequestBody) using UI.
- Dynamic Mock data and set any number of request responses for the different scenarios
- You can test your system upfront[Before integration with real service] with all dependent Micorservices.
- Setup all supporting service data using Virtualan service
- Create automated test suit using Virtualan service[Exposed as Rest service]
- Virtualan would support only OAS Yaml
- Just supports only Spring Rest service.. Enhanced later to service need basis
- Create data
- Using Virtual Rest Endpoint
- https://github.com/elans3/openapi-virtualan/blob/master/src/main/resources/virtualservices.yaml
- Using UI provided by Virtualan
- Service virtualization removes constraints with regard to dependency availability in test environments.
- Data-driven virtual assets allow test teams to easily manage their test data and increase their test coverage.
- Service virtualization can enable or enlarge the scope of automated testing.
- Testers are not the only ones who may benefit from using service virtualization.
- Refer this URL: https://www.stickyminds.com/article/4-ways-boost-your-test-process-service-virtualization (Courtesy: Bas Dijkstra)
Great job Elan!!!
ReplyDelete