Patricia Shanahan wrote:
I'm looking for documentation, guidance, or even a good example for River test construction.

My tests only need one JVM - although I'll use multiple threads to set up concurrency stress for e.g. TaskManager. It looks as though some of the existing qa classes might be useful, and I don't like duplicating code, but I'm not sure how to use them.

Patricia



First open one of the existing *.td files for an example, there are many options you can specify in the *.td file, including jvm shell options and any jini based infrastructure you need like a running lookup service. I don't know if these options are documented, but you can figure them out by looking at the existing *.td files. When you write a java source file for your test, you'll need to extend a test base class like, com.sun.jini.test.share.BaseQATest.java, or some other test file that already provides needed functionality.

There's some very out of date documentation in qa/doc/HowToWriteATest.html with broken links that won't be much help. Your best bet is to look at how other tests are written. We need to review & fix.

But basically the minimum requirement is a test.td file and a test.java source file. You can run the test using the ant run-tests task by specifying your test.td file.

Peter.

Reply via email to