Telerik Forums
Testing Framework Forum
1 answer
139 views
Hi, I want to add a new row to a RadGridView via automation. I've searched the forums but haven't found this topic yet.
I see that there is a NewRow property, in my case..
Pages.USSPOSCOIndustries.FrameHome.SilverlightApp.GridviewEarnings.NewRow

There is also a function called AddNewRow which I assume is used to make the new row.
So I'm guessing I have to set each column in my NewRow then call AddNewRow to commit it. But I don't know how to loop through each column in my row to set each columns value.
So far I have...

Telerik.WebAii.Controls.Xaml.RadGridView rgv = Pages.USSPOSCOIndustries.FrameHome.SilverlightApp.GridviewEarnings;
int rowCounter = rgv.Rows.Count;
int cellCounter = 1; 
 
foreach(Telerik.WebAii.Controls.Xaml.GridViewCell gCell in Pages.USSPOSCOIndustries.FrameHome.SilverlightApp.GridviewEarnings.NewRow) { //Nested loop; Goes through all the cells within each row
           
     if (gCell.XamlTag == "textbox" && gCell.AutomationId == "PART_EditableTextBox")
        gCell.Text = (string)(System.Convert.ChangeType(Data["Hours"], typeof(string)));
        //You can implement any type of verification you like against the text here
 
     if (gCell.XamlTag == "selectivescrollinggrid" && gCell.Name == "grid")
        gCell.Text = (string)(System.Convert.ChangeType(Data["Hours"], typeof(string)));
        //You can implement any type of verification you like against the text here
 
        cellCounter++;
    }
    rowCounter++;

     Pages.USSPOSCOIndustries.FrameHome.SilverlightApp.GridviewEarnings.AddNewRow();

Is this correct? Also, I would like to search by xamlpath as well as xamlTag for a column's textbox, dropdown, etc. Is this possible?

Thanks for the help
Cody
Telerik team
 answered on 07 Aug 2012
3 answers
125 views
Hi,

I am using the Webaii dll along side VSTS to develop some test scripts for automation of CRM 2011, in one of the test case we have a simple silver light control embedded in the Account form, I wanted to have a click action on the button.
However i am unable to acess the button, as a matter of fact the Developer tool provided on IE can catch the frame but not the id of the button inside (only for SL).
Can any one suggest an article or approach to access the controls inside the embedded SL on a CRM from.
I have added the SL as a web resource (xap) on the form.

Any help appriciated...

Thanks,
Saket
Hameed
Top achievements
Rank 1
 answered on 30 Jul 2012
1 answer
276 views
Hi everyone,

I'm having an issue when I try to run a test in Google Chrome. Basically, the issue is with the browser connection, it just the following error:

Network Error (dns_unsolved_hostname)
Your requested host "localhost.mydomain.com" could not be resolved by DNS

I'm running the test in Windows 7 64 bits, I know that you don;t have support for 64 bits version, but just want to be sure it's not a problem related with this. Could someone know what could be the problem?

I've attached an screenshot so you can see what I see.
Thanks in advance,
Juan
Nikolai
Telerik team
 answered on 30 Jul 2012
3 answers
167 views
Hello Telerik support,

Does Telerik Testing Framework support automation of XAML Browser Applications (XBAP)? Unfortunately, I couldn't find any information about this topic in the documentation.

Thank you in advance for you answer.

Kind Regards,
Stanislav Hordiyenko
Anthony
Telerik team
 answered on 25 Jul 2012
7 answers
192 views
I can't run the same test again. Once I create a script. It runs for the first time and if I click the run button again, I am getting this error in my error log report. I am not sure what I am supposed to change. I just have a simple test that clicks some buttons.
Thanks in advance!

------------------------------------------------------------
'4/30/2012 2:18:05 PM' - Using .Net Runtime version: '4.0.30319.261' for tests execution.
'4/30/2012 2:18:05 PM' - Starting execution....
'4/30/2012 2:18:08 PM' - Failure detected during execution. Details:
------------------------------------------------------------
'4/30/2012 2:18:08 PM' - System.NullReferenceException: Object reference not set to an instance of an object.
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InitializeWpf(ExecutionEngineCreateParams initParams)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.CreateAndInitializeEngine(Test test, ExecutionEngineCreateParams cp)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)
------------------------------------------------------------
'4/30/2012 2:18:09 PM' - Test completed!

Plamen
Telerik team
 answered on 23 Jul 2012
2 answers
159 views
Hello Telerik,

I would like to inform you about the following issue that was found during my work with Free Testing Framework.

When I invoke .TypeText(..) method firstly on RadDatePicker, the date is typed correctly in the control. The issue is occurred when I try to invoke .TypeText(..) method the second time on RadDatePicker with the already typed date. The first date isn't erased completely and the second one is typed with overlap on the first one.

Kind Regards,
Stanislav Hordiyenko
Stanislav
Top achievements
Rank 1
 answered on 20 Jul 2012
5 answers
237 views
Hello:
        I am working with an application that has a kendo Tree.Can you please help me in clicking on the child nodes of a tree and then performing other options.Here basically i have tree with many child nodes and then after i expand a child then i wil have sub nodes.So i have to navigate to this position and then i will have edit icons beside that child node which i have to click.Below are the detailed navigation steps

Expand the dynamic tree for the first node
Under this click on the edit icon for the first child

Attached is the sample screenshot for your refernce.
Please let me know how this can be achieved.
Plamen
Telerik team
 answered on 20 Jul 2012
4 answers
193 views
Hello Telerik,

I would like to inform you about the following issue that was found during my work with Free Testing Framework.

There is no possibility to type text (.TypeText(...)) in RadMaskedTextBox because mask is ignored completely.

Mask: __-___
Expected: 555-5555
Actual: 5555555__-____ 

Kind Regards,
Stanislav Hordiyenko
Anthony
Telerik team
 answered on 19 Jul 2012
3 answers
115 views
Hello Telerik,

I would like to inform you about the following issue that was found during my work with Free Testing Framework.

There is no possibility to select correct day from the RadCalendar if the same day exists for current and previous month.

For example, we would like to select 30th July. In RadCalendar we can see, that there is also 30th June that is marked with gray text. The .SelectDay(...) method always selects the first day - 30th June and it doesn't take into account automatically that current month is July and the second one should be selected. I think it should be intuitive action without specifying occurrence/index of the day in the calendar.

Kind Regards,
Stanislav Hordiyenko
Anthony
Telerik team
 answered on 19 Jul 2012
2 answers
194 views
Hello Telerik,

It would be great to add .Clear() method to WPF RadMaskedTextBox because .TypeText(...) method only appends value.

Kind Regards,
Stanislav Hordiyenko
Stanislav
Top achievements
Rank 1
 answered on 18 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?