https://github.com/virtualansoftware/service-virtualization
Service virtualization is the simulation of the behavior of software components that are unavailable or otherwise restricted during the preproduction stage of the software development lifecycle.
https://github.com/virtualansoftware/service-virtualization
api demo enduser mocking salesforce salesforce-apex salesforce-developers salesforce-metadata salesforce-patner servicevirtualization testautomation wsdl
Last synced: 2 months ago
JSON representation
Service virtualization is the simulation of the behavior of software components that are unavailable or otherwise restricted during the preproduction stage of the software development lifecycle.
- Host: GitHub
- URL: https://github.com/virtualansoftware/service-virtualization
- Owner: virtualansoftware
- Created: 2020-09-22T12:24:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-21T17:27:39.000Z (about 1 year ago)
- Last Synced: 2024-03-21T18:39:57.126Z (about 1 year ago)
- Topics: api, demo, enduser, mocking, salesforce, salesforce-apex, salesforce-developers, salesforce-metadata, salesforce-patner, servicevirtualization, testautomation, wsdl
- Language: Java
- Homepage: https://sforce.virtualandemo.com/virtualan-ui.html
- Size: 682 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 73
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Virtualan
[](https://search.maven.org/search?q=g:%22io.virtualan%22%20AND%20a:%22virtualization%22) [](https://travis-ci.com/virtualansoftware/service-virtualization-openapi)
> Virtualan is an open source-based Open API Interface driven, Kafka, AMQ and MQTT Service virtualization product. It supports #OpenAPI, #AsyncAPI test development. This supports #shiftleft testing.
**Product page:** https://www.linkedin.com/products/virtualan-software-virtualan/
**Tutorials:** https://tutorials.virtualan.io/#/Virtualan
**Example:** https://github.com/virtualansoftware/service-virtualization-openapi
**Video:** https://www.youtube.com/watch?v=otTjbPxT0W8
**Docker Image:** https://hub.docker.com/r/virtualan/service-virtualization
*I. Initial Set up your project for the WSDL Specification* :
- Why/How to store the mock data in the centralized place:
It always provides a choice to choose your data base and configure(spring-jpa). Need to provide data base information in the Application.properties in the "src/main/resources" directory of your spring boot application: This would requires if you don't want to loose the existing mock data because as you redeploy the code the data would be lost.- In memory DB: (Eveny restart you lose the old data)
- virtualan.datasource.driver-class-name=org.hsqldb.jdbcDriver
- virtualan.datasource.jdbcurl=jdbc:hsqldb:mem:dataSource
- virtualan.datasource.username=sa
- virtualan.datasource.password=
- Add the following entry for each Interface Spec/wsdl to be set up as mock service:
- to setup "apex.wsdl" need to add following entry in the pom.xml. refer the pom.xml for reference
```html
org.apache.cxf
cxf-codegen-plugin
3.3.7
virtualan-generate-sources
generate-sources
${basedir}/src/main/java
${basedir}/src/main/resources/META-INF/resources/wsdl/Hello/helloworld.wsdl
-xjc-Xequals
-xjc-XhashCode
-xjc-XtoString
${project.basedir}/src/main/resources/xjb/bindings.xjb
wsdl2java
org.jvnet.jaxb2_commons
jaxb2-basics
0.6.5
```*II. Navigate to root directory of the folder where pom.xml was present*:
- Build:
- mvn clean install
- If you have any proxy issue use this command: mvn -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 clean install
- Run using standalone JAR:
- java -jar target/virtualan-wsdl-demo.jar- To set up data:
- Using Virtualan-UI:
https://github.com/virtualansoftware/virtualan/wiki/Test-Data-Set-up-using-Virtualan
- open API Contract:
https://github.com/virtualansoftware/virtualan/blob/master/modules/virtualan-plugin/src/main/resources/virtualservices.yaml
- Using Virtualan-Rest service: for automation usecases
https://github.com/virtualansoftware/virtualan-openapi-demo/blob/master/src/test/resources/features/demo/demo.feature
- Invoke Virtualan UI:
- Navigate to http://localhost:8080/virtualan-ui.html
- More details about the user interface refer: https://github.com/virtualansoftware/virtualan/wiki