desktop desk = Manager.Desktop;
desk.KeyBoard.KeyDown(System.Windows.Forms.Keys.alt);
desk.KeyBoard.KeyPress(System.Windows.Forms.Keys.F12);
I have an out of browser Silverlight application. When I open the application (from desktop) by double clicking, it runs fine. In Test Studio, the Out of Browser application opens just fine when I need to record a test. The problem occurs when I run the test. Test Studio opens the application. Everything looks good. However, I receive a strange error message. The error message states, “An error occurred while trying to make a request to URI ‘https://127.0.01/MyServiceSL/SomethingService.svc’. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. …” The inner exception looks like the following:
{System.Security.SecurityException ---> System.Security.SecurityException: Security error.
at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<EndGetResponse>b__9(Object sendState)
at System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__1(Object sendState)
Do you have any idea what is wrong? How do I get Test Studio to run this test and logon to this application?
I have two automated tests that run against a SL Out of Browser application. Both these tests are running correctly. The problem occurs when I add both tests to a test list. In (Test List) Edit Settings (for the Browser Option), I select Silverlight Out of Browser. When I select Run List, it looks like Test Studio is about to run my tests. But, the OOB Silverlight application never opens. Then, Test Studio is on the Results tab with the timeline on the screen. How do I get my automated scripts to run in the Test List?
Sometimes I see Internet Explorer open. And then it closes.