apache / apache/jmeter

HTTP Request Defaults -Review All Embedded Resources parsing bug

Open
#5,042 3 comments 0 reactions 0 assignees View on GitHub
need info os: All P2
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

**RuThaNiel van den Naar** ([Bug 63316](https://bz.apache.org/bugzilla//show_bug.cgi?id=63316&redirect=false)):
Hello,
i me bug when i tried to test on our application with auto-downloading static resources.
I recorded traffic through proxy with filter not static resources recorded, after that i added to Test Plan HTTP Request Defaults and checked Retrieve All Embedded Resources for testing with resources.

Its working fine, but i met situation, when its in want say "very naive" parser is failing and needs to be fixed, but its generating non exist missing static server problem.
My page is call is:
entryPoint.do
when downloading is resources is enabled its trying to download between others calendar.jsp its still working, but i View results Tree i see, that its as parent element and its trying to download some its resources.. I would be in general fine, but in calendar.jsp are line like this:
<td align="right"><a href="javascript:hideCalendar()"><img SRC=""+imgDir+"close.gif" BORDER="0" ALT=""+closeCalendarTitle+""></a></td>
So for path is using some imgDir jsp variable which is processed by site and in browser is working fine.. But Jmeter client not proccess it and instead of proper path is request resource on not evaluated string address like this:
/calendar/%22+imgDir+%22left1.gif
Which of course doesnt exist and its generation a error.

In jsp body is variable defined like this:
var imgDir = "/images/calendar/" // directory for images ...

So proper path requested by Jmeter should:
/calendar/images/calendar/left1.gif

Other problem is that such errors, are marked with same severity in results as other errors as 400 and 500, step is simply failed, i missing in Jmeter for years of usage something like errors levels or other than green and red coloring for such situation in Tree results tree (what about yellow for such use defined warnings?) and other Listerners, would be nice to have some option second column for such lesser errors in Summmary / Aggregate report to.

Other problem is that i have use Thread group- Action to be take after a Sampler error - Continue mod for such scripts. Which i usually dont like because it process completely bad request, when some page before is failing on hard error (404/504/assertion). Again something like checkbox do not include static resources or some error severity levels would be solution.

Created attachment [Callendar.zip](https://apache.github.io/jmeter-bugzilla-attachments/16/63316/36509/Callendar.zip): ViewResultsTreeWithWrongPath+WholeCalendarRequest

Severity: major
OS: All

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.