This is a migrated thread and some comments may be shown as answers.

MSTest ".cs"-Files and Teamcity

3 Answers 93 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
André
Top achievements
Rank 1
André asked on 03 Mar 2017, 12:22 PM

Hallo,

i have a problem with Teamcity and tests with coded steps in MSTest.

We use the Telerik Test Studio to write tests with and without coded steps. This Tests will be executed on a Teamcity Buildagent. But the tests with coded steps always fails. The Buildagent can not find the .cs file. The try to add the .cs file to the  included assemblies result a error Message that .cs is not a valid test file.

The complier in Telerik Test Studio show no errors.

This ist the Build log from Teamcity:

--Start--

[12:38:54]AMDP - Regression - VGFB - Grundeinstellungen- Kurzbezeichnung
[12:38:54]------------------------------------------------------------ '03.03.2017 12:22:21' - Executing test: 'AMDP - Regression - VGFB - Grundeinstellungen- Kurzbezeichnung', path: 'Startseite\Datenpflege\Artikeldaten\VGFB\Grundeinstellungen\AMDP - Regression - VGFB - Grundeinstellungen- Kurzbezeichnung.tstest.' '03.03.2017 12:22:21' - Using .Net Runtime version: '4.0.30319.42000' for test execution. Build version is '2017.1.207.0'. '03.03.2017 12:22:21' - Starting execution.... '03.03.2017 12:22:23' - Detected custom code in test. Locating test assembly: RegressionAmdp.dll. '03.03.2017 12:22:23' - Failure detected during execution. Details: ------------------------------------------------------------

'03.03.2017 12:22:23' - System.IO.FileNotFoundException: Unable to find the code behind assembly. Please make sure you have compiled your code behind without errors before attempting to execute the test. Looking for: C:\BuildAgent\work\bf1d8a2ab94255f3\afradmin_PCCIS83 2017-03-03 12_04_02\Out\RegressionAmdp.dll bei ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureAssemblyExists(String assembly, String folder) bei ArtOfTest.WebAii.Design.Execution.ExecutionUtils.CreateCodedTestInstance(Test test, TestResult result, String binariesFolder) bei ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult) bei ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command) ------------------------------------------------------------ '03.03.2017 12:22:24' - Test completed!

--End--

Thank for your help.

André

3 Answers, 1 is accepted

Sort by
0
Nikolay Petrov
Telerik team
answered on 08 Mar 2017, 05:28 PM
Hi André,

I would suggest to try to run the test using ArtOfTest.Runner.exe as it is explained at the bottom of this article.

I hope it will overcome the problem.

Regards,
Nikolay Petrov
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
André
Top achievements
Rank 1
answered on 09 Mar 2017, 05:52 AM

Hi Nikolay Petrov,

thank you for your answere.

Use the ArtOfTest.Runner.Exe is not an option for us as long the Feedback in Teamcity from this runner is only "Pass" or "Fail".  Today we have ~60 Tests developed by tester. They run every morning in Teamcity. All developer of our Team should see what is wrong without the need to open Telerik Test Studio. MSTest in Teamcity offers this option.

It would be great if we could find a solution for this problem in MSTest.

Regards,

André

0
Nikolay Petrov
Telerik team
answered on 13 Mar 2017, 03:12 PM
Hello André,

Unfortunately I could not help further her. In seems to be a known issue that is logged for further investigation on our feedback portal. You could follow its status here.

Thank you your understanding.

Regards,
Nikolay Petrov
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
André
Top achievements
Rank 1
Answers by
Nikolay Petrov
Telerik team
André
Top achievements
Rank 1
Share this question
or