Search the web
Sign In
New User? Sign Up
junitperf
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
unable to loadtest JNI methods thru junitperf   Message List  
Reply | Forward Message #40 of 94 |
Re: [junitperf] unable to loadtest JNI methods thru junitperf

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




Wed Aug 6, 2003 2:31 pm

clarkware
Offline Offline
Send Email Send Email

Forward
Message #40 of 94 |
Expand Messages Author Sort by Date

Hi, we are working on JNI and Junit perf tool while accesing native methods very first time the test passes successfully for next iteration we are getting ...
hellovidyasagar
Offline Send Email
Aug 4, 2003
11:15 am

... Please you tell us more about the test runner you're using, or if you're using the <junit> task in Ant. Mike -- Mike Clark http://clarkware.com (303)...
Mike Clark
clarkware
Offline Send Email
Aug 4, 2003
5:20 pm

Mike Clark <mike@...> wrote: ... Please you tell us more about the test runner you're using, or if you're using the <junit> task in Ant. Mike -- Mike...
Sagar
hellovidyasagar
Offline Send Email
Aug 5, 2003
7:23 am

... Given that peculiar behavior, I'd try running the JUnitPerf Load test ... You mentioned that it works fine for the console, but the example mentions the...
Mike Clark
clarkware
Offline Send Email
Aug 6, 2003
3:45 pm

Mike Clark <mike@...> wrote: Given that peculiar behavior, I'd try running the JUnitPerf Load test ... You mentioned that it works fine for the...
Sagar
hellovidyasagar
Offline Send Email
Aug 7, 2003
11:41 am

... Adding the following to the JUnit excluded.properties file fixes the problem: excluded.9=MyTestCase I've successfully run all of your batch files after...
Mike Clark
clarkware
Offline Send Email
Aug 7, 2003
6:58 pm

Mike Clark <mike@...> wrote: Adding the following to the JUnit excluded.properties file fixes the problem: excluded.9=MyTestCase I've successfully...
Sagar
hellovidyasagar
Offline Send Email
Aug 8, 2003
6:02 am

Mike Clark <mike@...> wrote: Adding the following to the JUnit excluded.properties file fixes the problem: excluded.9=MyTestCase I've successfully...
Sagar
hellovidyasagar
Offline Send Email
Aug 8, 2003
6:09 am

Dear Mike, We are struck with the problem that we specified in previous mail. It seems u only can give a solution for it. Please respond on our problem. We...
Sagar
hellovidyasagar
Offline Send Email
Aug 9, 2003
9:06 am

Folks, we're going to take this discussion off-line. Indeed, I should have taken it off-line earlier. If anyone is interested in the outcome, let me know and...
Mike Clark
clarkware
Offline Send Email
Aug 9, 2003
3:23 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help