Forum Discussion

wolfie665's avatar
wolfie665
Occasional Visitor
6 years ago

How to generate mock service responses from yaml imported properties definitions

Hello all,

 

bear in mind I have not used SOAP UI in a while.

 

I have yaml swagger API OpenAPI 3.0 which I have used to generate the API in a new project and also have generated all test cases and a mock service. Two questions:

 

1. I want to generate responses in the mock service from the existing .yaml schema properties definitions.

 

In each property I have a field called example which contains exampla data. Say:

 

components:
  schemas:
    User:
      properties:
        name:
          string:
          example: "John"

 

Is there any way I can use the schema there and the example data to generate mock service response data?

 

2. Also it would be nice to generate assertions in all test requests I have already in the generated Test cases.

 

Any ideas people how to do the above?

 

Thank you,

 

 

No RepliesBe the first to reply