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.
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
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.
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!
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);
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?