Telerik Forums
Test Studio Forum
1 answer
68 views
Hi, 

We are trying to run our Telerik UI tests from Visual Studio and getting the below error.

Result
Message:        

------------------------------------------------------------

'12/1/2014
3:55:25 PM' - Executing test: 'BingTest', path: 'BingTest.tstest.'

'12/1/2014
3:55:25 PM' - Using .Net Runtime version: '4.0.30319.34014' for test execution.
Build version is '2014.3.903.0'.

'12/1/2014
3:55:25 PM' - Starting execution....

'12/1/2014
3:56:26 PM' - Failure detected during execution. Details:

------------------------------------------------------------

'12/1/2014
3:56:26 PM' - System.TimeoutException: Wait for condition has timed out

   at
ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo,
Object target)

   at
ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean
invertCondition, Int32 timeout, WaitResultType errorResultType)

   at
ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean
invertCondition, Int32 timeout)

   at
ArtOfTest.WebAii.Core.Manager.WaitForBrowserToConnect(Int32
browserIndexToWaitFor)

   at
ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch,
Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String
arguments)

   at
ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InitializeWeb(ExecutionEngineCreateParams
initParams)

   at
ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.CreateAndInitializeEngine(Test
test, ExecutionEngineCreateParams cp)

   at
ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand
command)

------------------------------------------------------------

'12/1/2014
3:56:26 PM' - Test completed!



The test has just 2 steps.

Navigate to 'http://bing.com'
Verify 'TextContent'
'Contains' 'Make Bing my homepage' on 'DhpLink' 

When I run the test, Internet explorer opens, but it times out and doesn't even navigate to bing when executed from Visual studio or MTM. On the other hand, it works perfectly from Telerik Test Studio.  

We get the same error even running our other test scripts. Please could you help us resolve this issue?

Thanks,
Niharika

Cody
Telerik team
 answered on 05 Dec 2014
1 answer
95 views
Hi

This is my first time recording an automated test using Telerik, I am recording a click on drop down and then selecting a check box in that list of values.
When i playback, this test step is failing. Can you please suggest a way on how to record this or if i have to add some code in order to record the above
function
 Below is the error i am getting when executing

Failure
Information: ~~~~~~~~~~~~~~~Unable to find the target host
(Browser/SilverlightApp) to locate an element. Failure: Waiting
for frame '[Frame:id=resultFrame,name=resultFrame,src=https://" + Mscrm.CrmUri.create("/_static/blank.htm").toString() + ",UseQuery:False]' timed out. Error: Wait for condition has timed outInnerException:System.Exception:

Unable to find the target host (Browser/SilverlightApp) to locate an
element. Failure: Waiting for frame '[Frame:id=resultFrame,name=resultFrame,src=https://" + Mscrm.CrmUri.create("/_static/blank.htm").toString() +
",UseQuery:False]' timed out. Error: Wait for condition has timed out   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout)   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32
order)------------------------------------------------------------'12/1/2014
4:33:12 PM' - Detected a failure. Step is marked
'ContinueOnFailure=False' aborting test execution.------------------------------------------------------------'12/1/2014 4:33:12 PM'
- Overall Result: Fail'12/1/2014 4:33:12 PM' - Duration: [1 min: 25 sec: 365 msec]

Thanks,
Harika
Boyan Boev
Telerik team
 answered on 04 Dec 2014
1 answer
67 views
Hi,
When I attempt to see if an item is visible, I receive an error when the object is not there.  I do not see an error when it's there.  Is thee a way to find out if it there with out an error when its not?

Thanks,
John 



bool Isthere = false;

Isthere = Pages.JointCommissionResources17.EnterpriseCell.IsVisible();

'12/1/2014 3:45:00 PM' - 'Fail' : 3. [PortalSelectOrgList_CodedStep] : RadComboBox('rcbSite'): selecting item with index '0'------------------------------------------------------------Failure Information: ~~~~~~~~~~~~~~~Exception thrown executing coded step: '[PortalSelectOrgList_CodedStep] : RadComboBox('rcbSite'): selecting item with index '0''.InnerException:ArtOfTest.Common.Exceptions.FindElementException: Element Not found!FindExpression used: [id 'Exact' rcbSite] AND [tagname 'Exact' div] at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target) at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType) at ArtOfTest.WebAii.Synchronization.Wait.ForCondition(Func`3 condition, Boolean invertCondition, Object custom, Int32 timeout, WaitResultType errorResultType) at ArtOfTest.WebAii.Synchronization.Wait.ForExists(Int32 timeout, Boolean refreshElement) at ArtOfTest.WebAii.TestTemplates.HtmlElementContainer.GetElement(HtmlFindExpression expr, Boolean waitOnElement, Int32 timeout) at ArtOfTest.WebAii.TestTemplates.ElementContainer`2.Get(TFindExpression expr, Boolean waitOnElement, Int32 timeout) at ArtOfTest.WebAii.TestTemplates.HtmlElementContainer.Get(HtmlFindExpression expr) at ArtOfTest.WebAii.TestTemplates.HtmlElementContainer.Get[TControl](HtmlFindExpression expr) at ArtOfTest.WebAii.TestTemplates.HtmlElementContainer.Get[TControl](String[] clauses) at EProducts1.Pages.JointCommissionResources0Page.get_RcbSiteDiv() in \\jcrfs1\com_software$\TelerikProjects\EProducts\EProducts1\Pages.g.cs:line 664 at EProducts1.PortalSelectOrgList.PortalSelectOrgList_CodedStep() in \\jcrfs1\com_software$\TelerikProjects\EProducts\EProducts1\Portal\PortalSelectOrgList.tstest.cs:line 63
Boyan Boev
Telerik team
 answered on 04 Dec 2014
3 answers
140 views
I cannot seem to figure out how to hold CTRL and select multiple RadGridView cells to select multiple rows at once.

When I attempt to record the actions, each time I hold CTRL and click a row, the recorder opens the record rather than just selects it.

When I attempt to use the following snippets of code to select a cell in row 1 and 2, the first selection is not retained:

RadGridView grid = Pages.Test.SilverlightApp.TestRadGridView;

grid.Rows[0].Cells[0].User.Click(MouseClickType.LeftClick, 1, 1, ArtOfTest.Common.OffsetReference.TopLeftCorner, ArtOfTest.Common.ActionPointUnitType.Percentage, ((System.Windows.Forms.Keys)(131072)));
grid.Rows[1].Cells[0].User.Click(MouseClickType.LeftClick, 1, 1, ArtOfTest.Common.OffsetReference.TopLeftCorner, ArtOfTest.Common.ActionPointUnitType.Percentage, ((System.Windows.Forms.Keys)(131072)));

How can I hold CTRL and select more than 1 RadGridView item, and retain each item(s) selected previously?

Thanks,
Nick
Ivaylo
Telerik team
 answered on 04 Dec 2014
1 answer
100 views
I recorded a test in Chrome that involves clicking on a button to upload a file and it runs without failures in Internet Explorer. In Chrome the test hangs when trying to press the button. The test records that clicking the button was successful but no dialog opens. If I manually click on the button during the test, the test completes the remaining steps (inputting a path and clicking Open) successfully. I'm using the latest version of Test Studio and Chrome. Any ideas how I could fix this issue?
Boyan Boev
Telerik team
 answered on 03 Dec 2014
3 answers
71 views
Hi,
is it possible to use this tool for UI testing on Sharepoint 2010?

Can you provide me with some additional documentation/examples/resources about that?

Best regards,
Marko
Cody
Telerik team
 answered on 02 Dec 2014
1 answer
62 views
Following is my logic. 
I have 2 excel. 1 is master excel with Y/N and 2nd is with data.

So as per my script. First script opens up the master excel and reads the value "Y/N"

If the value is "Y" it should execute certain scripts and move on to next row till end of row with values "Y/N"

So as of now i have read the value from excel through coded step. and i have the value in a variable in Coded step.

Now i want to use the value "Y" in my script inside If logic. I dont no how to use that. Can someone please help on this?

My script currently looks like this. attached.
Boyan Boev
Telerik team
 answered on 01 Dec 2014
1 answer
87 views
When I try to connect to TFS, it freezes and I get the "has stopped working" pop up and forced to close program.

I get the same problem when trying to import projects, except it gets about 47 out of 49 transferred before crashing.

When looking it up in eventviewer it showed it was ntdll.dll.
Anyone else having these issues? I tried searching forum beforehand and couldn't find anything that seemed to be the same issue.

Connected to VisualStudio, have restarted computer, uninstalled and re installed, and have updated everything. 
Ivaylo
Telerik team
 answered on 26 Nov 2014
1 answer
78 views
Hello,

I write tests in Test Studio mostly using the coded steps, but I need to handle Open/Save dialogs in my WPF Application.  I was trying to use Telerik's build in dialog test step "Handle 'OpenFile' dialog" and this appeared to be working, but after typing in the file name and clicking Open, the application seemed to freeze.  I manually aborted the test and decided to try writing this in code instead.  I'd prefer to do this in code so I can define a variable for the filepath.

I noticed that the ArtOfTest.WebAii.Win32.Dialogs namespace does NOT have an OpenFileDialog class listed as an option!  I am running the latest Test Studio, 2014.3.903.0.  I noticed many other Dialog classes seem available such as GenericDialog and FileUploadDialog, but the OpenFileDialog and SaveFileDialog classes are missing.  Any thoughts or suggestions?

Thanks,
Danielle
Cody
Telerik team
 answered on 25 Nov 2014
1 answer
80 views
I am trying to implement wait on a simple assertion and have set the "WaitonElementsTimeOut" to 30 second , attached is the image. But the assertion does not wait for 30 seconds and just moves ahead.

I know i am doing something utterly stupid please help.
Cody
Telerik team
 answered on 25 Nov 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
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?