Sagar wrote:
>
> We are using JUnit test runner and we are not using Ant. We
> are running it on Win 2000 platform. We are loading cpp dll through
> wrapper dll(JNI). Unable to access methods in the dll file. The
> test case written using JUnit [which is calling native methods(JNI)]
> is working fine. But when we try to load test this class(LoadTest
> etc) in junitperf it is giving following error.
>
> java.lang.UnsatisfiedLinkError: InitializeTCCommDLL
> at TCImpl.InitializeTCCommDLL(Native Method)
>
> one more peculiar behaviour we observed is that a junit test
> case(which calls Native methods) which works fine when run from
> console(Ex: c:\> java junit.swingui.TestRunner MyTestCase), is
> giving the above error when called from some other program.
>
Given that peculiar behavior, I'd try running the JUnitPerf Load test
the same way that appears to work for the unit test:
> java junit.swingui.TestRunner YourLoadTestCase
You mentioned that it works fine for the console, but the example
mentions the swingui. I'd try both using the above form.
Seems odd that it would work using an explicit runner, but not when
called from a main() method. Can you confirm that behavior?
Mike
--
Mike Clark
http://clarkware.com
(303) 589-3812