You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Sanjay Chaurasia <Sa...@india.nec.com> on 2019/02/05 03:21:24 UTC

131 tests are getting failed while running "ant test" command

Hi team,

I am following https://jmeter.apache.org/building (building and contributing to Jmeter) page to submit my patch.

I have successfully run "ant package-and-check" command.

But while running "ant test" command there are almost 131(130+1)  tests getting failed. Screenshot  is given below.

[cid:image001.jpg@01D4BD2F.D95584C0]

I have few queries regarding the same.


*         Can we run "ant test" command successfully on our local machine.

*         If yes, how can we achieve this because there are lots of assertion errors in following  5 files.



1.       TestSimpleFunctions.java

2.       BinaryMessageRendererTest.java

3.       ObjectMessageRendererTest.java

4.       TextMessageRendererTest.java

5.       MessageRendererTest.java

Please suggest some solution to resolve the same.


Regards,
Sanjay Chaurasia


RE: 131 tests are getting failed while running "ant test" command

Posted by Sanjay Chaurasia <Sa...@india.nec.com>.
Currently I am running in windows environment.

I am not getting which default character encoding set you are asking for.

If this is encoding problem please suggest where I can set the correct encoding to get it resolved.

-----Original Message-----
From: Felix Schumacher [mailto:felix.schumacher@internetallee.de] 
Sent: Tuesday, February 5, 2019 12:16 PM
To: JMeter Users List <us...@jmeter.apache.org>
Subject: RE: 131 tests are getting failed while running "ant test" command



Am 5. Februar 2019 07:02:14 MEZ schrieb Sanjay Chaurasia <Sa...@india.nec.com>:
>Please find below "ant test" logs
>
>[java] junit.framework.AssertionFailedError: One or more subtests 
>failed
>     [java] 	at junit.framework.Assert.fail(Assert.java:57)
>     [java] 	at junit.framework.TestCase.fail(TestCase.java:227)
>[java] 	at
>org.apache.jmeter.resources.PackageTest.check(PackageTest.java:228)
>[java] 	at
>org.apache.jmeter.resources.PackageTest.check(PackageTest.java:172)
>[java] 	at
>org.apache.jmeter.resources.PackageTest.testLang(PackageTest.java:329)
>[java] 	at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
>[java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>Source)
>     [java] 	at java.lang.reflect.Method.invoke(Unknown Source)
>     [java] 	at junit.framework.TestCase.runTest(TestCase.java:176)
>     [java] 	at junit.framework.TestCase.runBare(TestCase.java:141)
>   [java] 	at junit.framework.TestResult$1.protect(TestResult.java:122)
>[java] 	at junit.framework.TestResult.runProtected(TestResult.java:142)
>     [java] 	at junit.framework.TestResult.run(TestResult.java:125)
>     [java] 	at junit.framework.TestCase.run(TestCase.java:129)
>     [java] 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
>     [java] 	at junit.framework.TestSuite.run(TestSuite.java:247)
>     [java] 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
>     [java] 	at junit.framework.TestSuite.run(TestSuite.java:247)
>[java] 	at
>org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
>     [java] 	at org.junit.runners.Suite.runChild(Suite.java:128)
>     [java] 	at org.junit.runners.Suite.runChild(Suite.java:27)
> [java] 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>[java] 	at
>org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>[java] 	at
>org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>[java] 	at
>org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>[java] 	at
>org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>   [java] 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>     [java] 	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
>     [java] 	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
>    [java] 	at org.apache.jorphan.test.AllTests.main(AllTests.java:219)
>     [java] FAILURES!!!
>     [java] Tests run: 3312,  Failures: 130 [java] 
>.....................................................E...........................
>     [java] Time: 4.468
>     [java] There was 1 failure:
>[java] 1)
>testUnEscapeHtml2(org.apache.jmeter.functions.TestSimpleFunctions)
>[java] org.junit.ComparisonFailure: expected:<<Fran[ç]ais>> but 
>was:<<Fran[ç]ais>>

What is your default character encoding set to? On Linux this would be the content of the environment variable LANG.

Regards,
 Felix 

>
>
>-----Original Message-----
>From: Felix Schumacher [mailto:felix.schumacher@internetallee.de]
>Sent: Tuesday, February 5, 2019 11:26 AM
>To: JMeter Users List <us...@jmeter.apache.org>
>Subject: Re: 131 tests are getting failed while running "ant test"
>command
>
>
>
>Am 5. Februar 2019 04:21:24 MEZ schrieb Sanjay Chaurasia
><Sa...@india.nec.com>:
>>Hi team,
>>
>>I am following https://jmeter.apache.org/building (building and 
>>contributing to Jmeter) page to submit my patch.
>>
>>I have successfully run "ant package-and-check" command.
>>
>>But while running "ant test" command there are almost 131(130+1)
>tests
>>getting failed. Screenshot  is given below.
>>
>>[cid:image001.jpg@01D4BD2F.D95584C0]
>
>Images are often stripped by the mailing list - as in this case. It is 
>better to ibis those messages as text.
>
>Regards,
> Felix
>
>>
>>I have few queries regarding the same.
>>
>>
>>*         Can we run "ant test" command successfully on our local
>>machine.
>>
>>*         If yes, how can we achieve this because there are lots of
>>assertion errors in following  5 files.
>>
>>
>>
>>1.       TestSimpleFunctions.java
>>
>>2.       BinaryMessageRendererTest.java
>>
>>3.       ObjectMessageRendererTest.java
>>
>>4.       TextMessageRendererTest.java
>>
>>5.       MessageRendererTest.java
>>
>>Please suggest some solution to resolve the same.
>>
>>
>>Regards,
>>Sanjay Chaurasia
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>For additional commands, e-mail: user-help@jmeter.apache.org

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



RE: 131 tests are getting failed while running "ant test" command

Posted by Sanjay Chaurasia <Sa...@india.nec.com>.
Dear Felix,

Hope you are doing well !

Thank you for your concern.

Regards,
Sanjay Chaurasia


-----Original Message-----
From: Felix Schumacher [mailto:felix.schumacher@internetallee.de] 
Sent: Friday, February 8, 2019 1:25 AM
To: user@jmeter.apache.org
Subject: Re: 131 tests are getting failed while running "ant test" command


Am 07.02.19 um 09:59 schrieb Sanjay Chaurasia:
> Dear Felix,
>
> Thank you for your response. I have set the character encoding in the environment variable as you suggested.
>   JAVA_TOOL_OPTIONS to -Dfile.encoding=UTF8.
>   
> 8 tests, which were getting failed, have been passed.
>
> Still there are 122 tests are getting failed. And all tests have same 
> root cause. Please have a look below log
>
> [java] 122) testLang(org.apache.jmeter.resources.PackageTest)

That still seems to be the same problem, that your environment has the wrong encoding for the files.

As I am no expert for windows based systems, so I would not be able to give you any more advise here. Maybe someone else can help you.

Sorry,

  Felix

>       [java] junit.framework.AssertionFailedError: One or more subtests failed
>       [java] 	at junit.framework.Assert.fail(Assert.java:57)
>       [java] 	at junit.framework.TestCase.fail(TestCase.java:227)
>       [java] 	at org.apache.jmeter.resources.PackageTest.check(PackageTest.java:228)
>       [java] 	at org.apache.jmeter.resources.PackageTest.check(PackageTest.java:172)
>       [java] 	at org.apache.jmeter.resources.PackageTest.testLang(PackageTest.java:329)
>       [java] 	at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
>       [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>       [java] 	at java.lang.reflect.Method.invoke(Unknown Source)
>       [java] 	at junit.framework.TestCase.runTest(TestCase.java:176)
>       [java] 	at junit.framework.TestCase.runBare(TestCase.java:141)
>       [java] 	at junit.framework.TestResult$1.protect(TestResult.java:122)
>       [java] 	at junit.framework.TestResult.runProtected(TestResult.java:142)
>       [java] 	at junit.framework.TestResult.run(TestResult.java:125)
>       [java] 	at junit.framework.TestCase.run(TestCase.java:129)
>       [java] 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
>       [java] 	at junit.framework.TestSuite.run(TestSuite.java:247)
>       [java] 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
>       [java] 	at junit.framework.TestSuite.run(TestSuite.java:247)
>       [java] 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
>       [java] 	at org.junit.runners.Suite.runChild(Suite.java:128)
>       [java] 	at org.junit.runners.Suite.runChild(Suite.java:27)
>       [java] 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>       [java] 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>       [java] 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>       [java] 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>       [java] 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>       [java] 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>       [java] 	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
>       [java] 	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
>       [java] 	at org.apache.jorphan.test.AllTests.main(AllTests.java:219)
>       [java] FAILURES!!!
>       [java] Tests run: 3312,  Failures: 122
>       [java] ................................................................................
>       [java] Time: 4.329
>       [java] OK (80 tests)
>       [java] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
>
> BUILD FAILED
> C:\Users\sanjay.chaurasia\Desktop\jmeter\trunk\build.xml:3181: Java 
> returned: 1
>
> If you have any idea of the root cause, please share.
> I will be highly grateful to you.
>
>
> Regards,
> Sanjay Chaurasia
>
> -----Original Message-----
> From: Felix Schumacher [mailto:felix.schumacher@internetallee.de]
> Sent: Tuesday, February 5, 2019 12:16 PM
> To: JMeter Users List <us...@jmeter.apache.org>
> Subject: RE: 131 tests are getting failed while running "ant test" 
> command
>
>
>
> Am 5. Februar 2019 07:02:14 MEZ schrieb Sanjay Chaurasia <Sa...@india.nec.com>:
>> Please find below "ant test" logs
>>
>> [java] junit.framework.AssertionFailedError: One or more subtests 
>> failed
>>      [java] 	at junit.framework.Assert.fail(Assert.java:57)
>>      [java] 	at junit.framework.TestCase.fail(TestCase.java:227)
>> [java] 	at
>> org.apache.jmeter.resources.PackageTest.check(PackageTest.java:228)
>> [java] 	at
>> org.apache.jmeter.resources.PackageTest.check(PackageTest.java:172)
>> [java] 	at
>> org.apache.jmeter.resources.PackageTest.testLang(PackageTest.java:329)
>> [java] 	at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
>> [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>> Source)
>>      [java] 	at java.lang.reflect.Method.invoke(Unknown Source)
>>      [java] 	at junit.framework.TestCase.runTest(TestCase.java:176)
>>      [java] 	at junit.framework.TestCase.runBare(TestCase.java:141)
>>    [java] 	at junit.framework.TestResult$1.protect(TestResult.java:122)
>> [java] 	at junit.framework.TestResult.runProtected(TestResult.java:142)
>>      [java] 	at junit.framework.TestResult.run(TestResult.java:125)
>>      [java] 	at junit.framework.TestCase.run(TestCase.java:129)
>>      [java] 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
>>      [java] 	at junit.framework.TestSuite.run(TestSuite.java:247)
>>      [java] 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
>>      [java] 	at junit.framework.TestSuite.run(TestSuite.java:247)
>> [java] 	at
>> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
>>      [java] 	at org.junit.runners.Suite.runChild(Suite.java:128)
>>      [java] 	at org.junit.runners.Suite.runChild(Suite.java:27)
>> [java] 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>> [java] 	at
>> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>> [java] 	at
>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>> [java] 	at
>> org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>> [java] 	at
>> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>    [java] 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>      [java] 	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
>>      [java] 	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
>>     [java] 	at org.apache.jorphan.test.AllTests.main(AllTests.java:219)
>>      [java] FAILURES!!!
>>      [java] Tests run: 3312,  Failures: 130 [java] 
>> .....................................................E...........................
>>      [java] Time: 4.468
>>      [java] There was 1 failure:
>> [java] 1)
>> testUnEscapeHtml2(org.apache.jmeter.functions.TestSimpleFunctions)
>> [java] org.junit.ComparisonFailure: expected:<<Fran[ç]ais>> but 
>> was:<<Fran[ç]ais>>
> What is your default character encoding set to? On Linux this would be the content of the environment variable LANG.
>
> Regards,
>   Felix
>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> For additional commands, e-mail: user-help@jmeter.apache.org
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org

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



Re: 131 tests are getting failed while running "ant test" command

Posted by sebb <se...@gmail.com>.
JMeter builds and tests fine on Windows using Jenkins [1]

I suspect there is a problem with the way the files were install on
the Windows system.

The error you reported:

1) testUnEscapeHtml2(org.apache.jmeter.functions.TestSimpleFunctions)
     [java] org.junit.ComparisonFailure: expected:<<Fran[ç]ais>> but
was:<<Fran[ç]ais>>

comes from the following line:

        assertEquals("<Français>", ret);

Note that the actual value is correct in the error report, whereas the
expected value is mangled.
It looks as though the file has been through some sort of conversion
process that has mangled it.

What does the file
test/src/org/apache/jmeter/functions/TestSimpleFunctions.java
contain at round line 143?

[1] https://builds.apache.org/view/H-L/view/JMeter/job/JMeter%20Windows/

On Thu, 7 Feb 2019 at 20:48, Felix Schumacher
<fe...@internetallee.de> wrote:
>
>
> Am 07.02.19 um 09:59 schrieb Sanjay Chaurasia:
> > Dear Felix,
> >
> > Thank you for your response. I have set the character encoding in the environment variable as you suggested.
> >   JAVA_TOOL_OPTIONS to -Dfile.encoding=UTF8.
> >
> > 8 tests, which were getting failed, have been passed.
> >
> > Still there are 122 tests are getting failed. And all tests have same root cause. Please have a look below log
> >
> > [java] 122) testLang(org.apache.jmeter.resources.PackageTest)
>
> That still seems to be the same problem, that your environment has the
> wrong encoding for the files.
>
> As I am no expert for windows based systems, so I would not be able to
> give you any more advise here. Maybe someone else can help you.
>
> Sorry,
>
>   Felix
>
> >       [java] junit.framework.AssertionFailedError: One or more subtests failed
> >       [java]  at junit.framework.Assert.fail(Assert.java:57)
> >       [java]  at junit.framework.TestCase.fail(TestCase.java:227)
> >       [java]  at org.apache.jmeter.resources.PackageTest.check(PackageTest.java:228)
> >       [java]  at org.apache.jmeter.resources.PackageTest.check(PackageTest.java:172)
> >       [java]  at org.apache.jmeter.resources.PackageTest.testLang(PackageTest.java:329)
> >       [java]  at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
> >       [java]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> >       [java]  at java.lang.reflect.Method.invoke(Unknown Source)
> >       [java]  at junit.framework.TestCase.runTest(TestCase.java:176)
> >       [java]  at junit.framework.TestCase.runBare(TestCase.java:141)
> >       [java]  at junit.framework.TestResult$1.protect(TestResult.java:122)
> >       [java]  at junit.framework.TestResult.runProtected(TestResult.java:142)
> >       [java]  at junit.framework.TestResult.run(TestResult.java:125)
> >       [java]  at junit.framework.TestCase.run(TestCase.java:129)
> >       [java]  at junit.framework.TestSuite.runTest(TestSuite.java:252)
> >       [java]  at junit.framework.TestSuite.run(TestSuite.java:247)
> >       [java]  at junit.framework.TestSuite.runTest(TestSuite.java:252)
> >       [java]  at junit.framework.TestSuite.run(TestSuite.java:247)
> >       [java]  at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
> >       [java]  at org.junit.runners.Suite.runChild(Suite.java:128)
> >       [java]  at org.junit.runners.Suite.runChild(Suite.java:27)
> >       [java]  at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> >       [java]  at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> >       [java]  at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> >       [java]  at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> >       [java]  at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> >       [java]  at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> >       [java]  at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
> >       [java]  at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
> >       [java]  at org.apache.jorphan.test.AllTests.main(AllTests.java:219)
> >       [java] FAILURES!!!
> >       [java] Tests run: 3312,  Failures: 122
> >       [java] ................................................................................
> >       [java] Time: 4.329
> >       [java] OK (80 tests)
> >       [java] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
> >
> > BUILD FAILED
> > C:\Users\sanjay.chaurasia\Desktop\jmeter\trunk\build.xml:3181: Java returned: 1
> >
> > If you have any idea of the root cause, please share.
> > I will be highly grateful to you.
> >
> >
> > Regards,
> > Sanjay Chaurasia
> >
> > -----Original Message-----
> > From: Felix Schumacher [mailto:felix.schumacher@internetallee.de]
> > Sent: Tuesday, February 5, 2019 12:16 PM
> > To: JMeter Users List <us...@jmeter.apache.org>
> > Subject: RE: 131 tests are getting failed while running "ant test" command
> >
> >
> >
> > Am 5. Februar 2019 07:02:14 MEZ schrieb Sanjay Chaurasia <Sa...@india.nec.com>:
> >> Please find below "ant test" logs
> >>
> >> [java] junit.framework.AssertionFailedError: One or more subtests
> >> failed
> >>      [java]  at junit.framework.Assert.fail(Assert.java:57)
> >>      [java]  at junit.framework.TestCase.fail(TestCase.java:227)
> >> [java]       at
> >> org.apache.jmeter.resources.PackageTest.check(PackageTest.java:228)
> >> [java]       at
> >> org.apache.jmeter.resources.PackageTest.check(PackageTest.java:172)
> >> [java]       at
> >> org.apache.jmeter.resources.PackageTest.testLang(PackageTest.java:329)
> >> [java]       at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
> >> [java]       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> >> Source)
> >>      [java]  at java.lang.reflect.Method.invoke(Unknown Source)
> >>      [java]  at junit.framework.TestCase.runTest(TestCase.java:176)
> >>      [java]  at junit.framework.TestCase.runBare(TestCase.java:141)
> >>    [java]    at junit.framework.TestResult$1.protect(TestResult.java:122)
> >> [java]       at junit.framework.TestResult.runProtected(TestResult.java:142)
> >>      [java]  at junit.framework.TestResult.run(TestResult.java:125)
> >>      [java]  at junit.framework.TestCase.run(TestCase.java:129)
> >>      [java]  at junit.framework.TestSuite.runTest(TestSuite.java:252)
> >>      [java]  at junit.framework.TestSuite.run(TestSuite.java:247)
> >>      [java]  at junit.framework.TestSuite.runTest(TestSuite.java:252)
> >>      [java]  at junit.framework.TestSuite.run(TestSuite.java:247)
> >> [java]       at
> >> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
> >>      [java]  at org.junit.runners.Suite.runChild(Suite.java:128)
> >>      [java]  at org.junit.runners.Suite.runChild(Suite.java:27)
> >> [java]       at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> >> [java]       at
> >> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> >> [java]       at
> >> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> >> [java]       at
> >> org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> >> [java]       at
> >> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> >>    [java]    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> >>      [java]  at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
> >>      [java]  at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
> >>     [java]   at org.apache.jorphan.test.AllTests.main(AllTests.java:219)
> >>      [java] FAILURES!!!
> >>      [java] Tests run: 3312,  Failures: 130 [java]
> >> .....................................................E...........................
> >>      [java] Time: 4.468
> >>      [java] There was 1 failure:
> >> [java] 1)
> >> testUnEscapeHtml2(org.apache.jmeter.functions.TestSimpleFunctions)
> >> [java] org.junit.ComparisonFailure: expected:<<Fran[ç]ais>> but
> >> was:<<Fran[ç]ais>>
> > What is your default character encoding set to? On Linux this would be the content of the environment variable LANG.
> >
> > Regards,
> >   Felix
> >
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> >> For additional commands, e-mail: user-help@jmeter.apache.org
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> > For additional commands, e-mail: user-help@jmeter.apache.org
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> > For additional commands, e-mail: user-help@jmeter.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>

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


Re: 131 tests are getting failed while running "ant test" command

Posted by Felix Schumacher <fe...@internetallee.de>.
Am 07.02.19 um 09:59 schrieb Sanjay Chaurasia:
> Dear Felix,
>
> Thank you for your response. I have set the character encoding in the environment variable as you suggested.
>   JAVA_TOOL_OPTIONS to -Dfile.encoding=UTF8.
>   
> 8 tests, which were getting failed, have been passed.
>
> Still there are 122 tests are getting failed. And all tests have same root cause. Please have a look below log
>
> [java] 122) testLang(org.apache.jmeter.resources.PackageTest)

That still seems to be the same problem, that your environment has the 
wrong encoding for the files.

As I am no expert for windows based systems, so I would not be able to 
give you any more advise here. Maybe someone else can help you.

Sorry,

  Felix

>       [java] junit.framework.AssertionFailedError: One or more subtests failed
>       [java] 	at junit.framework.Assert.fail(Assert.java:57)
>       [java] 	at junit.framework.TestCase.fail(TestCase.java:227)
>       [java] 	at org.apache.jmeter.resources.PackageTest.check(PackageTest.java:228)
>       [java] 	at org.apache.jmeter.resources.PackageTest.check(PackageTest.java:172)
>       [java] 	at org.apache.jmeter.resources.PackageTest.testLang(PackageTest.java:329)
>       [java] 	at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
>       [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>       [java] 	at java.lang.reflect.Method.invoke(Unknown Source)
>       [java] 	at junit.framework.TestCase.runTest(TestCase.java:176)
>       [java] 	at junit.framework.TestCase.runBare(TestCase.java:141)
>       [java] 	at junit.framework.TestResult$1.protect(TestResult.java:122)
>       [java] 	at junit.framework.TestResult.runProtected(TestResult.java:142)
>       [java] 	at junit.framework.TestResult.run(TestResult.java:125)
>       [java] 	at junit.framework.TestCase.run(TestCase.java:129)
>       [java] 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
>       [java] 	at junit.framework.TestSuite.run(TestSuite.java:247)
>       [java] 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
>       [java] 	at junit.framework.TestSuite.run(TestSuite.java:247)
>       [java] 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
>       [java] 	at org.junit.runners.Suite.runChild(Suite.java:128)
>       [java] 	at org.junit.runners.Suite.runChild(Suite.java:27)
>       [java] 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>       [java] 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>       [java] 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>       [java] 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>       [java] 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>       [java] 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>       [java] 	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
>       [java] 	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
>       [java] 	at org.apache.jorphan.test.AllTests.main(AllTests.java:219)
>       [java] FAILURES!!!
>       [java] Tests run: 3312,  Failures: 122
>       [java] ................................................................................
>       [java] Time: 4.329
>       [java] OK (80 tests)
>       [java] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
>
> BUILD FAILED
> C:\Users\sanjay.chaurasia\Desktop\jmeter\trunk\build.xml:3181: Java returned: 1
>
> If you have any idea of the root cause, please share.
> I will be highly grateful to you.
>
>
> Regards,
> Sanjay Chaurasia
>
> -----Original Message-----
> From: Felix Schumacher [mailto:felix.schumacher@internetallee.de]
> Sent: Tuesday, February 5, 2019 12:16 PM
> To: JMeter Users List <us...@jmeter.apache.org>
> Subject: RE: 131 tests are getting failed while running "ant test" command
>
>
>
> Am 5. Februar 2019 07:02:14 MEZ schrieb Sanjay Chaurasia <Sa...@india.nec.com>:
>> Please find below "ant test" logs
>>
>> [java] junit.framework.AssertionFailedError: One or more subtests
>> failed
>>      [java] 	at junit.framework.Assert.fail(Assert.java:57)
>>      [java] 	at junit.framework.TestCase.fail(TestCase.java:227)
>> [java] 	at
>> org.apache.jmeter.resources.PackageTest.check(PackageTest.java:228)
>> [java] 	at
>> org.apache.jmeter.resources.PackageTest.check(PackageTest.java:172)
>> [java] 	at
>> org.apache.jmeter.resources.PackageTest.testLang(PackageTest.java:329)
>> [java] 	at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
>> [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>> Source)
>>      [java] 	at java.lang.reflect.Method.invoke(Unknown Source)
>>      [java] 	at junit.framework.TestCase.runTest(TestCase.java:176)
>>      [java] 	at junit.framework.TestCase.runBare(TestCase.java:141)
>>    [java] 	at junit.framework.TestResult$1.protect(TestResult.java:122)
>> [java] 	at junit.framework.TestResult.runProtected(TestResult.java:142)
>>      [java] 	at junit.framework.TestResult.run(TestResult.java:125)
>>      [java] 	at junit.framework.TestCase.run(TestCase.java:129)
>>      [java] 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
>>      [java] 	at junit.framework.TestSuite.run(TestSuite.java:247)
>>      [java] 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
>>      [java] 	at junit.framework.TestSuite.run(TestSuite.java:247)
>> [java] 	at
>> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
>>      [java] 	at org.junit.runners.Suite.runChild(Suite.java:128)
>>      [java] 	at org.junit.runners.Suite.runChild(Suite.java:27)
>> [java] 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>> [java] 	at
>> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>> [java] 	at
>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>> [java] 	at
>> org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>> [java] 	at
>> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>    [java] 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>      [java] 	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
>>      [java] 	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
>>     [java] 	at org.apache.jorphan.test.AllTests.main(AllTests.java:219)
>>      [java] FAILURES!!!
>>      [java] Tests run: 3312,  Failures: 130 [java]
>> .....................................................E...........................
>>      [java] Time: 4.468
>>      [java] There was 1 failure:
>> [java] 1)
>> testUnEscapeHtml2(org.apache.jmeter.functions.TestSimpleFunctions)
>> [java] org.junit.ComparisonFailure: expected:<<Fran[ç]ais>> but
>> was:<<Fran[ç]ais>>
> What is your default character encoding set to? On Linux this would be the content of the environment variable LANG.
>
> Regards,
>   Felix
>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> For additional commands, e-mail: user-help@jmeter.apache.org
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org

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


RE: 131 tests are getting failed while running "ant test" command

Posted by Sanjay Chaurasia <Sa...@india.nec.com>.
Dear Felix,

Thank you for your response. I have set the character encoding in the environment variable as you suggested.
 JAVA_TOOL_OPTIONS to -Dfile.encoding=UTF8.
 
8 tests, which were getting failed, have been passed.

Still there are 122 tests are getting failed. And all tests have same root cause. Please have a look below log

[java] 122) testLang(org.apache.jmeter.resources.PackageTest)
     [java] junit.framework.AssertionFailedError: One or more subtests failed
     [java] 	at junit.framework.Assert.fail(Assert.java:57)
     [java] 	at junit.framework.TestCase.fail(TestCase.java:227)
     [java] 	at org.apache.jmeter.resources.PackageTest.check(PackageTest.java:228)
     [java] 	at org.apache.jmeter.resources.PackageTest.check(PackageTest.java:172)
     [java] 	at org.apache.jmeter.resources.PackageTest.testLang(PackageTest.java:329)
     [java] 	at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
     [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     [java] 	at java.lang.reflect.Method.invoke(Unknown Source)
     [java] 	at junit.framework.TestCase.runTest(TestCase.java:176)
     [java] 	at junit.framework.TestCase.runBare(TestCase.java:141)
     [java] 	at junit.framework.TestResult$1.protect(TestResult.java:122)
     [java] 	at junit.framework.TestResult.runProtected(TestResult.java:142)
     [java] 	at junit.framework.TestResult.run(TestResult.java:125)
     [java] 	at junit.framework.TestCase.run(TestCase.java:129)
     [java] 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
     [java] 	at junit.framework.TestSuite.run(TestSuite.java:247)
     [java] 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
     [java] 	at junit.framework.TestSuite.run(TestSuite.java:247)
     [java] 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
     [java] 	at org.junit.runners.Suite.runChild(Suite.java:128)
     [java] 	at org.junit.runners.Suite.runChild(Suite.java:27)
     [java] 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
     [java] 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
     [java] 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
     [java] 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
     [java] 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
     [java] 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
     [java] 	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
     [java] 	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
     [java] 	at org.apache.jorphan.test.AllTests.main(AllTests.java:219)
     [java] FAILURES!!!
     [java] Tests run: 3312,  Failures: 122
     [java] ................................................................................
     [java] Time: 4.329
     [java] OK (80 tests)
     [java] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

BUILD FAILED
C:\Users\sanjay.chaurasia\Desktop\jmeter\trunk\build.xml:3181: Java returned: 1

If you have any idea of the root cause, please share. 
I will be highly grateful to you.


Regards,
Sanjay Chaurasia

-----Original Message-----
From: Felix Schumacher [mailto:felix.schumacher@internetallee.de] 
Sent: Tuesday, February 5, 2019 12:16 PM
To: JMeter Users List <us...@jmeter.apache.org>
Subject: RE: 131 tests are getting failed while running "ant test" command



Am 5. Februar 2019 07:02:14 MEZ schrieb Sanjay Chaurasia <Sa...@india.nec.com>:
>Please find below "ant test" logs
>
>[java] junit.framework.AssertionFailedError: One or more subtests 
>failed
>     [java] 	at junit.framework.Assert.fail(Assert.java:57)
>     [java] 	at junit.framework.TestCase.fail(TestCase.java:227)
>[java] 	at
>org.apache.jmeter.resources.PackageTest.check(PackageTest.java:228)
>[java] 	at
>org.apache.jmeter.resources.PackageTest.check(PackageTest.java:172)
>[java] 	at
>org.apache.jmeter.resources.PackageTest.testLang(PackageTest.java:329)
>[java] 	at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
>[java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>Source)
>     [java] 	at java.lang.reflect.Method.invoke(Unknown Source)
>     [java] 	at junit.framework.TestCase.runTest(TestCase.java:176)
>     [java] 	at junit.framework.TestCase.runBare(TestCase.java:141)
>   [java] 	at junit.framework.TestResult$1.protect(TestResult.java:122)
>[java] 	at junit.framework.TestResult.runProtected(TestResult.java:142)
>     [java] 	at junit.framework.TestResult.run(TestResult.java:125)
>     [java] 	at junit.framework.TestCase.run(TestCase.java:129)
>     [java] 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
>     [java] 	at junit.framework.TestSuite.run(TestSuite.java:247)
>     [java] 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
>     [java] 	at junit.framework.TestSuite.run(TestSuite.java:247)
>[java] 	at
>org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
>     [java] 	at org.junit.runners.Suite.runChild(Suite.java:128)
>     [java] 	at org.junit.runners.Suite.runChild(Suite.java:27)
> [java] 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>[java] 	at
>org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>[java] 	at
>org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>[java] 	at
>org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>[java] 	at
>org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>   [java] 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>     [java] 	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
>     [java] 	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
>    [java] 	at org.apache.jorphan.test.AllTests.main(AllTests.java:219)
>     [java] FAILURES!!!
>     [java] Tests run: 3312,  Failures: 130 [java] 
>.....................................................E...........................
>     [java] Time: 4.468
>     [java] There was 1 failure:
>[java] 1)
>testUnEscapeHtml2(org.apache.jmeter.functions.TestSimpleFunctions)
>[java] org.junit.ComparisonFailure: expected:<<Fran[ç]ais>> but 
>was:<<Fran[ç]ais>>

What is your default character encoding set to? On Linux this would be the content of the environment variable LANG.

Regards,
 Felix 

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

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



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

RE: 131 tests are getting failed while running "ant test" command

Posted by Felix Schumacher <fe...@internetallee.de>.

Am 5. Februar 2019 07:02:14 MEZ schrieb Sanjay Chaurasia <Sa...@india.nec.com>:
>Please find below "ant test" logs
>
>[java] junit.framework.AssertionFailedError: One or more subtests
>failed
>     [java] 	at junit.framework.Assert.fail(Assert.java:57)
>     [java] 	at junit.framework.TestCase.fail(TestCase.java:227)
>[java] 	at
>org.apache.jmeter.resources.PackageTest.check(PackageTest.java:228)
>[java] 	at
>org.apache.jmeter.resources.PackageTest.check(PackageTest.java:172)
>[java] 	at
>org.apache.jmeter.resources.PackageTest.testLang(PackageTest.java:329)
>[java] 	at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
>[java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>Source)
>     [java] 	at java.lang.reflect.Method.invoke(Unknown Source)
>     [java] 	at junit.framework.TestCase.runTest(TestCase.java:176)
>     [java] 	at junit.framework.TestCase.runBare(TestCase.java:141)
>   [java] 	at junit.framework.TestResult$1.protect(TestResult.java:122)
>[java] 	at junit.framework.TestResult.runProtected(TestResult.java:142)
>     [java] 	at junit.framework.TestResult.run(TestResult.java:125)
>     [java] 	at junit.framework.TestCase.run(TestCase.java:129)
>     [java] 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
>     [java] 	at junit.framework.TestSuite.run(TestSuite.java:247)
>     [java] 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
>     [java] 	at junit.framework.TestSuite.run(TestSuite.java:247)
>[java] 	at
>org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
>     [java] 	at org.junit.runners.Suite.runChild(Suite.java:128)
>     [java] 	at org.junit.runners.Suite.runChild(Suite.java:27)
> [java] 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>[java] 	at
>org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>[java] 	at
>org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>[java] 	at
>org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>[java] 	at
>org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>   [java] 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>     [java] 	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
>     [java] 	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
>    [java] 	at org.apache.jorphan.test.AllTests.main(AllTests.java:219)
>     [java] FAILURES!!!
>     [java] Tests run: 3312,  Failures: 130
>[java]
>.....................................................E...........................
>     [java] Time: 4.468
>     [java] There was 1 failure:
>[java] 1)
>testUnEscapeHtml2(org.apache.jmeter.functions.TestSimpleFunctions)
>[java] org.junit.ComparisonFailure: expected:<<Fran[ç]ais>> but
>was:<<Fran[ç]ais>>

What is your default character encoding set to? On Linux this would be the content of the environment variable LANG.

Regards, 
 Felix 

>
>
>-----Original Message-----
>From: Felix Schumacher [mailto:felix.schumacher@internetallee.de] 
>Sent: Tuesday, February 5, 2019 11:26 AM
>To: JMeter Users List <us...@jmeter.apache.org>
>Subject: Re: 131 tests are getting failed while running "ant test"
>command
>
>
>
>Am 5. Februar 2019 04:21:24 MEZ schrieb Sanjay Chaurasia
><Sa...@india.nec.com>:
>>Hi team,
>>
>>I am following https://jmeter.apache.org/building (building and 
>>contributing to Jmeter) page to submit my patch.
>>
>>I have successfully run "ant package-and-check" command.
>>
>>But while running "ant test" command there are almost 131(130+1) 
>tests 
>>getting failed. Screenshot  is given below.
>>
>>[cid:image001.jpg@01D4BD2F.D95584C0]
>
>Images are often stripped by the mailing list - as in this case. It is
>better to ibis those messages as text. 
>
>Regards,
> Felix 
>
>>
>>I have few queries regarding the same.
>>
>>
>>*         Can we run "ant test" command successfully on our local
>>machine.
>>
>>*         If yes, how can we achieve this because there are lots of
>>assertion errors in following  5 files.
>>
>>
>>
>>1.       TestSimpleFunctions.java
>>
>>2.       BinaryMessageRendererTest.java
>>
>>3.       ObjectMessageRendererTest.java
>>
>>4.       TextMessageRendererTest.java
>>
>>5.       MessageRendererTest.java
>>
>>Please suggest some solution to resolve the same.
>>
>>
>>Regards,
>>Sanjay Chaurasia
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>For additional commands, e-mail: user-help@jmeter.apache.org

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


RE: 131 tests are getting failed while running "ant test" command

Posted by Sanjay Chaurasia <Sa...@india.nec.com>.
Please find below "ant test" logs

[java] junit.framework.AssertionFailedError: One or more subtests failed
     [java] 	at junit.framework.Assert.fail(Assert.java:57)
     [java] 	at junit.framework.TestCase.fail(TestCase.java:227)
     [java] 	at org.apache.jmeter.resources.PackageTest.check(PackageTest.java:228)
     [java] 	at org.apache.jmeter.resources.PackageTest.check(PackageTest.java:172)
     [java] 	at org.apache.jmeter.resources.PackageTest.testLang(PackageTest.java:329)
     [java] 	at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
     [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     [java] 	at java.lang.reflect.Method.invoke(Unknown Source)
     [java] 	at junit.framework.TestCase.runTest(TestCase.java:176)
     [java] 	at junit.framework.TestCase.runBare(TestCase.java:141)
     [java] 	at junit.framework.TestResult$1.protect(TestResult.java:122)
     [java] 	at junit.framework.TestResult.runProtected(TestResult.java:142)
     [java] 	at junit.framework.TestResult.run(TestResult.java:125)
     [java] 	at junit.framework.TestCase.run(TestCase.java:129)
     [java] 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
     [java] 	at junit.framework.TestSuite.run(TestSuite.java:247)
     [java] 	at junit.framework.TestSuite.runTest(TestSuite.java:252)
     [java] 	at junit.framework.TestSuite.run(TestSuite.java:247)
     [java] 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
     [java] 	at org.junit.runners.Suite.runChild(Suite.java:128)
     [java] 	at org.junit.runners.Suite.runChild(Suite.java:27)
     [java] 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
     [java] 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
     [java] 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
     [java] 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
     [java] 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
     [java] 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
     [java] 	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
     [java] 	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
     [java] 	at org.apache.jorphan.test.AllTests.main(AllTests.java:219)
     [java] FAILURES!!!
     [java] Tests run: 3312,  Failures: 130
     [java] .....................................................E...........................
     [java] Time: 4.468
     [java] There was 1 failure:
     [java] 1) testUnEscapeHtml2(org.apache.jmeter.functions.TestSimpleFunctions)
     [java] org.junit.ComparisonFailure: expected:<<Fran[ç]ais>> but was:<<Fran[ç]ais>>


-----Original Message-----
From: Felix Schumacher [mailto:felix.schumacher@internetallee.de] 
Sent: Tuesday, February 5, 2019 11:26 AM
To: JMeter Users List <us...@jmeter.apache.org>
Subject: Re: 131 tests are getting failed while running "ant test" command



Am 5. Februar 2019 04:21:24 MEZ schrieb Sanjay Chaurasia <Sa...@india.nec.com>:
>Hi team,
>
>I am following https://jmeter.apache.org/building (building and 
>contributing to Jmeter) page to submit my patch.
>
>I have successfully run "ant package-and-check" command.
>
>But while running "ant test" command there are almost 131(130+1)  tests 
>getting failed. Screenshot  is given below.
>
>[cid:image001.jpg@01D4BD2F.D95584C0]

Images are often stripped by the mailing list - as in this case. It is better to ibis those messages as text. 

Regards,
 Felix 

>
>I have few queries regarding the same.
>
>
>*         Can we run "ant test" command successfully on our local
>machine.
>
>*         If yes, how can we achieve this because there are lots of
>assertion errors in following  5 files.
>
>
>
>1.       TestSimpleFunctions.java
>
>2.       BinaryMessageRendererTest.java
>
>3.       ObjectMessageRendererTest.java
>
>4.       TextMessageRendererTest.java
>
>5.       MessageRendererTest.java
>
>Please suggest some solution to resolve the same.
>
>
>Regards,
>Sanjay Chaurasia

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



Re: 131 tests are getting failed while running "ant test" command

Posted by Felix Schumacher <fe...@internetallee.de>.

Am 5. Februar 2019 04:21:24 MEZ schrieb Sanjay Chaurasia <Sa...@india.nec.com>:
>Hi team,
>
>I am following https://jmeter.apache.org/building (building and
>contributing to Jmeter) page to submit my patch.
>
>I have successfully run "ant package-and-check" command.
>
>But while running "ant test" command there are almost 131(130+1)  tests
>getting failed. Screenshot  is given below.
>
>[cid:image001.jpg@01D4BD2F.D95584C0]

Images are often stripped by the mailing list - as in this case. It is better to ibis those messages as text. 

Regards, 
 Felix 

>
>I have few queries regarding the same.
>
>
>*         Can we run "ant test" command successfully on our local
>machine.
>
>*         If yes, how can we achieve this because there are lots of
>assertion errors in following  5 files.
>
>
>
>1.       TestSimpleFunctions.java
>
>2.       BinaryMessageRendererTest.java
>
>3.       ObjectMessageRendererTest.java
>
>4.       TextMessageRendererTest.java
>
>5.       MessageRendererTest.java
>
>Please suggest some solution to resolve the same.
>
>
>Regards,
>Sanjay Chaurasia

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