Telerik Forums
Testing Framework Forum
6 answers
264 views

Hello,

I have seen previous posts about this but they are quite old. So, I preferred to create a new one just in case.

I had a test with Telerik  ArtOfTest.WebAii version 2017.3.1206.0. It has been working perfectly fine for months.
Last week I had to do a minor change to something unrelated to this issue and I decided to upgrade to version 2018.3.1004.

The browser being used is IE 11.2125 (English version)

            handler.WaitUntilHandled(35000);
After doing this upgrade the Download Dialog handler stop working as it used to do. So, I got the timeout exception because the Dialog is no longer getting handled.

Here I put the code but I haven't modified this. I just put it if there is something extra that I should be doing:


                DownloadDialogsHandler handler = new DownloadDialogsHandler(manager.ActiveBrowser, DialogButton.SAVE, atestadoSavedLocation, manager.Desktop);

            //Trigger the dialog.
            manager.DialogMonitor.Start();

            clickDescargar.Invoke(); //triggers the download

            handler.WaitUntilHandled(35000);


Could you give me any hint on how to sort this out?
Regards,
Sebastian
Plamen | Lead Technical Support
Telerik team
 answered on 01 Mar 2019
3 answers
193 views
I have a bunch of old tests written with the free testing framework with Visual Studio.  Is there some way I can load these into the Test Lists in Test Studio and run them?
Elena
Telerik team
 answered on 26 Feb 2019
1 answer
224 views

We would like to store the tests, along with the specific list of components of the telerik testing framework, into the repository. This would help individual automation tester to merely retrieve the artifacts from the repository and execute the tests instead of having the the telerik testing framework installed on their pcs. How feasible is this approach?

 

Plamen | Lead Technical Support
Telerik team
 answered on 26 Feb 2019
24 answers
366 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
245 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
214 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.5K+ 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
207 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
271 views
What are the best automation test tools for Telecom domain?
Daniel Djambov
Telerik team
 answered on 19 Nov 2018
5 answers
202 views
Can I use the testing framework without installing it by just adding the needed DDLs?
Elena
Telerik team
 answered on 14 Nov 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?