Forum Discussion

t3st3r1n's avatar
t3st3r1n
New Contributor
10 years ago

Content in <div> HTML Tag not shown

Hi everyone!

 

I use SoapUI at work since 6 months ago and recently I have a problem. I have been looking for an answer with no success!

 

As a preparation step in my tests, I have to check the state of my server. For that, we have some websites available. That is to say: I need a simple GET step in order to retrieve the info from the website.

 

I've already donde that but the problem is that the most important info from the website comes inside a <div> HTML Tag, but SoapUI shows no content in the response (neither in the XML tab nor in the Raw tab). I mean it's just empty. I don't know exactly the reason. What I mean it's:

 

Raw request:

GET https://myserver.com/path/ HTTP/1.1
Host: myserver.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

 

Raw Response:

HTTP/1.1 200 OK
Date: Wed, 01 Apr 2015 12:34:30 GMT
Server: Apache-Coyote/1.1
Cache-Control: private
Expires: Thu, 01 Jan 1970 01:00:00 GMT
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 554
Set-Cookie: JSESSIONID=ASDFTWRE9898KJSFSDFHOERPWPUT; Path=/path/; HttpOnly
Connection: close

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Server Status</title>
<link rel="stylesheet" type="text/css"
href="/path/css/default.css" />

<script type="text/javascript"
src="/path/js/jquery-1.11.0.min.js"></script>

<meta http-equiv="refresh" content="0; url=path" />

</head>
<body>
<div id="wrapper">

 

</div>
</body>
</html>

 

The page looks normal in any web browser. It's just not working in SoapUI. I think it's some kind of a problem with CSS or the the div Tag, that might not be support :?

 

Can anybody help me? I would deeply appreciate it! thanks!

 

  • nmrao's avatar
    nmrao
    Champion Level 3
    For example if you got the entire html, what you wanted to check from the response? By the way, please attach the result of the view source when you do the same from browser if possible.
    • t3st3r1n's avatar
      t3st3r1n
      New Contributor

      Hi!

       

      between the <div> tags comes a table. The source from the browser:

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
      <title>Server Status</title>
      <link rel="stylesheet" type="text/css"
      href="/path/css/default.css" />

      <script type="text/javascript"
      src="/path/js/jquery-1.11.0.min.js"></script>

      <script type="text/javascript">
      $(document).ready(function() {
      $("#up").click(function() {
      $("#uploadForm").slideDown();
      });
      $("#down").click(function() {
      window.location.href="downloadCurrent";
      });
      $(document).click(function(e) { // when any click is received
      var form = $("#uploadForm");
      var up = $("#up");
      if (
      (form != e.target) && (up != e.target) &&// the target element is not the wrapper
      (!form.has(e.target).length) && (!up.has(e.target).length)// and the wrapper does not contain the target element
      ) {
      form.slideUp();
      }
      });
      });
      </script>

      </head>
      <body>
      <div id="wrapper">



      <div class="label activeLabel">Active configuration</div>

      <div id="hostList">
      <table class="datagrid">
      <thead>
      <tr>
      <th>Info 1</th>
      <th>Info 2</th>
      <th>Info 3</th>
      <th>Info 4</th>
      <th>Info 5</th>
      <th>Info 6</th>
      </tr>
      </thead>
      <tbody>

      <tr>
      <td>A</td>
      <td>B</td>
      <td>*</td>
      <td>*</td>
      <td>*</td>
      <td>https://myurl1.com</td>
      </tr>

      <tr>
      <td>A</td>
      <td>B</td>
      <td>*</td>
      <td>*</td>
      <td>*</td>
      <td>https://myurl2.com</td>
      </tr>

      <tr>
      <td>A</td>
      <td>B</td>
      <td>*</td>
      <td>*</td>
      <td>*</td>
      <td>https://myurl2.com</td>
      </tr>

      <tr>
      <td>A</td>
      <td>B</td>
      <td>*</td>
      <td>*</td>
      <td>*</td>
      <td>https://myurl3.com</td>
      </tr>

      <tr>
      <td>A</td>
      <td>B</td>
      <td>*</td>
      <td>*</td>
      <td>*</td>
      <td>https://myurl4.com</td>
      </tr>

      <tr>
      <td>A</td>
      <td>B</td>
      <td>*</td>
      <td>*</td>
      <td>*</td>
      <td>https://myurl5.com</td>
      </tr>

      <tr>
      <td>A</td>
      <td>B</td>
      <td>*</td>
      <td>*</td>
      <td>*</td>
      <td>https://myurl6.com</td>
      </tr>

      <tr>
      <td>A</td>
      <td>B</td>
      <td>*</td>
      <td>*</td>
      <td>*</td>
      <td>https://myurl7.com</td>
      </tr>

      <tr>
      <td>A</td>
      <td>B</td>
      <td>*</td>
      <td>*</td>
      <td>*</td>
      <td>https://myurl8.com</td>
      </tr>

      <tr>
      <td>A</td>
      <td>B</td>
      <td>*</td>
      <td>*</td>
      <td>*</td>
      <td>https://myurl9.com</td>
      </tr>

      <tr>
      <td>A</td>
      <td>B</td>
      <td>*</td>
      <td>*</td>
      <td>*</td>
      <td>https://myurl10.com</td>
      </tr>

      </tbody>
      </table>
      </div>
      <div id="options">
      <div id="images">
      <div id="up">
      <img src="/path/img/upload.png" />
      <div class="label">Upload new configuration</div>
      </div>
      <div id="down">
      <img src="/path/img/download.png" />
      <div class="label">Download current configuration</div>
      </div>
      </div>
      </div>

      <div id="uploadForm">
      <p>Upload configuration file:</p>
      <form id="formUpload" action="/path/hostnames/update?execution=e1s1" method="post" enctype="multipart/form-data">
      Select file: <input type="file" name="xmlFile" />
      <input type="hidden" name="_eventId" value="process" />
      <input type="submit" value="Upload" />
      </form>
      </div>

      </div>
      </body>
      </html>

       

      I just want to read the information in the table but in SoapUI I can't reach it. It's just empty :S

       

      Thanks a lot!