Topics
- Introduction to Visual Studio Testing
- An Introduction to Coded UI Test(CUIT)
- Coded UI Record and Playback
- Understanding Coded UI Recorded Code from UIMap
- Working with Assertions in Coded UI Test Builder
- Data Driven Testing in Coded UI Test Record and Playback
- Get and Set Properties in Coded UI Testing
- Hand Coding in Coded UI Testing – Part 1
- Hand coding in Coded UI testing – Part 2
- Hand Coding Coded UI Test with UITestControl
- Getting all the Controls properties from Application in Coded UI Test
- Record and playback in Coded UI for Web Applications
- Hand Coding Web Application using Coded UI Test
- Understanding Why and How Parent-Child relationship works in Coded UI Testing
- Creating custom reusable methods for different controls in Coded UI Testing
- Creating generic method for control with Generic in Coded UI
- Exploring features of Browser in CUIT
- Assertions in Coded UI Testing
- Exception handing in Coded UI Testing
- Types of Test Attribute in CUIT
- Run test in order via Ordered Test
- Using TestContext to identify the state of Test method
- Wait For Control in Coded UI Testing
- Cross Browser Testing with Coded UI
- DDT with Excel in CUIT with Custom Library (Part 1)
- DDT with Excel in CUIT with Custom Library (Part 2)
- Executing Javascript on Browser with Coded UI
Hi,
I am really thankful to you as this tutorial was very useful. i need some help. can you post tutorial for Coded UI Web Performance & Load Testing? Awaiting your response.
Thanks,
Dilip Pal
Glad that you like it.
I need to work on the performance testing counter part of visual studio testing. Surely will work on it !!!
Thanks,
Karthik KK
Hi Karthik,
How you doing? i am really thanks to your nice video on CodedUi.My Question , how much you charge for full CodedUI test through online.Please send me details.
Thanks again.
Md Rahman
Hello…really nice video ,,can you post some more real time case and some more advance concept or more on coded ui
Hi Karthik
Please upload after the last video or more videos on Coded UI
Thanks,
BHarat Garg
I have a doubt-during launch ,its automatically open the new browser window .I need it should open in exiting window with new tab during initial launch .what should I do it for.
Hope this article will address your question
http://executeautomation.com/blog/exploring-features-browser-cuit/
Thanks,
Karthik KK
Hello Karthik,
Thanks for replay. could you please provide how we can validate data from database to UI. Like compare value from DB to User interface.
Thanks
Aurobinda
That you should do only by
1. Connecting to DB
2. Querying the table
3. Verifying it if the UI data is same as DB data.
That you need to handle via code !!!
Thanks,
Karthik KK
Hi karthik,
Thanks.you are too good.
what we can expect next in coded ui .daily I am checking if any new topic.
I am working on BDD with Specflow and Selenium.
Thanks,
Karthik KK
Hi Karthik,
These videos are very helpful, thanks for putting all together.
Actually i am looking for Coded UI for Web Services testing and searching on google and came across these..
Do you have any tutorials for Web Services in Coded UI?
Thanks
Rani
Hi Karthik,
I am really thankful for the nice videos. I want to test the website that have dynamic controls with no unique identifiers (ExtJS). Please upload some videos related to that.
Awaiting your response.
Thanks
Sure, I will work on that as well !!!
Will create a page to have all user requests and then I will work one by one.
Thanks,
Karthik KK
Hi kartik,
I want to click a hyperlink.but there is no such unique property and innertext also changing for different user .how to do this click on that.
Thanks
Arbind
You can use the FriendlyName property of hyperlink to click the element.
Thanks,
Karthik KK
Hi karthik,
As in search there are only inner text ,tag name,control type.as I can not use inner text as its changing for each user as I have to perform click for various user,and there are other control with control type hyperlink and same tag name.so which one I will use.
Thanks
Aurobinda
Hy Arbind,
Can you tell me what do you mean by Hyperlink changing for every user ?
Since, if I am understood your question correctly, you have innertext, but that changes for every user right ?
Then, please try to pass different value to identify and click the hyperlink.
Hope this will help !!!
Thanks,
Karthik KK
Hi karthik,
I am very glad that, I have learned more from your blog, thanks for your knowledge sharing, And could you please help me in this
I have methods in my codeduitest as
me.uimap.login
me.uimap.regrestartion
me.ui.logout
so there are totally three methods in my codedui Test,So we can dynamically get the total testmethods during run time
Thanks in Advance
I did not tried getting the method dynamically, but I think you you can use TestContext property to get the method, not pretty sure !!
Thanks Karthik, I will try…
Awesome job Karthik ! Keep up the great work.
Hi Kartik,
I am trying to test SharePoint site with CUI, after logging in, I am navigating to Silverlight 5 pages and CUI is recording but while playback, Silverlight controls are not recognized. After searching online for help, I found https://visualstudiogallery.msdn.microsoft.com/51b4a94a-1878-4dcc-81e0-7dc92131d2da and then followed as they instructed, added references .dll to all the projects under test. Before adding these references, I was able to replay the events like launching browser, logging into the site with credentials and then had issue at Silverlight page. But now, even browser is not launched and my test is failing. Found ”
Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException:Unable to find the top level element of the control —> Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: The playback failed to find the control with the given search properties. Additional Details: technologyName: ‘MSAA”.
Could you please let me know, what I am missing here.
Thanks,
Raj
Raj,
I think I encountered the same type of issue that you faced already and many of them are already facing it.
To resolve this issue, you can checkout the details below (source: http://stackoverflow.com/questions/15788345/coded-ui-test-not-finding-silverlightuiautomationhelper-assembly)
In order to do Coded UI tests in Silverlight 5 you need to use update the Coded UI automation helper from here: Visual Studio Gallery: UI Test Plugin for Silverlight The old one that ships with VS2010 works but only on SL4 and bellow.
SL5 was implemented a tad bit differently and it broke the Coded UI tests, therefore prompting devs to switch to VS2012 and the new UI Automation Plugin (as you have discovered).
Once you install the the UITestPluginForSilverlight.msi executable, you need to reference those assemblies in the Silverlight portion of your project (which you already have).
As far as I remember, and the reason why your Coded UI Tests broke in VS2010 but work in VS2012 is because the SL5 and SL4 UIMap.designer.cs files that are generated by the test recorders are not much compatible with each other.
SL4 recordings Generated with SL4 automation helper will not work with SL5 version of the AutiomationHelper. However SL5 Autiomation Helper will work with SL4 recordings if those recordings are generated by VS2012.
So to elaborate: When you use the recorder, it creates a UIMap file. The map file has three portions to it:
XML Listing of all the recorded methods
Designer Generated Code Behind partial class.
A user partial class.
If you inspect the designer generated code behind file, you can actually figure out that the recorder generates a whole lot of code to find the controls and interact with them.
For each control the recorder discovers it declares an instance of the corresponding test/interaction object.
When declaring those objects the recorder defines a bunch of discoverable/searchable properties. The next time the playback executes it takes these properties and uses them to find the actual control.
Also, all controls have a parent, so the recorder mandatory specifies a parent UI element for each discovered control. For SL4 and SL5 the parents are as follows:
Browser Window
HTML Page
Div (holding the silverlight runtime)
SL Object (SL Runtime plugin)
Main SL UI Element (usually the squigly buzy indicator)
Navigation Frames
Internal Pages
Controls
Constructor:
Parent Control/Interaction Object
Search Properties:
Page Title: The total string that is rendered by the browser’s window title.
Instance Number: (starts from 1 for lists… which is weird)
Control Id: (defined by the Name or x:Name xaml attributes)
Display Name: This is iffy for combo box/list elements as it works by combining whatever is rendered in the combo box/list element item combined with the instance number of that item: for example:
A combo box with two items, each named “List Item” may be discovered by the following display names:
“List Item : 1” and “List Item : 2”
Any combination and permutation of search attributes (you can look them up).
So long story short, the actual interaction objects generated by the recorders are different in SL4 and SL5. Meaning you can’t take one UIMap.designer.cs and swap it with another. The test framework (and it’s associated interaction objects used in the UIMap.designer.cs) are not binary compatible. That’s why your playback can’t work.
Thank you http://stackoverflow.com/users/499636/bleepzter for awesome detail.
Thanks,
Karthik KK
Hi Karthik,
I am unable to see parent and child controls the way your are telling on Silverlight 5 Page. However, able to find them on AspNet pages.
Also I created Sample SL Page with Textbox, Button and Label.
TextBox and Button is found using Coded UI Cross-Hair/Spy but, the Label is not found.
Using Visual Studio 2013 Ultimate Coded UI on Silverlight 5 App and trying to automate our application.
I have generated different methods, like Launch Browser, Enter Credentials and Click on
Login Button. Till this point everything is working fine but, from here page gets navigated
to Silverlight 5 page, where I am able to record but unable to play back.
Another thing is I am unable to see my Silverlight controls using the CUI Cross-Hair/Spy.
It just shows UIItemCustom for complete page, even when I click on different tabs on SL Page.
Interesting thing is my playback is working on SL page when
I manually (without using automated code) navigate to the SL Page and just running the methods for
SL Page. But, unable to playback all Aspnet and SL pages.
I have added the references that are provided here in all my projects.
Test Name: CodedUITestMethod1
Test Outcome: Failed
Result Message:
Test method CodedUITestProject1.CodedUITest1.CodedUITestMethod1 threw exception:
Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: Unable to find Windows Internet Explorer window with ‘ABCD Dashboard – Internet Explorer’ in the title. —> Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: The playback failed to find the control with the given search properties. Additional Details:
TechnologyName: ‘MSAA’
ControlType: ‘Window’
Name: ‘ABCD Dashboard – Internet Explorer’
ClassName: ‘IEFrame’
—> System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
Result StandardOutput:
Debug Trace:
I, 16812, 22, 2015/07/01, 19:37:10.192, 1487056386576, QTAgent32, SLPlugin: Trying to use Port 4503
I, 16812, 22, 2015/07/01, 19:37:10.192, 1487056387907, QTAgent32, SLPlugin: Started listening on Port 4503
I, 16812, 22, 2015/07/01, 19:37:10.192, 1487056388189, QTAgent32, SLPlugin: Trying to use Port 943
I, 16812, 22, 2015/07/01, 19:37:10.192, 1487056388955, QTAgent32, SLPlugin: Started listening on Port 943
I, 16812, 22, 2015/07/01, 19:37:10.305, 1487056686677, QTAgent32, SLPlugin : Start Session Invoked
I, 16812, 22, 2015/07/01, 19:37:10.306, 1487056687259, QTAgent32, SLPlugin: Trying to use Port 4503
I, 16812, 22, 2015/07/01, 19:37:10.306, 1487056688341, QTAgent32, SLPlugin: Started listening on Port 4503
I, 16812, 22, 2015/07/01, 19:37:10.306, 1487056688676, QTAgent32, SLPlugin: Trying to use Port 943
I, 16812, 22, 2015/07/01, 19:37:10.306, 1487056689462, QTAgent32, SLPlugin: Started listening on Port 943
V, 16812, 22, 2015/07/01, 19:37:10.308, 1487056693629, QTAgent32, PERF: SLPlugin: StartSession: took 2 ms
I, 16812, 15, 2015/07/01, 19:39:56.056, 1487493714319, QTAgent32, SLPlugin : Stop Session Invoked
W, 16812, 9, 2015/07/01, 19:39:56.058, 1487493721083, QTAgent32, SLPlugin : Server Socket Closed
V, 16812, 15, 2015/07/01, 19:39:56.059, 1487493722227, QTAgent32, PERF: SLPlugin: StopSession: took 2 ms
W, 16812, 6, 2015/07/01, 19:39:56.086, 1487493793776, QTAgent32, SLPlugin : StopSession of the plugin called before StartSession
Could you please let me know, what I am missing here.
Thank you,
Raj
Hi Raj,
It seems like your browserwindow is not identified after the page is navigated to SL page.
Can you try to reidentify the browser window once again in this page, this should fix the problem hopefully.
Thanks,
Karthik KK
Hi Karthik,
Please help me in automating the database testing using Coded UI Test.
I saw ur videos but didn’t find on database testing.
Thanks in advance.
There are no videos yet !!!
Will try to make one.
Thanks,
Karthik KK
Hi karthik,
i got error message when i run the demo of coded UI testing for my vb.net application.
could you please give me an alternative solution of this error?
error ::
==================================
CodedUlTestMethodl
Source:
CodedUITesti.vb line 17
Test Failed – CodedUITestMethodl
Message: Test method client.CodedUlTestl.CodedUITestMethodl threw exception:
Microsoft.VisualStudio.TestTools.UITest.Extension.UlTestControlNotFoundException: The playback failed to find the control with the given search properties. Additional Details:
TechnologyName: ‘MSAA’
ControlType: ‘Window’
Name: ‘Open’
ClassName: .#32770′
—> System.RuntimeinteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
Elapsed time: 44 sec
Output
StackTrace:
IRPFPlayback.FindAllScreenElements(IScreenElement pScreenElementStart, String bstrQueryId, Object& pvarResKeys, Int32 cResKeys, Int32
nMaxDepth,
ObjectO& foundDescendants)
ScreenElement.FindTopLevelWindowHelper(String queryld)
ScreenElement.FindFromPartialQueryld(String queryld, Boolean resetSkipStep)
UITestControl.ctor(String queryld)
— End of inner exception stack trace —
Playback.MapControlNotFoundException(COMException ex, IPlaybackContext context)
Playback.MapAndThrowComException(COMException innerException, IPlaybackContext context)
Playback.MapAndThrowException(SystemException exception, IPlaybackContext context)
Playback.MapAndThrowException(SystemException exception,
String queryld)
UITestControl.ctor(String queryld)
SearchHelper.SearchTopLevelWindow(ISearchArgument topLevelSearchArg, String topLevelElementQueryId)
SearchHelper.GetTitleUpdatedTopLevelWindow(ISearchArgurnent topLevelSearchArg, String queryld,
IList’l
windowTitles)
SearchHelper.GetTopLevelElement(Boolean useCache, Boolean useCacheOnly, ISearchArgument searchArg,
ILisfl
windowTitles, Int32& timeLeft)
SearchHelper.GetElement(Boolean useCache, ISearchArgument searchArg)
SearchHelper.Search(lSearchArgument searchArg)
UITestControl.FindInternal()
UITestControl.FindControlIfNecessary()
UITestControl.Click(MouseButtons
button,
ModifierKeys modifierKeys,
Point
relativeCoordinates)
Mouse.Clickimplementation(UITestControl
control,
MouseButtons button,
ModifierKeys
modifierKeys,
Point
relativeCoordinate)
Mouse.ClickimplementationWrapper(UITestControl control, MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinate)
Mouse.Click(UITestControl control, Point relativeCoordinate)
Seems like the controls is not found.
Can you check if the application window is identified with some other property.
Thanks,
Karthik KK
Hi Karthik
Thanks a lot for the detailed explanations of data source attriubute
Please let us know how it works in windows phone automation using coded UI
and also let us know about “webview” in windows phone are there any tweaks or any reference we can use.?
Thanks
Shasan
I dont think it will be different for Windows Phone app, but I have not tried it myself practically yet !!!
Thanks,
Karthik KK
Hi Karthik,
Thanks for the wonderful work you are doing! I think this is one of the best form of charity one can do, which is directly/indirectly helping a lot of ppl. I can’t write more 🙂
I have watched almost 70% of videos from this site and I’ll continue to follow all your videos.
In CUIT video series, in part 24 you’ve mentioned that you’ll tell about Xpaths with CodedUI in the upcoming videos but I didn’t find any information on that. Could you please point me to such info or post a video related to that, since I have worked mostly on Xpath while working with Selenium+Java and will really help. Also, I believe that your tutorials are listed in chronological order right under “Functional testing” tab. If not, could you please arrange them so? it helps ppl watching the videos so that they can interconnect to all the tutorials and will be easier to understand.
Please continue the great work that you are doing!
Regards,
Sundeep.
Thank you Sundeep for bringing it up.
I will work on Xpath and will soon release the new video.
I will also try to update the site in order you mentioned.
Thanks,
Karthik KK
Hi Karthik,
i got error message when i run the demo of coded UI testing for my vb.net application.
could you please give me an alternative or relative solution of this error?
error ::
==================================
CodedUlTestM ethod1
Source: CodedUITestl.cs line 31
0 Test Failed – CodedUITestMethodl
Message: Test method CodedUlTestProject2.CodedUlTestl.CodedUlTestMethod1
threw exception:
Microsoft.VisualStudio.TestTools.UlTest.Extension.ActionNotSupportedOnDisabledControlException: Cannot perform ‘SetProperty of Text with value “vivek” on the disabled or read-only control.
Additional Details:
TechnologyName: ‘MSAA’
ControlType: ‘Edit’
—> System.RuntimeinteropServices.COMException: Exception from HRESULT: OxF004F005
Elapsed time: 38 sec
Output
StackTrace:
IScreenElement.SetFocus()
ScreenElement.SetValueAsEditBox(String value, Boolean isEncoded)
WinPropertyProvider.SetEditProperty(String propertyName, Object value)
WinPropertyProvider.SetPropertyValue(UlTestControl uiControl, String propertyName, Object value)
UITestPropertyProvider.SetPropertyValueWrapper(UlTestControl uiControl, String propertyName, Object value)
UITestControl.SetPropertyValue(String propertyName, Object propertyValue)
— End of inner exception stack trace —
UITestLogGenerator.ExceptionRecorder(Exception exception, Boolean rethrow)
Playback.MapAndThrowComException(COMException innerException, IPlaybackContext context)
Playback.MapAndThrowException(SystemException exception, IPlaybackContext context)
Playback.MapAndThrowException(SystemException exception, String actionName, UITestControl uiControl)
Playback.MapAndThrowException(SystemException exception, String actionName, Object parameterValue, UITestControl uiControl)
UITestControl.SetPropertyValue(String propertyName, Object propertyValue)
UITestControl.SetProperty(String propertyName, Object value)
WinEdit.set_Text(String value)
hi Karthik
you did a very brilliant job …thanks you so much for that
keep it up …
hoping for more videos on coded ui ..specially on following topics
–Frameworks
–Test Method management
–how to run the window based application automation test case on different system without using visual studio
–How to run the test method from a interface (like a window form)
–how to use output dlls of coded ui
–how to manage the test result and present it in a nice way
Once again
thank you so much for your efforts
Hi,
Thanks and its a Great work on the tutorials.
Please let me know if you can shed some light on the below.
I need to execute the coded ui scripts outside of visual studio, for eg: an external .net or java app which can execute the scripts, fetch and display the results/status/exceptions.
Hi Karthik,
Thanks for your videos , its a great thing for a starter in codedui.
Iam facing a problem when performing anything on WPFcell.
the order it is showing WpfPane-WpfTable- (controltype=DataItem)- Wpfcell
but it is showing an error that “If the control being searched is descendent Table then including it as a parent container will solve your problem”.
i tried in many ways but iam strucked at that thing. Could you pleasehelp me out.
Hi Karthik,
Thank you for this very helpful and explanatory tutorials.
I have to automate a basic scenario where –
1. I click on Windows + I key to open windows settings
2. Click on system in settings
Step 1 works fine, but for step 2 no code is generated. The comment thrown is –
// To test Windows Store apps, use the Coded UI Test project template for Windows Store apps under the Windows Store node.
I tried this scenario with both store app and desktop app but same result.
I am testing Windows 8 and Windows 10 scenarios and wanted to automate them.
Please help,
Thanks, Niharika
I think you tried to automate some calc application of Windows 10, which is WPF applicaiton, hence you need to use the CUIT project template from Windows store app for running the test in Windows 10.
Thanks,
Karthik KK
Hi Karthik,
It’s very good to see your video’s on CodedUI, I would say it was a full package.
I have been working on CodedUI for last 2 years, so have little hold on CodedUI but then also I really liked it.
Keep up! 🙂
Eagerly waiting for Visual Studio Performance Test series.
Best Regards,
Sunil
Hi Karthik,
Can you please let me know how I can click on object which is of class type HtmlSpan. Currently getting error like it does not support Click action .
Regards,
Abhay
These set of Automation videos in CUIT are really awesome and i learned a lot of tips and tricks. Thanks for your effort in putting this together! Appreciate it Karthik!
Hi karthik, Mouseover is not working in vs coded UI please help me in this case.
Thank you.
Try to click ctrl + shift +R to record mouse hover 😉
Hi . Really nice tutorials, Thanks a lot.
I have some queries. Assume user1 is logged in using chrome browser and simultaneously user2 is logged in using IE. Presently control in in IE. Now I am able to move the control to chrome through coded ui and c# code. But I am unable to perform any actions (Ex: clicking, entering text in text boxes etc……..) I heard that it’s not possible to do so using coded ui. If anybody knows, please reply how t do it.
I dont think so either 🙁
Hi Karthik,
Thanks for your wonderful tutorials :).. Sometimes I am facing problems with dynamic applications where the id’s of the elements are being changed very frequently. Could you please guide me on this?
Hi Karthik,
I am facing issue with custom and Image control types in coded UI. The objects are not getting identified by codedUI for these control types. Also could you please tell me how to identify the correct co-ordinates of items in windows application.
Can you check your developers if thats the worst case, they can set properties of those controls which CUIT builder can identify.
Thanks,
Karthik KK
Karthik,
Thank you the suggestion.
CUIT builder identifying some of the properties like AutomationId, controType and ClassName but still unable to perform operation using these. Is developer able to change the controlType itself?
Thanks,
Hanamanth
Yes they could !!
Hi Kartik,
Thank you so much your effort for explaining Coded UI in detail. It would be good if you can share one of your sample visual studio test project with us which is reusing functions and methods across list of automated test cases. For example, I am working on small application which needs authentication using username and password. I would like to re-use this login method for all other test cases.
Thank you in advance,
Prakash
Hi KK,
Any new Video on Coded UI.
Hold tight, lot more are coming, under planning stage now 🙂
Helllo Karthik.
I m facing problem to add assert Method in combo box. Can please help me. when i selecting a value from combo box, its fine, but when i assert this value by hand coding it gives error.
Hey Karthik,
Hope you are doing good. I am facing problem in finding xpath for all the HTML controls.
Hi Suma,
Hope this post will answer your question http://executeautomation.com/blog/understanding-and-working-with-xpath/
Thanks,
Karthik KK
Hi Karthik,
Need some help on Coded UI Automation. I have designed one Coded UI framework for Dynamics AX Windows Application. Its working fine for end to end scenario.I have written most of the code is using descriptive programming ( UITestControl/Wincontrol). But at the time of execution it’s taking lot of time(24 mins for 50 test steps). Can you please suggest how to reduce the execution time?
Thanks karhtik,
Please find the code snippet, how i am writing the code:
//Capture window
WinWindow uiInsWin = new WinWindow();
uiInsWin.TechnologyName = “MSAA”;
uiInsWin.SearchProperties.Add(“ControlType”, “Window”);
uiInsWin.SearchProperties.Add(“Name”, “XYZ”);
uiInsWin.SearchProperties.Add(“ClassName”, “AX”);
Well, the problem is every time you should not call the WinWindow, TechnologyName.
Rather, put the parent Windows in a C# property and try to call it only one time and use it for as a Parent property for all control identification, I hope its already there in video !!!
Thanks,
Karthik KK
Hello Karthik,
I have a question regarding Scrollbar. I am trying to scroll down a page which is in Div Pane. I am unable to figure out as to how we can scroll down. I tried few ways but didn’t work out. Would you please record a video as to how to scroll down the page using hand coding.
Thank you.
Padma
Hi,
When I wrote the code for IE, it works:
BrowserWindow browserWindow = new BrowserWindow();
BrowserWindow.CurrentBrowser = “ie”;
browserWindow = BrowserWindow.Locate(“Google”);
browserWindow.DrawHighlight();
browserWindow.ResizeWindow(500, 500);
browserWindow.CloseOnPlaybackCleanup = false;
But when i want the same code to run on chrome , it doesnt !
BrowserWindow browserWindow = new BrowserWindow();
BrowserWindow.CurrentBrowser = “chrome”;
browserWindow = BrowserWindow.Locate(“Google”);
browserWindow.DrawHighlight();
browserWindow.ResizeWindow(500, 500);
browserWindow.CloseOnPlaybackCleanup = false;
Note – software used:
Microsoft Visual Studio Enterprise 2015
Version 14.0.24720.00 Update 1
Microsoft .NET Framework
Version 4.6.01055
Chrome: Version 49.0.2623.87 m
Need urgent help, please.
Thanks a lot, in advance.
Hello Karthik,
I would like to get some help with ScrollBar which is in a div panel. Would you please make a video as to how to scroll a div pane in hand coding using Coded UI.
Thank you
Padma
Hi Padma,
Will try to make one soon.
Thanks,
Hi,
Am new to CodedUI, i facing the issue in my application when i save button. it will show data is saved successfully..But suddendly it not working now. But when i go to manually it will work fine. But we go through coded UI it not working..It calling Ajax. I put webwaitreadlyleval=3 also.. But still it not working.. Please advise /
Hi Kartik,
We are using visual studio 2015 enterprise version and we are trying to use CUITe framework to speed up the coding process.
But we couldn’t find any appropriate CUITe dll for VS 2015 enterprise version. Can you throw some light on this please.
Thanks..
Use this command from Nuget Package console Install-Package CUITe.VS2015 -Pre
Hope it helps
Thanks,
Karthik KK
Hello Sir,
I’m using vsts 2015 enterprise with update1 for CodedUI automation. Not able to get any value from custom control like.. Getvalue(“”).
Please help me.
What are the fixes the things are not working on VSTS15 codedUI. I have migrated the framework from vsts2010 to 15.
Hi Karthik,
Awesome work on the videos, very informative.
I have one question:
I am getting an error “Last action on Row was not recorded because the control does not have any good identification property” when I am trying to select an element from a list.
I have added an override method ToString and added a property AutomationProperties.Name=”{Binding SelectedIndex}” but its not working. Can you please help.
I think the Binding SelectedIndex will populate dynamically and changes during runtime.
You need to try using different properties.
Thanks,
Karthik KK
Hi karthik,
The videos are good. Easy understandable.. I need to go with xpath as a property in Coded UI please help me with this.
Regards,
Naveen S
HI Kartik
I am new to CodedUI .I am confused is it possible to test ViewModel using COdedUI. Or Only UI and validation checks are possible to test with COdedUI ?
If yes kindly please share some small demo,will be really helpful.
Thanks
It is a very helpful article..Thanks Kartik for sharing this knowledge.
I need to run Coded UI with SpecFlow in VS 2015. Anybody aware of the steps? Getting below error –
error: The following is not a valid technology name: UIA. To search for a control, you must specify a valid technology name.
HI Ritesh,Specflow wont support Coded UI out-of-box, you need to write a plugin
Here is the video explaining your question https://www.youtube.com/watch?v=hTVTrGhYs18&list=PL6tu16kXT9PoUbSYNcLrMG8ox6UBbbsCv&index=2
You can checkout the complete course from here https://www.udemy.com/framework-development-with-cuit
Thanks,
Karthik KK
Thanks for the quick response. It seems links are disabled for SpecFlow and CodedUI related stuff..
Hi Ritesh,
What do you mean by disabled, it should work I have checked already, could you try opening again, else it should be policy in your company if you are trying from there 🙂
Here is the video explaining your question https://www.youtube.com/watch?v=hTVTrGhYs18
You can checkout the complete course from here https://www.udemy.com/framework-development-with-cuit
Thanks
I meant it’s showing simple text which are not clickable.. this is specifically for “Section 6: BDD with Specflow + Coded UI Testing”
Is that section paid?
Yes the course is Paid, you can send me an email for coupon code if you want to.
Thanks,
Karthik KK
Sure. could you please provide me your email id or send me a test mail at ritjain@Hotmail.com
Kindly let me know the coupon code.
Please use coupon code UD40.
Thanks,
Karthik KK
After applying code, it still says to pay $40 🙁
Hi Karthik
Due to screen resolution click operation cannot perform on the control. Even i tried Findmatching controls. But i dont want mouse scroll. Please help.
Hi Balaji,
It doesnt matter the screen resolution (Unless until you give co-ordinates on the mouse method), did you check if it really clicks on the screen you have recorded or hand coded may be ?
Thanks,
Karthik KK
Hi Karthik,
After applying code, it still says to pay $40.