Telerik Forums
Test Studio Forum
4 answers
102 views
Hey,

So WPF app has one Xaml for similar dialog. And because of this, all of the different ok and cancel buttons throughout the app have the same automation id. When I create a test that hits more than one of these dialogs, the test originally ties them to the correct dialog window and will pass. But when I close test studio and come back, it merges all of the steps that hit a cancel button into the same dialog (usually the first one hit in the test). So when the second dialog window comes up with a different title, the test is changing the primary target in the step properties to the first dialog hit in the test, causing a timeout, even though the elements in test studio are named differently and in the elements explorer are categorized under the correct title.

I can't figure out a workaround.
Daniel Djambov
Telerik team
 answered on 21 Apr 2014
2 answers
120 views
Hello,

I'm trying to run a test on a combo box containing variable items in a silverlight application. I need to select each item from the list and verify that a chart appears. The lists can be quite long, and sometimes a slider bar is needed to scroll to the bottom 

I was hoping to use a while loop somehow, but when i try to create validations for the combo box item, I can only base it on the property, visibility, location or tooltip, nothing about the position in the list.  The combobox itself also has a combobox verification "Selected item is index '0'", however I cant see a way relate this to the number of entries in the list either as it only changes between 0 and -1 for the list entries.

Another issue is that as there is also a slider bar when the list is long, i need to be able to scroll down once i reach the bottom of the visible list.

What is the best way to go about testing this? I've attached a photo which will hopefully help describe what i mean.

Thanks in advance
Daniel Djambov
Telerik team
 answered on 18 Apr 2014
5 answers
129 views
Is it possible to record browser interactions?  Not application interactions within a browser, but the browser interactions themselves.  Things like:
    1. 1.  Minimize, Maximize, Restore, etc.
    2. 2.  Selecting something from the Favorites list.
    3. 3.  Something from the File, Edit, View, etc. browser menu selections.
    4. 4.  etc.

It does recognize the Back button, but that's about it.

Boyan Boev
Telerik team
 answered on 18 Apr 2014
1 answer
104 views
Hi,

I understand how to set up bindings for things like BaseURL, etc.  This
works nicely.  However, I want to also bind to the "Count"
property of one of my loops so that I can use a data driven element to specify
how many times for my loop to run.  Is this possible? 


Another binding I would like to do is the "WaitTime" property on a
"Execution Delay" for example.

Can someone recommend a way to bind these properties?


Thanks,

Steve

Daniel Djambov
Telerik team
 answered on 18 Apr 2014
13 answers
514 views
We just created a Team Foundation Service project, and we are receiving the following error when trying to connect Test Studio to our project in TFS.

We just get a error message that says TF400813: Resource not available for anonymous access. Client authentication required.

It never gives us a popup to enter my microsoft account information, just an error message after I click connect. (See Picture)

The info in the fields is:

TFS 2010/2012/2013:    checked
HTTPS:    checked
Virtual Directory:   null
Collections:   defaultcollection
TFS Server Name:   hdslabs.visualstudio.com

[10/29 14:45:52,Telerik.TestStudio.exe(1016:33)] First trace message from pool unnamed thread (managed ID = 33, native ID = 100).
[10/29 14:45:52,Telerik.TestStudio.exe(1016:33),TeamFoundationServer] TFSServer.ConnectToServer() : ------- Function Start -------
[10/29 14:45:53,Telerik.TestStudio.exe(1016:33),TeamFoundationServer] TFSServer.ConnectToServer() : EXCEPTION! (see below)
     Situation: Exception connecting to TFS server
     Outer Exception Type: Microsoft.TeamFoundation.TeamFoundationServiceUnavailableException
     Message: Team Foundation services are not available from server https://hdslabs.visualstudio.com/defaultcollections.
          Technical information (for administrator):
          TF400813: Resource not available for anonymous access. Client authentication required.
     HRESULT: 0x80131600 (Official ID (if app.) = COR_E_APPLICATION, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5632)
     Call Stack:
          at Microsoft.TeamFoundation.Client.TeamFoundationSoapProxy.ThrowIfServiceUnavailable(HttpWebResponse response, TfsConnection tfs, String nameOrUri)
          at Microsoft.TeamFoundation.Client.TeamFoundationSoapProxy.GetWebResponse(WebRequest request)
          at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
          at Microsoft.TeamFoundation.Proxy.BisRegistrationServiceProxyWsdl.GetRegistrationEntries(String toolId)
          at Microsoft.TeamFoundation.Proxy.BisRegistrationProxy.GetRegistrationEntries(String toolId)
          at Microsoft.TeamFoundation.Proxy.BisRegistrationService.RefreshMemoryCache()
          at Microsoft.TeamFoundation.Proxy.BisRegistrationService.RefreshCachesIfNeeded(Boolean direct)
          at Microsoft.TeamFoundation.Proxy.BisRegistrationService.GetRegistrationEntries(String toolId)
          at Microsoft.TeamFoundation.Framework.Client.PreFrameworkServerDataProvider.FindServiceLocation(String serviceType, String toolId)
          at Microsoft.TeamFoundation.Framework.Client.PreFrameworkServerDataProvider.LocationForCurrentConnection(String serviceType, Guid serviceIdentifier)
          at Microsoft.TeamFoundation.Client.TfsConnection.EnsureProviderConnected()
          at Microsoft.TeamFoundation.Client.TfsConnection.<EnsureAuthenticated>b__0()
          at Microsoft.TeamFoundation.Client.TfsConnection.UseCredentialsProviderOnFailure(Action action)
          at Microsoft.TeamFoundation.Client.TfsConnection.EnsureAuthenticated()
          at ArtOfTest.Common.TFSClient.TFSServer.ConnectToServer(IServerInfo server)

[10/29 14:45:53,Telerik.TestStudio.exe(1016:33),TeamFoundationServer] TFSServer.ConnectToServer() : ------- Function End -------

Boyan Boev
Telerik team
 answered on 18 Apr 2014
4 answers
159 views
I have following problem with "Handle Alert Dialog" function.
I close window and alert is displayed.
http://screencast.com/t/xOYEwxrQsn4

I have following steps in my code:
http://screencast.com/t/tsmKnsQW4T

If I run test step which closes window doesn't finished because alert is displayed but alert can't be processed because previous step is not finished yet.
Boyan Boev
Telerik team
 answered on 18 Apr 2014
1 answer
72 views
If TESTS  mode over the "step" ( for example, «Click OKButtonRadbutton1» ) the
operation CUSTOMIZE STEP IN CODE, then the operation is converted to the form:

Script   "[NameTest_CodedStep1]: Click OKButtonRadbutton1, RequiresSilverlight =
true" .

Or not there is an inverse operation?
How to return to the original view?
Boyan Boev
Telerik team
 answered on 18 Apr 2014
1 answer
58 views
How I could search and modify generated code from one “step” of
test ?
Boyan Boev
Telerik team
 answered on 18 Apr 2014
4 answers
276 views
Is there a way to verify that a Silverlight text block is underlined? 

I have looked at the Quick Commands menu as well as the Build Verification dialog - the latter has several commands for Fonts but not one for underline.

I also looked at the solution for verifying text color in the following thread (that uses AutomationProperty to get color).  I thought I could use a similar technique for underline.   However, I wasn't sure if there was another Automation property for underline.

http://www.telerik.com/forums/foreground-colors-server-error-on-other-thread

Any help would be much appreciated.  Please note the version of Test Studio I am using in my signature.  Also, please note that I need a solution that will work on text that appears on a Telerik RichTextBox control.

Thanks,
Shashi
Test Studio 2012.2.1420.0 (Visual Studio add-in)
Shashi
Top achievements
Rank 1
 answered on 16 Apr 2014
1 answer
39 views
Hi,

How to access the Silverlight Grid through VB/C# coding..

1. How to get Row/Column count?
2. How to get cell values?
3. How to click on Hyperlink inside cell?
4. How to check on check boxes inside cell?
5. Please share all the concepts with coding for silverlight Grid..

Please find the attachment..

Thank you.
Rajediran.P
Ivaylo
Telerik team
 answered on 16 Apr 2014
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?