Telerik Forums
Test Studio Forum
1 answer
154 views
Hi

I just found an odd example where a Page cannot be parsed correctly and therefore, the Find.ByXXX fails with an exception!

Here's a very simple html of a page which fails:
<html>
    <head><title>Test</title></head>
    <body>
        Hello<b. xmlns="http://www.w3.org/1999/xhtml">World</b.>
    </body>
</html>

I know that this is an invalid Tag but shouldn't it be ignored instead of leading to exceptions when using the browser object?

Here's the C# code which leads to the exception:
Manager myManager = new Manager(false);
myManager.Start();
myManager.LaunchNewBrowser(BrowserType.InternetExplorer);
Browser browser = myManager.ActiveBrowser;
browser.NavigateTo("test.html");
Find finder = browser.Find;
string findPath = @"//li[@id='tab_CarsAndBikesTechnicalDetails1']/a";
Element foundElement = finder.ByName(findPath) ?? finder.ById(findPath);

And here's the exception I get:
Find Details:
- FindParam used: [Find logic: Use 'AttributesOnly' where (name=//li[@id='tab_CarsAndBikesTechnicalDetails1']/a) ]
- Start Element: [Element: '#text#:-1']
and the Inner exception is:
Start reference has to be a valid element and not an EndTag
Parameter name: Reference

Is there any possibility that such an invalid tag is ignored instead of leading to such exceptions?

Thanks for Help
Roman
Stoich
Telerik team
 answered on 25 Oct 2011
3 answers
176 views
I have a data driven test that currently needs the data binding altered to filter different rows for different environments. Is there a way to use a scripted step to check the environment and then run subsequent steps or skip them?

thanks
Stoich
Telerik team
 answered on 25 Oct 2011
2 answers
93 views
Hi,

i am working in a project with silverlight 4, mvvm pattern and telerik controls.

It is possible to population xml string content to a radgridview.


Xml String
--------------

<NewDataSet>
  <Table1>
    <ID>17668</ID>
    <CODE>67</CODE>
    <NAME>03822</NAME>
    <DESCRIPTION>Test Desc<DESCRIPTION/>
    <MODULE>6</MODULE>
  </Table1>
<NewDataSet>


i want to populate this content to radgridview, the column name and count is not static, it will change dynamically based on the data from the database.

So that i cant able to create static properties here...

Thanks in advance

Sridhar V.
Sridhar
Top achievements
Rank 1
 answered on 24 Oct 2011
3 answers
205 views
Hello,
I am developing a set of scripts that creates surveys for sales and marketing. The scripts work great and I love you product. I was wondering if there was a way to randomize the row the script pulls data from an Excel sheet?

I use visual basic for custom coding.
Thank you.
-Chris
Cody
Telerik team
 answered on 23 Oct 2011
3 answers
137 views

I have the following code to select an item based on the user role I need to create.  Is there a simpler way to do this?

Thanks,

John

'Default Span
ActiveBrowser.Window.SetFocus
Pages.CreateNewUser.PleaseSelectSpan.ScrollToVisible(ArtOfTest.WebAii.Core.ScrollToVisibleType.ElementTopAtWindowTop)
Pages.CreateNewUser.PleaseSelectSpan.MouseClick
 
 
If  Data("firstname")  =  "admin"  Then
        'Click 'ProgramListItem'
    ActiveBrowser.Window.SetFocus
    Pages.CreateNewUser.ProgramListItem.ScrollToVisible(ArtOfTest.WebAii.Core.ScrollToVisibleType.ElementTopAtWindowTop)
    Pages.CreateNewUser.ProgramListItem.MouseClick
End   If
 
If  Data("firstname")  =  "man"  Then
    'Click 'SiteManagerListItem'
    ActiveBrowser.Window.SetFocus
    Pages.CreateNewUser.SiteManagerListItem.ScrollToVisible(ArtOfTest.WebAii.Core.ScrollToVisibleType.ElementTopAtWindowTop)
    Pages.CreateNewUser.SiteManagerListItem.MouseClick
End  If
 
If  Data("firstname")  =  "staff"  Then
    'Click 'StaffMemberListItem'
    ActiveBrowser.Window.SetFocus
    Pages.CreateNewUser.StaffMemberListItem.ScrollToVisible(ArtOfTest.WebAii.Core.ScrollToVisibleType.ElementTopAtWindowTop)
    Pages.CreateNewUser.StaffMemberListItem.MouseClick
End  If
 
<option value="">Please select</option>
<option value="1">Program administrator</option>
<option value="2">Site manager</option>
<option value="4">Staff member</option>

Stoich
Telerik team
 answered on 21 Oct 2011
1 answer
105 views
Hi,
   I want to know how Telerik Test Studio will handle these scenario.
1. Assume  today in a web page: I have two text box (T0, T1) which is not assigned  ID, Name or Any other thing.Both have same properties except for the location.
2. At certain places we see the recorded steps shows Test0,Test1 as the Friendly Name of object.We add validation for these objects to be present on the page in our script. Suppose if some more text boxes are added above T0 and T1 and target order changes then will our script fail? If yes then whats the best way to add such validation which are irrespective of their location and order.

Basically we want to check the maintainability of the scripts in Telerik. Let us know if you have document or a reference which can help us in evaluating the same.

A quick response will surely help.

Thanks & Regards,
Ahetejazahmad.
Cody
Telerik team
 answered on 20 Oct 2011
4 answers
128 views
Hello,

Since the new version 2011.2 I get an error when trying to execute tests from the "Record" tab.
I get this error in the log :
------------------------------------------------------------
'14/10/2011 17:40:54' - Error encountered during execution.
------------------------------------------------------------
'14/10/2011 17:40:54' - Error launching the runner. Error:
System.TimeoutException: The operation has timed out.
   at System.IO.Pipes.NamedPipeClientStream.Connect(Int32 timeout)
   at ArtOfTest.WebAii.Design.Execution.RunnerController.Launch(Int32
waitForReadyTimeout, String pathToRunner, Boolean isManual, Int32&
runnerProcId)
------------------------------------------------------------
'14/10/2011 17:40:54' - Aborting....

The execution is working when launching it from a test list ("Test Lists" tab)

Could you help me ?

Thanks,
Regards,
Stoich
Telerik team
 answered on 19 Oct 2011
6 answers
355 views
My application includes combo boxes. One of my tests requires the selection of an item in the combo box which isn't visible when you first open the combo box: I open the combo box; it displays the first 6 items; I need to select the 10th item.

I can record the action of scrolling the combo box. However, this recorded step then includes specific x/y pixel references: "Drag BackgroundGradientRectangle to application at (297, 432) from TopLeftCorner."

When I play back the test, it often fails at this step. No selection is made in the combo box if the screen size is slightly different than when the test was recorded.

How do I get my test to consistently select the 10th item in a combo box, even if that item is not visible when you first open the combo box?


John
Top achievements
Rank 2
 answered on 18 Oct 2011
1 answer
207 views
Hi,

I'm using RadControls for ASP.NET AJAX Q1 2010
Version : 2010.1.519.20
In my web application I'm using panel bar ,but its generated the following error
Warning 15 Validation (XHTML 1.0 Transitional): Element 'headertemplate' is not supported. C:\OfficialProject\Project_VS\PracticeManagementSystem\PracticeManagementSystem\EntityManagement2.aspx 16 38 PracticeManagementSystem


<telerik:RadPanelBar runat="server" ID="RadPanelBar1" Width="100%" 
                    Skin="Vista" OnClientLoad="onLoad" >
                    <Items>
                                <telerik:RadPanelItem>
                                    <ItemTemplate>
                                    </ItemTemplate>
                                </telerik:RadPanelItem>
                                <telerik:RadPanelItem Expanded="true">
                                    <HeaderTemplate>
                                        <div style="float: left; padding-top: 1px; z-index: 2800;">
                                            <telerik:RadMenu ID="RadMenu1" runat="server" OnClientItemClicked="onItemClicked"
                                                Skin="Forest" Style="z-index: 2900">
                                                <Items>
                                                    <telerik:RadMenuItem Text="Favorites">
                                                    </telerik:RadMenuItem>
                                                    <telerik:RadMenuItem Text="Records Last Accessed" Selected="true">
                                                    </telerik:RadMenuItem>
                                                      
                                                </Items>
                                            </telerik:RadMenu>
                                        </div>
                                    </HeaderTemplate>
                                    <ContentTemplate>
                                        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" 
                                                            CssClass="multiPage" Height="250px" Width="100%">
                                            <telerik:RadPageView ID="RadPageView1" runat="server" >
                                                <div style="height: 100px" >
                                 
                                                </div>
                                            </telerik:RadPageView>
                                            <telerik:RadPageView ID="RadPageView2" runat="server" >
                                                <div style="height: 100px" >
                                 
                                                </div>    
                                            </telerik:RadPageView>
                                        </telerik:RadMultiPage>
                                    </ContentTemplate>
                                </telerik:RadPanelItem>
                            </Items>
                        
                    <CollapseAnimation Duration="100" Type="None" />
                    <ExpandAnimation Duration="100" Type="None" />
                </telerik:RadPanelBar>

Kate
Telerik team
 answered on 18 Oct 2011
3 answers
92 views
Hi
             I am facing a problem with Telerik Test studio, When I am login from http page to silver light that time test studio hold the value of text box like "Set 'password' text to  'Ahetejaz'". After this step my application which is based on Silver Light  pop up' in that when I am clicking on a link button Language which gives me three text box to create a language, when I Pass value to it. It creates the language in the menu option however  text box is not holding any value after creating  it in my script. So, how can I verify the text in it  and next time when I will run the same script that time the text box will have any empty value and it will throw an exception. For example "LeftClick on  Item0TextboxView0". Their is no value shown for text box. Can you help me to find a solution for this, as we are testing your tool so that we can use it for automating Silver Light application.

Thanks & Regards,
Ahetejazahmad.
Anthony
Telerik team
 answered on 18 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?