Home » Archived » Test and Performance Tools Platform (TPTP) » In need of suggestions debugging the TPTP
In need of suggestions debugging the TPTP [message #79232] |
Mon, 31 July 2006 03:40 |
Jonathan Brown Messages: 22 Registered: July 2009 |
Junior Member |
|
|
I'm attempting to use TPTP 4.2 in conjunction with Eclipse 3.2 and I'm
having a world of trouble trying to get even basic TPTP functionality
operational. For now, I'll assume it's user error. My question is how
can I further debug each of the following issues:
1. Unable to start the Agent Controller as a service on Windows XP Pro.
I actually installed the agent on two boxes, on one it was fine, on the
other I cannot start the service. The port is not in use and the path is
correct. I can manually start the agent using the ACServer executable.
It's not worth anything, but here is the corresponding Event Viewer entry:
The Eclipse TPTP Agent service terminated with service-specific error 0
(0x0).
2. The JUnit runner hangs at 93% when executing a deployed
artifact/location pair. I can cancel the test in process and the
execution report is generated. Judging from the execution report
contents, all my unit tests are done. How can I better track down what
the hang up is?
3. The JUnit runner executes the wrong test for some of my testsuites.
In trying to debug #2, I recreated a simple testsuite that only
incorporates one test from the actual test class. The name of the test
that's supposed to be run is 'testCreateProcess' but the execution report
indicates that a similarly named test,
'testCreateProcessOfType_InvalidType', is run.
4. The data in the test execution report is grossly incorrect. Each test
that fails seems to generate multiple 'fail' entries when viewing the
report. The first failure message is correct and includes the text from
the assert. The other two fail entries have no text. My test class was
pretty basic, one unit test that was assertTrue(true) and a second test
whose method body was assertTrue("oops", false). Is stepping through the
code the only way to find out what in the TPTP framework is causing the
bogus entries in the execution report?
5. Related to #4, counts of assertions that don't fail also seem wrong --
I want counts of tests that pass (or more accurately, don't fail), not a
count of my assertions that didn't fail. Is this just how the framework
operates or is it an artifact of bogus test results data?
6. I thought I read in the Deployment Ground Rules section of the Eclipse
SDK doc that test-related items like .deploy, .testsuite, etc. don't get
copied to the remote host. Mine are. I have not added the directory
containing my test resources to the artifact or location CLASSPATH
value(s). Is this a bug or expected behavior?
7. The agent doesn't seem to update files correctly when re-launching
tests. In particular, changes to the testsuite or other test resources
don't seem to make it across the wire. Deleting the file on the remote
host seems to do the trick but that's a suboptimal solution. Is there a
flag to force the agent to perform a full refresh when it's creating the
runtime environment?
That's probably enough for starters.
Thanks in advance,
Jonathan
|
|
|
Re: In need of suggestions debugging the TPTP [message #79262 is a reply to message #79232] |
Mon, 31 July 2006 06:00 |
Prince Singh Messages: 27 Registered: July 2009 |
Junior Member |
|
|
Even I'm facing certain problems. Some of the solutions are embedded below.
Jonathan Brown wrote:
> I'm attempting to use TPTP 4.2 in conjunction with Eclipse 3.2 and I'm
> having a world of trouble trying to get even basic TPTP functionality
> operational. For now, I'll assume it's user error. My question is how
> can I further debug each of the following issues:
>
> 1. Unable to start the Agent Controller as a service on Windows XP Pro.
> I actually installed the agent on two boxes, on one it was fine, on the
> other I cannot start the service. The port is not in use and the path
> is correct. I can manually start the agent using the ACServer executable.
>
No such probs on linux. You may try locating any temporary files it
might be creating. Delete those and then start agent controller and eclipse.
> It's not worth anything, but here is the corresponding Event Viewer entry:
> The Eclipse TPTP Agent service terminated with service-specific error 0
> (0x0).
>
> 2. The JUnit runner hangs at 93% when executing a deployed
> artifact/location pair. I can cancel the test in process and the
> execution report is generated. Judging from the execution report
> contents, all my unit tests are done. How can I better track down what
> the hang up is?
I solved the problem in linux by stopping the agent controller, the
workbench also. Delete the file /tmp/IBMRAC/ramaster(for windows u'll
need to check how it is done). TPTP's error reporting still needs some
work, I guess.
> 3. The JUnit runner executes the wrong test for some of my testsuites.
> In trying to debug #2, I recreated a simple testsuite that only
> incorporates one test from the actual test class. The name of the test
> that's supposed to be run is 'testCreateProcess' but the execution
> report indicates that a similarly named test,
> 'testCreateProcessOfType_InvalidType', is run.
Just comment out the other tests from the Java test case source file.
And then rerun the test. Reply with your observation
>
> 4. The data in the test execution report is grossly incorrect. Each
> test that fails seems to generate multiple 'fail' entries when viewing
> the report. The first failure message is correct and includes the text
> from the assert. The other two fail entries have no text. My test class
> was pretty basic, one unit test that was assertTrue(true) and a second
> test whose method body was assertTrue("oops", false). Is stepping
> through the code the only way to find out what in the TPTP framework is
> causing the bogus entries in the execution report?
>
> 5. Related to #4, counts of assertions that don't fail also seem wrong
> -- I want counts of tests that pass (or more accurately, don't fail),
> not a count of my assertions that didn't fail. Is this just how the
> framework operates or is it an artifact of bogus test results data?
>
> 6. I thought I read in the Deployment Ground Rules section of the
> Eclipse SDK doc that test-related items like .deploy, .testsuite, etc.
> don't get copied to the remote host. Mine are. I have not added the
> directory containing my test resources to the artifact or location
> CLASSPATH value(s). Is this a bug or expected behavior?
>
> 7. The agent doesn't seem to update files correctly when re-launching
> tests. In particular, changes to the testsuite or other test resources
> don't seem to make it across the wire. Deleting the file on the remote
> host seems to do the trick but that's a suboptimal solution. Is there a
> flag to force the agent to perform a full refresh when it's creating the
> runtime environment?
>
> That's probably enough for starters.
> Thanks in advance,
> Jonathan
>
>
|
|
| | |
Re: In need of suggestions debugging the TPTP [message #79643 is a reply to message #79232] |
Wed, 02 August 2006 22:26 |
Bertrand Quenin Messages: 70 Registered: July 2009 |
Member |
|
|
Jonathan Brown wrote:
> I'm attempting to use TPTP 4.2 in conjunction with Eclipse 3.2 and I'm
> having a world of trouble trying to get even basic TPTP functionality
> operational. For now, I'll assume it's user error. My question is how
> can I further debug each of the following issues:
> 1. Unable to start the Agent Controller as a service on Windows XP Pro.
> I actually installed the agent on two boxes, on one it was fine, on the
> other I cannot start the service. The port is not in use and the path is
> correct. I can manually start the agent using the ACServer executable.
> It's not worth anything, but here is the corresponding Event Viewer entry:
> The Eclipse TPTP Agent service terminated with service-specific error 0
> (0x0).
> 2. The JUnit runner hangs at 93% when executing a deployed
> artifact/location pair. I can cancel the test in process and the
> execution report is generated. Judging from the execution report
> contents, all my unit tests are done. How can I better track down what
> the hang up is?
If you are working with processes and threads, make sure all of them are
killed at the end of the test. I'm experiencing TPTP testing for month
now, and this kind of problem is almost always linked to "survivor"
processes/threads.
> 3. The JUnit runner executes the wrong test for some of my testsuites.
> In trying to debug #2, I recreated a simple testsuite that only
> incorporates one test from the actual test class. The name of the test
> that's supposed to be run is 'testCreateProcess' but the execution report
> indicates that a similarly named test,
> 'testCreateProcessOfType_InvalidType', is run.
> 4. The data in the test execution report is grossly incorrect. Each test
> that fails seems to generate multiple 'fail' entries when viewing the
> report. The first failure message is correct and includes the text from
> the assert. The other two fail entries have no text. My test class was
> pretty basic, one unit test that was assertTrue(true) and a second test
> whose method body was assertTrue("oops", false). Is stepping through the
> code the only way to find out what in the TPTP framework is causing the
> bogus entries in the execution report?
> 5. Related to #4, counts of assertions that don't fail also seem wrong --
> I want counts of tests that pass (or more accurately, don't fail), not a
> count of my assertions that didn't fail. Is this just how the framework
> operates or is it an artifact of bogus test results data?
> 6. I thought I read in the Deployment Ground Rules section of the Eclipse
> SDK doc that test-related items like .deploy, .testsuite, etc. don't get
> copied to the remote host. Mine are. I have not added the directory
> containing my test resources to the artifact or location CLASSPATH
> value(s). Is this a bug or expected behavior?
Files to be deployed
The files to be deployed at execution time are:
1. Everything on the class path of the test project except the
following file types: .java, .execution, .testsuite, .deploy, .location,
artifact.
2. Any test assets associated with the Artifact being used for test
execution
3. Property CLASSPATH of the General Properties of the Artifact that
is used for test execution.
I think you missed the 2. deployment rule.
> 7. The agent doesn't seem to update files correctly when re-launching
> tests. In particular, changes to the testsuite or other test resources
> don't seem to make it across the wire. Deleting the file on the remote
> host seems to do the trick but that's a suboptimal solution. Is there a
> flag to force the agent to perform a full refresh when it's creating the
> runtime environment?
> That's probably enough for starters.
> Thanks in advance,
> Jonathan
|
|
| | |
Goto Forum:
Current Time: Sat Dec 21 14:23:48 GMT 2024
Powered by FUDForum. Page generated in 0.04008 seconds
|