Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Cannot run TPTP tests more than once
Cannot run TPTP tests more than once [message #42961] Fri, 25 November 2005 17:52 Go to next message
David Read is currently offline David Read
Messages: 35
Registered: July 2009
Member
After searching through the newsgroups and bugzilla, I cannot find any similar problems...
I have imported VectorTest.java from the JUnit samples that come with Eclipse, by following the TPTP Tester Guide in Help, and it works fine the first time I run it. But the second time it is run, the 'Launching' gets to 58% and stays there. If I exit the workbench and restart Eclipse, I can run the test once but not a second time. (The RAC is running as a Windows service)

I have also got the Perl UI example working (from EclipseCon2005_Building_a_Custom_Test_Execution_Environment) , after some porting to 4.0, and this does the same thing.

This is using Windows XP, Eclipse 3.1.1 and TPTP 4.0.1. I upgraded to TPTP 4.1 but the same happens.

Has anyone seen this before?
Re: Cannot run TPTP tests more than once [message #43020 is a reply to message #42961] Sat, 26 November 2005 08:37 Go to previous messageGo to next message
Eclipse User
Originally posted by: yves.xxxxxxxxx.com

HI David,

I'm having the same problem. In my case the test will hang only if the
previous test had errors in it (errors, not failures). But errors is what
I get most of the time, even for the simpliest test you can do such as
calling up a web page and clicking on a link. I'm new to TPTP as well and
I'm currently implementing my testing framework so I expect to spend time
on solving these issues. I will keep you informed of my progress and
finding.

Yves
Re: Cannot run TPTP tests more than once [message #43066 is a reply to message #43020] Sat, 26 November 2005 12:17 Go to previous messageGo to next message
David Read is currently offline David Read
Messages: 35
Registered: July 2009
Member
Hi Yves,
I have just gone through the process of installing Eclipse to a new location, with new workspace, (Eclipse 3.1, emf-sdo-xsd 2.1.1, TPTP 4.0.1) and get the same results. On the second test run, when I terminate the launch, get:
An internal error occurred during: "Vector Test"
with the exception stack trace:
java.lang.NullPointerException
at org.eclipse.hyades.execution.harness.TestExecutionHarness$2. run(TestExecutionHarness.java:750)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)

Looking in the Agent Controller log (servicelog.log) the second test appears to have run, but the first test starts with a sequence:
"Incoming connection request on socket 204 ...
"Notify the client that we are ready now ...
"Connection accepted on socket 204"
"Attempting to launch process ...
"Process launched: PID=2364"

Whereas the second test misses out the connection request stuff and goes straight to:
"Attempting to launch process ...
"Process launched: PID=2772"

I am attempting to debug into this, but I am not finding it easy
I'll let you know if I find anything.



Yves wrote:
> HI David,
>
> I'm having the same problem. In my case the test will hang only if the
> previous test had errors in it (errors, not failures). But errors is
> what I get most of the time, even for the simpliest test you can do such
> as calling up a web page and clicking on a link. I'm new to TPTP as
> well and I'm currently implementing my testing framework so I expect to
> spend time on solving these issues. I will keep you informed of my
> progress and finding.
>
> Yves
>
>
>

David wrote:
After searching through the newsgroups and bugzilla, I cannot find any similar problems...
I have imported VectorTest.java from the JUnit samples that come with Eclipse, by following the TPTP Tester Guide in Help, and it works fine the first time I run it. But the second time it is run, the 'Launching' gets to 58% and stays there. If I exit the workbench and restart Eclipse, I can run the test once but not a second time. (The RAC is running as a Windows service)

I have also got the Perl UI example working (from EclipseCon2005_Building_a_Custom_Test_Execution_Environment) , after some porting to 4.0, and this does the same thing.

This is using Windows XP, Eclipse 3.1.1 and TPTP 4.0.1. I upgraded to TPTP 4.1 but the same happens.

Has anyone seen this before?
Re: Cannot run TPTP tests more than once [message #43089 is a reply to message #43066] Sat, 26 November 2005 12:57 Go to previous messageGo to next message
Eclipse User
Originally posted by: Yves.xxxxxxxx.com

Hi David,

I went thru the re-install process and now it's working, I still get
errors when I run my test but they may be cause by baddly formed http
request. At least I can record and run all the test I want without having
to restart eclipse.

Here what I did:

1- installed eclipse 3.1.1
2- Open eclipse and goto help - software update - find and install -
search for new features
3- Select eclipse update and select all features, you need stuff like EMF
to run TPTP
4- You will be prompted to restart eclipse - restart and go back to
install new features
5- This time click on new remote site...
6- enter the URL of TPTP update site
http://eclipse.org/tptp/updates/site.xml
7- Do the update.

After generating my first test class from a http recording, I got a build
error about 3 libraries: nl1.jar,nl2.jar and nlBidi.jar . These language
libraries are added to the build path only during the generation process.
The jars were not in the right dir so I has to move them. They are
language libraries, I don't think they are needed. You could also remove
them from the ant task that generate the testclass file.

Most of the problems I encountered so far are with the Controller Agent. I
had to change the variable that points to the jvm lib in the config. (see
my earlier post).

If you still have problems, post your config and log files and I will
compare them with mine.
Yves
Re: Cannot run TPTP tests more than once [message #43247 is a reply to message #43089] Mon, 28 November 2005 16:35 Go to previous messageGo to next message
David Read is currently offline David Read
Messages: 35
Registered: July 2009
Member
Yves,
Glad you're up and running now.
I have still got the same situation, which is crazy because the exact same setup runs fine on my work machine, which is XP Pro, whereas I run XP Home here.
I have now tried several new installs, with various versions of Eclipse and TPTP, but get similar results (not exactly the same, but I won' bore you with the details).

My ultimate goal is a Java/Eclipse test harness talking to several embedded targets running C++ (no JVM), so I'm going to be using the 'New Technology' agent controller anyway.
I just wanted a gentle introduction by getting some TPTP samples working and browsing the code to see how to do things. But it looks like I'll have to jump in the deep end.

Does anyone else have any ideas?


Yves wrote:
> Hi David,
>
> I went thru the re-install process and now it's working, I still get
> errors when I run my test but they may be cause by baddly formed http
> request. At least I can record and run all the test I want without
> having to restart eclipse.
>
> Here what I did:
>
> 1- installed eclipse 3.1.1
> 2- Open eclipse and goto help - software update - find and install -
> search for new features
> 3- Select eclipse update and select all features, you need stuff like
> EMF to run TPTP
> 4- You will be prompted to restart eclipse - restart and go back to
> install new features
> 5- This time click on new remote site... 6- enter the URL of TPTP update
> site http://eclipse.org/tptp/updates/site.xml
> 7- Do the update.
>
> After generating my first test class from a http recording, I got a
> build error about 3 libraries: nl1.jar,nl2.jar and nlBidi.jar . These
> language libraries are added to the build path only during the
> generation process. The jars were not in the right dir so I has to move
> them. They are language libraries, I don't think they are needed. You
> could also remove them from the ant task that generate the testclass file.
>
> Most of the problems I encountered so far are with the Controller Agent.
> I had to change the variable that points to the jvm lib in the config.
> (see my earlier post).
>
> If you still have problems, post your config and log files and I will
> compare them with mine.
> Yves
>
Re: Cannot run TPTP tests more than once [message #43403 is a reply to message #43247] Mon, 28 November 2005 20:04 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul Slauenwhite
Messages: 970
Registered: July 2009
Senior Member
Hi David and Yves,
This appears to be a bug with the TIPTOP Test Execution Harness. Can
one of you open a defect in the TIPTOP Bugzilla DB under the
Test.UI.ConfigEditors component with your comments from this thread:

http://www.eclipse.org/tptp/ >> Submit Enhancements & Bugs

Paul
"David Read" <DavidRead@gmx.net> wrote in message
news:dmft7k$8h8$1@news.eclipse.org...
> Yves,
> Glad you're up and running now.
> I have still got the same situation, which is crazy because the exact same
setup runs fine on my work machine, which is XP Pro, whereas I run XP Home
here.
> I have now tried several new installs, with various versions of Eclipse
and TPTP, but get similar results (not exactly the same, but I won' bore you
with the details).
>
> My ultimate goal is a Java/Eclipse test harness talking to several
embedded targets running C++ (no JVM), so I'm going to be using the 'New
Technology' agent controller anyway.
> I just wanted a gentle introduction by getting some TPTP samples working
and browsing the code to see how to do things. But it looks like I'll have
to jump in the deep end.
>
> Does anyone else have any ideas?
>
>
> Yves wrote:
> > Hi David,
> >
> > I went thru the re-install process and now it's working, I still get
> > errors when I run my test but they may be cause by baddly formed http
> > request. At least I can record and run all the test I want without
> > having to restart eclipse.
> >
> > Here what I did:
> >
> > 1- installed eclipse 3.1.1
> > 2- Open eclipse and goto help - software update - find and install -
> > search for new features
> > 3- Select eclipse update and select all features, you need stuff like
> > EMF to run TPTP
> > 4- You will be prompted to restart eclipse - restart and go back to
> > install new features
> > 5- This time click on new remote site... 6- enter the URL of TPTP update
> > site http://eclipse.org/tptp/updates/site.xml
> > 7- Do the update.
> >
> > After generating my first test class from a http recording, I got a
> > build error about 3 libraries: nl1.jar,nl2.jar and nlBidi.jar . These
> > language libraries are added to the build path only during the
> > generation process. The jars were not in the right dir so I has to move
> > them. They are language libraries, I don't think they are needed. You
> > could also remove them from the ant task that generate the testclass
file.
> >
> > Most of the problems I encountered so far are with the Controller Agent.
> > I had to change the variable that points to the jvm lib in the config.
> > (see my earlier post).
> >
> > If you still have problems, post your config and log files and I will
> > compare them with mine.
> > Yves
> >
Re: Cannot run TPTP tests more than once [message #43691 is a reply to message #43403] Tue, 29 November 2005 15:25 Go to previous message
David Read is currently offline David Read
Messages: 35
Registered: July 2009
Member
OK I've done that - bug 118501.



Paul Slauenwhite wrote:
> Hi David and Yves,
> This appears to be a bug with the TIPTOP Test Execution Harness. Can
> one of you open a defect in the TIPTOP Bugzilla DB under the
> Test.UI.ConfigEditors component with your comments from this thread:
>
> http://www.eclipse.org/tptp/ >> Submit Enhancements & Bugs
>
> Paul
> "David Read" <DavidRead@gmx.net> wrote in message
> news:dmft7k$8h8$1@news.eclipse.org...
>
>>Yves,
>>Glad you're up and running now.
>>I have still got the same situation, which is crazy because the exact same
>
> setup runs fine on my work machine, which is XP Pro, whereas I run XP Home
> here.
>
>>I have now tried several new installs, with various versions of Eclipse
>
> and TPTP, but get similar results (not exactly the same, but I won' bore you
> with the details).
>
>>My ultimate goal is a Java/Eclipse test harness talking to several
>
> embedded targets running C++ (no JVM), so I'm going to be using the 'New
> Technology' agent controller anyway.
>
>>I just wanted a gentle introduction by getting some TPTP samples working
>
> and browsing the code to see how to do things. But it looks like I'll have
> to jump in the deep end.
>
>>Does anyone else have any ideas?
>>
>>
>>Yves wrote:
>>
>>>Hi David,
>>>
>>>I went thru the re-install process and now it's working, I still get
>>>errors when I run my test but they may be cause by baddly formed http
>>>request. At least I can record and run all the test I want without
>>>having to restart eclipse.
>>>
>>>Here what I did:
>>>
>>>1- installed eclipse 3.1.1
>>>2- Open eclipse and goto help - software update - find and install -
>>>search for new features
>>>3- Select eclipse update and select all features, you need stuff like
>>>EMF to run TPTP
>>>4- You will be prompted to restart eclipse - restart and go back to
>>>install new features
>>>5- This time click on new remote site... 6- enter the URL of TPTP update
>>>site http://eclipse.org/tptp/updates/site.xml
>>>7- Do the update.
>>>
>>>After generating my first test class from a http recording, I got a
>>>build error about 3 libraries: nl1.jar,nl2.jar and nlBidi.jar . These
>>>language libraries are added to the build path only during the
>>>generation process. The jars were not in the right dir so I has to move
>>>them. They are language libraries, I don't think they are needed. You
>>>could also remove them from the ant task that generate the testclass
>
> file.
>
>>>Most of the problems I encountered so far are with the Controller Agent.
>>>I had to change the variable that points to the jvm lib in the config.
>>>(see my earlier post).
>>>
>>>If you still have problems, post your config and log files and I will
>>>compare them with mine.
>>>Yves
>>>
>
>
>
Previous Topic:Can't get UML2 diagrams to work
Next Topic:privacy and authentication
Goto Forum:
  


Current Time: Sat Aug 30 06:25:20 EDT 2014

Powered by FUDForum. Page generated in 0.04187 seconds