Telerik Forums
Testing Framework Forum
3 answers
94 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
63 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 Mitrev
Telerik team
 answered on 26 Feb 2019
24 answers
248 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
93 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
97 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.2K+ 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
95 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
173 views
What are the best automation test tools for Telecom domain?
Daniel Djambov
Telerik team
 answered on 19 Nov 2018
5 answers
112 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
258 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?