Telerik Forums
Test Studio Forum
1 answer
346 views
Hi,

I have to test the mandatory fields of a form. So I try to save the data without fill in all the fields.
There is a javascript to pop up the alert dialog. And I try to handle the dialog (Button OK to continue).

The excecution fail on IE and Firefox.
I get this 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)

On Chrome and Safari, this works fine.

Can you help me to make this step works on IE and Firefox ?

Thanks,

Pierre
Anthony
Telerik team
 answered on 01 Aug 2011
2 answers
122 views
Hi Telerik team,

I am trying to verify the contents of a RadGridView control. The rows from the grid are results of the Find function.
For example I tried to search for 'firstname' the grid will give me:

First Name Last Name Middle Name
firstname1 lastname1 m
firstname2 lastname2 m

I used the "hover over highlighting = enabled" to get the RadGridview control properties and perform verification.
I explored the "Quick Tasks" for getting the verification but I didn't find any.
I also explored the "Build Verification" and also no luck.
So I tried adding a custom step but when I write this code,
Assert.IsFalse((ArtOfTest.Common.CompareUtils.StringCompare(Pages.CreateNewMeeting.SilverlightApp.FindResultsGridViewRadgridview.Rows.ToString(), "firstname", ArtOfTest.Common.StringCompareType.Contains) == false));
I am encountering

System.NullReferenceException: Object reference not set to an instance of an object. at Telerik.WebAii.Controls.Xaml.RadGridView.get_GroupRows() at Telerik.WebAii.Controls.Xaml.RadGridView.get_Rows() at ...

In Coded UI, we are using this approach where we highlight the whole table and get the "InnerText" property.
It will give us this result:
"First NameLast NameMiddle Namefirstname1lastname1mfirstname2lastname2m"
So, for verification, we simply put something like this:
Assert.IsTrue(Pages.CreateNewMeeting.SilverlightApp.FindResultsGridViewRadgridview.Rows.Contains("firstname"));

Any thoughts on this?

Thanks,
Mariko

Mariko
Top achievements
Rank 1
 answered on 01 Aug 2011
3 answers
83 views
I was trying to add a verification step where I check the language on a button
I went to my element library, clicked on the button and then selected Step Builder
My button  is defined as
tagname=button,InnerText=Calculate

I was given a list of verifications which I could choose to use, one of the verifications was the TextContent.  When I looked at the TextContent it was empty.  When I added it to my script the expected string value was empty. 

After addiing a verificatiion using Step Builder do you expect users to enter the string or is this a bug?

Thanks
Mark
Top achievements
Rank 1
 answered on 31 Jul 2011
1 answer
114 views
Hi Team,

I am experiencing an object identification failure issue while executing f my scripts,Actually one of my objects is failing in one script but the same object is handled properly by other script.
These 2 scripts are defined as methods in same class which access a common method defined in the class.

Also i have used sufficient wait intervals.

The error is like , "Object reference not set to an instance of an object"



Thanks & Regards,
Dev
Konstantin Petkov
Telerik team
 answered on 30 Jul 2011
3 answers
114 views
Hi there,

I just noticed that if I ran a telerik test I've created from a port number as so: http://localhost:15457, and the tests have verifications captured or even pressing on buttons, they would fail when playing back if the port number is changed or a different user from their workstation has a different port number.  It seems it's only happening when doing stuff in a popup window.

Is there a way to fix this?

Thanks,
Dean
Anthony
Telerik team
 answered on 29 Jul 2011
4 answers
149 views
I installed the full (paid) version in a system in which the trial had been installed. During installation, I got a message telling that an old version was installed, I choose to upgrade. Installation finished without errors or warnings.

However, each time I start TestStudio I get a screen:
 "Activating your TRIAL",
asking for my account and user. I fill these fields, and I get "Invalid username and/or password". Both are right, (I am logged in with those just now). If I press the "Manual" button, I get another error
"An unexpected error occured in Test Studio. The error has been reported to the Telerik Team, Do you want to save your work"?

W7 professional 64 bit, VS2010

Help please!


Cody
Telerik team
 answered on 28 Jul 2011
1 answer
115 views
Good Afternoon,

I am attempting to run a newly created Custom Coded Step from the Test Studio Trial Edition.
I receive the following error when attempting to access the bound datasource information...

C:\Users\n0145732\Documents\Test Studio Projects\CFI_NextGen\Common\Test Harness\TestHarness.tstest.vb: Line 74: (BC30009) Reference required to assembly 'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' containing the implemented interface 'System.Xml.Serialization.IXmlSerializable'. Add one to your project.

What I have found is that my coded step had a bound data source ( Excel File ) that I am attempting to access using the following line of code:

Dim variable As String = ExecutionContext.DataSource.Rows(0).Item("test")

Can someone provide some feedback into what the issue might be or what I may be doing wrong?

Thank you,
Craig
Anthony
Telerik team
 answered on 28 Jul 2011
2 answers
127 views
I have a script that contains about 176 steps.  Within those 176 steps I have about 20 coded steps, the coded steps are sprinkled throughout the test.  I needed to change the names of the coded steps, rather than open up each coded step one at a time, I clicked on the "class" button so that I could scroll through all of the code for the test and change the step names all at one time.  I changed the names of the coded steps, closed the class, saved the class and then noticed that Test Studio had moved everyone of the coded steps to the bottom of the test. Obviously having the test rearranged was not what I was looking for.   Has this happened to anyone else?
Shashi
Top achievements
Rank 1
 answered on 28 Jul 2011
5 answers
116 views
I am currently attempting to launch a test in Safari 5.1. Unfortunately, Safari hangs and I receive the following error from Test Studio:

------------------------------------------------------------
'7/26/2011 4:03:27 PM' - Starting execution....
'7/26/2011 4:03:58 PM' - Failure detected during execution. Details:
------------------------------------------------------------
'7/26/2011 4:03:58 PM' - System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
   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(Test test, Settings settings, String deploymentFolder, String binariesFolder, ExecutionType exeType, Guid firstStepGuid, Guid lastStepGuid, IntPtr existingBrowserHandle, DebuggerOptions debuggerOptions)
------------------------------------------------------------
'7/26/2011 4:03:58 PM' - Test completed!


I have silverlight installed and I have double checked all of the configuration settings for Safari.

Anyone have any thoughts?

Thank you
Anthony
Telerik team
 answered on 28 Jul 2011
1 answer
106 views
Good Morning,

I am testing a web application that opens a new browser window from a launch page. I was just wondering how one would perform a wait on that new browser window to synchronize the script execution to continue.

Any thoughts?

Thank you,
Craig
Anthony
Telerik team
 answered on 27 Jul 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?