Telerik Forums
Testing Framework Forum
1 answer
111 views
Hi,

I want to know if this Chrome extension https://chrome.google.com/webstore/detail/telerik-test-studio-chrom/pkkbbimilpjmghfhhppamgigileopnkc is configured for auto update, is auto update something built in the plugin or something I can configure mysef in Chrome setup?

Thanks,
Hatem.
Ivaylo
Telerik team
 answered on 26 Aug 2014
1 answer
110 views
Can you please provide sample code for Kendo Grid Sorting?
I didn't find a way to test this scenario.
Boyan Boev
Telerik team
 answered on 26 Aug 2014
1 answer
126 views
Hi Telerik Support Team,

In our application we have the following scenario which need to be verified: 
User enter a value into some input text box and change focus to another control. After verification JavaScript alert appears on the screen.

In code it looks like:

01 var alertDialog = AlertDialog.CreateAlertDialog(Manager.Current.ActiveBrowser, DialogButton.OK);
02 Manager.Current.DialogMonitor.AddDialog(alertDialog);
03 Manager.Current.DialogMonitor.Start();
04 DateInputBox.Focus();
05 DateInputBox.Value = "01/01/20014";
06 DateInputBox.InvokeEvent(ScriptEventType.OnChange);
07 DateInputBox.InvokeEvent(ScriptEventType.OnBlur);
08 alertDialog.WaitUntilHandled(15000);

During line 06 execution JavaAcript Alert appers and script hangs on the 06 line for a long time. The only one solution is to stop test execution. 

Do you have any suggestion how to implement the scenario?
Cody
Telerik team
 answered on 25 Aug 2014
7 answers
137 views
Hey guys,

I was just updating my testing framework to the most recent version (2014.2 618) after Firefox updated onto version 31.0.
Now I can't start Firefox from my usual code. Even Chrome (Version 36.0.1985.125 m) doesn't start anymore. Internet Explorer can be opened successfully.

Does anybody have the same behaviour or even a solution for me?

StackTrace: - mscorlib - ArgumentNullException (Chrome)
   bei System.IO.Path.Combine(String path1, String path2)
   bei ArtOfTest.WebAii.Messaging.Process.HostsProxy.Start()
   bei ArtOfTest.WebAii.Messaging.Process.HostsProxy.RegisterListener(MessageListener listener)
   bei ArtOfTest.WebAii.Messaging.Process.ExecutionMediator.RegisterManager(Manager manager)
   bei ArtOfTest.WebAii.BrowserSpecialized.Chrome.ChromeActions.LaunchNewBrowserInstance(Manager manager)
   bei ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   bei ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle)
   bei ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect)
   bei ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch)


StackTrace: - ArtOfTest.WebAii - Wait for condition has timed out (Firefox)
   bei ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
   bei ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
   bei ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
   bei ArtOfTest.WebAii.Core.Manager.WaitForBrowserToConnect(Int32 browserIndexToWaitFor)
   bei ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   bei ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle)
   bei ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect)
   bei ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch)




Ivaylo
Telerik team
 answered on 22 Aug 2014
2 answers
47 views
Hi,

I'm a little confused here: I was trying to use generic Find.ByAutomationId<T> method that is supposed to return me actually FrameworkElement object for now (the same as non-generic method returns), but it returns me null. Though when I use non-generic sibling (Find.ByAutomationId) it seems to be working fine. Any ideas why it might happen? Cast problems? I was wondering if the method actually returns anything if it can't cast, but well, non-generic works. The element is definitely present in the xaml structure and has correct automation id (as proved by non-generic method once again).

Thank you,
Artem
Konstantin Petkov
Telerik team
 answered on 22 Aug 2014
1 answer
97 views
Hi Team,

I am searching for Telerik Test Studio offline documentation, but i can't see any link. Due to Internet problem its hard to visit online documentation.



Thanks,

Kamran Asim
Cody
Telerik team
 answered on 14 Aug 2014
7 answers
280 views
Hi there.

In WatIn, you can do stuff like this:

WebBrowser.Current.TextFields.First(Find.ByLabelText(labelText)).TypeText(value);

Which finds a textbox by it's associated label and sets the text for that textbox. Is there a WebAii way of doing the above i.e. finding a textbox by the label associated to it?

Cheers.
Jas.
Cody
Telerik team
 answered on 14 Aug 2014
13 answers
476 views
Hello,

For a couple of days I have been trying to solve an issue and I stucked. I am trying to run automated UI tests using Telerik WebAii Framework 2011.2.1413. The problem is, after launching browser nothing happens but I get TimeoutException: Wait for condition has timed out. The issue occurs only on Internet Explorer, tests on FireFox 3.6 run properly, though. I suppose it is not IE problem but some operating system security settings as I run tests on Windows Server  2008 R2 (x64). Tests run properly on IE9 on Windows 7 Ultimate (x64). I would like to also mention that tests run on Team Foundation Server 2010 build machine. Below, I have enclosed my system environment and thigns I have already done to try to make it work.

System Environment:
Windows Server 2008 R2 (x64) SP1
IE 8 (previously, I have tried to run test on IE9 but it did not work as well, that is why i downgraded IE to see wheater it is browser version problem)
MSTest
Telerik WebAii Framework 2011.2.1413
 
- I set target platform in project properties to x86
- I set Team Foundation Server 2010 Mode to Interactive Process
- I configured Internet Explorer as it is written <a href="http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/configure-your-browser/internet-explorer.aspx">here</a>.
- I turned off Internet Explorer Enhanced Security Configuration
- I turned off User Account Control
- I reinstalled Telerik WebAii Framework
- I set "Restrict anonymous access to named pipes and shares" to Disabled on Local Security Policy

TraceLog file from failed session:

DialogPlayback: DialogMonitor.Start() : Beginning monitoring for dialogs from the set {}.

Framework: InternetExplorerActions.LaunchNewBrowserInstance() : Process launched (ID=2612, Path="C:\Program Files (x86)\Internet Explorer\iexplore.exe", Arguments="-nomerge about:blank").

UIAutomation: AutomationExtensions.AddAutomationEventHandler() : Added a(n) WindowPatternIdentifiers.WindowOpenedProperty handler on element System.Windows.Automation.AutomationElement scope Descendants.

Framework: InternetExplorerActions.LaunchNewBrowserInstance() : Attempting to attach on IE frame (HWND=66614)...

DialogPlayback: DialogMonitor.AutomationEvent_OnWindowOpened() : New window detected, but not considered a dialog (Text = "Windows Internet Explorer", ClassName = "IEFrame").

Framework: Connector.Start() : Process launched (ID=3100, Path="C:\Windows\SysWOW64\rundll32.exe", Arguments="ArtOfTest.Connector.dll,AttachToWindowEntryPoint 132206").

Framework: Connector.Start() : Process exited (ID=3100, ExitCode=0, Path="C:\Windows\SysWOW64\rundll32.exe", Arguments="ArtOfTest.Connector.dll,AttachToWindowEntryPoint 132206").

Framework: InternetExplorerActions.LaunchNewBrowserInstance() : Process "QTAgent32" (ID=1936) is assumed to host the controller.

Framework: Connector.InjectCode() : ------- Function Start -------

Framework: Connector.InjectCode() : Connection string: C:\Windows\assembly\GAC_MSIL\ArtOfTest.InternetExplorer\2011.2.1413.0__5339893a7cefe4d6\ArtOfTest.InternetExplorer.dll?ArtOfTest.InternetExplorer.ArtOfTestPluginEntryPoint?1936

Framework: InternetExplorerActions.WaitForDocument() : Attempting to get IHTMLDocument2 from Internet Explorer HWND 132206 on another thread...

Framework: <>c__DisplayClasse.<WaitForDocument>b__7() : Attempting to get document from window handle

Framework: InternetExplorerActions.WaitForDocument() : IHTMLDocument2 successfully retrieved.

Framework: Connector.InjectCode() : Sending WM_COPYDATA to HWND 132206 (lpData = "C:\Windows\assembly\GAC_MSIL\ArtOfTest.InternetExplorer\2011.2.1413.0__5339893a7cefe4d6\ArtOfTest.InternetExplorer.dll?ArtOfTest.InternetExplorer.ArtOfTestPluginEntryPoint?1936")...

Framework: Connector.InjectCode() : Returned from sending WM_COPYDATA (LRESULT=0, GetLastError()=ERROR_ALREADY_EXISTS).

Framework: Connector.InjectCode() : ------- Function End -------

Framework: BrowserProvisioner.EndService() : Connecting to the provisioning pipe "Pipe.ArtOfTest.WebAii.BrowserProvisioner_696317534" in order to unblock and eventually terminate it...

Framework: BrowserProvisioner.EndService() : Provisioning pipe connected.

Framework: BrowserProvisioner.ServiceThread() : A new client has connected to the provisioning pipe but this will be treated as a termination cue.

Framework: BrowserProvisioner.EndService() : Provisioning thread terminated.

DialogPlayback: DialogMonitor.Stop() : Dialog monitoring is being halted.

TraceLog from passed session (FireFox 3.6):

[03/16 10:38:43,QTAgent32.exe(2628:13)] First trace message from process 2628: "c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\QTAgent32.exe" /agentKey 2313be3d-37b0-43f1-8128-8c75e6338426 /hostProcessId 1928 /hostIpcPortName eqt-b14fb823-1ed9-ccf3-2bea-2e672dc75686
[03/16 10:38:43,QTAgent32.exe(2628:13)] First trace message from background thread "Agent: adapter run thread for test 'SampleWebAiiTest' with id '8fcc0856-0ea4-4f74-b955-3c367338568c'" (managed ID = 13, native ID = 2732).
[03/16 10:38:43,QTAgent32.exe(2628:13),DialogPlayback] DialogMonitor.Start() : Beginning monitoring for dialogs from the set {}.
[03/16 10:38:44,QTAgent32.exe(2628:13),Framework] FireFoxActions.EnumFireFoxInstallations() : Valid Firefox 3.6.0.20 installation found at "C:\Program Files (x86)\Mozilla Firefox\firefox.exe".
[03/16 10:38:45,firefox.exe(1936:1)] First trace message from process 1936: "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" about:blank?753956868
[03/16 10:38:45,firefox.exe(1936:1)] First trace message from background unnamed thread (managed ID = 1, native ID = 2740).
[03/16 10:38:45,firefox.exe(1936:1),Framework] BrowserRemoteClient constructor : The client ID for this hooked process will be "Client_2c97f56d-585a-4358-9975-233d960ddd64".
[03/16 10:38:45,QTAgent32.exe(2628:17)] First trace message from background thread "Pipe.ArtOfTest.WebAii.BrowserProvisioner" (managed ID = 17, native ID = 2720).
[03/16 10:38:45,QTAgent32.exe(2628:17),Framework] BrowserProvisioner.ServiceThread() : A new client has connected to the provisioning pipe.
[03/16 10:38:45,QTAgent32.exe(2628:19)] First trace message from background thread "Remoted async command listener" (managed ID = 19, native ID = 2300).
[03/16 10:38:45,QTAgent32.exe(2628:19),Framework] BrowserRemoted.AsyncListenerThreadEntry() : Not connected; this will now wait indefinitely for a pipe client connection...
[03/16 10:38:45,firefox.exe(1936:1),Framework] BrowserRemoteClient.CreateNamedPipes() : Named pipes created for communication with the server: {Command = "ae3c20d9-1d96-4639-abc2-3e0cb0a5352a.CommandPipe", Async = "ae3c20d9-1d96-4639-abc2-3e0cb0a5352a.AsyncPipe"}
[03/16 10:38:45,QTAgent32.exe(2628:18)] First trace message from foreground unnamed thread (managed ID = 18, native ID = 2648).
[03/16 10:38:45,QTAgent32.exe(2628:18),UIAutomation] AutomationExtensions.AddAutomationEventHandler() : Added a(n) WindowPatternIdentifiers.WindowOpenedProperty handler on element System.Windows.Automation.AutomationElement scope Descendants.
[03/16 10:38:46,QTAgent32.exe(2628:19),Framework] BrowserRemoted.AsyncListenerThreadEntry() : A new client has connected to the pipe.
[03/16 10:38:46,QTAgent32.exe(2628:19),Framework] BrowserRemoted.AsyncListenerThreadEntry() : Now waiting indefinitely for a command from the pipe client...
[03/16 10:38:46,QTAgent32.exe(2628:17),Framework] Manager.AddNewBrowser() : Added client ID "Client_2c97f56d-585a-4358-9975-233d960ddd64" (now there is/are 1 total).
[03/16 10:38:47,QTAgent32.exe(2628:18),UIAutomation] AutomationExtensions.AddAutomationPropertyChangedEventHandler() : Added property change handler on element System.Windows.Automation.AutomationElement scope Subtree with enlarged property set {ValuePatternIdentifiers.ValueProperty} now including {ValuePatternIdentifiers.ValueProperty}.
[03/16 10:38:47,QTAgent32.exe(2628:18),UIAutomation] AutomationExtensions.AddStructureChangedEventHandler() : Added a structure change handler on element System.Windows.Automation.AutomationElement scope Subtree.
[03/16 10:38:48,QTAgent32.exe(2628:18),DialogPlayback] DialogMonitor.AutomationEvent_OnStructureChanged() : ChildAdded event sent by named element "Search".
[03/16 10:38:49,QTAgent32.exe(2628:18),DialogPlayback] DialogMonitor.AutomationEvent_OnStructureChanged() : ChildAdded event sent by named element "http://fp-shp/Pages/default.aspx".
[03/16 10:38:49,QTAgent32.exe(2628:18),DialogPlayback] DialogMonitor.AutomationEvent_OnValueChanged() : Named element "Szukaj w zakładkach i historii" changed its value from "" to "http://fp-shp/Pages/default.aspx".
[03/16 10:38:49,QTAgent32.exe(2628:18),DialogPlayback] DialogMonitor.AutomationEvent_OnStructureChanged() : ChildAdded event sent by named element "Turn on more accessible mode".
[03/16 10:38:50,QTAgent32.exe(2628:18),DialogPlayback] DialogMonitor.AutomationEvent_OnStructureChanged() : ChildAdded event sent by named element "My Newsfeed".
[03/16 10:38:51,QTAgent32.exe(2628:18),DialogPlayback] DialogMonitor.AutomationEvent_OnStructureChanged() : ChildAdded event sent by named element "http://fp-shp/my/default.aspx".
[03/16 10:38:51,QTAgent32.exe(2628:18),DialogPlayback] DialogMonitor.AutomationEvent_OnValueChanged() : Named element "Szukaj w zakładkach i historii" changed its value from "" to "http://fp-shp/my/default.aspx".
[03/16 10:38:51,QTAgent32.exe(2628:18),DialogPlayback] DialogMonitor.AutomationEvent_OnStructureChanged() : ChildAdded event sent by named element "Adres".
[03/16 10:38:52,QTAgent32.exe(2628:18),DialogPlayback] DialogMonitor.AutomationEvent_OnStructureChanged() : ChildAdded event sent by named element "Adam Kęsy".
[03/16 10:38:52,QTAgent32.exe(2628:18),DialogPlayback] DialogMonitor.AutomationEvent_OnStructureChanged() : ChildAdded event sent by named element "http://fp-shp/my/personal/akesy/default.aspx".
[03/16 10:38:53,QTAgent32.exe(2628:18),DialogPlayback] DialogMonitor.AutomationEvent_OnValueChanged() : Named element "Szukaj w zakładkach i historii" changed its value from "" to "http://fp-shp/my/personal/akesy/default.aspx".
[03/16 10:38:53,QTAgent32.exe(2628:13),Framework] BrowserProvisioner.EndService() : Connecting to the provisioning pipe "Pipe.ArtOfTest.WebAii.BrowserProvisioner" in order to unblock and eventually terminate it...
[03/16 10:38:53,QTAgent32.exe(2628:13),Framework] BrowserProvisioner.EndService() : Provisioning pipe connected.
[03/16 10:38:53,QTAgent32.exe(2628:17),Framework] BrowserProvisioner.ServiceThread() : A new client has connected to the provisioning pipe but this will be treated as a termination cue.
[03/16 10:38:53,QTAgent32.exe(2628:13),Framework] BrowserProvisioner.EndService() : Provisioning thread terminated.
[03/16 10:38:53,QTAgent32.exe(2628:13),DialogPlayback] DialogMonitor.AddDialog() : Added {OnBeforeUnloadDialog(Dismiss=OK)} for monitoring.
[03/16 10:38:53,QTAgent32.exe(2628:13),Framework] Manager.RemoveBrowser() : Removed client ID "Client_2c97f56d-585a-4358-9975-233d960ddd64" (0 remaining).
[03/16 10:38:53,QTAgent32.exe(2628:13),Framework] Manager.SetActiveBrowser() : Active browser is now null.
[03/16 10:38:53,QTAgent32.exe(2628:13),Framework] BrowserRemoted.End() : Now aborting the listener thread (TID = 19).
[03/16 10:38:54,firefox.exe(1936:1),Framework] BrowserRemoteClient.Disconnect() : Sending ClientDisconnectRequest(ClientId="Client_2c97f56d-585a-4358-9975-233d960ddd64") to pipe server...
[03/16 10:38:54,firefox.exe(1936:1),Framework] BrowserRemoteClient.Disconnect() : Command pipe is already disconnected.
[03/16 10:38:54,QTAgent32.exe(2628:19),Warning] PipeCommunication.AsyncPipeRead() : Pipe read wait broken by thread-abort.
[03/16 10:38:55,QTAgent32.exe(2628:13),DialogPlayback] DialogMonitor.Stop() : Dialog monitoring is being halted.
[03/16 10:38:56,QTAgent32.exe(2628:18),UIAutomation] AutomationExtensions.RemoveAutomationPropertyChangedEventHandler() : Removed the property change handler on element System.Windows.Automation.AutomationElement scope Subtree.
[03/16 10:38:56,QTAgent32.exe(2628:18),UIAutomation] AutomationExtensions.RemoveStructureChangedEventHandler() : Removed the structure change handler on element System.Windows.Automation.AutomationElement scope Subtree.


Is it possible it is connected with a thing called Named Pipes? When test is running on FF and a browser launches I can see on address bar something like "Pipe.ArtOfTest.WebAii.BrowserProvisioner=/and here an integer value/" after about:blank but I cannot see it on InternetExplorer. I feel I did my best to make it work, I read hunderds of posts, I tried dozens of problem solutions but it still does not work, so I hope you can help me.

Regards,
Adam
Cody
Telerik team
 answered on 14 Aug 2014
7 answers
182 views
I'm trying to test report pages generated by SQL Server Reporting Services 2008. With every navigational click, the pages render an Ajax "Loading" message. How do I wait until that message goes away?

A related question: the WaitForElement() method wants a FindParam, but I thought that HtmlFindExpressions were the replacement for FindParams. Should I use FindParams anyway?
Cody
Telerik team
 answered on 14 Aug 2014
1 answer
104 views
Is this location method applicable for WPF Desktop applications?

I am asking this question because it is defined under namespace 'ArtOfTest.WebAii.Silverlight', and it does not seems to work.

Here is my test.

Consider this call:

Console.WriteLine(profit.Find.ByName<Button>("PART_BuyButton").ToXml());

It returns:

​<tradebutton Name="PART_BuyButton" Uid="10313144">
  <button Uid="38447936">
    <grid Name="grid" Uid="25709437">
      <border Name="Regular" Uid="30058349" />
      <border Name="OverlayRegular" Uid="2089687" />
      <border Name="OverlayHover" Uid="18807190" />
      <border Name="Pressed" Uid="35046986" />
      <border Name="Disabled" Uid="46987420" />
      <border Name="ContentHolder" Uid="20233597">
        <contentpresenter Uid="47884646">
          <textblock Uid="28308632">Buy</textblock>
        </contentpresenter>
      </border>
    </grid>
  </button>
</tradebutton>


While the next one returns null:

Console.WriteLine(profit.Find.ByExpression(new XamlFindExpression("TagName=tradebutton")));

Is this:

  - a bug
  - unsupported feature
  - error on my side?

Boyan Boev
Telerik team
 answered on 07 Aug 2014
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?