Service Virtualization

  • 1.  How to open rest api response in browser

    Posted Oct 10, 2017 03:54 AM

    Hello All,

     

    I want to hit REST API from test case and want get result in browser. how we can achieve this so that test case can open web page upon invocation?

     

    Cheers..

     

    Shivam Garg



  • 2.  Re: How to open rest api response in browser

    Broadcom Employee
    Posted Oct 10, 2017 11:38 AM


  • 3.  Re: How to open rest api response in browser

    Posted Oct 10, 2017 10:34 PM

    Thanks Shiney.

     

    But I was looking for , when I will hit Res API, It should open tab in browser i.e I.E, Chrome etc..not with in Lisa test case.

     

    Any possibility of that?

     

    Cheers..

     

    Shivam Garg



  • 4.  Re: How to open rest api response in browser

    Posted Oct 12, 2017 09:01 AM

    You can save response in a file and open it in browser of your choice using external command or selenium step. 

     

     

    But, Why do you need to do it?



  • 5.  Re: How to open rest api response in browser

    Posted Oct 12, 2017 09:07 AM

    Hello Abhinav,

     

    Thanks for reply. I got this requirement last week on back of user story.



  • 6.  Re: How to open rest api response in browser

    Posted Oct 12, 2017 09:34 AM

    sounds like a weird requirement



  • 7.  Re: How to open rest api response in browser

    Posted Oct 12, 2017 09:41 AM

     it is just kind POC. It is not mandatory that we have to fulfil it.



  • 8.  Re: How to open rest api response in browser

    Posted Oct 17, 2017 09:39 PM

    Hi Shivam,

     

    Just curious. Did you know that you can enter a RESTful URL directly into a browser's address bar, and the browser will (usually) show you the response? Maybe you don't need any tool for your use case.

     

    I'm also curious about what you're going to do with the response after you see it in the browser. Are there some values you need to verify? What are the other parts of your use case and test case?

     

    Best,

    Jay



  • 9.  Re: How to open rest api response in browser

    Posted Oct 22, 2017 10:19 PM

    Yes Jason I know that. But here ,we want when we are running a test case through Jenkins then we should get evidence in physical form that we have entered REST API successfully and we got the result.



  • 10.  Re: How to open rest api response in browser

    Posted Oct 25, 2017 11:42 AM

    Okay. "Physical evidence" doesn't require opening the result in a browser. By attaching an assertion to your test case, you can verify the response that was received and report a passing result, which qualifies as physical evidence.