You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by David Van Couvering <Da...@Sun.COM> on 2005/04/28 02:10:25 UTC
derbynetmats not running
I try to run the suite derbynetmats.runall and it looks like it is
skipping all the tests. I tried to grok why this is happening, but
couldn't figure it out. Do I need to set some property when I call
RunSuite to get this to work?
I am using the JDK 1.4.2_05 VM, and the command I issue is:
java org.apache.derbyTesting.functionTests.harness.RunSuite derbynetmats
The output flies by in 2 seconds and is:
Top suite: derbynetmats
Now do RunList
Now run the suite's tests
Now do RunList
Now run the suite's tests
Now do RunList
Now run the suite's tests
Now do RunList
Now run the suite's tests
Generated report: derbynetmats_report.txt
The report file is attached... note how it says 2 tests pass and 4
suites were skipped (derbynetmats, jdbcapi, jdbc20 and multi). Can
anyone explain why the suites were skipped?
Thanks,
David
Re: derbynetmats not running
Posted by David Van Couvering <Da...@Sun.COM>.
Turns out I have the jar file, I just didn't have it in my classpath. I
modified my classpath and magic occurred.
Thanks for the tips on how to run individual tests with the net client,
and about using the new Derby client.
David
Kathey Marsden wrote:
> David Van Couvering wrote:
>
>
>>I try to run the suite derbynetmats.runall and it looks like it is
>>skipping all the tests. I tried to grok why this is happening, but
>>couldn't figure it out. Do I need to set some property when I call
>>RunSuite to get this to work?
>>
>
> Hi David,
>
> To run derbynetmats you need the IBM Universal JDBC Driver (JCC) in your
> classpath. You can download this from
> http://www-106.ibm.com/developerworks/db2/downloads/jcc/
>
> There is also a new suite that is already checked in,
> derbynetclientmats which runs with the new client. The client is not
> checked in just yet, but I think it is pretty close.
>
> For the suites, you don't need to set a property, it is automatic. Use
> the following system properties when you call RunTest to run an
> individual test with network server.
>
> For JCC
> -Dframework=DerbyNet
>
> For Derby client
> -Dframework=DerbyNetClient
>
>
> Kathey
>
>
>
>
>
Re: derbynetmats not running
Posted by Kathey Marsden <km...@sbcglobal.net>.
David Van Couvering wrote:
> I try to run the suite derbynetmats.runall and it looks like it is
> skipping all the tests. I tried to grok why this is happening, but
> couldn't figure it out. Do I need to set some property when I call
> RunSuite to get this to work?
>
Hi David,
To run derbynetmats you need the IBM Universal JDBC Driver (JCC) in your
classpath. You can download this from
http://www-106.ibm.com/developerworks/db2/downloads/jcc/
There is also a new suite that is already checked in,
derbynetclientmats which runs with the new client. The client is not
checked in just yet, but I think it is pretty close.
For the suites, you don't need to set a property, it is automatic. Use
the following system properties when you call RunTest to run an
individual test with network server.
For JCC
-Dframework=DerbyNet
For Derby client
-Dframework=DerbyNetClient
Kathey
Re: derbynetmats not running
Posted by Army <qo...@sbcglobal.net>.
David Van Couvering wrote:
> Perfect, that did it, thanks Sunitha!
>
> David
>
> Sunitha Kambhampati wrote:
>>
>> Just a guess - I have seen this happen once when I didnt have
>> db2jcc.jar in the classpath, network server tests skip.
I realize you've already solved the problem (;), but just for the record, I
think there should be a "derbynetmats.sum" located in your test directory. When
a test/suite is skipped, the reason for skipping it is usually stated in that
file. Not sure if that's true when the db2jcc.jar is missing, but for other
cases where tests are skipped, the reason is typically found there...
Army
Re: derbynetmats not running
Posted by David Van Couvering <Da...@Sun.COM>.
Perfect, that did it, thanks Sunitha!
David
Sunitha Kambhampati wrote:
> David Van Couvering wrote:
>
>> I try to run the suite derbynetmats.runall and it looks like it is
>> skipping all the tests. I tried to grok why this is happening, but
>> couldn't figure it out. Do I need to set some property when I call
>> RunSuite to get this to work?
>
>
> Just a guess - I have seen this happen once when I didnt have
> db2jcc.jar in the classpath, network server tests skip.
> In your report file - I see that in your classpath, you have
> db2jcc_license_c.jar but no db2jcc.jar Can you check and see if
> putting db2jcc.jar in your classpath helps.
>
> Sunitha.
>
Re: derbynetmats not running
Posted by Sunitha Kambhampati <ks...@gmail.com>.
David Van Couvering wrote:
> I try to run the suite derbynetmats.runall and it looks like it is
> skipping all the tests. I tried to grok why this is happening, but
> couldn't figure it out. Do I need to set some property when I call
> RunSuite to get this to work?
Just a guess - I have seen this happen once when I didnt have
db2jcc.jar in the classpath, network server tests skip.
In your report file - I see that in your classpath, you have
db2jcc_license_c.jar but no db2jcc.jar Can you check and see if
putting db2jcc.jar in your classpath helps.
Sunitha.