or
Settings mySettings = new Settings(); mySettings.Web.DefaultBrowser = BrowserType.FireFox; Manager myManager = new Manager(mySettings); myManager.Start(); myManager.LaunchNewBrowser(); myManager.ActiveBrowser.NavigateTo("http://www.gmail.com"); System.Threading.Thread.Sleep(8000); HtmlFindExpression expression = new HtmlFindExpression("Name = Email", "id = Email"); HtmlInputEmail emal = myManager.ActiveBrowser.Find.ByExpression<HtmlInputEmail>(expression); public SilverlightApp App() { Initialize(); Manager.Settings.Web.EnableSilverlight = true; Manager.LaunchNewBrowser(); ActiveBrowser.Window.Maximize(); ActiveBrowser.NavigateTo("http://ab-m4500/AthenePortal/Presentation.WRClient.html"); return ActiveBrowser.SilverlightApps()[0];}MyPageManager.MyPage1.MyPageHeader.Logout.Click();I am trying to run Telerik Framework Test using NUnit (through visual studio). And I need to initialize some variables before the tests run. I am using [TestFixtureSetUp] and [TestFixtureTearDown] for this. But it seems that these are being executed for each and every [Test] Method ([TestFixtureSetUp] and [TestFixtureTearDown] should be only once!) [TestFixtureSetUp] public void MyTestInitialize() { SetUpAndTearDown setup = new SetUpAndTearDown(); myDriver = setup.SetupTestEnvironment("ie"); } [Test] public void Grid() { //code for gird } [Test] public void Box() { //code for Box } [TestFixtureTearDown] public void CleanUp() { SetUpAndTearDown teardown = new SetUpAndTearDown(); teardown.TearDownTestEnvironment(myDriver); } I am using NUnit - 2.6.2 Visul studio 2010 ultimate Exception thrown during the wait for a condition. Error: Unexpected error while waiting on condition. Error: System.TypeInitializationException: The type initializer for 'ArtOfTest.WebAii.Silverlight.ObjectSerializer' threw an exception. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) at System.Reflection.RuntimeModule.GetTypes() at System.Reflection.Assembly.GetTypes() at ArtOfTest.WebAii.Silverlight.ObjectSerializer.InitKnownTypes() at ArtOfTest.WebAii.Silverlight.ObjectSerializer..cctor() --- End of inner exception stack trace --- at ArtOfTest.WebAii.Silverlight.ObjectSerializer.Serialize(Type t, Object o) at ArtOfTest.WebAii.Silverlight.SilverlightCommand.AsString() at ArtOfTest.WebAii.Wpf.WpfProxy.CreateCommand(SilverlightCommand SlCommand) at ArtOfTest.WebAii.Wpf.WpfProxy.ExecuteSLCommand(SilverlightCommand cmd) at ArtOfTest.WebAii.Wpf.WpfProxy.GetAllVisualTrees() at ArtOfTest.WebAii.Wpf.WpfWindow.RefreshVisualTrees() at ArtOfTest.WebAii.Silverlight.VisualFind.RefreshRoot() at ArtOfTest.WebAii.Silverlight.VisualWait.WaitForExistsByFindInfo(VisualFindInfo findInfo) at ArtOfTest.Common.WaitAsync._worker_DoWork[T,V](Object waitParam)