views:

38

answers:

0

Are there any java-based frameworks for testing distributed systems with JUnit or TestNG?

For instance I have a shared resource R and two clients (CA, CB) each connected to dedicated server (SA, SB). R can be used exclusively (one client at a time).

I want to make a test that checks simple scenario:

  1. SA starts up.
  2. SB starts up.
  3. CA logins on SA.
  4. CB logins on SB.
  5. CA tries to acquire R.
  6. CA acquires R.
  7. CB tries to acquire R.
  8. CB gets an appropriate exception instead of R.

What I need here is some kind of client-server framework with main machine as a director and several agents as executors. Main machine will perform the test using agents to host servers and clients.

Frameworks what I've seen lately (STAF, iValidator, JSystem) define distributed execution only in the sense of spreading testcases across test agents. But this is a simple load-balancing.

Thanks in advance.