Telerik Forums
Testing Framework Forum
9 answers
171 views
Hello,

How does one use the AnnotationMode.CustomOnly feature.  I am talking about using the WebAii framework and not via Test Studio.

I understand that you have to use the Settings class properties .AnnotateExecution and AnnotationMode.  But then how does one decorate one's methods and actions so that the annotations get displayed during execution? This is all I have so far but then...?

Manager.Settings.AnnotateExecution = true;
Manager.Settings.AnnotationMode = AnnotationMode.CustomOnly;

-Humbi
Humberto
Top achievements
Rank 1
 answered on 12 Sep 2013
1 answer
111 views
I have the below code to logout of the application where Logout is HtmlAnchor element.
 
MyPageManager.MyPage1.MyPageHeader.Logout.Click();
 
I want to know if I can capture this click event.to do some additional operations after click. I am using this line in many of the test methods. If I am able to capture this click event I can do those additional operations in common place without having to modify each of the existing test method.

Let me know if it is possible.Thanks
Boyan Boev
Telerik team
 answered on 09 Sep 2013
5 answers
173 views
Hi Telerik team,
I want to call same function/method in many of the web test in same project.
So is it possible to create then function/method globally and call it in many of the web test in same project????
And where should i write that function/method???

Thanks,
Priyanka
Velin Koychev
Telerik team
 answered on 04 Sep 2013
1 answer
384 views
I am trying to run Telerik Framework Test using NUnit (through visual studio). And I need to initialize some variables before the tests run. I am using [TestFixtureSetUp] and [TestFixtureTearDown] for this. But it seems that these are being executed for each and every [Test] Method ([TestFixtureSetUp] and [TestFixtureTearDown] should be only once!)
  
    [TestFixtureSetUp]
    public void MyTestInitialize() 
    {
        SetUpAndTearDown setup = new SetUpAndTearDown();
        myDriver = setup.SetupTestEnvironment("ie");
    }
  
    [Test]
    public void Grid()
    {
        //code for gird
    }
  
    [Test]
    public void Box()
    {
        //code for Box
    }
  
    [TestFixtureTearDown]
    public void CleanUp()
    {
        SetUpAndTearDown teardown = new SetUpAndTearDown();
        teardown.TearDownTestEnvironment(myDriver);
    }
I am using NUnit - 2.6.2 Visul studio 2010 ultimate
Velin Koychev
Telerik team
 answered on 03 Sep 2013
3 answers
90 views
I get the following error when I try to run my CodedUI test in Internet Explorer 9 (version 9.0.8112.16421). 

"There was a problem starting ArtOfTest.Connector.dll.  The specified module could not be found."

I have tried running VS as administrator but still get the error. 

I have version 2013.1.806 of the Telerik Testing Framework.  I also verified I have the ArtOfTest.Connector.dll file at the following location:

C:\Program Files (x86)\Telerik\Test Studio\Bin

My test runs fine in Firefox and Chrome.
Boyan Boev
Telerik team
 answered on 02 Sep 2013
15 answers
325 views
Hi,

We have been using Telerik Testing Framework for our WPF project. It is working fine with the previous version 2012.2.1420.0.

But today when I upgraded with the latest version 2013.1.806.0, it throws "System.TypeInitializationException" when it is trying find control using automationId (this.WpfWindow.Find.ByAutomationId<T>("automationId"))

Details of the exception thrown are as follows

Exception thrown during the wait for a condition. Error: Unexpected error while waiting on condition. Error: System.TypeInitializationException: The type initializer for 'ArtOfTest.WebAii.Silverlight.ObjectSerializer' threw an exception. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
 
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
 
   at System.Reflection.RuntimeModule.GetTypes()
 
   at System.Reflection.Assembly.GetTypes()
 
   at ArtOfTest.WebAii.Silverlight.ObjectSerializer.InitKnownTypes()
 
   at ArtOfTest.WebAii.Silverlight.ObjectSerializer..cctor()
 
   --- End of inner exception stack trace ---
 
   at ArtOfTest.WebAii.Silverlight.ObjectSerializer.Serialize(Type t, Object o)
 
   at ArtOfTest.WebAii.Silverlight.SilverlightCommand.AsString()
 
   at ArtOfTest.WebAii.Wpf.WpfProxy.CreateCommand(SilverlightCommand SlCommand)
 
   at ArtOfTest.WebAii.Wpf.WpfProxy.ExecuteSLCommand(SilverlightCommand cmd)
 
   at ArtOfTest.WebAii.Wpf.WpfProxy.GetAllVisualTrees()
 
   at ArtOfTest.WebAii.Wpf.WpfWindow.RefreshVisualTrees()
 
   at ArtOfTest.WebAii.Silverlight.VisualFind.RefreshRoot()
 
   at ArtOfTest.WebAii.Silverlight.VisualWait.WaitForExistsByFindInfo(VisualFindInfo findInfo)
 
   at ArtOfTest.Common.WaitAsync._worker_DoWork[T,V](Object waitParam)

We have been referring three DLLs in our Project
1. ArtOfTest.WebAii.dll
2. Telerik.WebAii.Controls.Xaml.dll
3. Telerik.WebAii.Controls.Xaml.Wpf.dll

Do we need to refer any additional binaries?

Thanks & Regards,
Raj
 
Boyan Boev
Telerik team
 answered on 02 Sep 2013
3 answers
70 views
Hi,

I am trying to move my test code from webaii 1 to webaii 2. In my code I have used

FindParamCollection

 

 

class in webaii1 and for webaii 2 it says this class has been deprecated, use

 

 

FindExpressionCollection<T>.

I am not able to find the implemenation details of this class in the help document http://www.artoftest.com/support/webaii/WebAii_2.0_API/Index.aspx. Can you please help?

 

Boyan Boev
Telerik team
 answered on 02 Sep 2013
1 answer
77 views
Hi Team,

Is it possible to use WebAii without installing Telerik testing framework tool.

I tried to copy all the dlls from GAC(WebAii related dll from telerik installed machine) to the debug folder(My machine).Still Im getting the error dll is not found. Pasting the error as well

System.IO.FileNotFoundException: Could not load file or assembly 'ArtOfTest.WebAii, Version=2012.2.1420.0, Culture=neutral, PublicKeyToken=4fd5f65be123776c' or one of its dependencies. The system cannot find the file specified.

ArtOfTest.WebAii is avialble in debug folder. fyi., In my machine telerik is not installed.

Please guide me to work with webaii without installing telerik.
Cody
Telerik team
 answered on 30 Aug 2013
1 answer
77 views
Hi,

 I am trying to automate a kendo grid from the site  http://demos.kendoui.com/web/grid/editing.html. I am trying to change a value into cell but it is not able to change. After I come out of the cell, it is getting its old value.
Code snipplet is -

int i = 1;

 

 

foreach (KendoGridDataItem row in kgrid.grid.DataItems)

{

 

if (row.Cells[0].TextContent == "Northwoods Cranberry Sauce")

{

row.Cells[1].Click(); 

 

HtmlInputText text = ActiveBrowser.Find.ByName<HtmlInputText>("UnitPrice");

row.Cells[1].Click();

 

 text.Text = "243344";

string TextVal = kgrid.grid.DataItems[i-1][1].TextContent;

row.Cells[1].Click();

 

break;

}

i++;

}

Boyan Boev
Telerik team
 answered on 30 Aug 2013
3 answers
168 views
Hi,

Starting with the examples supplied I made a small test, just loading a page that needs a logon, enter some text in a text box and click on a button to make a search.

It works on IE(9) and Firefox(latest) but in Chrome the logon box remains with both fields empty and the test fails with an error that it fails to find the control.

It's like it doesn't detect the logon dialog.

Thanks in advance, here is the code:

Settings mySettings = new Settings();
 
mySettings.Web.DefaultBrowser = browser;
  
Manager myManager = new Manager(mySettings);
  
myManager.Start();
  
myManager.LaunchNewBrowser();
  
myManager.DialogMonitor.AddDialog(LogonDialog.CreateLogonDialog(myManager.ActiveBrowser, "username", "password", DialogButton.OK));
myManager.DialogMonitor.Start();
 
myManager.ActiveBrowser.NavigateTo("url");
  
Element linkSearch = myManager.ActiveBrowser.Find.ByContent("Search");
myManager.ActiveBrowser.Actions.Click(linkSearch);
  
Element editSearch = myManager.ActiveBrowser.Find.ById("ctl00_ctl00_ContentPlaceHolderMain_txtSearch");
myManager.ActiveBrowser.Actions.SetText(editSearch, "Example");
 
Element radioCompanies = myManager.ActiveBrowser.Find.ById("ctl00_ctl00_ContentPlaceHolderMain_rbtnListFilterType_0");
myManager.ActiveBrowser.Actions.Check(radioCompanies, true);
 
Element buttonSearch = myManager.ActiveBrowser.Find.ById("ctl00_ctl00_ContentPlaceHolderMain__btnSearch");
myManager.ActiveBrowser.Actions.Click(buttonSearch);
 
Element linkResult = myManager.ActiveBrowser.Find.ByContent("Example");
myManager.ActiveBrowser.Actions.Click(linkResult);
 
myManager.Dispose();
Boyan Boev
Telerik team
 answered on 30 Aug 2013
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?