Telerik Forums
Testing Framework Forum
7 answers
196 views
Hi,

I am using Webaii 2010.3.1421.0. Current I am running into a issue handling windows dialogue alerts in fire fox browser. I have the script developed using the IE 8 browser and it's working fine. I am trying to execute the same scripts against different browser's like fire fox, Safari and chrome.

When I executed the script on Firefox and Safari, script does handle the windows dialogue's and fails.
Attached is the screen shot for windows dialogue.
Code to handle the windows dialogue

  var altDlg = new TMSConfirmDialog(ActiveBrowser, DialogButton.OK, ExpectedDialogButtons.Two);
            Manager.DialogMonitor.AddDialog(altDlg);
            Manager.DialogMonitor.Start();
            PfmPageManager.HistoryPage.Elements.HistoryDataGrid.GoToDetailPage(" ", "Version", "Revert", versionNumber);
            string dialogMessage = altDlg.DialogMessage;

Any suggestions will be appreciated.
Thanks in advance
Mahendra
Plamen
Telerik team
 answered on 27 Dec 2011
2 answers
76 views
Hi telerik team,

I try to get All Items in a Checked List Box in Silverlight but telerik only get the Visible Item, if I want to get the others item, i have to scroll down and get the list again. I wonder are there any way to get full list?
This is how I get it
ListBox chkListCategories = grid.Find.ByName<ListBox>("chkListCategories");
GlobalObject.SILVERLIGHTAPP.VisualTree.Refresh();
IList<TextBlock> textlist = chkListCategories.Find.AllByType<TextBlock>();

Thank you
Tuan
Top achievements
Rank 1
 answered on 23 Dec 2011
4 answers
293 views
Hello guys:
                  I have an error when try launch an app using webaii and running test from Nunit. Basically after run test, the IE browser opens but the following error is showed in Nunit and the app does not load in the browser.

WebAii.Samples.TestBaseTests.The_base_loads_application:
SetUp : System.ApplicationException : Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it.
  ----> System.TypeInitializationException : The type initializer for 'ArtOfTest.Common.Win32.Connector' threw an exception.
  ----> System.NullReferenceException : Object reference not set to an instance of an object.

I've uninstalled and reinstalled Telerik and IE, and I've configured IEv9 following the steps described in the Telerik's page, but unfortunately does not work.
My current configuration included Windows 7 and IEv9.

Do you have any suggestions to do?
Many thanks.
Plamen
Telerik team
 answered on 22 Dec 2011
9 answers
334 views
Using the AspNet browser, I am able to grab both the UserName and Password TextBoxes. I insert my username and attempt to insert my password and click the Login button. This fails.
I dump the source and only see that the Username Textbox is populated.
The UserName and Password textbox are located within an ASP:Login control.
Any suggestions?
This is the first step before I test the rest of my application and need a way to log into the system.
Thank you.
Anthony
Telerik team
 answered on 21 Dec 2011
3 answers
167 views
Hello everyone!

I'm having some problems getting the text on a TextBox, it keeps saying it's empty when it's not. Basically, I'm filling in a contact form, saving it and then reopening the contact's details (which opens the same form) and trying to get the text from the TextBox's.

Since the object is originally is an ITextBox, I tried casting the object to TextBox, FrameworkElement and also not casting it at all and still no good... The "TextContent" property is empty and the "Text" doesn't exist (throws an exception).

Unfortunately, it's not possible to make the app available to the outside due to company's policy...

Best regards,
Ricardo
Anthony
Telerik team
 answered on 20 Dec 2011
1 answer
159 views
Hi,

I just started to use the testing framework, I downloaded the examples but I could not find an example that shows a project running only with the testing framework from a console aplication, class library or windows aplication. can u please provide me an example using a class library? I don't want to use Nunit, xUnit, MbUnit or VS Team Test.

Thanks in advance.

Kind Regards,

Stoich
Telerik team
 answered on 20 Dec 2011
1 answer
81 views
Hi,
I am doing research about how to test our silverlight app in a correct way, and one question what I would like know is how we should test composite control (for example MyInventoryView.xaml is a view wich  contain a list of itemView.xaml using a ListBox)
something like:
<ListBox.ItemTemplate>
                    <DataTemplate>
                        <xyz:ItemView  ...  />
                    </DataTemplate>
                </ListBox.ItemTemplate>


How I should get a list of these itemView objects?

The easy way to get a control when we know the name and the type is 
itemViewSilverlightApp.Find.ByName<DataGrid>("myName");

But what is the way to get when we are talking about specific usercontrol? (shall we add a reference from the project wich has the specific usercontrol??)

Best Regards,
Rolando.


Stoich
Telerik team
 answered on 16 Dec 2011
11 answers
215 views
Hi,

I am looking at using FindNodeByText to test that an item ISN'T in the list. According to this page , it should return null if the item isn't in the list. But what happens now is that it throws an exception if the item isn't in the list.

This is a major obstacle in my testing so would appreciate any help or workarounds.

Thanks,
Dren
Plamen
Telerik team
 answered on 15 Dec 2011
3 answers
185 views
Hi all,

We are trying to use the automation testing framework in code to enter data into a custom edit popup form (like in this demo: http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/popupeditform/defaultcs.aspx
) to modify a row of data.  The problem we are having is that if we simply look for the Update button on the edit form and send it the Click() event then the form simply closes and does not actually trigger the RadGrid_UpdateCommand event handler.  This means the data never gets updated.

We have looked in the samples provided with the Testing Framework and there is an example with a in-place edit form, but none with a popup edit form.  Is there something special that we need to do with a custom edit popup form to get the row to update when we are done with the form?

Any help appreciated,

Thanks
Pavel
Telerik team
 answered on 15 Dec 2011
3 answers
163 views
hi,

i want to use telerik test studio to capture the flash component, but i found it cannot capture any flash component.
so does test studio support flash? or do you have any work around method to use test studio to test flash component
Konstantin Petkov
Telerik team
 answered on 14 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?