Telerik Forums
Test Studio Forum
1 answer
123 views
I am trying to test my Silverlight app and I need to select multiple items by both ctl + and shift + . I need to do this programmatically and I can't figure out how to do this. I tried with the recorder to see how it might be done and I see that when I record multiple selections, they play back as single selections. This is a major blocker for my company to accept Telerik testing, so I am trying to figure out what to do about this. I saw a post of bug fixes from some recent drop and I noticed that modifier keys were no longer being recorded. Why would this be removed if it is necessary for basic functionality? Is there another way to accomplish this programmatically? I tried to access the SelectedItems property but it comes back as the datatype (as in the .ToString()) of the backing collection, not as the actual value itself, so I can't set this to get around the single user click.

UPDATE!!!
My mistake. Temporarily forgot the overloads to click that allow for modifier keys. Keys.Control seems to work just fine. No need to responsd with same info.
Stoich
Telerik team
 answered on 30 Jan 2012
1 answer
63 views
I recorded test with recorder for Silverlight elements. It successfully passed. But if I try to "Edit Element" from Element Explorer element can't be found by Telerik.

Following find string was used by Recorder
XamlTag=stackpanel,name=WonOppPanel,|,XamlPath=/grid[2]/complexmoneytextblock[0]/textblock[automationid=MainTextBlock]
http://screencast.com/t/Ehr8deZDc
http://screencast.com/t/3kg0KXur
Anthony
Telerik team
 answered on 27 Jan 2012
4 answers
123 views

Hi,

I had a test that clicks on a button from a pop up window, that opened a new pop up window. When I tried to close the second pop up window, then is closed the first one and the test fail.

In the attachment is the zip generated from Web UI with more details.

the connection with both pop ups look good, but when close second pop up, looks like is not read correctly.

How can I  resolve this?


Thanks,
Cody
Telerik team
 answered on 27 Jan 2012
2 answers
134 views
Hi Telerik Team,

I've encountered this error today.

ArtOfTest.Common.Design.Exceptions.ExecutionException: Unable to determine the type of 'raddatepicker' element. Check the log for details. ---> System.ArgumentException: Unable to determine the type of 'raddatepicker' element. Check the log for details.
   at ArtOfTest.WebAii.Silverlight.FrameworkElement.CastAs[T]()
   at Telerik.WebAii.Design.Translators.Xaml.DatePicker.DatePickerStringPropertyVerification.GetValueByProperty(String name)
   at Telerik.WebAii.Design.Translators.Xaml.Common.RadControlPropertyVerificationDescriptor.ExtractData(IApplication hostApp, DescriptorValueStore dataStore)
   at ArtOfTest.WebAii.Design.Extensibility.XamlVerificationDescriptor.ExtractData(IAutomationHost targetHost, DescriptorValueStore dataStore)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
   --- End of inner exception stack trace ---


ArtOfTest.Common.Design.Exceptions.ExecutionException: Unable to determine the type of 'radrichtextbox' element. Check the log for details. ---> System.ArgumentException: Unable to determine the type of 'radrichtextbox' element. Check the log for details.
   at ArtOfTest.WebAii.Silverlight.FrameworkElement.CastAs[T]()
   at Telerik.WebAii.Design.Translators.Xaml.Documents.RichTextBoxSetTextAction.Execute(IApplication appHost)
   at ArtOfTest.WebAii.Design.Extensibility.XamlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
   --- End of inner exception stack trace ---

The test where this step belongs to is a Test as Step for my Main Test. So when I run my Sub Test it passes successfully but when its inside the Main Test it fails. It also happens to radrichtextbox. Also the Main Test passes successfully in the past.

The raddatepicker is a Extract step and the radrichtextbox is Entering a value. Also when I validate the element it is located.

Thanks
Mariko
Top achievements
Rank 1
 answered on 27 Jan 2012
2 answers
82 views

Hi,

I was trying to record when a user clicks to play a youtube video from a Pop up window.  There is a way to record this action?

In the attachment is the image of the page I tried to record.  The connection with Pop-up is OK, but I need to test when user clicks on the Youtube video.

Thanks

 
Karla
Top achievements
Rank 1
 answered on 27 Jan 2012
9 answers
216 views
Hello,
         Is there a way a I can set a project wide variable that I can access from all the tests in the project? I would like to be able to use the same string throughout all of the tests in the project.
Anthony
Telerik team
 answered on 26 Jan 2012
1 answer
71 views
Hello, I need to verify that item1 or item2 are selected from a drop down. I can only figure out how to verify one selection from a drop down from Advance Verification. I need to plug this verification into an If then else statement.

So for example, if item 1 or item 2 are selected then do something. When item3 or item4 are selected then do this other thing.

Thank you - Mallory
Anthony
Telerik team
 answered on 25 Jan 2012
1 answer
85 views

I'm recording steps within a browser panel, which requires that I scroll during recording in order to enter data into a field. Upon playback, because of this need to scroll, I'm getting an outside bounds of browser window error:

Point (515, 1345) outside bounds of browser window: (0, 162, 1920, 855)InnerException:System.InvalidOperationException: Point (515, 1345) outside bounds of browser window: (0, 162, 1920, 855) at ArtOfTest.WebAii.Silverlight.SilverlightApp.ValidateMouseLocation(Point point) at ArtOfTest.WebAii.Silverlight.UserInteraction.Click(MouseClickType clickType, Point offsetPoint, OffsetReference reference) at ArtOfTest.WebAii.Silverlight.UserInteraction.Click(MouseClickType clickType, Int32 x, Int32 y, OffsetReference reference, ActionPointUnitType unitType) at ArtOfTest.WebAii.Silverlight.UserInteraction.Click(MouseClickType clickType, Int32 x, Int32 y, OffsetReference reference, ActionPointUnitType unitType, Keys modifierKeys) at ArtOfTest.WebAii.Design.IntrinsicTranslators.Silverlight.Descriptors.SilverlightClickActionDescriptor.Execute(IApplication hostApp) at ArtOfTest.WebAii.Design.Extensibility.XamlActionDescriptor.Execute(IAutomationHost autoHost) at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

I don't know how to work around this issue.

Cody
Telerik team
 answered on 25 Jan 2012
1 answer
132 views
hi,
I want to ask how to handle login dialog if am using windows 98..?
Anthony
Telerik team
 answered on 25 Jan 2012
2 answers
110 views
I created project A, someone else created project B. Both projects are in TFS.

In Test Studio, when I select project B, and Get Latest, I don't get the files from project B but I do see folders. The same occurs for the creator of project B when they try to Get Latest from project A.

I'm wondering if the folder structure within TFS is an issue.
It's like this:

Project A
    ProjectA_Folder1
    ProjectA_Folder2
    ProjectA_Folder3
    ProjectA_Folder4
    ProjectB_MainFolder

Project B is just a test project and can easily be moved or deleted.
Chris
Top achievements
Rank 1
 answered on 24 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?