Hi.
Last 1.5 years I work using Free Test Framework - it is awesome! Thanks.
But I used only possibilities to test Web and Silverlight apps, today I've tried to write simple test for WPF application and I have some problems. Tell me please - how to solve them? Where is my bug? Application (Visio) was launched OK, but I can't find any controls inside of it because exception displayed. Why Silverlight is mentioned there? Actually Silverlight is set to false. I use BaseWpfTest here, also I've tried BaseTest, tried to connect to process etc. - results are same.
Code (part of standard NUnit test):
// An Example TestMethod:
[Test]
public void SampleWebAiiTest()
{
// Launch the application instance
var wpfApp = Manager.LaunchNewApplication(@"C:\Program Files (x86)\Microsoft Office\Office14\VISIO.EXE");
var somebutton = wpfApp.MainWindow.Find.ByName<Button>("OpenButton");
}
Problem during execute:
{"Exception thrown during the wait for a condition. Error: Unexpected error while waiting on condition. Error: ArtOfTest.WebAii.Silverlight.ExecuteSilverlightCommandException: [WPF Extension Error] Details: System.NullReferenceException: Object reference not set to an instance of an object.\r\n at Telerik.TestingFramework.XamlExtension.ClientServices.SerializeNode(DependencyObject root, StringBuilder sb, List`1 popups)\r\n at Telerik.TestingFramework.XamlExtension.ClientServices.SerializeAllVisualTrees()\r\n at Telerik.TestingFramework.XamlExtension.ClientProcessor.ProcessCommand(String command)\r\n at ArtOfTest.WebAii.Wpf.WpfProxy.ExecuteSLCommand(SilverlightCommand cmd)\r\n at ArtOfTest.WebAii.Wpf.WpfProxy.GetAllVisualTrees()\r\n at ArtOfTest.WebAii.Wpf.WpfWindow.RefreshVisualTrees()\r\n at ArtOfTest.WebAii.Silverlight.VisualFind.RefreshRoot()\r\n at ArtOfTest.WebAii.Silverlight.VisualWait.WaitForExistsByFindInfo(VisualFindInfo findInfo)\r\n at ArtOfTest.Common.WaitAsync._worker_DoWork[T,V](Object waitParam)"}
Last 1.5 years I work using Free Test Framework - it is awesome! Thanks.
But I used only possibilities to test Web and Silverlight apps, today I've tried to write simple test for WPF application and I have some problems. Tell me please - how to solve them? Where is my bug? Application (Visio) was launched OK, but I can't find any controls inside of it because exception displayed. Why Silverlight is mentioned there? Actually Silverlight is set to false. I use BaseWpfTest here, also I've tried BaseTest, tried to connect to process etc. - results are same.
Code (part of standard NUnit test):
// An Example TestMethod:
[Test]
public void SampleWebAiiTest()
{
// Launch the application instance
var wpfApp = Manager.LaunchNewApplication(@"C:\Program Files (x86)\Microsoft Office\Office14\VISIO.EXE");
var somebutton = wpfApp.MainWindow.Find.ByName<Button>("OpenButton");
}
Problem during execute:
{"Exception thrown during the wait for a condition. Error: Unexpected error while waiting on condition. Error: ArtOfTest.WebAii.Silverlight.ExecuteSilverlightCommandException: [WPF Extension Error] Details: System.NullReferenceException: Object reference not set to an instance of an object.\r\n at Telerik.TestingFramework.XamlExtension.ClientServices.SerializeNode(DependencyObject root, StringBuilder sb, List`1 popups)\r\n at Telerik.TestingFramework.XamlExtension.ClientServices.SerializeAllVisualTrees()\r\n at Telerik.TestingFramework.XamlExtension.ClientProcessor.ProcessCommand(String command)\r\n at ArtOfTest.WebAii.Wpf.WpfProxy.ExecuteSLCommand(SilverlightCommand cmd)\r\n at ArtOfTest.WebAii.Wpf.WpfProxy.GetAllVisualTrees()\r\n at ArtOfTest.WebAii.Wpf.WpfWindow.RefreshVisualTrees()\r\n at ArtOfTest.WebAii.Silverlight.VisualFind.RefreshRoot()\r\n at ArtOfTest.WebAii.Silverlight.VisualWait.WaitForExistsByFindInfo(VisualFindInfo findInfo)\r\n at ArtOfTest.Common.WaitAsync._worker_DoWork[T,V](Object waitParam)"}