Telerik Forums
Testing Framework Forum
1 answer
106 views

I need to be able to access a real property which is an interface. I want to build an automation object that mirrors that real interface.

How can I go about this? I tried mirroring C# properties along with AutomationProperties, but this didn't work and resulted in serialization exceptions.

(When accessed by .GetAttachedProperty<AutomationObjectForIWhatever>() )

 

 

Any ideas on how to accomplish this?

Nikolay Petrov
Telerik team
 answered on 11 Aug 2017
3 answers
163 views

Hi, 

I would like to ask if it's possible to migrate TeamCity and Telerik Testing Framework. I'm writing test scripts in C# Visual Studio 2015 and using Telerik Testing Framework. I'm testing WPF desktop application.

 

Regards,

Peter 

Elena
Telerik team
 answered on 28 Jul 2017
16 answers
234 views

Greetings,

First of all let me explain what I am attempting to do. I downloaded trial version of Telerik Test Studio to run some test on the newest version of your software. My initial setup was Windows 7 64-bit with no updates. After a day an a half of updates (yay Microsoft!) I got to the point where machine was updated and I was ready to install Test Studio. It installed successfully but no tests could be recorded in IE. Firefox worked but IE was a no-go. I spent two days on it - still nothing. Giving up I moved to Windows 8.1 64-bit because I noticed (a lot of bad mood) this page http://docs.telerik.com/teststudio/troubleshooting-guide/recording-problems-tg/unable-to-launch-recorder where it states:

This ensures the 64-bit version of IE is not launched (which Test Studio is not compatible with in Windows 7 or below).

Great hidden info. Anyways, Windows 8.1 are set up with again all updates installed. OS is working, IE 11 is working but when installing Test Studio again the same problem - nothing can be recorded or played back. The error I get in log is attached to this post. Browser is calibrated and I have gone trough http://docs.telerik.com/teststudio/getting-started/configure-your-browser/internet-explorer for setup.

Additionally I re-downloaded the trial installer. I noticed it being 1MB bigger with the same filename that includes version (TestStudio_Ultimate_2015_3_1314_2_Trial). Why are you doing this Telerik? Change the version, make something different don't just patch the file and re-release it. I uninstalled current version and reinstalled it from new installer - still the same problem.

In conclusion: you have broken Trial version I spent 7 days of my trial period on trying to debug YOUR product while bosses are breathing behind me asking for ETA.

[01.29 12:00:17,Telerik.TestStudio.Desktop.exe(3208:1),Uncategorized] Orchestrator._iUIProject_TestSelected() : Test 'WebTest(2)' selected.
[01.29 12:00:18,Telerik.TestStudio.Desktop.exe(3208:1),Framework] Manager.get_ActiveBrowser() : The current ActiveBrowser is either invisible or disconnected.
[01.29 12:00:18,Telerik.TestStudio.Desktop.exe(3208:11)] First trace message from background thread "Web Recorder Dispatcher" (managed ID = 11, native ID = 3676).
[01.29 12:00:18,Telerik.TestStudio.Desktop.exe(3208:11),Framework] InternetExplorerActions.LaunchNewBrowserInstance() : Process launched (ID=1904, Path="C:\Program Files\Internet Explorer\iexplore.exe", Arguments="-nomerge about:blank").
[01.29 12:00:18,Telerik.TestStudio.Desktop.exe(3208:11),Framework] InternetExplorerActions.LaunchNewBrowserInstance() : Attempting to attach on IE frame (HWND=328370)...
[01.29 12:00:18,Telerik.TestStudio.Desktop.exe(3208:11),Framework] Connector.Start() : Process launched (ID=372, Path="C:\Windows\SysWOW64\rundll32.exe", Arguments=""C:\Program Files (x86)\Telerik\Test Studio\Bin\ArtOfTest.Connector.dll",AttachToWindowEntryPoint 1114896").
[01.29 12:00:19,Telerik.TestStudio.Desktop.exe(3208:11),Framework] Connector.Start() : Process exited (ID=372, ExitCode=0, Path="C:\Windows\SysWOW64\rundll32.exe", Arguments=""C:\Program Files (x86)\Telerik\Test Studio\Bin\ArtOfTest.Connector.dll",AttachToWindowEntryPoint 1114896").
[01.29 12:00:19,Telerik.TestStudio.Desktop.exe(3208:11),Framework] InternetExplorerActions.LaunchNewBrowserInstance() : Process "Telerik.TestStudio.Desktop" (ID=3208) is assumed to host the controller.
[01.29 12:00:19,Telerik.TestStudio.Desktop.exe(3208:11),Framework] Connector.InjectCode() : ------- Function Start -------
[01.29 12:00:19,Telerik.TestStudio.Desktop.exe(3208:11),Framework] Connector.InjectCode() : Connection string: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\ArtOfTest.InternetExplorer\v4.0_2015.3.1314.0__5339893a7cefe4d6\ArtOfTest.InternetExplorer.dll?ArtOfTest.InternetExplorer.ArtOfTestPluginEntryPoint?3208
[01.29 12:00:19,Telerik.TestStudio.Desktop.exe(3208:11),Framework] InternetExplorerActions.WaitForDocument() : Attempting to get IHTMLDocument2 from Internet Explorer HWND 1114896 on another thread...
[01.29 12:00:19,Telerik.TestStudio.Desktop.exe(3208:5)] First trace message from pool thread "WaitAsync polling wait worker" (managed ID = 5, native ID = 4012).
[01.29 12:00:19,Telerik.TestStudio.Desktop.exe(3208:5),Framework] <>c__DisplayClassf.<WaitForDocument>b__8() : Attempting to get document from window handle
[01.29 12:00:19,Telerik.TestStudio.Desktop.exe(3208:11),Framework] InternetExplorerActions.WaitForDocument() : IHTMLDocument2 successfully retrieved.
[01.29 12:00:19,Telerik.TestStudio.Desktop.exe(3208:11),Framework] Connector.InjectCode() : Sending WM_COPYDATA to HWND 1114896 (lpData = "C:\Windows\Microsoft.Net\assembly\GAC_MSIL\ArtOfTest.InternetExplorer\v4.0_2015.3.1314.0__5339893a7cefe4d6\ArtOfTest.InternetExplorer.dll?ArtOfTest.InternetExplorer.ArtOfTestPluginEntryPoint?3208")...
[01.29 12:00:19,Telerik.TestStudio.Desktop.exe(3208:11),Framework] Connector.InjectCode() : Returned from sending WM_COPYDATA (LRESULT=0, GetLastError()=ERROR_ALREADY_EXISTS).
[01.29 12:00:19,Telerik.TestStudio.Desktop.exe(3208:11),Framework] Connector.InjectCode() : ------- Function End -------
[01.29 12:01:19,Telerik.TestStudio.Desktop.exe(3208:11),Recording] IERecorderManager.LaunchNewRecorder() : EXCEPTION! (see below)
     Outer Exception Type: System.TimeoutException
     Message: Wait for condition has timed out
     HRESULT: 0x80131505 (Official ID (if app.) = COR_E_TIMEOUT, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5381)
     Call Stack:
          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 Telerik.TestStudio.Web.IERecorder.IERecorderManager.LaunchNewRecorder(Action`2 asyncCallback, FloatingUIMode mode, BrowserType browserType, String arguments)

Elena
Telerik team
 answered on 24 Jul 2017
5 answers
201 views

Hello

I'm creating some test and i have to test the "Save as/Save" feature of my program, a simple text Editor for some training with TestStudio.

I can use successfully OpenFile Dialog to open a File or Save an existing file with test Studio but when i'm not using it i can save and use the save Dialogin my program.

But when i'm recording, the Save as Dialog create a "Handle generic dialog" step and when i'm executing the test,nothing happens, i'ts not creating a new file as expected.

And when i changed this step by a "Save Dialog" ,and i try to use it like an "OpenFile" dialog and it doesn't worked. It's like the test is unable to access the Dialog window.

This is the log

: Overall Result: Fail
------------------------------------------------------------
'30/06/2017 10:34:23' - Executing test: 'TestWord', path: 'TestWord.tstest.'
'30/06/2017 10:34:23' - Using .Net Runtime version: '4.0.30319.42000' for test execution. Build version is '2017.2.530.0'.
'30/06/2017 10:34:23' - Starting execution....
------------------------------------------------------------
------------------------------------------------------------
'30/06/2017 10:34:29' - Using 'C:\Users\Everdyn\Documents\Stage Ludovic\WPF\EntrainementOuverture\EntrainementOuverture\bin\Debug\EntrainementOuverture.exe' application.
'30/06/2017 10:34:31' - 'Pass' : 1. LeftClick on Item0Textboxview
'30/06/2017 10:34:36' - 'Pass' : 2. Type 'Test d'écriture et de sauvegarde' into TxtEditorTextbox
'30/06/2017 10:34:37' - 'Pass' : 3. Desktop command: LeftClick on Item2Textblock
'30/06/2017 10:34:38' - 'Pass' : 4. Desktop command: LeftClick on Item4Textblock
'30/06/2017 10:34:38' - LOG: Unexpected dialog encountered. Taking no action.
'30/06/2017 10:34:48' - 'Fail' : 5. Handle 'SaveFile' dialog.
------------------------------------------------------------
Failure Information: 
~~~~~~~~~~~~~~~
Timed out waiting '10000' msec. for any dialog to be handled '1'
InnerException:
System.TimeoutException: Timed out waiting '10000' msec. for any dialog to be handled '1'
   à ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilAnyHandled(IEnumerable`1 dialogs, Int32 handleCount, Int64 timeoutMilliseconds, Boolean resetHandleCount)
   à ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(Browser browser)
   à ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(IAutomationHost browser)
   à ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------
'30/06/2017 10:34:48' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'30/06/2017 10:34:48' - Overall Result: Fail
'30/06/2017 10:34:48' - Duration: [0 min: 19 sec: 258 msec]
------------------------------------------------------------
'30/06/2017 10:34:51' - Test completed!

Can you help me? Do you need more information?

Thanks you

PS:I'm sorry if you have any problem for understand or if my grammar is awful, i'm french and explain my problem in English is not easy .

Nikolay Petrov
Telerik team
 answered on 21 Jul 2017
6 answers
163 views

I am trying to follow a simple example to get IE11 automation working on a windows 7 box. I get a browser window open with about:blank in the URL and System.TimeoutException after a while.

The code works on my local developer machine but does not work on a remote desktop with a basic windows 7 64-bit install.

I have configured the browser, uninstalled and reinstalled Test Framework (Testing_Framework_2017_2_0530_1_Free.msi). Tried building x86, x64, Any CPU in both debug and release.

 

Again, this works on my local machine but not the remote machine. Are there pre-requisites I am unaware of? The only thing I install is the Test Framework.

 

Any help would be very much appreciated.

Elena
Telerik team
 answered on 11 Jul 2017
6 answers
145 views
I am running tests using WebAii in a constrained environment where I can't install the WebAii MSI. Is there a way to run tests without installing the MSI?
Elena
Telerik team
 answered on 11 Jul 2017
3 answers
377 views
Hello Telerik,

Recently I have set up a new environment for test automation (installed Windows 7, .NET run-time, Telerik testing framework). When I tried to run my automated tests, they failed. I dug deeper and found out that Telerik testing framework doesn't work without Microsoft.mshtml.dll library. I copied it to the automated tests folder, and it worked. However, the speed of test execution is ridiculously slow. I can assume that this is somehow connected with the framework and that the library hasn't actually installed in the system.

Can you help me to resolve this issue? Thank you.

Kind Regards,
Stanislav Hordiyenko
Elena
Telerik team
 answered on 11 Jul 2017
1 answer
116 views

Hello,

I am seeing below error when I tried to execute tests from MTM on azure agents.Azure agents have latest Telerik Frame work version which is free version of 2017(as I cannot get to install 2016) and build server has below version.Please let me know how to resolve this error without installing the latest telerik version on build server or it might be completely different issue to resolve.

 

Error adding test case [64640] to test run: Unable to load the test container 'C:\Users\TESTAccount\AppData\Local\Temp\Microsoft\TeamTest\QTController\BuildDownloads\22724\ABCTests\bin\Debug\abc tests.dll' or one of its dependencies. Error details: System.IO.FileNotFoundException: Could not load file or assembly 'ArtOfTest.WebAii, Version=2016.3.928.0, Culture=neutral, PublicKeyToken=4fd5f65be123776c' or one of its dependencies. The system cannot find the file specified.

Nikolay Petrov
Telerik team
 answered on 19 Jun 2017
1 answer
102 views

Hi, 

Can you tell me please how can I get rows for normal Grid using TTF?

 

  var radGridView1 = WindowScreenActuarialAssumptions.Manager.ActiveApplication.MainWindow.Find.ByName<Grid>("GridResources");
  Console.WriteLine(radGridView1.Rows.Count);

 - Rows is in red and I can't use it :( 

It's normal grid and I need to read all values from Grid not only first row!

 

Regards,

Peter

Elena
Telerik team
 answered on 16 Jun 2017
4 answers
203 views

There is a simple login form with a password input field (a username is a default).

So, when I type the password by hand using a keyboard I have a correct submit where the password corresponds which I enter.

But when I start a test from Telerik Test Studio with a step Enter text "password" in InputPassword
and click a login button the submit request has the password empty.

angular.element("#inputPassword")[0].value returns the valid value.

Control type for InputPassword  is HtmlInputPassword.
HTML of the form and submit function code are attached.

Please help. Where is a problem?

Elena
Telerik team
 answered on 16 Jun 2017
Narrow your results
Selected tags
Tags
+9 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
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
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?