The Source for Java Technology Collaboration

Home » java.net Forums » ME Compatibility & Quality Testing » jtharness Interest

Thread: jtharness used as an distributed application acceptance framework

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Last Post: Aug 12, 2008 3:51 AM by: sergey_borodin Threads: [ Previous | Next ]
pitonew

Posts: 2
jtharness used as an distributed application acceptance framework
Posted: Aug 11, 2008 8:05 AM
 
  Click to reply to this thread Reply

Hello,

I just tumble accross JTHarness.
I'm wondering if this tool could be used as a base to create test framework, to test a distributed application based on java.
basically, we need to :
- deploy the app's components in a distributed environement
- configure these components based on a scripted test plan
- execute the test plan
- gather results
- generate reports

say i have a JXTA based app, where each peer can provide, ask for certain services to each other via both cmdline clients, GUI based apps, or front end protocols queries.

is that thinkable, or is that out right impossible.

from the little i saw, it seems that jtharness, is well suited for API test, but could be twisted into a higher level application testing framework.

bkurotsu

Posts: 378
Re: jtharness used as an distributed application acceptance framework
Posted: Aug 12, 2008 3:33 AM   in response to: pitonew
 
  Click to reply to this thread Reply

Almost any kind of test can be run under the harness, so I do not think there is any limitation that would stop you from doing what you want. What tends to make the difference is how much built-in support the harness and frameworks provide to you - to decrease the amount of code you need to write.

The harness can help decrease the work required for you to configure, gather results and generate reports. The details depend on how complex your scenarios are. But JT Harness would be able to bring them all together under a single user interface.

Reporting is customizable - there are HTML, plain text and XML formats now, but you can write your own output format. Execution and results gathering are completely customizable - you need to write code to do this of course; this is as simple or complex as your problem domain.

You might want to look at the provided tutorial in the binary to see if you like the user interface and built-in capabilities (reports, monitoring, ...).

Also look at our related java.net projects to see what other people have done - especially ME Framework/cqME.

We can help answer any specific questions you have about JT Harness capabilities here. ME Framework questions are best posted to their forum.

Brian

sergey_borodin

Posts: 133
Re: jtharness used as an distributed application acceptance framework
Posted: Aug 12, 2008 3:51 AM   in response to: pitonew
 
  Click to reply to this thread Reply

I'd say thats thinkable.
JT Harness provides basic testing facilities such as configuring test execution environment, results collection, report generation etc. Mechanism of test finding and execution are extendable. For example, you can look at https://cqme.dev.java.net/framework.html framework used for ME platforms testing. I didn't heard about any solutions for distributed apps testing.

If you're intresting in preparing such solution for your purposes, here are some key components to look at:
com.sun.javatest.Harness and it's start method - entry point to test execution start
com.sun.javatest.TestRunner - component, responsible for execution of set of tests
com.sun.javatest.JUnitTestRunner and com.sun.javatest.DefaultTestRunner - some implementations
com.sun.javatest.Script - abstraction for test scenario
StdTestScript, KeywordsScript, ReportScript, APIScript - some implementations.

Hope, this will help you,
thanks,
Sergey




 XML java.net RSS