[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jmeter-dev
Subject:    DO NOT REPLY [Bug 29254] New:  -
From:       bugzilla () apache ! org
Date:       2004-05-27 19:22:27
Message-ID: 20040527192227.28968.qmail () nagoya ! betaversion ! org
[Download RAW message or body]

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29254>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29254

Embedded JavaScript files are being parsed as HTML

           Summary: Embedded JavaScript files are being parsed as HTML
           Product: JMeter
           Version: 2.0.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: HTTP
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: remedyqa@yahoo.com


Overview Description:
=====================
When the option to retrieve embedded resources is selected for an HTTP Request, 
Javascript files are retrieved as expected, however they are also being parsed 
as HTML.

Steps to Reproduce:
===================
Since there doesn't seem to be a way to include attachments into this bug 
report, I will put the source here.

My web directory structure:
rootdocs/
   testdir/
      HTMLParserTestCaseWithJS.html
   javascript/
      test.js
      
My JMeter Test Plan:
Thread Group
   HTTP Request with embedded resources 
(http://localhost/testdir/HTMLParserTestCaseWithJS.html)
   ViewResultsTree
   
My contents of HTMLParserTestCaseWithJS.html:
<html>
<head>
</head>
<body>
<script language="JavaScript" src="../javascript/test.js"></script>
Hello World!
</body>
</html>


My contents of test.js:
var sharedURI = "http://localhost/shared";

function func1(doc) 
{    
    var img = "<img style='float: right;' src='" + sharedURI 
+ "/images/menu_arrow.gif'/>";
    doc.write("<link rel=stylesheet type='text/css' href='" + func2() 
+ "'>\n");      	 
}

function func2()
{
    return "junk.css";
}

Now run the JMeter Test Plan.


Actual Results:
===============
Looking at ViewResultsTree, you will see errors (in red) for test.js.  It 
retrieved test.js but tried to interpret the img and link tags within the 
javascript. These are where the errors occur.


Expected Results: 
=================
Should only retrieve the test.js javascript file and not parse it.


Build Date & Platform: 
======================
JMeter 2.0.0


Additional Information:
=======================
This occurs with all three HTML parsers that come with JMeter.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic