Telerik Forums
Testing Framework Forum
5 answers
98 views
I am building helper methods to reuse the code.   I wanted to user Generic object reference in helper methods so that user can specify whether object is of  HtmlInputSubmit or HtmlInputText.

To elaborate my requirement, i would writing below code in helper method

                T _WebElement = _Manager.ActiveBrowser.Find.ById<T>(locator);

While invoking helper method, i would write like

            TelerikElement<HtmlControl> searchCriteria = new TelerikElement<HtmlControl>(wDriver);
            searchCriteria.FindWebElement(LocateBy.Name, "q").SetValue("Telerik Testing Framework");

Error:
There is no boxing conversion or type parameter conversion form T to ArtofTest.WebAii.Controls.Control.

Is there any workaround to implement this logic.
Elena
Telerik team
 answered on 16 Apr 2019
5 answers
114 views

How to Compile ‘NUnit Extention.dll’ the sources against your version of NUnit

I am planning to use ‘Unit Testing Web Extensions with NUnit’ , I have gone through the user guide Link http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/getting-started/using-nunit.aspx and I have installed NUnit(2.5.7) and downloaded the ‘NUnit Extention surce file

But how to Compile the sources against version of NUnit. Please guide me the steps how to do the compilation and I am using Visual Studio 2012.

Elena
Telerik team
 answered on 02 Apr 2019
7 answers
183 views

Hi,

I'd like to test a WPF app that uses Telerik UI for WPF. I downloaded the Testing Framework. But I can't seem to click a RadRibbonButton by calling "button.User.Click()" method, even though the "button" variable seems to correctly point to the button:

using ArtOfTest.WebAii.Silverlight;
using ArtOfTest.WebAii.TestTemplates;
using Telerik.WebAii.Controls.Xaml.Wpf;

namespace UnitTestProject1
{
    public class MainWindow : XamlElementContainer
    {
        public MainWindow(VisualFind find)
            : base(find)
        {
        }

        public void ClickSave()
        {
            const string Path =
                "XamlPath=/Grid[0]/Grid[0]/Grid[0]/AdornerDecorator[0]/ContentPresenter[0]/RadRibbonView[0]/Grid[0]/Grid[0]/ContentPresenter[0]/Grid[0]/RibbonScrollViewer[0]/Grid[0]/ContentPresenter[0]/ItemsPresenter[0]/RibbonGroupsPanel[0]/RadRibbonGroup[0]/Grid[0]/GroupChrome[0]/Border[0]/Grid[0]/ContentPresenter[0]/ItemsPresenter[0]/RibbonButtonsPanel[0]/RadRibbonButton[1]";
            var button = this.Get<RadRibbonButton>(Path);
            button.User.Click();
        }
    }
}


I attach a sample project that demonstrate this behavior.

I'd appreciate any suggestions.

Thanks,

Tetsu

Plamen Mitrev
Telerik team
 answered on 20 Mar 2019
18 answers
420 views
Hi,

I have added our DLL to a Test Studio project thru Show->Scripts options.
When I got back to the coded step and tried to add a 'using' statment to include the above DLL,
it was not showing (All the other MS dll and Teleriks show).
The DLL I'm trying to add has been generated using VSE 2008 and contains various test methods written
with webaii methods.

Please let me know how it's suppose to be done.

Ta.
Elena
Telerik team
 answered on 15 Mar 2019
5 answers
244 views
Hi,

is there a way to force WebAii to start chrome in Incognito mode?

Motivation: we use chrome as the default browser and before we starting the gui tests with chrome we reset the browsers cache and cookies to have a vanilla browser. this of course removes all our personal settings.
if we could start the browser in incognito mode, the browser would be "vanilla" per definition and only the telerik extension would be enabled and therefor no other extensions could influence the test execution and expected results.

thanks for advance,
Bernhard
Daniel Djambov
Telerik team
 answered on 13 Mar 2019
1 answer
164 views

Hi,

I have such an code:

 

var dropDownWorkflow = SelectTable_Column(0);

dropDownWorkflow.SelectByText((string)parameter_in["workflowValue"], true);

where

internal HtmlSelect SelectTable_Column(int index)

{     

var idString = string.Format("id=?RulesTable_Row{0}TemplateCol", index);    return myBrowser.WaitForElement(new HtmlFindExpression(idString), TestDefinitions.WAIT_TIMEOUT).As<HtmlSelect>();

}

This is the exception:

ArtOfTest.WebAii.Exceptions.ExecuteCommandException : ExecuteCommand failed!
InError set by the client. Client Error:
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at mshtml.HTMLSelectElementClass.IHTMLElement3_FireEvent(String bstrEventName, Object& pvarEventObject)
   at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeEvent(IHTMLElement target, String data)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Action',Info:'NotSet',Action:'InvokeEvent',Target:'ElementId (tagName: 'select',occurrenceIndex: '0')',Data:'onchange--@@--null',ClientId:'Client_3d56ac5e-800e-4e93-bba8-e10af338144e',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at mshtml.HTMLSelectElementClass.IHTMLElement3_FireEvent(String bstrEventName, Object& pvarEventObject)
   at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeEvent(IHTMLElement target, String data)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.

at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Controls.HtmlControls.HtmlSelect.SelectByText(String text, Boolean invokeOnChangeEvent)

 

What can be the reason and how can I solve this problem.

Thanks.

 

Elena
Telerik team
 answered on 07 Mar 2019
1 answer
104 views

Hi,

When using Chrome with the NavigatTo method, if the target url causes the browser to display a certificate error/warning the NavigateTo method times out and throws an exception. Which causes you to be unable to use any current work around to bypass the error screen and navigate to your intended URL. If I manually navigate past the certificate error page, the NavigatTo method then releases the browser object.

I am using the most recent version of the test framework 2019.2 and the most recent version of the Telerik extension 2019.1. The only work around I have is a try catch finally but the timeout is too long for our intended purposes.

 

Thanks!

Daniel Djambov
Telerik team
 answered on 04 Mar 2019
6 answers
129 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 Mitrev
Telerik team
 answered on 01 Mar 2019
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
62 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?