Anchor | ||||
---|---|---|---|---|
|
Tip |
---|
To know about Mock Server framework. |
Info |
---|
Platform Mock Server is used to test the working of agents by creating expectations for each DevOps tool. When Mock Server receives a requests it matches the request against active expectations that have been configured. Platform Mock Server is available to use in the form of jar file. |
Panel | ||
---|---|---|
| ||
Every expectation can have 4 fields:
|
Panel |
---|
How to Create Expectations:
5. Remember response will always return list.
6. Path and Response are mandatory fields which needs to be present inside every json object. Others are not mandatory. 7. For more details, visit http://www.mock-server.com/. How to Start Platform Mock Server:
Java java –jar PlatformMockServer.jar 3. Restart Mock Server after any change in the json file to take changes into effect. 4.Default port of Mock Server is 1080. 5. localhost:1080/toolname will be your base URL in the agent config file. Tool name is just for identification. |
Back to Top