Service Virtualization

 View Only
  • 1.  How to get details from zip file name returned in REST response in DevTest v8.5

    Posted Apr 19, 2016 09:34 AM

    REST response returned has file name with .zip extension mentioned ,  also some characters due to which i am not able to copy and paste here.. i feel its ASCII format. Under Content section below is details i see

     

    HTTP/1.1 200 OK

    Date: Tue, 19 Apr 2016 13:24:27 GMT@

    X-Powered-By: Servlet/3.0

    Content-Length: 684

    Content-Disposition: attachment; filename=CustomerScore_ESURANCE_DRIVESENSE_2016-04-18.zip

    Cache-Control: no-store

    Pragma: no-cache

    Keep-Alive: timeout=10, max=500

    Connection: Keep-Alive

    Content-Type: application/octet-stream

    Content-Language: en-US

     

    Is there any way i can get  CustomerScore_ESURANCE_DRIVESENSE_2016-04-18.zip  details when response is returned ?  Please share your thoughts, any help appreciated.



  • 2.  Re: How to get details from zip file name returned in REST response in DevTest v8.5

    Posted May 10, 2016 10:20 AM

    Please let me know any updates on my query.



  • 3.  Re: How to get details from zip file name returned in REST response in DevTest v8.5

    Broadcom Employee
    Posted May 10, 2016 12:57 PM

    On the Rest step use the following filter available under HTTP/HTML section

     

     

    The property fl_CD will have a value similar to

    attachment; filename=CustomerScore_ESURANCE_DRIVESENSE_2016-04-18.zip

     

    The expression {{=fl_CD.substring(21)}} would give the file name that you required



  • 4.  Re: How to get details from zip file name returned in REST response in DevTest v8.5

    Posted May 12, 2016 11:01 AM

    Hi sjarali77,

     

    Did Prem's response answer your question? If so, please be sure to mark it as correct.

     

    Thanks!

    Melanie



  • 5.  Re: How to get details from zip file name returned in REST response in DevTest v8.5

    Posted May 13, 2016 09:36 AM

    Hi Melanie,

     

    Actually my query was that in response i get some binary data which will have file in.zip , which we cannot download automatically in DevTest.

    When we use open source tool like Modify Header plug-in in Firefox , once we trigger the request  zip file download option comes. Will reply to main post with screenshot.

     

    Thanks,

    Satish



  • 6.  Re: How to get details from zip file name returned in REST response in DevTest v8.5

    Posted May 13, 2016 09:39 AM

    Hi Prem, Melanie,

     

    Missed to add screenshots-

    Below screenshot from Devtest, please let us know

     

    Thanks ,

    Satish



  • 7.  Re: How to get details from zip file name returned in REST response in DevTest v8.5

    Posted May 16, 2016 04:47 PM

    Can anyone help to answer Satish's question?



  • 8.  Re: How to get details from zip file name returned in REST response in DevTest v8.5

    Broadcom Employee
    Posted May 16, 2016 10:09 PM

    What kind of a step is GetFirstTrip? is it possible to save the ITR state, attach the same along with the testcase/config files/any other dependencies to this email thread?



  • 9.  Re: How to get details from zip file name returned in REST response in DevTest v8.5

    Posted May 24, 2016 09:04 AM

    Hi Prem,


    Sorry for late reply, its REST step, i cannot share other details.

     

     

    Thanks,

    Satish J