ReadyAPI- download a textfile from a URL with groovyscript
Hello,
I have looked at a dozen of possibilities online to download a textfile from a website, but none is actually OK for my case.
What I need to do:
Go to the website that contains a bunch of logfiles (extension = paldata but actually can be saved as textfile)
search for a file with an ID in the string equal to, let's say,
XyLQpIfwhDv90uazxe1kwQAAABc
e.g. 20200730-XyLQpIfwhDv90uazxe1kwQAAABc.paldata
Open the file and read it.
Search for "fsbTransactionid".
If it's not present --> error message
<Response-code>404</Response-code>
if it's present read it and stash it in a variable
I would like to do that for different ID's in the file.
Now, as I found a lot "BuilderHTTPs" methods, I/O Read and Write methods that I've tried, it seems that I'm not able to handle the total picture. and the installation of a standalone selenium didn't work for me neither. (cfr. to another post of mine)
Does somebody have another idea please?
nmrao ? groovyguy ? NBorovykh Anastasia ?
Thanks in advance
AboveAndBeyond
Hi,
As you mentioned Swagger Core resolves into a single file representing the full spec, and splitting it further has to be done in custom postprocessing. There is no short term plan to add such support (any PRs are more than welcomed)