Cannot play test with AGR [message #99369] |
Wed, 30 May 2007 08:16  |
Eclipse User |
|
|
|
Originally posted by: andrzej.urban.tietoenator.com
Hi,
I wanted to start using AGR to do some tests on GUI of my RCP application.
I've installed everything like in
http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI-4-4-0.html
I'm using Eclipse 3.3RC2, TPTP all-in-one 4.3.1,the libraries from
requirements, Technology preview AGR and integrated Agent Controller.
I'm doing the tutorial from the link above. The problem shows when I
record a simple action(like creating new project) and in Test Cases view
it shows my action in XML, But when I expand test case where the mines
should be theres an error shown in place of the mines:
"Error parsing associated macro of the test case:
org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to
javax.xml.parsers.SAXParserFactory".
In object mine the error is similar: "Error parsing the object mine of the
test case:org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to
javax.xml.parsers.SAXParserFactory".
When I want to play the Test Case it shows an error:
----------------------------------------
java.lang.ClassCastException
org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to
javax.xml.parsers.SAXParserFactory
java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl
cannot be cast to javax.xml.parsers.SAXParserFactory
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroUtil.getP arser(MacroUtil.java:1223)
at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroUtil.crea teXMLDocument(MacroUtil.java:1199)
at
org.eclipse.tptp.test.auto.gui.internal.macro.ObjectMineMana ger.loadObjectMine(ObjectMineManager.java:146)
at
org.eclipse.tptp.test.auto.gui.internal.macro.ObjectMineMana ger.loadObjectMine(ObjectMineManager.java:195)
at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.p repareForPlayBack(MacroManager.java:447)
at
org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIRunner .initializeTestRun(AutoGUIRunner.java:906)
at
org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIRunner .runTest(AutoGUIRunner.java:376)
at
org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIRunner .access$2(AutoGUIRunner.java:352)
at
org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIRunner $3.run(AutoGUIRunner.java:335)
at java.lang.Thread.run(Unknown Source)
-------------------------------------------------------
I dont know what may be a reason (beside the fact i'm a beginner) of this.
If you need any additional info (more logs,etc.) just let me know.
I'd be grateful for any solutions or tips.
Best Regards,
Andrzej Urban.
|
|
|
Re: Cannot play test with AGR [message #99399 is a reply to message #99369] |
Wed, 30 May 2007 07:21   |
Eclipse User |
|
|
|
Hi Andrzej,
Unfortunately, the AGR does not yet support RCP applications (see
enhancement https://bugs.eclipse.org/bugs/show_bug.cgi?id=114159). We hope
to include this support in our next release.
Paul
"Andrzej Urban" <andrzej.urban@tietoenator.com> wrote in message
news:639c89beb102afc59fcb81679a9a67bd$1@www.eclipse.org...
> Hi,
> I wanted to start using AGR to do some tests on GUI of my RCP application.
> I've installed everything like in
> http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI-4-4-0.html
> I'm using Eclipse 3.3RC2, TPTP all-in-one 4.3.1,the libraries from
> requirements, Technology preview AGR and integrated Agent Controller.
> I'm doing the tutorial from the link above. The problem shows when I
> record a simple action(like creating new project) and in Test Cases view
> it shows my action in XML, But when I expand test case where the mines
> should be theres an error shown in place of the mines: "Error parsing
> associated macro of the test case:
> org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to
> javax.xml.parsers.SAXParserFactory". In object mine the error is similar:
> "Error parsing the object mine of the test
> case:org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to
> javax.xml.parsers.SAXParserFactory".
>
> When I want to play the Test Case it shows an error:
> ----------------------------------------
> java.lang.ClassCastException
> org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to
> javax.xml.parsers.SAXParserFactory
> java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl
> cannot be cast to javax.xml.parsers.SAXParserFactory
> at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
> at
> org.eclipse.tptp.test.auto.gui.internal.macro.MacroUtil.getP arser(MacroUtil.java:1223)
> at
> org.eclipse.tptp.test.auto.gui.internal.macro.MacroUtil.crea teXMLDocument(MacroUtil.java:1199)
> at
> org.eclipse.tptp.test.auto.gui.internal.macro.ObjectMineMana ger.loadObjectMine(ObjectMineManager.java:146)
> at
> org.eclipse.tptp.test.auto.gui.internal.macro.ObjectMineMana ger.loadObjectMine(ObjectMineManager.java:195)
> at
> org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.p repareForPlayBack(MacroManager.java:447)
> at
> org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIRunner .initializeTestRun(AutoGUIRunner.java:906)
> at
> org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIRunner .runTest(AutoGUIRunner.java:376)
> at
> org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIRunner .access$2(AutoGUIRunner.java:352)
> at
> org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIRunner $3.run(AutoGUIRunner.java:335)
> at java.lang.Thread.run(Unknown Source)
> -------------------------------------------------------
>
> I dont know what may be a reason (beside the fact i'm a beginner) of this.
> If you need any additional info (more logs,etc.) just let me know.
>
> I'd be grateful for any solutions or tips.
>
> Best Regards,
> Andrzej Urban.
>
|
|
|
|
|
Re: Cannot play test with AGR [message #99710 is a reply to message #99689] |
Thu, 31 May 2007 07:48  |
Eclipse User |
|
|
|
Great. You can find the require Eclipse version on the TPTP download page.
Paul
"Andrzej Urban" <andrzej.urban@tietoenator.com> wrote in message
news:13b7aa348a12ecdc90e2dd64166fde46$1@www.eclipse.org...
> Hi again,
>
> I've got it now. I found out this error was due to the fact, that Eclipse
> 3.3 didn't want to work with TPTP 4.3.1. After installing version 4.4.0
> it's finally OK.
>
> Regards,
>
> Andrzej Urban wrote:
>> Hi,
>> Thanks for answering.
>
>> But so far I didn't get to testing my application and i'm doing
>> everything like it is shown in this userguide
> ( http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI-4-3-0.html)
>> I'm recording Eclipse's File->New Java Project Action. So should'n it
>> work like in this tutorial?
>> The first difference in tutorial and my test case is in Figure 2.6 -
>> Newly Created Test Case. In my Test Cases view there's an error istead of
>> the mines under Create Project.
>
>> Sorry if i'm asking about something obvious but i'm trying to understand
>> this.
>
>> Best Regards,
>
>> Andrzej Urban.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03703 seconds