I received the latest blog from Brian Harry, a MSDN blogger. He wrote a post about coded UI tests and 3rd party .NET controls. He summarizes the feature of a 3rd party control provider (I won't say who).
One can start recording actions on a _____ control using Coded UI Test Builder and play them back using Coded UI Test. These controls also expose meaningful rich properties that could be used for functional validation during automation test, for example, validate the control specific property RowIndex on a ______ control. ______ has also added rich APIs to ease authoring of Coded UI Tests on custom controls. Last but not the least, conversion of sequence of actions into meaningful intent has been made possible through the aggregation filters, for example, navigation through filter tree to set filter condition on a grid is now converted to one composite action which sets the filter value.
My team has to look into the possibility of building Coded UI tests this summer with infragistics. I'd like to find out more about how difficult this task will be with Infragistics, and how deep on can drill into tests with infragistics controls. THere are many, many posts about coded ui tests on this forum. Do you have a specific guide or FAQ related specifically to Infragistics and coded UI tests to help with the issue? I am worried we will hit obstacles one at a time, having to read through the many, many posts on these forums on coded UI.
Any help for getting started in the right direction would be helpful,
Thanks all!
Hello,
What platform are you looking to use Coded UI Test with?
WPF / Visual Studio C#.NET / Windows Vista
We are hoping to build the usual coded UI tests offered in visual studio
anyone out there? have been checking back daily
Hi Theresa,WPF uses UI Automation for Coded UI Test which means there isn't much our WPF controls need to do to support this. As such we don't provide any guidance towards this specifically since usage is no different than if you were using standard MS controls. Most of the issues we've seen in the past are related to how aggressively Coded UI Test prunes the paths to an element in the automation tree which can cause Coded UI Test to be unable to properly locate the correct element during playback.Microsoft has released an update/fix to alleviate this issue which can be found here:http://support.microsoft.com/kb/2544407
Hi,
I have registered to find an answer to my question with which i am struggling for past 2 weeks .
Our application is built using IGGrid Infragistic controls to display the data.
I written coded-UI automation test in Visual studio 2013 against a very simple scenario.
It launches IE browser and maximizes it. and then it needs to click on a search hyperlink (simple HTML control), it clicks ( I can see focus and button is being pressed) but page keeps on loading i.e. there is a progress-spin icon which keep spinning indefinitely and subsequent page doesn't load at all.
Along with this issue i face one more issue by default when we login to the application one table with data is displaying and first row value is displaying in right result pane by default, but when my script says click on other tab table is displaying but the values are not rendering in the result pane.
My test method is not stopping or failing to click on search link, it is identifying the search link and clicking on it.
It's clicking the row-column values but it's not refreshing the data displayed when i tried to sort columns, which it is supposed to do.
The page is not getting refreshed and the data is not getting loaded.
I have simulated this scenario manually it's working fine.
I am using VS2013 Ultimate and IE10.
Need immediate help.
Thanks
Thank you for sharing the solution that you found.
Hi Everyone,
I would like to post the workaround solution for the problem i was facing .
The actual issue was, that J Query Ajax Success was not getting triggered by Coded U I.
This issue is visible in J Query 2.0 and 2.0+ versions.
I found this post
http://stackoverflow.com/questions/17849074/jquery-ajax-success-not-getting-triggered-with-coded-ui-test-project/21381319
The solution they have suggested is working
Microsoft's Coded UI browser injects javascript to shim the XMLHttpRequest object for tracking. Any ajax calls in the page will use this shim instead of the real XMLHttpRequest. The shim assumes that your completion callback is attached to the XMLHttpRequest's onreadystatechange property, but jQuery 2.0 and + uses the new onload and onerror events, so the callback is never called by the shim.
Workaround
The work-around is to add the following to the App.config file for your test project:<?xml version="1.0" encoding="utf-8" ?><configuration> <appSettings> <add key="WebWaitForReadyLevel" value="3"/> </appSettings></configuration>Setting WebWaitForReadyLevel to 3 stops the Coded UI WebBrowser from injecting the javascript to track ajax calls and timers. jQuery will get a real XMLHttpRequest, and your ajax callbacks will work again.
Hope this will help others too.
Thanks,
Hi Konstantin,
Thank you for your suggestions.
I'll try with thread.sleep.
I'll post it here if it works.
Best Regards,
Hi Alexander,
Thank you for the reply. really appreciate.
The sample application what you have given is working fine, and the thing is that using Selenium web driver also this is working.
Then the problem must lies in between my application and VS i guess.
The application is a bit slow.
I'll try to make it work, if it works i'll post here.
Hi ADRUSTA, I am attaching a simple Coded UI test that is opening the igGrid "Sorting (Remote)" sample, sorting the "Product Name" column and verifying the column is sorted. The test is passing and I can`t see any issues.
Thank you for using Ignite UI!Regards, Alexander Marinov