Telerik Forums
Testing Framework Forum
6 answers
311 views
Hello!

I would like to provide a self contained wrapper (licensed as non-viral open source) around the Testing Framework to serve as an adapter for an open source web control library. Since the wrapper library would be hosted in an open sourced repository, I would like for users of the library to be able to use the library without
a) running into version conflicts with the Testing Framework
b) not get Exceptions due to missing references because the Testing Framework is not installed.

I believe these issues could be solved if the Testing Framework where to be available as a nuget Package. Is there a way to accomplish this via nuget or an alternative means?

Best regards, Michael
Elena
Telerik team
 answered on 22 Dec 2016
3 answers
116 views

Hello,

I am trying to do something seemingly simple and that is to get the background color of a particular element in order to validate whether or not it is correct based on the business rules. The element in questions follows this configuration:

<input id="someID" class="there is some information here" tabindex="-32767" title="title" style="background-color: rgb(255, 50, 50); border-width: 2px; border-style: inset; border-image: none;" type="text">

 

I am not having any trouble accessing the element and its various attributes. However, regarding the style 'background-color', I get into trouble:

HtmlInputText el = <the element referenced above>;
var bgColor = el.GetStyle("background-color");    //  <---- Throws an exception (Invalid Operation Exception).

The problem is the style, "background-color" very clearly exists as you can see in bold above. However, I cannot figure out a reliable and elegant way to pull it out and get its value. Perhaps my approach to this problem is going down the wrong track?

Thanks for your help,

tsjax

Boyan Boev
Telerik team
 answered on 21 Dec 2016
1 answer
93 views

Hi,
Is there a resource for best practice when creating various types of automated test ?
Thank you !

Nikolay Petrov
Telerik team
 answered on 20 Dec 2016
1 answer
86 views

Hello Telerik, 

I am attempting to automate an HtmlInputNumber control. Can you please provide a working example of how this control can be automated?

My company appears to be using the HtmlInputNumer control in this fashion: 

1. 'Step up' (clicking up arrow in textbox UI) to a certain number

2. This 'step up' action once clicked, enables another button on the page. 

However, when I create the control using Telerik and attempt to use the HtmlInputNumberControl.StepUp(5) method - it only inputs the number, it doesn't enable any controls. So it appears that the step up control is not behaving as if it would truly behave in the UI. 

Thoughts? 

Lauren

Elena
Telerik team
 answered on 15 Dec 2016
1 answer
104 views

Trying to connect Samsung S5 device to Test Studio.  In my settings lie the Message Server Ip which is configured to "localhost" and the Message server port which is configured to "8084".

 

I click "Connect Device" to connect the device and the system reads my phone information via USB with the Port set to 8082, but I'm getting "device failed to connect on port 8082!"  I've tried every possible port, same result.  Out of ideas.  Helpppp

Elena
Telerik team
 answered on 12 Dec 2016
1 answer
133 views

Hi,

I wan to use Telerik Test Framework for WPF UI automation.

To find the controls I am using:

 return Get<ArtOfTest.WebAii.Controls.Xaml.Wpf.TextBlock>(
                            "XamlTag=contentpresenter",
                            "name=SelectedTabContent",
                            "|",
                      @"XamlPath=/grid[name=ContentPanel]/ribbonscrollviewer[name=TabItemsScrollViewer]/grid[0]/contentpresenter[name=Content]/itemspresenter[0]/ribbongroupspanel[0]/radribbongroup[0]/grid[0]/groupchrome[name=ExpandedChrome]/grid[0]/grid[name=Tray]/contentcontrol[0]/contentpresenter[0]/radribbongroup[automationid=GroupName]/grid[0]/groupchrome[name=ExpandedChrome]/grid[0]/grid[name=Tray]/contentcontrol[0]/contentpresenter[0]/textblock[0]");

Could you please let me know from where I can generate the XamlPath used above, or for that we need to use the paid functionality of DOM explorer?

Thanks,

Kanwar

Boyan Boev
Telerik team
 answered on 09 Dec 2016
4 answers
124 views

I've created a test on my local box and it works flawlessly. I've set up an execution server on the Windows Server 2012 R2 virtual machine using the TestStudio Runtime version 2016_3_0928_5. When I try to run the test on the remote server it fails with the following result log

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

'12/5/2016 9:25:25 AM' - Executing test: 'PropertyOne-T1', path: 'PropertyOne-T1.tstest.'
'12/5/2016 9:25:25 AM' - Using .Net Runtime version: '4.0.30319.34209' for test execution. Build version is '2016.3.928.0'.
'12/5/2016 9:25:25 AM' - Starting execution....
'12/5/2016 9:26:26 AM' - Failure detected during execution. Details:
------------------------------------------------------------
'12/5/2016 9:26:26 AM' - 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/5/2016 9:26:27 AM' - Test completed!

 

I followed the documentation for configuring IE found here.

System:

OS: Windows Server 2012 R2 Datacenter
Browser: Internet Explorer 11.0.9600.146438
Test Studio: Runtime 2016.3.0928.5

 

 

 

 

Boyan Boev
Telerik team
 answered on 08 Dec 2016
28 answers
259 views
Hi I am using Telerik_Testing_Framework_2013_1_806_FREE_EDITION.msi for automation... but i am unable to run test on firefox above version 12 , for chorme we have even tried version 20 which also is not working.

We are able to run test on IE8... Please help...

The browser will display "Preparing browser for automation..." and then we get System.TimeoutException
Error Message - "Wait for condition has timed out"
Boyan Boev
Telerik team
 answered on 15 Nov 2016
11 answers
326 views
I have what seems like a simple situation that I need to test, and I'm having trouble getting the Telerik tools to do what I need.  I may be missing something entirely (and I hope I am), can someone shed some light please?

My test needs to:
navigate to the site
log in
search for a user
process some details for the user
log off
log in as someone else
search for the same user
verify that the results of the processing are displayed
log off

This needs to repeat 4 times, for 4 slightly different outcomes, with identical test steps.  The only difference is the customer detail that I am searching for.  I have the tests recorded as above, as seperate tests, each being run as a "test as step" from a main test (this is just one of potentially thousands of use cases, hence the need for re-usable test chunks).  If I data-bind the search step, then it just searches 4 times in a row, and moves on with the 4th user selected.  If I data-bind the main test, there doesn't seem to be any way to pass that data in to the child test.  Someone at Telerik has suggested that this is possible with coded steps, but I cannot find any documentation on coded steps, and so I don't quite know what functionality I have available.  I have played with this a little, but the data properties appear to be read-only, with no methods to alter them.  Can anyone suggest how I can get dynamic data to a test each time I call it?

I have even tried creating an instance of the test class in code, and setting custom properties on it directly, but this has hit a brick wall as it seems that the test class has no direct "Execute" method (just one that takes a path and runs from file, not from the instantiated object).  If I've overlooked something here, this would probably be the preferred solution.

Thanks,
Richard Hensman
Elena
Telerik team
 answered on 09 Nov 2016
6 answers
282 views
Hi I have attached a screen snapshot of windows authentication popup. I wanted to automated that, the reason is when ever I try to open the application it pops me for authentication.

The telerik automatically suppresses the window and navigates to the error page so I am not able to proceed with testing my application.. 

Is there any way I can automate the authentication window..
Boyan Boev
Telerik team
 answered on 04 Nov 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?