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é