Service Virtualization

 View Only
Expand all | Collapse all

Getting 'No Protocol' Error while uploading data to a container

  • 1.  Getting 'No Protocol' Error while uploading data to a container

    Posted Sep 30, 2019 02:36 AM
    Edited by Narasimha Sep 30, 2019 03:00 AM
    Hi All, @Srikanth Gajawada, @gajsr01, @Koustubh Warty

    I have created a test case for creating a Virtual Service using swagger file. I am using following instructions as per the below link(for WSDL).
    1) I have uploaded 'Swagger file' under 'Content' tab by selecting Type as 'Property/URL' and Content Type as 'application/json'
    2) Under header tab I have parameterised Accept as 'application/zip' and content-type as 'multipart/form-data'

    https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/continuous-testing/devtest-solutions/10-5/using/using-the-apis/virtual-service-invoke-api.html#concept.dita_b344a409fadb5375f4ca2fe3245f17cda4cd612c_CreateaVirtualServicefromRRPairsoraSpecificationDocumentWSDL

    Using DevTest 10.4 (Swagger-V2) version.

    Getting following error, while I am at 'Upload data to input container' step.

    Error Message:
    | java.net.MalformedURLException: no protocol: {
    {{Swagger details are present which I have passed through content tab}}
    at java.net.URL.<init>(URL.java:593) at java.net.URL.<init>(URL.java:490) at java.net.URL.<init>(URL.java:439) at com.itko.lisa.ws.nx.NxWSStep$LisaURLDataSource.<init>(NxWSStep.java:1374) at com.itko.lisa.ws.nx.NxContent.getDataHandler(NxContent.java:127) at com.itko.lisa.ws.rest.RESTNodeBase.genActualPost(RESTNodeBase.java:450) at com.itko.lisa.ws.rest.RESTNodeBase.execute(RESTNodeBase.java:372) at com.itko.lisa.ws.rest.RESTNodeEditor$4.doCallback(RESTNodeEditor.java:1099) at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:195) at java.lang.Thread.run(Thread.java:745) ============================================================================</init></init></init></init>

    Thanks,
    Narasimha.​​​


  • 2.  RE: Getting 'No Protocol' Error while uploading data to a container
    Best Answer

    Posted Oct 01, 2019 02:14 AM
    Hi Narasimha,

    I believe the instructions are for WSDL and may not work for swagger file. In 10.5 there is an option of creating virtual service from swagger file via APIs.

    Thanks.

    ------------------------------
    Regards,
    Vaibhav Jain
    Capgemini
    ------------------------------