StrutsTestCase and Netbeans

T

Tim Slattery

I'm stuck.

I downloaded StrutsTestCase and added it to the "Test Libraries" in my
project in Netbeans 6.8. I created an object in Test Packages in the
appropriate package. The object extends MockStrutsTestCase, as it
should. It overrides setUp(), tearDown(), and provides a constructor
as in the examples. And it has a "test..." method.

When I do Run|Test Project in NetBeans, the test class compiles, the
test console appears at the bottom of the window, and....it says "No
tests executed". I have no clue.
 
T

Tim Slattery

Tim Slattery said:
When I do Run|Test Project in NetBeans, the test class compiles, the
test console appears at the bottom of the window, and....it says "No
tests executed". I have no clue.

Turns out you don't see any error messages until you click on the
"Output" panel, right next to the "Test Results" panel. Until then the
output panel is empty. NOT a good design, IMHO.

So I have to get up the project properties, go to Libraries|Run Tests.
I have to add the directory that *contains* WEB-INF, not the WEB-INF
directory itself. Then I have to right-click the test class and choose
"Run". Apparently I can't use Test Project on the Netbeans Run menu.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top