Presentation is loading. Please wait.

Presentation is loading. Please wait.

Test Case Structure Test Case Module(depend on framework) MocoServer

Similar presentations


Presentation on theme: "Test Case Structure Test Case Module(depend on framework) MocoServer"— Presentation transcript:

1 Test Case Structure Test Case Module(depend on framework) MocoServer
Code: MocoServer Contain interfaces to start/stop moco server. Add response json or prepare custom response TestCase Init moco-server/Create topology Load test case files, provide any input to URL. Validate the response. Extract any information from response. Resource MocoServer Stubs (JSON) Contain request , URL and response to be stub. Now only URL is matched and response is sent. All controllers are having separate folder to stub. Inventory files (JSON) Contain inventory details to be sent to inventory database, URL, method.. Framework reads the directory and sends all json to the URL present in each json file. Test Framework Module: Interfaces to deal with moco-server. Interfaces to deal with test case execution and validation. Interfaces to deal with inventory

2 Sample Test case

3 Test case and moco-server json format
Contains request and expected response or response to mock Inventory json format Contains inventory details. More need to be done to make it simple.


Download ppt "Test Case Structure Test Case Module(depend on framework) MocoServer"

Similar presentations


Ads by Google