Service Virtualization

  • 1.  Can any one help in creating test cases for virtual service created through swagger

    Posted Feb 15, 2018 03:13 PM
      |   view attached

    Can any one help in creating test cases for virtual service created through swagger? it gives me some junk test data for the testcases when i created virtual service through swagger. Is there a way to restrict/manipulate the data from any external file or through the tool. And there are around 8 testcases added for by default by the tool when creating VS using swagger. Is there a way to add/minus those testcase numbers.

     

    Thanks,

    Siva Notti



  • 2.  Re: Can any one help in creating test cases for virtual service created through swagger
    Best Answer

    Broadcom Employee
    Posted Feb 16, 2018 11:02 AM

    In your VSI-->Transaction-->Request Data-->Attributes-->recorded_raw_request will provide the request for your transaction. You can use this request in a REST step and execute it against the VS. If you want support to help you in a WebEx, please open a support case.



  • 3.  Re: Can any one help in creating test cases for virtual service created through swagger

    Posted Feb 19, 2018 05:05 PM

    Thanks Prema.

     

    I tried the approach it works fine. 

     

    However, it gives me some Junk Data, Is there a way to import the test data using any Excel file/Properties file.

     

    Thanks,

    Siva Notti



  • 4.  Re: Can any one help in creating test cases for virtual service created through swagger

    Broadcom Employee
    Posted Feb 20, 2018 10:17 AM

    What you mean by Junk Data? Are you taking about Request or Response?

     

    You can use data sets to read Excel/CSV files. If this is not what you are looking, please elaborate what you mean by importing the test data?