Telerik Forums
Test Studio Forum
3 answers
186 views
Hi,

We are using licensed Telerik TestStudio to test a dotnet application. We are facing issues in identyfing the elements on IFrame.
Scenario is like this:

Hit the url of the application a web page is displayed. Suppose there is a link-create new and on clicking create new a popup opens in the Iframe. Now in that Iframe there are two buttons - Run and Save. On clicking Save the UI changes in that Iframe. There is a text box in which we can specify the name. After that we click on Save button. Then a message is displayed - Saved successfully. After that we click on X mark on the top of the Iframe to close it.

When we tried to capture these operations through Telerik, it is showing Click 'Div' for all the three operations. These three have same set of properties. We tried to locate through Find Element too but it was not locating the right  element on that IFrame.
Kindly look into it and let me know how can we identify the elements using these set of properties.

Thanks,
Nitin
Anthony
Telerik team
 answered on 26 Sep 2011
2 answers
155 views
Hi,
I am getting following Exception while execution test as step on execution server. Note : It works fine on local machine...

'9/22/2011 4:42:04 PM' - 'Pass' : 4. Wait for '2000' msec.
'9/22/2011 4:42:04 PM' - 'Fail' : 5. Execute test 'ADD_AP_PaymentTerm'

>>> Test-as-Step 'AP\DATA\Add AP Payment Term\ADD_AP_PaymentTerm.tstest' log starts:

------------------------------------------------------------
'9/22/2011 4:42:04 PM' - Detected custom code in test. Locating test assembly: Automation.dll.
------------------------------------------------------------
'9/22/2011 4:42:04 PM' - Error attempting to execute a Test As Step. Details:
'9/22/2011 4:42:04 PM' - System.BadImageFormatException: This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. (Exception from HRESULT: 0x8013101B)
   at System.Reflection.Assembly.nLoadFile(String path, Evidence evidence)
   at System.Reflection.Assembly.LoadFile(String path)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureAssemblyExists(String assembly, String folder)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.CreateCodedTestInstance(Test test, TestResult result, String binariesFolder)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteTestInCurrentContext(Test test)

<<< Test-as-Step 'AP\DATA\Add AP Payment Term\ADD_AP_PaymentTerm.tstest' log ends.

------------------------------------------------------------
'9/22/2011 4:42:04 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
sonal
Top achievements
Rank 1
 answered on 26 Sep 2011
2 answers
159 views
Hi,

I have a scenario as the following:

There are 5 sequential pages including forms and one can go next page by clicking "continue" if all inputs are correct.
If some inputs are not correct, there emerges error messages for the wrong ones and those error messages are validated.
At this case I don't want to run remaining steps for next pages since they gonna fail because current page with erroneous cannot be passed.
Is there a way to stop execution for this iteration and starts with new iteration from step1?

"StopTestListOnFailure" option cannot be used here because it stops in a failed step but in my case it is not a failed step.

I tried to use global variable and set it when erroneous input is seen and validated, but when I customize next steps in code and check this global variable, in test results I cannot see details of sub-steps so global variable would not be a good option for me.

I hope I can explain my case well enough.

Best regards

Ercan
Cody
Telerik team
 answered on 21 Sep 2011
1 answer
249 views
Hi,

How multiple users with multiple licence can work in Telerik for a single project.For e.g lets say each of them automated few test
cases in their machine.Now how can we sync the different cases into single project.
Can a project be shared in Telerik or do i need to Check-In/Out the scripts on daily basis by resolving all the conflicts. we will be using SVN for version control.

Also as i understand, there is a Page,cs file where all elements are captured.So do i need to update this file too on daily basis for multiple users. 

Please suggest.

Thanks
Deepak 
Cody
Telerik team
 answered on 21 Sep 2011
1 answer
82 views
hi friend ,i am gajendra, this is my first post to this forum,i have some problem while using terelik controls
i have master page on which RadAjaxManager is present.now i am using asp.net Datalist and some controls in content page.what i want? i want to update on button click of two button names are 1) next 2)previous please tell me how to use these asp.net controls.and suggest what is substitude for Datalist in Telerik contols,thanks
Maria Ilieva
Telerik team
 answered on 21 Sep 2011
3 answers
260 views
I have recorded a test in IE9 and when I try to execute it in Chrome the test fails at step 2 for the Handle File Upload dialog.  I tried increasing the timeout as this appears to be the reason for the failure.  I can play it back in IE9 without any errors.  I've attached the failure log for info.  Any ideas?

Thanks
Stoich
Telerik team
 answered on 19 Sep 2011
2 answers
157 views
Hi all, how can i findcontrol in GridTableView when i click button "Next"
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" GridLines="None"
            ShowGroupPanel="True" Skin="Outlook" OnDetailTableDataBind="RadGrid1_DetailTableDataBind"
            HorizontalAlign="Left" DataMember="T_Company"     
                    onitemcommand="RadGrid1_ItemCommand" 
                    onneeddatasource="RadGrid1_NeedDataSource" 
                    onitemdatabound="RadGrid1_ItemDataBound" onprerender="RadGrid1_PreRender">
            <ClientSettings AllowDragToGroup="True">
            </ClientSettings>
            <MasterTableView Name="abc_" AutoGenerateColumns="false" AllowMultiColumnSorting="True" GridLines="Horizontal"
                DataKeyNames="CompanyID" DataMember="T_Company" 
                GroupsDefaultExpanded="true">
                <ParentTableRelation>
                    <telerik:GridRelationFields DetailKeyField="CustomerID" MasterKeyField="CustomerID" />
                </ParentTableRelation>
                <ExpandCollapseColumn Visible="True">
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="CompanyName" HeaderText="Dịch Vụ" UniqueName="column2">
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn DataField="Deposit" HeaderText="Đặt Cọc" UniqueName="column">
                        <EditItemTemplate>
                            <asp:Label ID="DepositLabel" runat="server" Text='<%# Eval("Deposit") %>'></asp:Label>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:TextBox ID="DepositTextBox" runat="server" Text='<%# Bind("Deposit") %>'></asp:TextBox>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="column1" HeaderText="Người Thanh Toán">
                        <EditItemTemplate>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="SqlDataSource1"
                                DataTextField="GuiderName" DataValueField="GuiderID">
                            </asp:DropDownList>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
                <DetailTables>
                    <telerik:GridTableView Name="show_" runat="server" Visible="true" DataKeyNames="CompanyID"
                        DataMember="CompanyID" Width="100%" AutoGenerateColumns="false" GridLines="Horizontal"
                        ShowFooter="True" Font-Bold="False" Font-Italic="False" 
                        Font-Overline="False" Font-Strikeout="False" Font-Underline="False" 
                        ForeColor="Blue">
                        <ParentTableRelation>
                            <telerik:GridRelationFields DetailKeyField="CompanyID" MasterKeyField="CompanyID" />
                        </ParentTableRelation>
                        <Columns>
                            <telerik:GridTemplateColumn DataField="OrderID" HeaderText="ID" UniqueName="column1">
                                <EditItemTemplate>
                                    <asp:TextBox ID="OrderIDTextBox" runat="server" Text='<%# Bind("OrderID") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="OrderIDLabel" runat="server" Text='<%# Eval("OrderID") %>'></asp:Label>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataField="ProvideName" HeaderText="Dịch Vụ" UniqueName="column2">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="CurrentPrice" HeaderText="Đơn Giá" UniqueName="column3">
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn DataField="BookQty" HeaderText="SL Dự Kiến" UniqueName="column4">
                                <EditItemTemplate>
                                    <asp:TextBox ID="BookQtyTextBox" runat="server" Text='<%# Bind("BookQty") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="BookQtyLabel" runat="server" Text='<%# Eval("BookQty") %>'></asp:Label>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn DataField="PriceOper" HeaderText="TT Dự Kiến" UniqueName="column5">
                                <EditItemTemplate>
                                    <asp:TextBox ID="PriceOperTextBox" runat="server" Text='<%# Bind("PriceOper") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="PriceOperLabel" runat="server" Text='<%# Eval("PriceOper") %>'></asp:Label>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn DataField="CurrentQty" HeaderText="SL thực Tế" UniqueName="column6"
                                DataType="System.Int32">
                                <EditItemTemplate>
                                    <asp:Label ID="CurrentQtyLabel" runat="server" Text='<%# Eval("CurrentQty") %>'></asp:Label>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:TextBox ID="CurrentQtyTextBox" runat="server" Width="50" Text='<%# Eval("CurrentQty") %>'></asp:TextBox>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn DataField="CurrentPay" HeaderText="TT Thực Tế" UniqueName="column7"
                                DataType="System.Int32">
                                <EditItemTemplate>
                                    <asp:Label ID="CurrentPayLabel" runat="server" Text='<%# Eval("CurrentPay") %>'></asp:Label>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:TextBox ID="CurrentPayTextBox" runat="server" Width="50" Text='<%# Eval("CurrentPay") %>'></asp:TextBox>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataField="DifferenceQty" HeaderText="SL Phát Sinh" UniqueName="column9">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="DifferencePrice" HeaderText="CP Phát Sinh" UniqueName="column10">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="TotalPrice" HeaderText="Thành Tiền" UniqueName="column11">
                            </telerik:GridBoundColumn>
                        </Columns>
                        <FooterStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" ForeColor="Red" Wrap="True" />
                    </telerik:GridTableView>
                </DetailTables>
            </MasterTableView>
        </telerik:RadGrid>
<asp:Button ID="Button1" runat="server" Text="Next" 
                    onclick="Button1_Click" />
Ho Tri
Top achievements
Rank 1
 answered on 17 Sep 2011
2 answers
110 views
I was thinking, I know it dangerous for me to do.  Is there any Telerik user groups in the chicago area?

thanks in advance,
John
John
Top achievements
Rank 2
 answered on 16 Sep 2011
1 answer
196 views
Hi,

I have a test where I want to verify that a certain document ID is routed correctly on the system I am testing.  However, the document ID is generated as part of an earlier test step & changes each time a new document is created.  So each time I run the test the document ID is different & I don't know what the ID will be until it is generated as part of the previous step.  Is it possible for me to capture the document ID when it is created and use that information it in a later verification step? 

The only way I could think of to test this would be to set up a separate test to create the document ID then another test for the verification and update the verification test each time once I know the document ID that has been generated.

Thanks
Stoich
Telerik team
 answered on 16 Sep 2011
4 answers
123 views

We want to automate some tests against our Silverlight application. Trying out the „Test Studio“, I managed to record a Login action, but the recoded Steps just don’t get replayed. At playback, the IE starts up and then stays at “about:blank“ till the timeout.  In the log file, I saw the following error messages:

 

Overall Result: Fail
------------------------------------------------------------
'14.09.2011 20:23:06' - Starting execution....
'14.09.2011 20:23:06' - Detected a Silverlight Test. Setting EnableSilverlight=True
------------------------------------------------------------
'14.09.2011 20:23:42' - 'Fail' : 1. Click LoginButton
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Unable to find the Silverlight plugin on the following page:'about:blank' using the following expression:'[id 'Exact' silverlightControlHost] AND [tagname 'Exact' div][tagname 'Exact' object]'. Exception: System.TimeoutException: Wait for condition has timed out  
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)  
at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout)  
at ArtOfTest.WebAii.Synchronization.Wait.ForCondition(Func`3 condition, Boolean invertCondition, Object custom, Int32 timeout)  
at ArtOfTest.WebAii.Synchronization.Wait.ForExists(Int32 timeout, Boolean refreshElement)  
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetHost(IAutomationHost topBrowser, ElementDescriptor element, Int32 hostFindTimeout, Int32 appConnectTimeout, Boolean cachedSLAppOnly, String& error)

 

I read some other threads of the similar problem; the suggested solution would be to, turn-off the IE’s “Protected Mode“ using the checkbox on the Security tab of IE. Unfortunately, my PC is running with Windows XP and IE8., there is no such checkbox for IE8 on Windows XP.  Protected Mode is only available on Windows Vista because it is based on security features new to Windows Vista.   

I can’t upgrade my PC to Vista. So I wonder if there is other way to overcome this problem. Any idea would be appreciated.  

 

Cody
Telerik team
 answered on 15 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?