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?
You could try to use a Selenium Test step , where ENDPOINT is http://admin:admin@localhost:1505/lisa-invoke/runTest?testCasePath=E:/DEVTEST10.1/examples/Tests/DevTest_confi…
Here is the documentation link to run Selenium Tests.
Run a Selenium Integration Test Case - DevTest Solutions - 10.1 - CA Technologies Documentation
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?
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?
Thanks for reply. I got this requirement last week on back of user story.
sounds like a weird requirement
it is just kind POC. It is not mandatory that we have to fulfil it.
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?
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.
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.
Retrieving data ...