unit testing services

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

unit testing services

snowch
Is it possible to unit test services?  I could test by exposing my service as a webservice, then test using SoapUI, but is it possible to test without exposing as a web service?

Many thanks in advance...
Reply | Threaded
Open this post in threaded view
|

Re: unit testing services

snowch
How do other people on this forum test their services?

- perform a HTTP GET, passing in the service parameters?
- using webtools :: run service?
- telnet into bsh on 9990 (how can I run a service this way?)
- expose the service as as web service then test using SoapUI or other test tool?

snowch wrote
Is it possible to unit test services?  I could test by exposing my service as a webservice, then test using SoapUI, but is it possible to test without exposing as a web service?

Many thanks in advance...
Reply | Threaded
Open this post in threaded view
|

Re: unit testing services

Scott Gray-2
ant run-tests
look in the various ofbiz-component.xml files for examples of setting  
up tests:
     <test-suite loader="main" location="testdef/accountingtests.xml"/>

There may be documentation around somewhere, I'm not sure.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 17/07/2009, at 2:20 AM, snowch wrote:

>
> How do other people on this forum test their services?
>
> - perform a HTTP GET, passing in the service parameters?
> - using webtools :: run service?
> - telnet into bsh on 9990 (how can I run a service this way?)
> - expose the service as as web service then test using SoapUI or  
> other test
> tool?
>
>
> snowch wrote:
>>
>> Is it possible to unit test services?  I could test by exposing my  
>> service
>> as a webservice, then test using SoapUI, but is it possible to test
>> without exposing as a web service?
>>
>> Many thanks in advance...
>>
>
> --
> View this message in context: http://www.nabble.com/unit-testing-services-tp24516518p24517344.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>


smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: unit testing services

snowch
Thanks, that was exactly what I was looking for.

Scott Gray-2 wrote
ant run-tests
look in the various ofbiz-component.xml files for examples of setting  
up tests:
     <test-suite loader="main" location="testdef/accountingtests.xml"/>

There may be documentation around somewhere, I'm not sure.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 17/07/2009, at 2:20 AM, snowch wrote:

>
> How do other people on this forum test their services?
>
> - perform a HTTP GET, passing in the service parameters?
> - using webtools :: run service?
> - telnet into bsh on 9990 (how can I run a service this way?)
> - expose the service as as web service then test using SoapUI or  
> other test
> tool?
>
>
> snowch wrote:
>>
>> Is it possible to unit test services?  I could test by exposing my  
>> service
>> as a webservice, then test using SoapUI, but is it possible to test
>> without exposing as a web service?
>>
>> Many thanks in advance...
>>
>
> --
> View this message in context: http://www.nabble.com/unit-testing-services-tp24516518p24517344.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>