The imported project Telerik\WebUITestStudio\Telerik.WebUITestStudio.targets was not found

3 Answers 20 Views
Azure DevOps
Dan
Top achievements
Rank 1
Iron
Iron
Dan asked on 09 Apr 2024, 03:24 PM

 I have this import in my test studio project in visual studio <Import Project="$(MSBuildExtensionsPath)\Telerik\WebUITestStudio\Telerik.WebUITestStudio.targets" />

If i build it on my machine in visual studio it works.

 

I created an agend on my machine for azure devops pipeline and there it shows me an error in the build process task:

 

the whole error: 

##[error]Selmo.Studio.Ui.Automated.Tests\Selmo.Studio.Ui.Automated.Tests.csproj(121,3): Error MSB4019: The imported project "C:\Users\DanCostea\Desktop\BA1\_work\_tool\dotnet\sdk\6.0.420\Telerik\WebUITestStudio\Telerik.WebUITestStudio.targets" was not found. Confirm that the expression in the Import declaration "C:\Users\DanCostea\Desktop\BA1\_work\_tool\dotnet\sdk\6.0.420\\Telerik\WebUITestStudio\Telerik.WebUITestStudio.targets" is correct, and that the file exists on disk.

it seems that i doesnt look in my machines C:\Program Files (x86)\MSBuild\Telerik\WebUITestStudio\Telerik.WebUITestStudio.targets

but it tries to look in the agents folders.

I dont how to get around this issue.

I thought if i run the agent on my pc and test studio ultimate is installed there will be no problems

3 Answers, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 10 Apr 2024, 10:48 AM

Hello Dan,

Test Studio tests can be executed as part of an Azure pipeline by following the guidelines listed in this article. Please, set up your pipeline as suggested and let me know if you have any additional questions. 

Thank you for your cooperation.

Regards,
Elena
Progress Telerik

Virtual Classroom is the free self-paced technical training portal that gets you up to speed with Telerik and Kendo UI products including Telerik Test Studio! Check it out at https://learn.telerik.com/.
Dan
Top achievements
Rank 1
Iron
Iron
commented on 10 Apr 2024, 11:07 AM | edited

Yes, but when building the test studio project on the machine where i have the agent the error above is shown
0
Dan
Top achievements
Rank 1
Iron
Iron
answered on 10 Apr 2024, 01:08 PM
i found the answer. you need to do a vsbuild not a dotnet build and then it finds the correct path
0
Elena
Telerik team
answered on 11 Apr 2024, 10:29 AM

Hello Dan,

I am glad to know you found a workaround. 

However, I will strongly recommend to review the article I shared with you and follow the instructions on how to implement the Test Studio tests runs in the pipeline. Although you are using the Test Studio project as part of your overall solution, you need to consider that the this project should be considered a separate standalone project. 

Regards,
Elena
Progress Telerik

Virtual Classroom is the free self-paced technical training portal that gets you up to speed with Telerik and Kendo UI products including Telerik Test Studio! Check it out at https://learn.telerik.com/.
Tags
Azure DevOps
Asked by
Dan
Top achievements
Rank 1
Iron
Iron
Answers by
Elena
Telerik team
Dan
Top achievements
Rank 1
Iron
Iron
Share this question
or