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

Developer technologies | Visual Studio | Testing
Developer technologies | C#
0 comments No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 34,441 Reputation points Microsoft External Staff
    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.