<p>I would like to do some integration testing of a web service from within NUnit or MBUnit. I haven't delved into this too deeply yet, but I am pretty sure I will need to spin up WebDev.WebServer.exe within the "unit test" to do this. (I know it's not really a unit test).</p>

<p>Yes, I can test the underlying objects the web service uses on their own (which I am), but what I am interested in testing in this cases is that the proxies are all working and handled as expected, etc. </p>

<p>Any advice?</p>

[{'answer_id': 20897, 'author': 'TheSmurf', 'author_id': 1975282, 'author_profile': 'https://Stackoverflow.com/users/1975282', 'pm_score': 0, 'selected': False, 'text': "<p>Not sure what you're asking. If you're looking to do this without some sort of webserver in between your test and the service, you're going to be disappointed.</p>\n\n<p>If that's not what you're asking... maybe some clarification?</p>\n"}, {'answer_id': 20982, 'author': 'jeremcc', 'author_id': 1436, 'author_profile': 'https://Stackoverflow.com/users/1436', 'pm_score': 2, 'selected': True, 'text': '<p>I found <a href="http://haacked.com/archive/2006/12/12/using_webserver.webdev_for_unit_tests.aspx" rel="nofollow noreferrer">this post</a> and <a href="http://www.hanselman.com/blog/NUnitUnitTestingOfASPNETPagesBaseClassesControlsAndOtherWidgetryUsingCassiniASPNETWebMatrixVisualStudioWebDeveloper.aspx" rel="nofollow noreferrer">this one</a> which have some solutions on how to start up WebDev.WebServer.exe from within a unit test. Looks like I\'ll need to do something along these lines.</p>\n\n<p>Until I get that going, I found that what works is to simply run the web service project within VS, let the WebDev server start up that way, and then run the unit tests.  Not ideal, but it\'s OK for now.</p>\n'}, {'answer_id': 62563, 'author': 'user6955', 'author_id': 6955, 'author_profile': 'https://Stackoverflow.com/users/6955', 'pm_score': 2, 'selected': False, 'text': '<p>I\'ve had lots of success doing web testing with <a href="http://selenium.openqa.org/" rel="nofollow noreferrer" title="Selenium">Selenium</a></p>\n\n<p>I\'ve used it on Linux and Windows for automated web testing of just about anything.</p>\n'}, {'answer_id': 62610, 'author': 'Riri', 'author_id': 298, 'author_profile': 'https://Stackoverflow.com/users/298', 'pm_score': 2, 'selected': False, 'text': '<p>I asked the same <a href="https://stackoverflow.com/questions/34661/automate-test-of-web-service-communication">thing</a> (I think ...) I got a tip on <a href="http://www.soapui.org/" rel="nofollow noreferrer">SoapUI</a>. It looks promising but I haven\'t had time to test it yet.</p>\n'}, {'answer_id': 553847, 'author': 'oagostinho', 'author_id': 67021, 'author_profile': 'https://Stackoverflow.com/users/67021', 'pm_score': 2, 'selected': False, 'text': '<p>There is XMLunit (<a href="http://xmlunit.sourceforge.net/" rel="nofollow noreferrer">http://xmlunit.sourceforge.net/</a>), for java and Ms.NET. it\'s could be interesting to check it out some specifications of WS, like wsdl:type, for example!</p>\n\n<p>Cheers!\nOrlando Agostinho\nLisbon/Portugal</p>\n'}, {'answer_id': 553859, 'author': 'Graviton', 'author_id': 3834, 'author_profile': 'https://Stackoverflow.com/users/3834', 'pm_score': 0, 'selected': False, 'text': '<p>You may want to give <a href="http://www.sm-art.biz/Ivonna.aspx" rel="nofollow noreferrer">Ivonna</a>, an addon built on top of <a href="http://www.typemock.com" rel="nofollow noreferrer">Typemock</a> a try. </p>\n\n<p>The good part about Ivonna is that you don\'t need to launch webserver for your test, but downside part is that it\'s not free.   </p>\n'}]
['https://Stackoverflow.com/questions/20861', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1436/']