shopingcarttests failed

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

shopingcarttests failed

Ganath Rathnayake
Hi all,
When I running the test I got exceptions and the stack trace is as follows,

[JUNIT] Results for test suite: shopingcarttests
     [java] 2011-06-09 10:32:58,929 (main) [
TestRunContainer.java:158:INFO ] [JUNIT] Pass: true | # Tests: 1 | # Failed:
0 # Errors: 0
     [java] 2011-06-09 10:32:58,929 (main) [
TestRunContainer.java:161:INFO ] [JUNIT] -----------------------------
ERRORS ----------------------------- [JUNIT]
     [java] 2011-06-09 10:32:58,929 (main) [
TestRunContainer.java:164:INFO ] None
     [java] 2011-06-09 10:32:58,929 (main) [
TestRunContainer.java:174:INFO ] [JUNIT]
------------------------------------------------------------------ [JUNIT]
     [java] 2011-06-09 10:32:58,929 (main) [
TestRunContainer.java:175:INFO ] [JUNIT] ----------------------------
FAILURES ---------------------------- [JUNIT]
     [java] 2011-06-09 10:32:58,930 (main) [
TestRunContainer.java:178:INFO ] None
     [java] 2011-06-09 10:32:58,931 (main) [
TestRunContainer.java:188:INFO ] [JUNIT]
------------------------------------------------------------------ [JUNIT]
     [java] 2011-06-09 10:32:58,933 (main) [
TestRunContainer.java:238:INFO ] [JUNIT] :
marketing-tests.testCreateAndUpdateContactList starting...
     [java] 2011-06-09 10:32:59,417 (main) [
SequenceUtil.java:337:INFO ] Got bank of sequenced IDs for [ContactList];
curSeqId=10020, maxSeqId=10030, bankSize=10
     [java] 2011-06-09 10:32:59,781 (main) [
ServiceDispatcher.java:604:INFO ] Sync service
[test-dispatcher-Sx7lpPkq4K/createContactList] finished in [615]
milliseconds with response [{contactListId=10020, responseMessage=success}]
     [java] 2011-06-09 10:32:59,785 (main) [
Log.java:117:INFO ] [MarketingTests.xml#testCreateAndUpdateContactList line
61] ========  Created contactListId [10020] =======
     [java] 2011-06-09 10:32:59,907 (main) [
TestRunContainer.java:234:INFO ] [JUNIT] :
marketing-tests.testCreateAndUpdateContactList finished.
     [java] 2011-06-09 10:32:59,907 (main) [
GenericDelegator.java:2770:INFO ] Rolling back 2 entity operations
     [java] 2011-06-09 10:33:00,107 (main) [
TestRunContainer.java:157:INFO ] [JUNIT] Results for test suite:
marketingtests
     [java] 2011-06-09 10:33:00,107 (main) [
TestRunContainer.java:158:INFO ] [JUNIT] Pass: true | # Tests: 1 | # Failed:
0 # Errors: 0
     [java] 2011-06-09 10:33:00,108 (main) [
TestRunContainer.java:161:INFO ] [JUNIT] -----------------------------
ERRORS ----------------------------- [JUNIT]
     [java] 2011-06-09 10:33:00,108 (main) [
TestRunContainer.java:164:INFO ] None
     [java] 2011-06-09 10:33:00,108 (main) [
TestRunContainer.java:174:INFO ] [JUNIT]
------------------------------------------------------------------ [JUNIT]
     [java] 2011-06-09 10:33:00,108 (main) [
TestRunContainer.java:175:INFO ] [JUNIT] ----------------------------
FAILURES ---------------------------- [JUNIT]
     [java] 2011-06-09 10:33:00,108 (main) [
TestRunContainer.java:178:INFO ] None
     [java] org.ofbiz.base.start.StartupException: Cannot start()
org.ofbiz.testtools.TestRunContainer (Test run was unsuccessful)
     [java]     at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:232)
     [java]     at
org.ofbiz.base.start.Start.startStartLoaders(Start.java:247)
     [java]     at org.ofbiz.base.start.Start.start(Start.java:226)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:70)
     [java] org.ofbiz.base.container.ContainerException: Test run was
unsuccessful
     [java]     at
org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:193)
     [java]     at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
     [java]     at
org.ofbiz.base.start.Start.startStartLoaders(Start.java:247)
     [java]     at org.ofbiz.base.start.Start.start(Start.java:226)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:70)
     [java] 2011-06-09 10:33:00,108 (main) [
TestRunContainer.java:188:INFO ] [JUNIT]
------------------------------------------------------------------ [JUNIT]
     [java] org.ofbiz.base.container.ContainerException: Test run was
unsuccessful
     [java]     at
org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:193)
     [java]     at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
     [java]     at
org.ofbiz.base.start.Start.startStartLoaders(Start.java:247)
     [java]     at org.ofbiz.base.start.Start.start(Start.java:226)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:70)

Though the shopping cart application is on Order module I cannot locate
where the error come from. Please help me to do that.
--
thanks
Ganath
Reply | Threaded
Open this post in threaded view
|

Re: shopingcarttests failed

Erwan de FERRIERES
Le 09/06/2011 08:12, Ganath Rathnayaka a écrit :
> Hi all,
> When I running the test I got exceptions and the stack trace is as follows,
../..
>
> Though the shopping cart application is on Order module I cannot locate
> where the error come from. Please help me to do that.

Hi Ganath,

is your github repo update to the latest version ? I've tried, and I
don't have the error you"re listing.

Cheers,

--
Erwan de FERRIERES
www.nereide.biz
Reply | Threaded
Open this post in threaded view
|

Re: shopingcarttests failed

Ganath Rathnayake
Yes Erwan, I didn't commit since I was pushed yesterday.
Reply | Threaded
Open this post in threaded view
|

Re: shopingcarttests failed

Erwan de FERRIERES
In reply to this post by Ganath Rathnayake
Le 09/06/2011 08:12, Ganath Rathnayaka a écrit :
> ] Results for test suite: shopingcarttests
>       [java] 2011-06-09 10:32:58,929 (main) [
> TestRunContainer.java:158:INFO ] [JUNIT] Pass: true | # Tests: 1 | # Failed:
> 0 # Errors: 0

Ganath,

the stacktrace you put in the mail is not the stacktrace from the error.
It must be higher in the log, and is not coming from the shoppingcart.

When you are running tests, redirect the console log to a file (eg: ant
run-tests > myLog.log), this will help you find the error.

Cheers,

--
Erwan de FERRIERES
www.nereide.biz
Reply | Threaded
Open this post in threaded view
|

Re: shopingcarttests failed

Erwan de FERRIERES
Le 09/06/2011 17:55, Erwan de FERRIERES a écrit :

> Le 09/06/2011 08:12, Ganath Rathnayaka a écrit :
>> ] Results for test suite: shopingcarttests
>> [java] 2011-06-09 10:32:58,929 (main) [
>> TestRunContainer.java:158:INFO ] [JUNIT] Pass: true | # Tests: 1 | #
>> Failed:
>> 0 # Errors: 0
>
> Ganath,
>
> the stacktrace you put in the mail is not the stacktrace from the error.
> It must be higher in the log, and is not coming from the shoppingcart.
>
> When you are running tests, redirect the console log to a file (eg: ant
> run-tests > myLog.log), this will help you find the error.
>
> Cheers,
>
look at this file too : runtime/logs/test-results/html/index.html

--
Erwan de FERRIERES
www.nereide.biz