From: Aamir Y. <aam...@gm...> - 2007-06-25 16:16:50
|
I am using ANT 1.7.0 and using Same junit.jar which is shipped with the abbot 3.8.1 :) Here you can see my my junit1850803752.properties. #Ant JUnitTask generated properties file #Mon Jun 25 21:06:12 PKT 2007 java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition sun.boot.library.path=C\:\\Program Files\\Java\\jre1.5.0_04\\bin java.vm.version=1.5.0_04-b05 ant.library.dir=G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib ant.version=Apache Ant version 1.7.0 compiled on December 13 2006 ant.java.version=1.5 java.vendor.url=http\://java.sun.com/ java.vm.vendor=Sun Microsystems Inc. path.separator=; file.encoding.pkg=sun.io java.vm.name=Java HotSpot(TM) Client VM sun.os.patch.level=Service Pack 2 user.country=US java.vm.specification.name=Java Virtual Machine Specification user.dir=F\:\\Projects\\AutmatedTesting java.runtime.version=1.5.0_04-b05 basedir=F\:\\Projects\\AutmatedTesting java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment eclipse.pdebuild.scripts=/D\:/eclipse/plugins/org.eclipse.pde.build_3.2.1.r321_v20060823/scripts/ java.endorsed.dirs=C\:\\Program Files\\Java\\jre1.5.0_04\\lib\\endorsed os.arch=x86 java.io.tmpdir=C\:\\DOCUME~1\\amir\\LOCALS~1\\Temp\\ line.separator=\r\n ant.core.lib=G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant.jar abbot.testsuite.path.recurse=true java.vm.specification.vendor=Sun Microsystems Inc. user.variant= os.name=Windows XP ant.home=G\:\\Downloads\\Development\\apache-ant-1.7.0 eclipse.pdebuild.templates=/D\:/eclipse/plugins/org.eclipse.pde.build_3.2.1.r321_v20060823/templates/ abbot.testsuite.path=testing ant.project.name=automated-testing results=test/reports sun.jnu.encoding=Cp1252 eclipse.pdebuild.home=/D\:/eclipse/plugins/org.eclipse.pde.build_3.2.1.r321_v20060823/./ java.library.path=C\:\\EnterpriseDB\\8.2\\jre1.5\\bin;.;C\:\\WINDOWS\\system32;C\:\\WINDOWS;.;C\:\\EnterpriseDB\\8.2\\jre1.5\\bin;F\:\\Program Files\\Business Objects\\Common\\3.5\\bin\\NOTES\\;F\:\\Program Files\\Business Objects\\Common\\3.5\\bin\\NOTES\\DATA\\;C\:\\oraclexe\\app\\oracle\\product\\10.2.0\\server\\bin;C\:\\WINDOWS\\system32;C\:\\WINDOWS;C\:\\WINDOWS\\System32\\Wbem;G\:\\Downloads\\Development\\apache- ant-1.7.0\\bin;C\:\\Program Files\\Microsoft SQL Server\\80\\Tools\\BINN;D\:\\MySQL\\MySQL Server 5.0\\bin;C\:\\Program Files\\GnuWin32\\bin;C\:\\Program Files\\QuickTime\\QTSystem\\;F\:\\Projects\\testing\\marathon\\marathon- 1.0.6;D\:\\eclipse\\configuration\\org.eclipse.osgi\\bundles\\79\\1\\.cp ant.file.automated-testing=F\:\\Projects\\AutmatedTesting\\build.xml java.class.version=49.0 java.specification.name=Java Platform API Specification sun.management.compiler=HotSpot Client Compiler os.version=5.1 ant.file=F\:\\Projects\\AutmatedTesting\\build.xml user.home=C\:\\Documents and Settings\\amir user.timezone= java.awt.printerjob=sun.awt.windows.WPrinterJob java.specification.version=1.5 file.encoding=Cp1252 user.name=amir java.class.path=G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-antlr.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-apache-bcel.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-apache-bsf.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-apache-log4j.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-apache-oro.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-apache-regexp.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-apache-resolver.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-commons-logging.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-commons-net.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-jai.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-javamail.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-jdepend.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-jmf.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-jsch.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-junit.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-launcher.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-netrexx.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-nodeps.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-starteam.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-stylebook.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-swing.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-testutil.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-trax.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant-weblogic.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\ant.jar ;G\:\\Downloads\\Development\\apache- ant-1.7.0\\lib\\jakarta-ant-1.4.1-optional.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\xercesImpl.jar ;G\:\\Downloads\\Development\\apache-ant-1.7.0\\lib\\xml-apis.jar;D\:\\eclipse\\configuration\\org.eclipse.osgi\\bundles\\10\\1\\.cp\\lib\\remoteAnt.jar;C\:\\EnterpriseDB\\8.2\\jre1.5\\lib\\tools.jar;D\:\\eclipse\\plugins\\org.eclipse.swt.win32.win32.x86_3.2.1.v3235.jar;C\:\\Program Files\\MyEclipse Enterprise Workbench 5.1.0GA\\eclipse\\plugins\\com.genuitec.javascript.debug.mozilla_5.1.0\\browser.jar;C\:\\Program Files\\MyEclipse Enterprise Workbench 5.1.0GA\\eclipse\\plugins\\com.genuitec.javascript.debug.mozilla_5.1.0\\htmltransferfix.jar;C\:\\Program Files\\MyEclipse Enterprise Workbench 5.1.0GA\\eclipse\\plugins\\org.eclipse.atf.mozilla.swt.browser_5.1.0\\mozilla_swt.jar java.vm.specification.version=1.0 java.home=C\:\\Program Files\\Java\\jre1.5.0_04 sun.arch.data.model=32 user.language=en java.specification.vendor=Sun Microsystems Inc. awt.toolkit=sun.awt.windows.WToolkit java.vm.info=mixed mode, sharing java.version=1.5.0_04 java.ext.dirs=C\:\\Program Files\\Java\\jre1.5.0_04\\lib\\ext sun.boot.class.path=C\:\\ProgramFiles\\Java\\jre1.5.0_04\\lib\\rt.jar;C\:\\Program Files\\Java\\jre1.5.0_04\\lib\\i18n.jar;C\:\\Program Files\\Java\\jre1.5.0_04\\lib\\sunrsasign.jar;C\:\\Program Files\\Java\\jre1.5.0_04\\lib\\jsse.jar;C\:\\Program Files\\Java\\jre1.5.0_04\\lib\\jce.jar;C\:\\Program Files\\Java\\jre1.5.0_04\\lib\\charsets.jar;C\:\\Program Files\\Java\\jre1.5.0_04\\classes java.vendor=Sun Microsystems Inc. file.separator=\\ java.vendor.url.bug=http\://java.sun.com/cgi-bin/bugreport.cgi sun.io.unicode.encoding=UnicodeLittle sun.cpu.endian=little sun.desktop=windows sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86 So i don't think o this is an issue over my side? As I am able to generate reports for one of my other project using same env. Can you guide me little more to investigate this issue? -- Aamir Yaseen On 6/25/07, Timothy Wall <tw...@us...> wrote: > > Make sure your ant and junit jars are up to date and that you're not > referencing multiple copies with different versions. Abbot includes > junit 3.8.1. Whichever one you're using doesn't support the "String > name()" method on TestCase, which the calling method requires. > > > On Jun 25, 2007, at 11:15 AM, Aamir Yaseen wrote: > > > Hi Wall, > > > > I am getting Error when I Use ANT to run Abbot using Ant script > > with Junit Tags. > > My Build.XML is like > > > > >>>>>>>>>>>>>>>>>>>>> > > > > <?xml version="1.0"?> > > <project name="automated-testing" default="test-html" basedir="."> > > <property name="abbot.testsuite.path.recurse" value="true" /> > > <property name="abbot.testsuite.path" value="testing" /> > > <property name="results" value="test/reports" /> > > > > <target name="test-html"> > > <junit fork="yes" printsummary="yes" haltonfailure="no"> > > <formatter type="xml" usefile="true" /> > > <batchtest fork="yes" todir="${results}" > > > <fileset dir="bin"> > > <include name="**/*Test.class" /> > > </fileset> > > </batchtest> > > <classpath> > > <pathelement location="bin"/> > > <fileset dir="lib"> > > <include name="*.jar"/> > > </fileset> > > <pathelement path="${java.class.path}"/> > > </classpath> > > </junit> > > > > <junitreport todir="${results}"> > > <fileset dir="${results}"> > > <include name="TEST-*.xml" /> > > </fileset> > > <report todir="${results}" /> > > </junitreport> > > </target> > > </project> > > > > > > >>>>>>>>>>>>>>>>>>>>> > > > > Here is an Error Details > > > > F:\Projects\AutmatedTesting>ant > > Buildfile: build.xml > > > > test-html: > > [junit] Exception in thread "main" java.lang.NoSuchMethodError: > > junit.framework.TestCase.name()Ljava/lang/String; > > [junit] at > > org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.s > > tartTest (XMLJUnitResultFormatter.java:186 > > ) > > [junit] at junit.framework.TestResult.startTest > > (TestResult.java:155) > > [junit] at junit.framework.TestResult.run(TestResult.java:107) > > [junit] at junit.framework.TestCase.run (TestCase.java:124) > > [junit] at junit.framework.TestSuite.runTest(TestSuite.java: > > 232) > > [junit] at junit.framework.TestSuite.run(TestSuite.java:227) > > [junit] at > > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run > > (JUnitTestRunner.java:231) > > [junit] at > > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main > > (JUnitTestRunner.java:409) > > [junit] java.io.FileNotFoundException: F:\Projects > > \AutmatedTesting\junitvmwatcher1470800234.properties (The system > > cannot find > > the file specified) > > [junit] at java.io.FileInputStream.open(Native Method) > > [junit] at java.io.FileInputStream.<init> > > (FileInputStream.java:106) > > [junit] at java.io.FileReader.<init>( FileReader.java:55) > > [junit] at > > org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeAsForked > > (JUnitTask.java:1028) > > [junit] at > > org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute > > (JUnitTask.java :817) > > [junit] at > > org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue( > > JUnitTask.java:1657) > > [junit] at > > org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute > > (JUnitTask.java:764) > > [junit] at org.apache.tools.ant.UnknownElement.execute > > (UnknownElement.java:288) > > [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0 > > (Native Method) > > [junit] at sun.reflect.NativeMethodAccessorImpl.invoke > > (NativeMethodAccessorImpl.java:39) > > [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke > > (DelegatingMethodAccessorImpl.java:25) > > [junit] at java.lang.reflect.Method.invoke(Method.java:585) > > [junit] at > > org.apache.tools.ant.dispatch.DispatchUtils.execute > > (DispatchUtils.java:105) > > [junit] at org.apache.tools.ant.Task.perform(Task.java:348) > > [junit] at org.apache.tools.ant.Target.execute(Target.java: > > 357) > > [junit] at org.apache.tools.ant.Target.performTasks > > (Target.java:385) > > [junit] at org.apache.tools.ant.Project.executeSortedTargets > > (Project.java:1329) > > [junit] at org.apache.tools.ant.Project.executeTarget > > (Project.java:1298) > > [junit] at > > org.apache.tools.ant.helper.DefaultExecutor.executeTargets > > (DefaultExecutor.java:41) > > [junit] at org.apache.tools.ant.Project.executeTargets > > (Project.java:1181) > > [junit] at org.apache.tools.ant.Main.runBuild(Main.java:698) > > [junit] at org.apache.tools.ant.Main.startAnt(Main.java:199) > > [junit] at org.apache.tools.ant.launch.Launcher.run > > (Launcher.java:257) > > [junit] at org.apache.tools.ant.launch.Launcher.main > > (Launcher.java:104) > > [junit] Running example.MyCodeTest > > [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec > > [junit] Test example.MyCodeTest FAILED (crashed) > > [junitreport] Processing F:\Projects\AutmatedTesting\test\reports > > \TESTS-TestSuites.xml to C:\DOCUME~1\amir\LOCALS~1\Temp\null19536 > > 01905 > > [junitreport] Loading stylesheet jar:file:/G:/Downloads/Development/ > > apache- ant-1.7.0/lib/ant-junit.jar!/org/apache/tools/ant/taskd > > efs/optional/junit/xsl/junit-frames.xsl > > [junitreport] Transform time: 1781ms > > [junitreport] Deleting: C:\DOCUME~1\amir\LOCALS~1\Temp\null1953601905 > > > > BUILD SUCCESSFUL > > Total time: 7 seconds > > F:\Projects\AutmatedTesting> > > > > > > But When i remove one tag from build file "<formatter type="xml" > > usefile="true" /> " > > Error is gone but Blank report is generated. > > > > I am testing same ant script for another my own application in the > > same environment without any difference, the only diff is of two > > client applications, i.e. One is being Run under Abbot second is > > running directly using JUnit. > > > > > > Any help? > > > > Regards, > > Aamir Yaseen > > > > > > > > On 6/22/07, Timothy Wall <tw...@us...> wrote: Ant's JUnit > > task runs JUnit tests. ScriptTestFixture produces JUnit > > tests. Ant's junitreport task process the output of ant's junit task. > > > > So no, you don't have to configure anything about abbot. See abbot's > > build.xml file for an example of producing HTML reports (see the > > "test" task). > > > > On Jun 22, 2007, at 9:33 AM, Aamir Yaseen wrote: > > > > > Thanks Wall, > > > Do I Need to pass some command line arguments to Abbot for > > > Exporting Results in XML Format or Ant and Junit will work > > > automtically? > > > > > > Regards, > > > Aamir Yaseen > > > > > > > ---------------------------------------------------------------------- > > --- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > abbot-users mailing list > > abb...@li... > > https://lists.sourceforge.net/lists/listinfo/abbot-users > > Timothy Wall > http://abbot.sf.net > > > |