I'd really prefer to do what has been proposed as a best practice and write tests using the same OFBiz framework tools that we use to write applications, like simple-methods, services, etc...

But yes, it is possible to call a service through a web request and there is one in the webtools wecapp that has been there for years. The trick is you have to set export="true" for all services called this way, which is another reason to do logic-level test (including service calls) in a more black-box way, especially if they are not for testing things that are intended to be available externally.

-David


On Jan 29, 2007, at 4:01 AM, Andrew Sykes wrote:

Assuming an automated web browser type technology is the way to go for
testing...

What does everyone think of having an option to run a service
synchronously from webtools?

This would allow a lot of clever asserts from the test tool? Without the
need to make the tool dispatcher aware? Would this be an adequate
approach?
--
Kind Regards
Andrew Sykes <[EMAIL PROTECTED]>
Sykes Development Ltd
http://www.sykesdevelopment.com


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to