MagicTest Query

11 views
Skip to first unread message

Arun

unread,
Jun 17, 2010, 6:50:28 AM6/17/10
to magictest-users, man...@gmail.com
Hello,

I was trying to setup Magic Test for testing the examples provided at
http://magicwerk.org/page-magictest-download.html
I am using

junit-4.8.2.jar
magictest-core-201003240042.jar
testng-5.12.1.jar
jdk1.6.0_13

QUERY 1: While running the Test as MagicTest i am getting a runtime
exception . What could be the reason of this runtime exception?
</step>
</test>
Test org.magictest.examples.ProjectIdTest.createId: No reference file
found
15:38:45.980 [main] DEBUG org.magictest.TestReporter - Copy resource
to C:\workspaces\magictest\magictest\test-output/../magictest/arrow-
top.png
15:38:45.980 [main] DEBUG org.magictest.TestReporter - Copy resource
to C:\workspaces\magictest\magictest\test-output/../magictest/arrow-
prev.png
15:38:45.980 [main] DEBUG org.magictest.TestReporter - Copy resource
to C:\workspaces\magictest\magictest\test-output/../magictest/arrow-
next.png
15:38:46.011 [main] DEBUG org.magictest.TestReporter - Writing HTML
file C:\workspaces\magictest\magictest\test-output/../magictest/org/
magictest/examples/ProjectIdTest.act.html
FAILED: createId
java.lang.RuntimeException: 0 tests run succesfully, 1 tests have
failed
at org.magictest.MagicTestTools.runOrSave(MagicTestTools.java:79)
at org.magictest.MagicTestTools.run(MagicTestTools.java:51)
... Removed 17 stack frames
QUERY 2: When i click on the Save line withing the internal eclipse
browser nothing happens. Any thing wrong in my setup?

QUERY 3: What version of junit, testng and magictest jar shall i need
to run with jdk1.5 ?

Thomas Mauch

unread,
Jun 17, 2010, 7:03:59 PM6/17/10
to magictest-users
Hi Arun

QUERY 1:

If I run the following script

rem -- JAR with MagicTest library
set MAGICTEST_JAR=download\magictest-core-201003240042.jar
rem -- Main class of MagicTest
set MAGICTEST_MAIN=org.magictest.MagicTest
rem -- Directory containing the test class files
set TESTS=bin

java -cp %MAGICTEST_JAR%;%TESTS% %MAGICTEST_MAIN% -log info -method
org.magictest.examples.ProjectIdTest.createId

I get the following output

<step id="25">
<output name="parameters">"ABCDEFG"</output>
<output name="error">java.lang.IllegalArgumentException: Invalid
input for p
roject id: ABCDEFG</output>
<output name="description">createId</output>
</step>
</test>
Test org.magictest.examples.ProjectIdTest.createId: No reference file
found
0 tests run succesfully, 1 tests have failed

How does your command line look like?

QUERY 2:
Do you see any useful information in the Console or the Error Log view
of Eclipse?
What version of OS / Java / Eclipse are you using?

QUERY 3:
Currently MagicTest is built for Java 6, so it can not be used with
Java 5.
Would you be interested in having a version runnable under Java 5?

Regards,
Thomas

Arun

unread,
Jun 18, 2010, 7:37:51 AM6/18/10
to magictest-users
Hi Thomas,

The tests runs fine through command line and there is no runtime
exception.

I am using:-
Eclipse
-----------
eclipse-jee-galileo-SR1-win32 (Eclipse Java EE IDE for Web
Developers.Build id: 20090920-1017)
Java
------
jdk1.6.0_13
OS
----
Microsoft Windows XP Professional Version 2002 Service Pack3

Although the runtime exception still comes in my IDE, i was able to
use save and run options by right clicking on the tests instead
of hyper-links in test report.
Except the below trace i don't see anything useful:-
...

16:46:33.221 [main] DEBUG org.magictest.TestReporter - Writing HTML
file C:\workspaces\magictest\magictest\test-output/../magictest/org/
magictest/examples/StaticMethodsTest.act.html
FAILED: testAdd2
java.lang.RuntimeException: 0 tests run succesfully, 1 tests have
failed
at org.magictest.MagicTestTools.runOrSave(MagicTestTools.java:79)
at org.magictest.MagicTestTools.run(MagicTestTools.java:51)
... Removed 17 stack frames
FAILED: testAdd3
java.lang.RuntimeException: 0 tests run succesfully, 1 tests have
failed
at org.magictest.MagicTestTools.runOrSave(MagicTestTools.java:79)
at org.magictest.MagicTestTools.run(MagicTestTools.java:51)
... Removed 17 stack frames
FAILED: testAdd
java.lang.RuntimeException: 0 tests run succesfully, 1 tests have
failed
at org.magictest.MagicTestTools.runOrSave(MagicTestTools.java:79)
at org.magictest.MagicTestTools.run(MagicTestTools.java:51)
... Removed 17 stack frames
...

Our main project is still in java5 and it will take sometime before we
move to java6, so i would definitely be interested if a java5 version
of magictest is available.

Thanks,
Arun

Reply all
Reply to author
Forward
0 new messages