Testing Framework not compatible with dotnet 6 ?

1 Answer 319 Views
General Discussions
François
Top achievements
Rank 1
François asked on 16 Mar 2022, 10:30 AM

Hi everyone,

I downloaded yerstaday the testing framework (https://www.telerik.com/try/telerik-testing-framework).

And tried to use it today with a dotnet 6 wpf application and a dotnet 6 xunit test project and it seams that the testing framework has compatibility issues.

Can someone confirm it ?

Plamen Mitrev
Telerik team
commented on 17 Mar 2022, 01:53 PM

Hi François,

We recently release support for .net core 5 WPF applications and I tested that a demo WPF application with the following target framework also works. Can you tell me more about the application you want to automate? What is the target framework? Can you share a demo app for me to test?

<TargetFramework>net6.0-windows</TargetFramework>

Thank you for starting a discussion on the topic.

François
Top achievements
Rank 1
commented on 18 Mar 2022, 10:17 AM | edited

 

Hi Plamen,

enclosed is a sample project that produces the error on my machine.

  • Step 1, compile WpfApp ;
  • Step 2, compile WpfApp.AcceptanceTests ;
  • Step 3, debug tests ;

Waiting for your feedback.

Plamen Mitrev
Telerik team
commented on 18 Mar 2022, 01:25 PM

Thank you for your details follow up. Please see the thread answer for more details.

1 Answer, 1 is accepted

Sort by
0
Plamen Mitrev
Telerik team
answered on 18 Mar 2022, 01:33 PM

Hello François,

I tested locally with .NET core 6 WPF application and Test Studio is able to record and execute tests against it. The issue in this case is caused by the target framework of the xunit test project, which is also .NET core 6. The Telerik Testing Framework works against .NET 4.5 due to limitations from some of the dependencies and our support for older versions of Visual Studio.

I created a public feature request on your behalf to increase the supported version of the test project and our product team will evaluate it further. You can add your vote and follow the public item to receive notifications where there is any activity.

In the meantime, you can create new test project that is targeting .NET 4.5 framework and try out the Telerik Testing Framework for your automation scenario.

Thank you for your cooperation and detailed posts.

Regards,
Plamen Mitrev
Progress Telerik

Does UI testing really fit into CI/CD?

If you want to find out how to take advantage of continuous delivery pipelines, join our Test Studio webinar on Wednesday, April 6 at 11 am EST | 5 pm CET.

François
Top achievements
Rank 1
commented on 23 Mar 2022, 10:37 AM

Thanks for the answer and for the feature request.

Unfortunately Specflow is not compatible with .NET 4.5.

I turned my attention to test studio.

Plamen Mitrev
Telerik team
commented on 23 Mar 2022, 11:53 AM

I understand that the clash of supported versions between Test Studio and Specflow is causing troubles. I hope that we can dedicate time to increase the supported version of .NET framework for test projects. That will allow you and other users to integrate Test Studio with other tools and frameworks.

Thank you for starting this discussion and for sharing details about the use case you have.

Daniel
Top achievements
Rank 3
Iron
Iron
Iron
commented on 16 Dec 2022, 08:28 AM

Thank you for making it clear here, that Test Studio is only compatible with C# version 5.0. Because we're running into a lot of errors with our test runner now because it's claiming C# features of version 6 and higher (null propagators, short properties with lambda, string interpolations). Please consider to make it clearly in your documentations that C# written coded tests are only compatible with .NET Framework 4.5 since I've never found any informations about it.
Elena
Telerik team
commented on 16 Dec 2022, 02:52 PM

Hi Daniel, 

It's great that you found the answer for some troubles you experienced. 

Actually, the information about the supported target framework version for Test Studio project is listed in the system requirements page - you can check it here. But you are right that this might be not that clear and that it could be more visible. I'll note that down in the list for documentation improvements. 

While on this topic I wanted to add that we are working on upgrading the target framework version, so you can check our future release notes for info on this.

Don't hesitate to contact the Test Studio Support team in case you have any further queries. Thank you for your cooperation! 

Regards, 
Elena

Daniel
Top achievements
Rank 3
Iron
Iron
Iron
commented on 19 Dec 2022, 07:48 AM | edited

Hi Elena,

indeed the target frameworks for the Test Studio plug in itself are documented. And my written tests work with the newest version 4.8.

But I'm talking about the Test Runner. We started to run the tests I've written in VS with .NET Framework 4.8 in the test runner and it had a long list of compilation errors because the test runner is only supporting .NET Framework 4.5 with C# version 5.0. The test runners target framework isn't documented in your link.

So at the end the VS plug in is supporting higher .NET Framework versions than the test runner.

And I'm looking forward for the future update supporting higher framework versions.

Regards,

Daniel

Elena
Telerik team
commented on 19 Dec 2022, 09:57 AM

Hi Daniel, 

Thank tor following up on the topic.

Actually the projects in Test Studio targets .Net Framework 4.5.2 as a predefined setting, which cannot be changed. That means that all tests executed through the Test Studio engine - including the Test Studio Test Runner, use the 4.5.2 version of the .Net Framework.

The option for using higher version of the target framework is only available in Visual Studio projects, where you can change this. 

I'm sorry to hear that this wasn't clear enough and will do my best to update the information on the documentation in more clear words.

Thank you for your cooperation once again. 

Regards,
Elena

Tags
General Discussions
Asked by
François
Top achievements
Rank 1
Answers by
Plamen Mitrev
Telerik team
Share this question
or