Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Hyades: problem with asynchronous HyadesTestSuites
Hyades: problem with asynchronous HyadesTestSuites [message #3664] Wed, 26 January 2005 18:03
Silvestr Peknik is currently offline Silvestr PeknikFriend
Messages: 1
Registered: July 2009
Junior Member
I am using Eclipse 3.0.1 and Hyades 3.2.0.

I created JUnit Test Suite Definition (+ deployment, artifact & location)
with one test method in a loop (20x), both loop and method set as
asynchronous (see the code below). The code was generated automatically. I
just added Thread.sleep(2000) and some output to the test1 method to see
what's happening.

The result is quite confusing for me. In the loop, Loop1 is started 20
times. Each this Loop1 starts one test1. The report (.execution) shows 20
test1 invocation branches, but most of them are empty and marked as
"unconclusive", whereas others contain some random (seems to me) execution
descriptions (start, message, pass, stop).

Why do i have the empty invocations in the result? Why some invocations
contain 5x start and nothing else? Why are there only 7 messages (example,
it varies every run), though there are 20 methods which produce those
messages ? It seems to me that the "main" test class (Threads in my
example) starts all the threads, but does not wait for them to finish. I
briefly checked HyadesTestCase source code, and it seems to me that parent
thread should wait for all its threads, but i am inexperienced programmer
and this is my first cup of Hyades ...

Can anyone tell me what is wrong?

p.s. I tried to change the test1 method to synchronous, and it worked fine
(20 threads, 20 invocations, 20 messages - and in expected order :).

public class Threads extends HyadesTestCase {

public Threads(String name) {

public static Test suite() {
HyadesTestSuite threads = new HyadesTestSuite("threads");

HyadesTestSuite loop1 = new HyadesTestSuite("Loop 1");
threads.addTest(new RepeatedTest(loop1, 20));

loop1.addTest(new Threads("test1").setId(

return threads;

public void test1() throws Exception {
Previous Topic:Manual Testing With TPTP
Next Topic:Alarm Clock Error?
Goto Forum:

Current Time: Fri Dec 01 04:47:43 GMT 2023

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

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

Back to the top