Telerik Forums
Testing Framework Forum
3 answers
203 views

How Can I do automation for RadDataForm Control in WPF.

 

E.g - I did Automation for RadComboBox using - "TestStack.White.UIItems" API.

 

Did TestStack.White.UIItems API support for RadDataForm control? If so please post.

 

 

Elena
Telerik team
 answered on 04 Sep 2018
7 answers
2.0K+ views
If i have a scenario to test whether 2 elements on the page are visible

Assert.IsTrue(Element1.IsVisible());
Assert.IsTrue(Element2.IsVisible());


In my test method if first Assert fails, i do not want to stop the execution, is there a mechanism where in i can continue the execution of second assert statement??

Elena
Telerik team
 answered on 20 Aug 2018
15 answers
994 views
I am having trouble getting to elements within an iFrame. I believe I have the iFrame identified but getting in to the iFrame seems to be escaping me. I have looked through the forums and documentation for the past couple days but cannot seem to get it.

When the desired iFrame is identified, there are no children to the iframe tag. Does this need to be cast to a new browser? Do I take the src attribute and use that within a new Browser element?

Any help would be appreciated.
Elena
Telerik team
 answered on 06 Aug 2018
1 answer
289 views

Hi,

for some reasons (one of them simpler test construction) I'd like to run the WPF app to be tested within the same process as the test runner, thus being able to access some interfaces in the running app, e.g. setting some properties in the ViewModel.

I suceeded to some degree by constructing the app instance in the preparation of the test, then running it in a separate thread and then doing a ConnectToApplication(Process.GetCurrentProcess()). Access to the ViewModel also works fine via Dispatcher.Invoke on the app's UI thread.

Summary:

01.public void MyTest()
02.{
03.      // run app in-process
04.      MyApp app;
05.      var dispatcher = DispatcherFactory.CreateDispatcher("Hugo", ApartmentState.STA);
06.      dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() =>
07.      {
08.        app = new MyApp();
09.        app.Run();
10.      }));
11. 
12.      // wait for app window
13.      var testApp = Manager.Current.ConnectToApplication(Process.GetCurrentProcess());
14.      var appWnd = testApp.WaitForWindow("MyApp");
15. 
16.      // access some app API
17.      dispatcher.Invoke(DispatcherPriority.Normal, new Action(() => { SingletonInApp.Foo(); }));
18. 
19.      // stimulate some UI action
20.      var theButton = appWnd.Find.ByAutomationId<Button>("a_idTheButton"); // <=== THIS FAILS
21.      theButton.User.Click();
22. 
23.      // ...
24.}

 

However, as soon as I subsequently use any method to find an UI element, it fails with the error shown below.
Is there any reason why the above construction would not work in general? How can I overcome that error?

 

System.ApplicationException : 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: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
   bei Telerik.TestingFramework.XamlExtension.ClientServices.SerializeNode(DependencyObject root, StringBuilder sb, List`1 popups)
   bei Telerik.TestingFramework.XamlExtension.ClientServices.SerializeAllVisualTrees()
   bei Telerik.TestingFramework.XamlExtension.ClientProcessor.ProcessCommand(String command)
   bei ArtOfTest.WebAii.Wpf.WpfProxy.ExecuteSLCommand(SilverlightCommand cmd)
   bei ArtOfTest.WebAii.Wpf.WpfProxy.GetAllVisualTrees()
   bei ArtOfTest.WebAii.Wpf.WpfWindow.RefreshVisualTrees()
   bei ArtOfTest.WebAii.Silverlight.VisualFind.RefreshRoot()
   bei ArtOfTest.WebAii.Silverlight.VisualWait.WaitForExistsByFindInfo(VisualFindInfo findInfo)
   bei ArtOfTest.Common.WaitAsync._worker_DoWork[T,V](Object waitParam)
Stack Trace:
     bei ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
     bei ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
     bei ArtOfTest.WebAii.Silverlight.VisualWait.ForExistsInternal(Int32 timeout, Boolean invertCondition)
     bei ArtOfTest.WebAii.Silverlight.VisualWait.ForVisible(Int32 timeout)
     bei ArtOfTest.WebAii.Silverlight.VisualFind.ReturnOrThrow(FrameworkElement e, String throwMessage)
     bei ArtOfTest.WebAii.Silverlight.VisualFind.ByAutomationId(String id, String xamlTag)
     bei ArtOfTest.WebAii.Silverlight.VisualFind.ByAutomationId[T](String id)

 

Elena
Telerik team
 answered on 23 Jul 2018
1 answer
207 views

Hi,

My company wants to use Telerik Testing Framework with no support. Is it possible and free? If yes, what should I download to get Telerik Testing Framework libraries?

Elena
Telerik team
 answered on 17 Jul 2018
21 answers
1.4K+ views

Hi.

How can i send keys in element?

for example: i need to press 'Enter' key in text field.

ActiveBrowser.Desktop...SendString type text in address bar of IE.

Elena
Telerik team
 answered on 17 Jul 2018
1 answer
195 views

I have a coded step that uses the LaunchNewBrowser(BrowserType.Firefox , true) and it works fine as a standalone but as soon as it gets placed in a nested test with data driven elements it stops working. When it runs the browser says "Extension loaded" and the Test runner remains stuck in this step. I have read a few similar posts and tried things like installing Visual Studio but nothing seems to work. This is a remote machine so I'm not sure if that has something to do with it.

Do you have any idea of what the problem could be?

 

Thanks

Vera
Telerik team
 answered on 13 Jul 2018
4 answers
529 views
We are in the initial stages of testing Telerik controls using UFT/QTP. We used Telerik UI for WPF Sample Application (ScreenShot attached)
Using the sample application, we tried identifying certain controls. But we found that some of the properties that we used to identify VB 6.0 controls are not working properly when it comes to the identification of WPF controls. Following are some examples to explain the situation better (We used both UFT 12.0 and 11.53 ) 

1. Treeview control
    We use 'Select' method followed by the item to be selected from the treeview to select an item in a VB 6.0 control.
    But for WPF control, we need to pass the node number instead of the item name that has to be selected.
     WpfWindow("WPF Controls Examples").WpfTreeView("explorerTree").Select 0   'To select the first item in the treeview
     On passing the item name, UFT is throwing error. 

2. ListView control 
     Several of the properties that we use to manipulate a List box VB 6.0 control are not working with WPF controls.
     For example, properties lke GetItem, GetSelection, Select, SelectRange etc are throwing an error from UFT/QTP 
     Since 'Select' doesn't select the item in the list box, we need to go with a crude way to do the job. 
     WpfWindow("WPF Controls Examples").WpfList("WpfList").Object.SelectedIndex = 1





















Stefan
Telerik team
 answered on 03 Jul 2018
1 answer
244 views

Hi,
I am using Telerik's latest version  (Testing_Framework_2018_1_0418_2_Free) and extension (Progress® Test Studio® Chrome Execution) version  (2017.2.823.0). When running the test using the chrome browser , it is saying - 'trying to connect' and after some time i am getting wait time out exception.

Please see the attached screenshots.

Is it possible to use the old telerik extension for chrome with lates telerik framework?


Elena
Telerik team
 answered on 14 Jun 2018
2 answers
248 views

Hi Team,

I am automating the wpf application and trying to connect the already launched application using Manager class, which is working fine in Windows 7,but the same code is throwing null exception for Manager class in Windows 10 64 but machine, let me know what I am missing. 

Regards,

Imran

Elena
Telerik team
 answered on 13 Jun 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?