How to automate testing for WPF application and wcf services?

B M-A 361 Reputation points
2023-03-22T11:48:15.5866667+00:00

Hello!

I want to test an WPF application in Visual Studio -Test Explorer, but nothing happens.

Can you suggest an open source/ free application for automated tests which supports WPF and/ or WCF services?

Best regards,

testare

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,199 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
326 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 27,106 Reputation points Microsoft Vendor
    2023-03-23T07:51:02.0733333+00:00

    Hello @B M-A ,

    Welcome to Microsoft Q&A forum.

    but nothing happens.

    Did you add any test project into your solution for testing, for example Unit Test project?

    Looks like the Test Explorer failed to detect the existing tests. If you have a test project added, then please try to build/rebuild your solution.

    Can you suggest an open source/free application for automated tests which supports WPF and/or WCF services?

    This document: Use Coded UI tests to test your code mentions:

    We recommend using Playwright for testing web apps and Appium with WinAppDriver for testing desktop and UWP apps.

    For testing WPF application you can try to use Windows Application Driver(WinAppDriver), and for WCF services, you can try to use WCF Test Client tool.

    Have a nice day.

    Sincerely,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful