Telerik Forums
Test Studio Forum
4 answers
302 views
Hi Telerik Team,

1. I have two steps that handles the two dialog pop ups, the second step that handles the dialog pop up always fails. I've already included execution delay. Is that an issue? or is there a way that i can create a handler code that always run upon execution and will trigger when it detects a dialog pop-up? Like a application config.

Here's the error:

Timed out waiting '5000' msec. for any dialog to be handled '1'InnerException:System.TimeoutException: Timed out waiting '5000' msec. for any dialog to be handled '1' at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilAnyHandled(IEnumerable`1 dialogs, Int32 handleCount, Int64 timeoutMilliseconds, Boolean resetHandleCount) at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilHandled(Int32 handleCount, Int32 timeout, Boolean resetHandleCount) at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(Browser browser) at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(IAutomationHost browser) at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)


2. My recording doesn't recognize the object inside the iframe? I've already removed the BaseUrl of the IFrame and when I execute the test it fails. How can i remove the Frame Src?

UPDATE: I've already set UseQuery Property to False and Query Property to blank of the Frame Element.

Here is the error:

Unable to locate element. Details: Attempting to find [Html] element using Find logic (Html): [id 'Exact' ctl00_m_g_32993630_d000_446f_aae0_0651008dc19b_ctl00_ctl02_ctl00_toolBarTbl_RightRptControls_ctl00_ctl00_diidIOSaveItem] AND [tagname 'Exact' input]Inside Frame:[Frame:name=Frame_0,src=http://gtpdoc/sites/20114/MT1G!/1/MTG6,UseQuery:True]Unable to locate element. Search failed!


Note: The Frame Scr is dynamic since it is based on a record id.

Thanks
Anthony
Telerik team
 answered on 26 Oct 2011
1 answer
140 views
Hi,

How can i resolve this error inside frame? Because it still points to the Frame src of the recorded record url.

Inside Frame:[Frame:name=Frame_0,src=http://<RECORD URL>,UseQuery:True]

I've already set the BaseURL and Query to empty and UseQuery to False (See attached file)

Thanks

Anthony
Telerik team
 answered on 25 Oct 2011
1 answer
65 views
In test studio i am recording simple script in which person tries to login in particular website through login windows and is successful then recording stops. Then I change the password field in recorded step.And again executed the script. It fails but shows redirected page after failure of login which is not recorded in script.
Stoich
Telerik team
 answered on 25 Oct 2011
1 answer
176 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
215 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
126 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
244 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
172 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
133 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
163 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?