Forum Discussion

IssathCreau's avatar
IssathCreau
New Contributor
12 years ago

Not seeing javascript files in downloaded resources

Hi all,

I'm using soapUI 4.5.1 and I'm trying to set up a test case which uses HTTP Test Requests to send requests to a website. I want the requests to retrieve the css, image, and script files that each web page references so I selected the Download Resources option in the test step editor. In a few of the requests I'm seeing that it downloaded the css and images used by the page, but I'm not seeing any javascript files in the attachments.

Should selecting the Download Resources option automatically retrieve the js as well or is there something else I need to do?

1 Reply

  • Update:

    I took a look through the API and I think I found the class that deals with downloading the resources:

    http://www.soapui.org/apidocs/com/eviwa ... oader.html

    It contains a function called "downloadCssAndImages" which kind of implies that it doesn't download scripts.

    However the HTTP Download all resources assertion states that it "Downloads all resources referred to be an HTML document (images, scripts, etc.) and validates that they are all available. Applicable to any property containing HTML." so I assume that downloading the resources should include the scripts associated with the page but that doesn't seem to be the case when I check the API.

    So what I wanna know now is if checking the Download Resources checkbox in the HTTP request is even supposed to download javascript at all or if it's just supposed to download css, and images.