Groups | Blog | Home
all groups > dotnet web services enhancements > october 2005 >

dotnet web services enhancements : Unit Testing


irwin.williams NO[at]SPAM gmail.com
10/20/2005 6:32:04 AM
Hello
I am not sure if this is the exact forum for this question, so if it
isnt please let me know.
I have built a web service, and i want to apply some unit testing to
the various methods i will invoke - submit(), deliver(), etc ...
Is there any 'best practice' way of doing this? Should i test using a
filter on the pipeline object or via building an extension which will
be used after serialization?
Should i even test before serialization (if that is possible)?
I really am just looking for tips on how to verify that my web service
is behaving.
If it seems like there are holes in my understanding of things
pertaining to web services, web services extensions or related
technologies, there probably are. So feel free to say, read this link
or that link...
Thanks
Michael Nemtsev
10/21/2005 2:58:41 AM
Hello irwin.williams@gmail.com,

Using unit test for WS u can perfom black box testing.
WS is just contract, the interface u can only see - nothing else
U only can test the range of input and output data, and validate them.

Moreover, u *must* test what's your WS do. For this reason u need a mock
class (that will represent your WS in system)
and write additional unit test for actions performing by your WS

[quoted text, click to view]
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

irwin.williams
10/24/2005 6:04:34 AM
ok, thanks man
AddThis Social Bookmark Button