Forum Discussion
PrathapR
5 years agoFrequent Contributor
Please have a look at
Note: Where I was used "REST" in above link, in your case it will be "HTTP".
- sparrowenclave5 years agoOccasional ContributorHi
It will be helpful when I will receive attachment in the response, but in my case I need to download it from browser after hitting the API request.
Anyhow your solution may found helpful in future API testing- richie5 years agoCommunity HeroHey sparrowenclave
Apologies if my reaponse didnt actually give you a way of downloading a file from a webpage. I saw Rao had answered that particular post and he really knows his stuff, so i thought that was what you needed (i didnt actually check content of post).
I'll continue to look around cos i would like to know how to do this too (for possible future).
Cheers
Rich - ZDGN5 years agoContributor
As far as I understand, you need to access a file from an URL provided by the HTML response of your request.
I used to parse some HTML content with Jsoup to extract data or make some assertions.
Once you get the path you cab easily access the file or its content.
By the way could you provide an exemple of your HTML content so we could try to do something ?
Thanks.
- sparrowenclave5 years agoOccasional ContributorHi ZDGN
Manual Testing approach
I am hitting a request in soap UI, Soap UI is providing me some respone.
But internally API is creating 6 json file in the specific repository location with the current date and time name which looks like link, then I am clicking on file to download it and verifing the contents inside the file.
I wanted to automate this part through soap UI.
Hope I am able to explain you
Related Content
- 9 years ago
- 3 years ago
- 4 years ago
Recent Discussions
- 16 days ago
- 17 days ago