Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5970427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:22:22+00:00 2026-05-22T20:22:22+00:00

Having WPF application with complex UI and want to write CodedUITest scripts for the

  • 0

Having WPF application with complex UI and want to write CodedUITest scripts for the same.
Since I am new to this, I need proper guidance/approach to write CodedUITest script.
It wont be possible to do everything using Record & Play stuff because we have some custom control exist on UI and can be changed any time.

I want to do this thing using C# code. facing issues while getting particular record from custom grid and identify control using C# code.

  • What kind of properties should I have on control for easy identification in CodedUITest?
  • Is it compulsary to give AutomationId to all the controls?
  • What needs to be done for dynamic controls like Treeview and grid?
  • How can I identify drag & drop type of window?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:22:23+00:00Added an answer on May 22, 2026 at 8:22 pm

    The theoretical side:

    Coded UI Tests are made to do UI regression tests. Given a certain data your UI should react in a specific way. The idea of this king of tests, is that given the same data over and over the UI keep behaving the same way. In other words: if given a certain dataset your UI changes how reacts (based on the recordings), the test should break.

    The Practical fact:

    Coded UI tests are a testing framework, and the recordings generates code. You can see that code, and IMHO you should see how that stuff works. If you need a more versatile coded UI you can achieve that by modifying the generated code. In fact I STRONGLY recommend to split the generated classes and methods, and do some clanup.

    The code generates a sort of UI Map (a class with properties referencing the UI objects used by the test). You can tailor that map manually adding or removing properties (after all, it’s just code) and create you own more complex UI map, in fact with effort, you can even make the maps “inherit” from other maps (more a la ASP.Net Master page).

    In WPF you can check if a control exist or not, his UI style, it’s content and his children (if there are).
    On the AutomationID subject, is only mandatory in the controls you need to check.
    On the D&D… I have no idea. I never did UI tests for D&D.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having a Grid in WPF application. I want to display all the
I'm building a WPF application and this WPF application is having a toolbar-like panel
I am new to graphics in C#/WPF application. I am having a WPF application
I am fairly new to WPF and I am having a problem with inheriting
I'm having a problem right now where my WPF application hides anything below the
I'm having a big problem when calling a web service from my WPF application.
Our WPF application in the current design opens new windows for list screen.We don't
I'm having an issue with tabbing through the controls on a WPF application using
So I'm pretty new to WPF and I'm having trouble with the layout of
I'm having trouble running a full trust WPF 4 XBAP (browser application), created with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.