Skip to main content

Problems When Starting JTHarness

5 replies [Last post]
laguz
Offline
Joined: 2008-03-29

Hi all,

I would like to track down some problems regarding the JUnit integration of JTHarness. To do this I would like to start the graphical UI and open a testsuite.
Unfortunately I am not able to do that. All I get is an almost plain window where the File menu does not provide the possibility to open a testsuite. In addition the startup wizard does not show up although it should, shouldn't it?
What exactly is my mistake? (By the way I am using the trunk of the svn repo.)

Thanks for your help!

Cheers,
Johannes

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bkurotsu
Offline
Joined: 2004-12-13

Oops, sorry, didn't see your message among all the other noise.

Perhaps you made no mistake, you have to adapt your JUnit test suite to JT before you can open it. Did you follow the JUnit conversion process described in the Architect's Guide? You can find that doc from the documentation link at the right side of the JT Harness front page.

Let us know where you are and we can try to help.

Brian

laguz
Offline
Joined: 2008-03-29

Hi,

the problem is that I cannot open any testsuite. I start JT Harness by using the Eclipse Run button. I use com.sun.javatest.tool.Main as the entry point and -newDesktop as the program parameter. Then I would like to open a testsuite by clicking on File->Open. Unfortunately there are only 4 entries in the File menu which are "Recent Work Directory", "Preferences", "Close" and "Exit". I don't see any possibility to actually open a testsuite.
Do you have any ideas what the problem could be?

Cheers,
Johannes

bkurotsu
Offline
Joined: 2004-12-13

A little tough to guess here...

I would say that -newDesktop is the wrong option to always start with. The main window is actually a host to many possible "tools". The tool which runs tests is only one. My first guess is that it's starting with no tool open, hence the menu has no interesting options.

So, try starting without the -newDesktop option. Or in the case where there really is no tool in the frame, try Tool|Test Manager. If that pops stuff up on screen, I think you'll find yourself out of confusion and with the appropriate File options.

laguz
Offline
Joined: 2008-03-29

Unfortunately the Tool menu is empty. So I cannot open the test manager manually. :-(

If I use the jar file of the latest stable version everything works fine. So I don't have a clue about what the problem could be.

Message was edited by: laguz

bkurotsu
Offline
Joined: 2004-12-13

Ah, that's what I hadn't asked yet...

It's 4.2.1 b07-ish that doesn't work, but 4.2.0 works fine? Our problem then! Stick with the stable version, it'll serve you just fine.

Any questions related to JUnit conversion on 4.2.0?

Thanks!