ATG DUST | Unit Testing Framework

81 views
Skip to first unread message

Gaurav

unread,
Sep 20, 2007, 2:36:03 AM9/20/07
to ATG_Tech
Dear all

I have been working on ATG DUST for past few days. I have installed
maven, and followed all the steps as mentioned in
http://atgdust.sourceforge.net/first-test.html and was able to run
this code. Now, I want to implement the same through repositories as
given in http://atgdust.sourceforge.net/repository-test.html. But in
doing so I was getting the error regarding dynamosystemresource and
then added

-Djava.rmi.server.codebase=dynamosystemresource://localhost:8823

in <maven>/bin/mvn.bat file as

@REM Start MAVEN2
:runm2
%MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath %CLASSWORLDS_JAR% "-
Dclassworlds.conf=%M2_HOME%\bin\m2.conf" "-Dmaven.home=%M2_HOME%" -
Djava.rmi.server.codebase=dynamosystemresource://localhost:8823
org.codehaus.classworlds.Launcher %MAVEN_CMD_LINE_ARGS%
if ERRORLEVEL 1 goto error
goto end


But after doing the above step, I am still getting the following error
stack trace.

C:\atgdust>mvn -e install
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building ATG DUST
[INFO] task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: C:\atgdust\target\surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running test.SimpleGSATest
definitionFile[0]=test/simpleRepository.xml
props {URL=jdbc:hsqldb:mem:testdb, user=sa, password=,
driver=org.hsqldb.jdbcDriver}
Sep 19, 2007 11:44:46 AM atg.test.DBUtils <init>
INFO: Connected to HSQL Database Engine Version: 1.8.0
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.344
sec <<< FAILURE!

Results :

Tests in error:
testSimple(test.SimpleGSATest)

Tests run: 2, Failures: 0, Errors: 1, Skipped: 0

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
560)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:
480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:
459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:
311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:
278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are
test failures.
at
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:
425)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:
443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
539)
... 16 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Wed Sep 19 11:44:47 IST 2007
[INFO] Final Memory: 6M/11M
[INFO]
------------------------------------------------------------------------


Any help would be appreciated.

Regards
Gaurav

Belmont, Adam

unread,
Sep 20, 2007, 6:20:28 PM9/20/07
to atg_...@googlegroups.com
If you are using it from the svn source try syncing again. There have
been some updates.
If you are using the precompiled jar, then take a look at your
"target/surefire-reports" directory for detailed test output.

BTW there's an email list specifically for that tool here:

atgdust...@lists.sourceforge.net

-- Adam

Reply all
Reply to author
Forward
0 new messages