Service Virtualization

Expand all | Collapse all

Create Test from Swagger document

Jump to Best Answer
  • 1.  Create Test from Swagger document

    Posted 09-04-2017 01:28 AM

    Hi,

    I am looking for a way to create the LISA/DevTest test using swagger definition file/url. I could able to see options to create VS from swagger. Woundering if there is a any way to create the LISA test from Swagger.

    PS: I am using DevTest 9.0 version.

     

    Thanks,

    Udhaya



  • 2.  Re: Create Test from Swagger document
    Best Answer

    Posted 09-04-2017 01:47 AM

    The support for creating baseline tests from a Swagger 2.0 document was added in DevTest 10.0 version.  So you need to upgrade your existing version to at least 10.0.

     

    You can read more about how to create Swagger test by referring this user documentation.

     

    Create a Swagger Test<https://docops.ca.com/devtest-solutions/10-0/en/using/using-ca-application-test/using-devtest-workstation-with-ca-application-test/open-devtest-workstation/quick-start-window%23QuickStartWindow-CreateaSwaggerTest>



  • 3.  Re: Create Test from Swagger document

    Posted 09-04-2017 01:51 AM

    Here is the correct link to the User documentation.

    Create a Swagger Test



  • 4.  Re: Create Test from Swagger document

    Posted 09-04-2017 07:29 PM

    Thank you Ashutosh.

    Does it creates the sample body based on the schema in the swagger document for the POST/PUT methods?

     

    Thanks,

    Udhaya



  • 5.  Re: Create Test from Swagger document

    Posted 09-05-2017 03:25 AM

    Yes it will populate the content based on the schema in your swagger definition file for POST/PUT method.

     

    Rest Step showing PUT method