Telerik Forums
Test Studio Forum
3 answers
185 views
Hi All,

I'm currently doing interface/verification testing and would greatly appreciate how to set "Toggle Continue On Failure" as default, is there a simple way to do this?

Thanks
Dan
Dan
Top achievements
Rank 1
 answered on 26 Oct 2011
1 answer
191 views
Hi all!
I was using trial version of telerik test studio TestStudio_2001_1_712, then I upgraded to a newer version TestStudio_2001_2_928. after upgrading, I opened my test project (and of course the project was converted to the newer version). The problem is: All the test (recorded step or coded step) are unable to run. File log is following
.............................

ExecuteCommand failed!InError set by the client. Client Error:System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) at mshtml.HTMLLocationClass.get_href() at ArtOfTest.InternetExplorer.IECommandProcessor.SetCurrentDocumentMarkup(BrowserCommand& response) at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessInformationCommands(BrowserCommand request) at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'Client_3ecdd8b9-8844-4643-809f-bf8316271f38',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) at mshtml.HTMLLocationClass.get_href() at ArtOfTest.InternetExplorer.IECommandProcessor.SetCurrentDocumentMarkup(BrowserCommand& response) at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessInformationCommands(BrowserCommand request) at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')InnerException: none.

...................................

Anyone can help me!
Thanks a lot

Anthony
Telerik team
 answered on 26 Oct 2011
4 answers
263 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
118 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
50 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
155 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
179 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
97 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
207 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
139 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
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?