How to spin up the web project

Aug 30, 2011 at 9:32 AM

I seem to be missing something here. I'm trying out Statlight for the first time. My tests make calls to services on the server, so I need the web project to spin up in the Statlight web server, otherwise a bunch of my tests fail, because there's no service endpoint. How do I configure statlight to start up my web project?

Coordinator
Aug 30, 2011 at 1:33 PM

StatLight can't/won't start up your web project. StatLight is only designed to spinup it's own internal web services for it's operational needs.

You will have to write a bat or powershell script to first spin up your web services on some port say http://localhost:33339 (You could use something like http://cassinidev.codeplex.com/ or iisexpress at the command line to start up the web project).

Then your silverlight tests must be re-configured to talk to this new location http://localhost:33339.

StatLight's crossdomain.xml is setup so you can execute your requests cross domain fine, but you need to make sure the site listening at http://localhost:33339 will return a crossdomain.xml or clientaccesspolicy.xml with enough permissions to allow your integration tests to call the services.

Hope this helps.

Aug 30, 2011 at 2:39 PM

Thanks for confirming the conclusion I reached in the meantime. I've got it working now with the web project running in Cassini and with proper cross-domain policy.