web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Please suggest Dynamics CRM automation tool as coded ui not able to record maxm control

(0) ShareShare
ReportReport
Posted on by

Can you please let me know which Automation Testing tool support Dynamics CRM webclient and native client. I have already used coded ui test automation framework of VSTS 2012 but its not able to record the sliver light application..I am getting Microsoft.Visualstudio.Testtools.UItest.extension.UiTestcontrol not found exception error.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Niaz Profile Picture
    5 on at

    We can automate CRM 2013 UI using CodedUI and any ui scenario can be automated which includes all the scenarios like Sitemap, Lookup, Datetime, Assign, Entity Navigation and related entities and also there is a way too to do Data Driven Testing as well as CSV or Excel or SQL database as source. If you could include CRM 2013 sdk to validate data and controls types that would be much better and easy. I could able to automate both CRM 2011 and CRM 2013 using single code base on condition CRM version 5 or 6. The only thing which I could not able to automate compared to CRM 2011 is CCA/CCD Vs USD.

    Coming to your question for automating the CRM webclient, use coded ui record and playback steps and pick out only the properties needed to indentify the controls and write your own custom code to make it more simple and effective. Because all the control of same types on CRM UI have same logic and placement , so make sense to have helper which can control each control type..

    sample code:

      switch (controlType)

                       {

                           //TextBox And TextArea

                           case AttributeTypeCode.String:

                               HtmlEdit crmtxtBox = new HtmlEdit(EntityWindow);

                               crmtxtBox.SearchProperties[HtmlEdit.PropertyNames.Id] = controlId + "_i";

                               crmtxtBox.SearchProperties[HtmlEdit.PropertyNames.Class] = "ms-crm-InlineInput";

                               crmtxtBox.WaitForControlExist();

                               if (crmtxtBox.Exists)

                               {

                                   crmtxtBox.SetText("Test Data");

                               }

                               break;

                           //Picklist

                           case AttributeTypeCode.Picklist:

                               div = new HtmlDiv(EntityWindow);

                               div.SearchProperties[HtmlDiv.PropertyNames.Id] = controlId;

                               div.FilterProperties[HtmlDiv.PropertyNames.Class] = "ms-crm-Inline-Chrome picklist";

                               div.FilterProperties["data-attributename"] = controlId;

                               div.FilterProperties["aria-describedby"] = controlId + "_c";

                             .........

                             ....

  • Community Member Profile Picture
    on at

    Hi,

    I am trying to automate the CRM to save a new record. I have captured all the control in Designer.cs file. I just call the control in CodedUITest1.cs file and perform action on it (eg. Mouse.Click or Keyboard.Sendkeys). But when i click on save button it does not save the record.

    There is suggestion box JScript running on the controls on eventchange.

    What will be the solution for it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans