Is it possible to use MS Coded UI Test framework to test Java GUI application?



  • MSDN page Supported Configurations and Platforms for Coded UI Tests and Action Recordings tells that Java platform is not supported. But now Java development is possible with Visual Studio Team Services (VSTS) and Team Foundation Server (TFS) (https://java.visualstudio.com/) so it is strange for me that in Coded UI Test there is no Java GUI testing support.

    I tried to record actions for Java GUI in Microsoft Test Manager and it handles the task quite well (but this tool is primarily for manual testing and recording is just to help handle manual test steps). Still there is a possibility to export MTM tests to CodedUI tests in C# so may be there is something wrong in Coded UI Test support matrix? And it is possible to use MS Coded UI Test framework to test Java GUI application.

    P.S.: I do not have VS Ultimate or Premium to check this feature (Coded UI Tests is only available in them)



  • You can download a 90-day trail of Visual Studio 2015 enterprise to test it out.

    The Coded UI testing framework relies on the Microsoft UI Automation framework. Any GUI tool that does not implement MS UI Automation hooks cannot be automated with Coded UI. It seems the Java SWT uses native windows controls and this should be automatable with Coded UI according to this answer.

    So if the Java GUI uses native elements it could work, other-wise not. Guess this is way its not in the matrix.

    I have worked with libraries that didn't implement this and I could not automate them. I wrote a very simple Image-based testing class for Coded UI that could help working with this.



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2