Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Custom Test Execution (perl) + RAC 4.2 Deployment problem ?
Custom Test Execution (perl) + RAC 4.2 Deployment problem ? [message #84921] Thu, 05 October 2006 12:57 Go to next message
Johan is currently offline JohanFriend
Messages: 12
Registered: July 2009
Junior Member
Hi
I have downloaded the perl Custom Test Execution example from Testing Tool
Project, deployed the plugins on the RAC and made changes to the config.xml
file. I have also followed the tips in:
8 juni 2006 14:45<jptoomey@us.ibm.com> wrote in message
news:<e6964s$m25$1@utils.eclipse.org>

My test execution is very slow and seems to be halting at Executing test:
93%

I think im missing something in my deployment on the RAC, has anyone
experienced a similar problem? or have any suggestions ?
I have added:
<Variable name="CLASSPATH_ORG_ECLIPSE_HYADES_TEST_TOOLS_CORE"
position="append"
value=" C:\RAServerLatest\tptp\tptpdc\win_ia32\plugins\org.eclipse.h yades.test.tools.core_4.2.1.v200607310100\perl.runner.jar "/>

<Variable name="CLASSPATH_ORG_ECLIPSE_HYADES_TEST_TOOLS_CORE"
position="append"
value=" C:\RAServerLatest\tptp\tptpdc\win_ia32\plugins\org.eclipse.h yades.test.tools.core_4.2.1.v200607310100\hexperl.jar "/>

to the config.xml file in the
org.eclipse.hyades.test.tools.core_4.2.1.v200607310100/confi g directory and
the .jar files in the root of
org.eclipse.hyades.test.tools.core_4.2.1.v200607310100
Re: Custom Test Execution (perl) + RAC 4.2 Deployment problem ? [message #85225 is a reply to message #84921] Thu, 12 October 2006 21:31 Go to previous messageGo to next message
Joe Toomey is currently offline Joe ToomeyFriend
Messages: 79
Registered: July 2009
Member
Johan Andersson wrote:
> Hi
> I have downloaded the perl Custom Test Execution example from Testing Tool
> Project, deployed the plugins on the RAC and made changes to the config.xml
> file. I have also followed the tips in:
> 8 juni 2006 14:45<jptoomey@us.ibm.com> wrote in message
> news:<e6964s$m25$1@utils.eclipse.org>
>
> My test execution is very slow and seems to be halting at Executing test:
> 93%
>
> I think im missing something in my deployment on the RAC, has anyone
> experienced a similar problem? or have any suggestions ?
> I have added:
> <Variable name="CLASSPATH_ORG_ECLIPSE_HYADES_TEST_TOOLS_CORE"
> position="append"
> value=" C:\RAServerLatest\tptp\tptpdc\win_ia32\plugins\org.eclipse.h yades.test.tools.core_4.2.1.v200607310100\perl.runner.jar "/>
>
> <Variable name="CLASSPATH_ORG_ECLIPSE_HYADES_TEST_TOOLS_CORE"
> position="append"
> value=" C:\RAServerLatest\tptp\tptpdc\win_ia32\plugins\org.eclipse.h yades.test.tools.core_4.2.1.v200607310100\hexperl.jar "/>
>
> to the config.xml file in the
> org.eclipse.hyades.test.tools.core_4.2.1.v200607310100/confi g directory and
> the .jar files in the root of
> org.eclipse.hyades.test.tools.core_4.2.1.v200607310100 ´directory.
>
> Im using:
>
> Windows XP
> Eclipse 3.2
> TPTP 4.2
> RAC 4.2
>
> Brgds Johan
>
>

Hi Johan,

This is caused by a regression from the fix for
https://bugs.eclipse.org/bugs/show_bug.cgi?id=84790 . After your
executable object adapter sets the jvm arguments, they are further
modified to include the name of the test agent that the workbench should
look for. In the fix for 84790, the way in which the agent name is
added to the jvm arguments changed, and although the fix appears to have
been written to work properly with test types that pass their runner
arguments positionally, it in fact does not work.

The easiest way to fix this is to pass your script name in a
specifically named jvm property like this:

protected final String TEST_CLASS = "hyades.runner.testClass";
....
jvmArgs += "-D" + TEST_CLASS +"=\"" + theImplementor.getResource() + "\"";
jvmArgs += "org.eclipse.hyades.test.perl.runner.HyadesPerlRunner";

and then read the script name from that jvm property name in the runner
like this:

....
private void runTest(String[] args) {
try {
runnerStarted();

String perlScript = System.getProperty("hyades.runner.testClass");
if ( perlScript == null )
{
logVerdict("No script specified", VerdictEvent.VERDICT_ERROR);
throw new Exception();
}

String cmdArray[] = {"perl", perlScript};
....

I have filed https://bugs.eclipse.org/bugs/show_bug.cgi?id=160757 to
track fixing the overall problem, and I have ammended the ported 4.2
code on the TPTP website with the suggestions I made above.
http://www.eclipse.org/tptp/test/documents/tutorials/eclipse Con2005/ImprovedEclipseConDemo_ported_TPTP42.zip

Thanks for identifying the issue.
--Joe
Re: Custom Test Execution (perl) + RAC 4.2 Deployment problem ? [message #85329 is a reply to message #85225] Mon, 16 October 2006 06:15 Go to previous message
Johan is currently offline JohanFriend
Messages: 12
Registered: July 2009
Junior Member
Thanks a million Toomey !

// Johan

"Joe Toomey" <jptoomey@us.ibm.com> wrote in message
news:egmc73$h44$2@utils.eclipse.org...
> Johan Andersson wrote:
>> Hi
>> I have downloaded the perl Custom Test Execution example from Testing
>> Tool Project, deployed the plugins on the RAC and made changes to the
>> config.xml file. I have also followed the tips in:
>> 8 juni 2006 14:45<jptoomey@us.ibm.com> wrote in message
>> news:<e6964s$m25$1@utils.eclipse.org>
>>
>> My test execution is very slow and seems to be halting at Executing test:
>> 93%
>>
>> I think im missing something in my deployment on the RAC, has anyone
>> experienced a similar problem? or have any suggestions ?
>> I have added:
>> <Variable name="CLASSPATH_ORG_ECLIPSE_HYADES_TEST_TOOLS_CORE"
>> position="append"
>> value=" C:\RAServerLatest\tptp\tptpdc\win_ia32\plugins\org.eclipse.h yades.test.tools.core_4.2.1.v200607310100\perl.runner.jar "/>
>>
>> <Variable name="CLASSPATH_ORG_ECLIPSE_HYADES_TEST_TOOLS_CORE"
>> position="append"
>> value=" C:\RAServerLatest\tptp\tptpdc\win_ia32\plugins\org.eclipse.h yades.test.tools.core_4.2.1.v200607310100\hexperl.jar "/>
>>
>> to the config.xml file in the
>> org.eclipse.hyades.test.tools.core_4.2.1.v200607310100/confi g directory
>> and the .jar files in the root of
>> org.eclipse.hyades.test.tools.core_4.2.1.v200607310100
Previous Topic:extension point to extend context menu in log interaction view?
Next Topic:Exception handling in custom rules/templates
Goto Forum:
  


Current Time: Fri Apr 26 15:02:09 GMT 2024

Powered by FUDForum. Page generated in 0.04144 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top