Telerik Forums
Testing Framework Forum
24 answers
324 views

Hello,

I am using testing framework. in my computer its work fine. but in another computer the test fail.

the code:

            Settings settings = new Settings();
            settings.ClientReadyTimeout = 100;
            settings.Wpf.DefaultApplicationPath = applicationPath;
            Manager manager = new Manager(settings);
            var process = Process.GetProcesses().FirstOrDefault(t => t.ProcessName.StartsWith("AAA"));
            if (process != null)
            {
                manager.Start();
                manager.ConnectToApplication(process);
            }

when I run the test with debugging:

            var window = Manager.Current.Applications[0].MainWindow;

window is null.

when I run the test without debugging the exception is:

            Exception thrown: 'System.ApplicationException' in ArtOfTest.WebAii.dll
            Additional information: Unexpected error. SyncWaitResult was null for this wait

           at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
           at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
           at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
           at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Int32 timeout)
           at ArtOfTest.WebAii.Wpf.WpfApplication.get_MainWindow()

Elena
Telerik team
 answered on 17 Jan 2019
3 answers
158 views

Hello,

Recently I have started using Testing Framework to test WPF applications (MVVM). Maybe it's the novice's problem but i can't generate RoutedEventArgs on my_button.User.Click(); Operations like TypeText() or Click() should be treated like a normal user actions, aren't they?

 

I am trying something like this:

 _wpfWindow.Find.ByName(UI_Components.Button_LogIn).User.Click();

or

 _wpfWindow.Find.ByName(UI_Components.TextBox_Name).User.TypeText(login, 1, 5, true);

 

During click on LogIn Button (by real mouse)  is activating method, by Click() option not. The same problem I have with generating events for KeyPress:

private void OnKeyDownPressed(object sender, KeyEventArgs e)
{
          if (e.Key == Key.Enter)
                  runXXX();
}

private void OnLoginButtonClick(object sender, RoutedEventArgs e)
{
           runXXX();
}

How can i fix it or generate KeyEventArgs or RoutedEventArgs. Btw. I couldn't change the code from this both methods, necessary condition.

Greetings.

Nikolai
Telerik team
 answered on 16 Jan 2019
2 answers
153 views

Hi there,

I'm having problem clicking a button. This website is using Kendo UI so I was wondering if that makes it different for testing.

 

After I select a file to upload, there is a remove button displaying right next to the file.(Please see removebutton in attachment for more details.) I want to click the submit button after uploading a file but I can't. (Please see buttons to see both buttons) It always clicks the remove button unless I don't select a file, which means only when there's no remove button.  

 

Here is my code and it should select a file from my computer and click the SubmitButton to submit this file. 

            HtmlButton submitButton = manager.ActiveBrowser.Find.ById<HtmlButton>("SubmitButton");
         
            HtmlInputFile selectFile = manager.ActiveBrowser.Find.ByAttributes<HtmlInputFile>("type=file");
           
            FileUploadDialog uploadDialog = new FileUploadDialog(manager.ActiveBrowser, @"myfilepath", 
                DialogButton.OPEN,"Select files");
            manager.DialogMonitor.AddDialog(uploadDialog);

            selectFile.Click();

            manager.DialogMonitor.Start();

            uploadDialog.WaitUntilHandled(10000);
            
            submitButton.Click();

 

I've also included a screenshot of the html of the buttons. Please let me know if you need more information. Thank you! 

Elena
Telerik team
 answered on 10 Jan 2019
3 answers
1.4K+ views

Hi Support,

We are using telerik free testiing framework version 2018.3.1004.0. But it is not handling the alert, confirm dialogs on latest chrome i.e chrome 70.

Please note that i am using the latest telerik extension as weel for executions.

Any help on this will be appreciated.

 

Thanks

Vinay

Daniel Djambov
Telerik team
 answered on 24 Dec 2018
3 answers
151 views

Using this code, Firefox does not find the iFrame, it is found using IE and Chrome.

 

ArtOfTest.WebAii.Core.Browser frame = ActiveBrowser.Frames[0];

Assert.IsNotNull(frame, "Frame not found");

 

There is only 1 frame in the page and it doesn't have a name.

 

Test studio version 2018.3.1004.0

Firefox 63.0.3 (64 bit)

 

Is this a known issue as I couldn't find anything about this when searching?

 

regards

 

Si

Elena
Telerik team
 answered on 07 Dec 2018
2 answers
229 views
What are the best automation test tools for Telecom domain?
Daniel Djambov
Telerik team
 answered on 19 Nov 2018
5 answers
166 views
Can I use the testing framework without installing it by just adding the needed DDLs?
Elena
Telerik team
 answered on 14 Nov 2018
1 answer
317 views

Clicking on the upload button using click method or submit in Selenium Test Automation doesnt work.  Have tried to execute the jquery using click, but it doesnt work.  

 

    ((IJavaScriptExecutor)driver).ExecuteAsyncScript(String.Format("$('#attachments').click();"));  

 

here #attachments is the id of the select/upload button.  I have tried to use ExecuteSyncScript too which doesnt work.

Elena
Telerik team
 answered on 14 Nov 2018
6 answers
339 views

我想問一下這個WPF ComboBox如何獲取它的Item,

我從Snoop Tool檢查了它的xaml,並了解到當前應用程序Xaml中不存在Popup的內容。

這個問題就像日期選擇器

我正在使用Testing Framework Automation編寫C#測試腳本

 

謝謝


Elena
Telerik team
 answered on 07 Nov 2018
3 answers
135 views

Repro steps:

 

1. Start SUT with another automation framework (TestStack.White) in my case

2. Create an instance of Manager and call ConnectToApplication(int processId)

 

Expected: The call takes less than 1 sec

Actual: On one machine it takes less than 1 sec, on the other approx. 1 min

 

Machine with 1 sec:

Windows 10 64 bit, TestStudio Trial from online installation

Machine with 1 min:

Windows 7 32 bit, TestStudio trial from offline installation..

Any help would be greatly appreciated.

Elena
Telerik team
 answered on 05 Nov 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?