On 1 August 2015 at 20:15, Philippe Mouawad <philippe.moua...@gmail.com> wrote: > Hi, > Is the broken test case really a good one ?
Yes, I think it is, because it tests the file: protocol which is documented to work. > Ideally we should find a way to fix it but keep the fix to the bug. > JMeter is more intended for http testing than file protocol (here for Unit > testing). the file: protocol is documented as being supported > The broken case here comes from relative file path. True, but that has been the behaviour for ages, so should not be broken unnecessarily. > Regards > Philippe > > On Saturday, August 1, 2015, Milamber <milam...@apache.org> wrote: > >> >> If anyone hasn't objection, I will revert on the changes introduced by the >> bug 58137, to recover the nightly builds process. >> >> The discussion on the URL encode and the good way to do this, can be >> continued on the bugzilla or dev list >> >> >> https://bz.apache.org/bugzilla/show_bug.cgi?id=58137 >> >> >> >> On 01/08/2015 14:28, Apache Jenkins Server wrote: >> >>> See <https://builds.apache.org/job/JMeter-trunk/4666/> >>> >>> ------------------------------------------ >>> [...truncated 868 lines...] >>> [anakia] Output: < >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk/printable_docs/usermanual/get-started.html >>> > >>> [anakia] Input: usermanual/glossary.xml >>> [anakia] Output: < >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk/printable_docs/usermanual/glossary.html >>> > >>> [anakia] Input: usermanual/hints_and_tips.xml >>> [anakia] Output: < >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk/printable_docs/usermanual/hints_and_tips.html >>> > >>> [anakia] Input: usermanual/index.xml >>> [anakia] Output: < >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk/printable_docs/usermanual/index.html >>> > >>> [anakia] Input: usermanual/intro.xml >>> [anakia] Output: < >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk/printable_docs/usermanual/intro.html >>> > >>> [anakia] Input: usermanual/ldapanswer_xml.xml >>> [anakia] Output: < >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk/printable_docs/usermanual/ldapanswer_xml.html >>> > >>> [anakia] Input: usermanual/ldapops_tutor.xml >>> [anakia] Output: < >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk/printable_docs/usermanual/ldapops_tutor.html >>> > >>> [anakia] Input: usermanual/listeners.xml >>> [anakia] Output: < >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk/printable_docs/usermanual/listeners.html >>> > >>> [anakia] Input: usermanual/realtime-results.xml >>> [anakia] Output: < >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk/printable_docs/usermanual/realtime-results.html >>> > >>> [anakia] Input: usermanual/regular_expressions.xml >>> [anakia] Output: < >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk/printable_docs/usermanual/regular_expressions.html >>> > >>> [anakia] Input: usermanual/remote-test.xml >>> [anakia] Output: < >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk/printable_docs/usermanual/remote-test.html >>> > >>> [anakia] Input: usermanual/test_plan.xml >>> [anakia] Output: < >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk/printable_docs/usermanual/test_plan.html >>> > >>> [echo] Fixing EOL >>> [echo] Removing unnecessary </br> tags >>> [echo] Copying files >>> [copy] Copying 16 files to < >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk/printable_docs/demos> >>> [copy] Copying 5 files to < >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk/printable_docs/usermanual >>> > >>> [copy] Copying 1 file to < >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk/printable_docs/extending >>> > >>> >>> pack-nightly: >>> >>> _pack-binaries: >>> [tar] Building tar: < >>> https://builds.apache.org/job/JMeter-trunk/4666/artifact/trunk/dist/apache-jmeter-r1692251_bin.tar >>> > >>> [gzip] Building: < >>> https://builds.apache.org/job/JMeter-trunk/4666/artifact/trunk/dist/apache-jmeter-r1692251_bin.tgz >>> > >>> [delete] Deleting: < >>> https://builds.apache.org/job/JMeter-trunk/4666/artifact/trunk/dist/apache-jmeter-r1692251_bin.tar >>> > >>> [zip] Building zip: < >>> https://builds.apache.org/job/JMeter-trunk/4666/artifact/trunk/dist/apache-jmeter-r1692251_bin.zip >>> > >>> >>> _pack-libraries: >>> [tar] Building tar: < >>> https://builds.apache.org/job/JMeter-trunk/4666/artifact/trunk/dist/apache-jmeter-r1692251_lib.tar >>> > >>> [gzip] Building: < >>> https://builds.apache.org/job/JMeter-trunk/4666/artifact/trunk/dist/apache-jmeter-r1692251_lib.tgz >>> > >>> [delete] Deleting: < >>> https://builds.apache.org/job/JMeter-trunk/4666/artifact/trunk/dist/apache-jmeter-r1692251_lib.tar >>> > >>> [zip] Building zip: < >>> https://builds.apache.org/job/JMeter-trunk/4666/artifact/trunk/dist/apache-jmeter-r1692251_lib.zip >>> > >>> >>> _pack-source: >>> [tar] Building tar: < >>> https://builds.apache.org/job/JMeter-trunk/4666/artifact/trunk/dist/apache-jmeter-r1692251_src.tar >>> > >>> [gzip] Building: < >>> https://builds.apache.org/job/JMeter-trunk/4666/artifact/trunk/dist/apache-jmeter-r1692251_src.tgz >>> > >>> [delete] Deleting: < >>> https://builds.apache.org/job/JMeter-trunk/4666/artifact/trunk/dist/apache-jmeter-r1692251_src.tar >>> > >>> [zip] Building zip: < >>> https://builds.apache.org/job/JMeter-trunk/4666/artifact/trunk/dist/apache-jmeter-r1692251_src.zip >>> > >>> >>> nightly: >>> >>> compile-tests: >>> [javac] Compiling 104 source files to < >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk/build/test> >>> >>> _test: >>> [echo] >>> [echo] gump.run = false >>> [echo] java.awt.headless = true >>> [echo] test.headless = true >>> [echo] user.dir = < >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk> >>> [echo] basedir = < >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk> >>> [echo] test dir = build/test >>> [echo] test dir gump = build/test >>> [echo] testsaveservice.saveout = ${testsaveservice.saveout} >>> [echo] test.encoding = UTF-8 >>> [echo] >>> [java] Setting JMeterHome: < >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk> >>> [java] Setting up logging props using file: < >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk/bin/testfiles/jmetertest.properties >>> > >>> [java] Using initializeProperties() from >>> org.apache.jmeter.util.JMeterUtils >>> [java] Setting up initial properties using: < >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk/bin/testfiles/jmetertest.properties >>> > >>> [java] Initializing Properties: < >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk/bin/testfiles/jmetertest.properties >>> > >>> [java] JMeterVersion=r1692251 >>> [java] java.version=1.7.0_72 >>> [java] >>> java.home=/home/jenkins/jenkins-slave/tools/hudson.model.JDK/latest1.7/jre >>> [java] file.encoding=UTF-8 >>> [java] default encoding=UTF-8 >>> [java] user.dir=< >>> https://builds.apache.org/job/JMeter-trunk/ws/trunk/bin> >>> [java] Locale=en_US >>> [java] os.name=Linux >>> [java] os.version=3.13.0-36-lowlatency >>> [java] +++++++++++ >>> [java] java.awt.headless=true >>> [java] java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment >>> [java] ------------ >>> [java] Creating test suite >>> [java] Scanning build/test for test cases >>> [java] ClassFinder found: 93 TestCase classes >>> [java] o.a.j.junit.JMeterTest Error creating >>> org.apache.jmeter.assertions.gui.BeanShellAssertionGui >>> java.awt.HeadlessException >>> [java] o.a.j.junit.JMeterTest Error creating >>> org.apache.jmeter.assertions.gui.XPathAssertionGui >>> java.awt.HeadlessException >>> [java] o.a.j.junit.JMeterTest Error creating >>> org.apache.jmeter.protocol.http.control.gui.AjpSamplerGui >>> java.awt.HeadlessException >>> [java] o.a.j.junit.JMeterTest Error creating >>> org.apache.jmeter.protocol.http.control.gui.HttpTestSampleGui >>> java.awt.HeadlessException >>> [java] o.a.j.junit.JMeterTest Error creating >>> org.apache.jmeter.protocol.java.control.gui.BeanShellSamplerGui >>> java.awt.HeadlessException >>> [java] o.a.j.junit.JMeterTest Error creating >>> org.apache.jmeter.protocol.jms.control.gui.JMSPublisherGui >>> java.awt.HeadlessException >>> [java] o.a.j.junit.JMeterTest Error creating >>> org.apache.jmeter.protocol.jms.control.gui.JMSSamplerGui >>> java.awt.HeadlessException >>> [java] o.a.j.junit.JMeterTest Error creating >>> org.apache.jmeter.protocol.tcp.config.gui.TCPConfigGui >>> java.awt.HeadlessException >>> [java] o.a.j.junit.JMeterTest Error creating >>> org.apache.jmeter.protocol.tcp.control.gui.TCPSamplerGui >>> java.awt.HeadlessException >>> [java] Last >>> class=org.apache.jmeter.visualizers.ViewResultsFullVisualizer >>> [java] objects.size=93 >>> [java] Last error=java.awt.HeadlessException >>> [java] ERROR: (see logfile) could not add test for class >>> org.apache.jmeter.junit.JMeterTest >>> java.lang.reflect.InvocationTargetException >>> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >>> Method) >>> [java] at >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >>> [java] at >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>> [java] at java.lang.reflect.Method.invoke(Method.java:606) >>> [java] at >>> org.apache.jorphan.test.AllTests.suite(AllTests.java:359) >>> [java] at >>> org.apache.jorphan.test.AllTests.main(AllTests.java:213) >>> [java] Caused by: java.lang.ExceptionInInitializerError >>> [java] at >>> org.apache.jmeter.visualizers.SearchTextExtension.createSearchTextPanel(SearchTextExtension.java:208) >>> [java] at >>> org.apache.jmeter.visualizers.SearchTextExtension.createSearchTextExtensionPane(SearchTextExtension.java:220) >>> [java] at >>> org.apache.jmeter.visualizers.SamplerResultTab.createResponseDataPanel(SamplerResultTab.java:464) >>> [java] at >>> org.apache.jmeter.visualizers.SamplerResultTab.init(SamplerResultTab.java:208) >>> [java] at >>> org.apache.jmeter.visualizers.ViewResultsFullVisualizer.init(ViewResultsFullVisualizer.java:235) >>> [java] at >>> org.apache.jmeter.visualizers.ViewResultsFullVisualizer.<init>(ViewResultsFullVisualizer.java:128) >>> [java] at >>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) >>> [java] at >>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) >>> [java] at >>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) >>> [java] at >>> java.lang.reflect.Constructor.newInstance(Constructor.java:526) >>> [java] at java.lang.Class.newInstance(Class.java:379) >>> [java] at >>> org.apache.jmeter.junit.JMeterTest.getObjects(JMeterTest.java:578) >>> [java] at >>> org.apache.jmeter.junit.JMeterTest.suiteGUIComponents(JMeterTest.java:279) >>> [java] at >>> org.apache.jmeter.junit.JMeterTest.suite(JMeterTest.java:141) >>> [java] ... 6 more >>> [java] Caused by: java.awt.HeadlessException >>> [java] at >>> sun.awt.HeadlessToolkit.getMenuShortcutKeyMask(HeadlessToolkit.java:234) >>> [java] at >>> org.apache.jmeter.gui.action.KeyStrokes.<clinit>(KeyStrokes.java:37) >>> [java] ... 20 more >>> [java] >>> [java] Created: 92 tests including 7 suites >>> [java] Starting test run, test count = 1605 >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] .Skipping >>> test:org.apache.jmeter.protocol.http.control.gui.TestHttpTestSampleGui, >>> cannot run in Headless mode >>> [java] Skipping >>> test:org.apache.jmeter.protocol.http.control.gui.TestHttpTestSampleGui#testCloneSampler, >>> cannot run in Headless mode >>> [java] ........................................ >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ...............o.a.j.junit.JMeterTest Error running >>> testConfiguring due to Headless mode, java.awt.HeadlessException >>> [java] .......................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ......................................... >>> [java] ...... >>> [java] Time: 57.284 >>> [java] >>> [java] OK (1605 tests) >>> [java] >>> >>> batchtest: >>> [echo] Starting BatchTestLocal using -X >>> [jmeter] Creating summariser <summary> >>> [jmeter] Created the tree successfully using >>> testfiles/BatchTestLocal.jmx >>> [jmeter] Starting the test @ Sat Aug 01 13:22:16 UTC 2015 >>> (1438435336242) >>> [jmeter] Waiting for possible Shutdown/StopTestNow/Heapdump message >>> on port 4445 >>> [jmeter] summary = 133 in 37.3s = 3.6/s Avg: 213 Min: 1 >>> Max: 352 Err: 16 (12.03%) >>> [jmeter] Tidying up ... @ Sat Aug 01 13:22:54 UTC 2015 >>> (1438435374043) >>> [jmeter] ... end of run >>> [echo] BatchTestLocal output files compared OK >>> >>> batchtestserver: >>> [server] Created remote object: UnicastServerRef [liveRef: [endpoint:[ >>> 67.195.81.186:49667](local),objID:[7f62da8b:14ee96df657:-7fff, >>> 86858547413423549]]] >>> >>> batchtest: >>> [echo] Starting BatchTestLocal using -Rlocalhost:12254 >>> [client] Creating summariser <summary> >>> [client] Created the tree successfully using >>> testfiles/BatchTestLocal.jmx >>> [client] Configuring remote engine: localhost:12254 >>> [client] Starting remote engines >>> [client] Starting the test @ Sat Aug 01 13:22:56 UTC 2015 >>> (1438435376481) >>> [server] Starting the test on host localhost:12254 @ Sat Aug 01 >>> 13:22:57 UTC 2015 (1438435377380) >>> [client] Remote engines have been started >>> [client] Waiting for possible Shutdown/StopTestNow/Heapdump message >>> on port 4445 >>> [client] summary + 7 in 2.1s = 3.4/s Avg: 239 Min: 125 >>> Max: 343 Err: 0 (0.00%) Active: 1 Started: 2 Finished: 1 >>> [client] summary + 94 in 30s = 3.1/s Avg: 237 Min: 103 >>> Max: 353 Err: 13 (13.83%) Active: 1 Started: 3 Finished: 2 >>> [client] summary = 101 in 32.1s = 3.2/s Avg: 237 Min: 103 >>> Max: 353 Err: 13 (12.87%) >>> [client] summary + 32 in 6.5s = 4.9/s Avg: 192 Min: 1 >>> Max: 349 Err: 3 (9.38%) Active: 0 Started: 11 Finished: 11 >>> [client] summary = 133 in 39s = 3.5/s Avg: 226 Min: 1 >>> Max: 353 Err: 16 (12.03%) >>> [client] Tidying up remote @ Sat Aug 01 13:23:36 UTC 2015 >>> (1438435416507) >>> [server] Finished the test on host localhost:12254 @ Sat Aug 01 >>> 13:23:36 UTC 2015 (1438435416507) - exit requested. >>> [client] ... end of run >>> [echo] BatchTestLocal output files compared OK >>> >>> batch_scripts: >>> >>> batchtest: >>> [echo] Starting HTMLParserTestFile_2 using -X >>> [jmeter] Creating summariser <summary> >>> [jmeter] Created the tree successfully using >>> testfiles/HTMLParserTestFile_2.jmx >>> [jmeter] Starting the test @ Sat Aug 01 13:23:42 UTC 2015 >>> (1438435422434) >>> [jmeter] Waiting for possible Shutdown/StopTestNow/Heapdump message >>> on port 4445 >>> [jmeter] summary = 1 in 0.3s = 3.4/s Avg: 163 Min: 163 >>> Max: 163 Err: 0 (0.00%) >>> [jmeter] Tidying up ... @ Sat Aug 01 13:23:43 UTC 2015 >>> (1438435423238) >>> [jmeter] ... end of run >>> [concat] 2015/08/01 13:23:43 ERROR - >>> jmeter.protocol.http.sampler.HTTPSamplerBase: Error escaping >>> URL:'file:testfiles/HTMLParserTestFile_2_files/style.css', message:Relative >>> path in absolute URI: file://testfiles/HTMLParserTestFile_2_files/style.css >>> [concat] 2015/08/01 13:23:43 ERROR - >>> jmeter.protocol.http.sampler.HTTPSamplerBase: Error escaping >>> URL:'file:testfiles/HTMLParserTestFile_2_files/halfbanner.htm', >>> message:Relative path in absolute URI: >>> file://testfiles/HTMLParserTestFile_2_files/halfbanner.htm >>> [concat] 2015/08/01 13:23:43 ERROR - >>> jmeter.protocol.http.sampler.HTTPSamplerBase: Error escaping >>> URL:'file:testfiles/HTMLParserTestFile_2_files/halfbanner_data/2011-na-234x60.png', >>> message:Relative path in absolute URI: >>> file://testfiles/HTMLParserTestFile_2_files/halfbanner_data/2011-na-234x60.png >>> [concat] 2015/08/01 13:23:43 ERROR - >>> jmeter.protocol.http.sampler.HTTPSamplerBase: Error escaping >>> URL:'file:testfiles/HTMLParserTestFile_2_files/jakarta-logo.gif', >>> message:Relative path in absolute URI: >>> file://testfiles/HTMLParserTestFile_2_files/jakarta-logo.gif >>> [concat] 2015/08/01 13:23:43 ERROR - >>> jmeter.protocol.http.sampler.HTTPSamplerBase: Error escaping >>> URL:'file:testfiles/HTMLParserTestFile_2_files/logo.jpg', message:Relative >>> path in absolute URI: file://testfiles/HTMLParserTestFile_2_files/logo.jpg >>> [concat] 2015/08/01 13:23:43 ERROR - >>> jmeter.protocol.http.sampler.HTTPSamplerBase: Error escaping >>> URL:'file:testfiles/HTMLParserTestFile_2_files/http-config-example.png', >>> message:Relative path in absolute URI: >>> file://testfiles/HTMLParserTestFile_2_files/http-config-example.png >>> [concat] 2015/08/01 13:23:43 ERROR - >>> jmeter.protocol.http.sampler.HTTPSamplerBase: Error escaping >>> URL:'file:testfiles/HTMLParserTestFile_2_files/scoping1.png', >>> message:Relative path in absolute URI: >>> file://testfiles/HTMLParserTestFile_2_files/scoping1.png >>> [concat] 2015/08/01 13:23:43 ERROR - >>> jmeter.protocol.http.sampler.HTTPSamplerBase: Error escaping >>> URL:'file:testfiles/HTMLParserTestFile_2_files/scoping2.png', >>> message:Relative path in absolute URI: >>> file://testfiles/HTMLParserTestFile_2_files/scoping2.png >>> [concat] 2015/08/01 13:23:43 ERROR - >>> jmeter.protocol.http.sampler.HTTPSamplerBase: Error escaping >>> URL:'file:testfiles/HTMLParserTestFile_2_files/scoping3.png', >>> message:Relative path in absolute URI: >>> file://testfiles/HTMLParserTestFile_2_files/scoping3.png >>> [echo] HTMLParserTestFile_2 output files compared OK >>> >>> BUILD FAILED >>> <https://builds.apache.org/job/JMeter-trunk/ws/trunk/build.xml>:2506: >>> The following error occurred while executing this line: >>> <https://builds.apache.org/job/JMeter-trunk/ws/trunk/build.xml>:2496: >>> Error detected in log file. See above. >>> >>> Total time: 3 minutes 7 seconds >>> Build step 'Invoke Ant' marked build as failure >>> [locks-and-latches] Releasing all the locks >>> [locks-and-latches] All the locks released >>> Archiving artifacts >>> Sending artifact delta relative to JMeter-trunk #4646 >>> Archived 6 artifacts >>> Archive block size is 32768 >>> Received 808 blocks and 70509533 bytes >>> Compression is 27.3% >>> Took 20 sec >>> >>> >> > > -- > Cordialement. > Philippe Mouawad.