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

Test as Step with build server - not working (Unable to find test)

3 Answers 143 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Zac Everett
Top achievements
Rank 1
Zac Everett asked on 24 Jun 2015, 10:09 AM

I have several simple test setup and create on test as a step which is used in another test.

This all works fine if i run the tests in visual studio.(Test Explorer - Run All)

I need to get the test working as part of a build definition on our build server.

The test that have a 'test as step' included in them fails on the build server with

'24/06/2015 10:18:35' - 'Fail' : 1. Execute test 'GotoTelerikWebSite'
InnerException:
System.IO.FileNotFoundException: Unable to find test 'C:\Builds\16\TestStudio\TTSNightly\tst\GotoTelerikWebSite.tstest'
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteTestInCurrentContext(String relativeTestPath)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.ExecuteTestActionDescriptor.Execute(IAutomationHost autoHost, TestAsStepResult result)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

 

It looks like its after the actual tstest in the build folder, I have set the 'Copy to Output Directory' to 'Copy always'

 Anybody have instruction on how to get 'Test as Step' tests workign with build servers?

3 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 29 Jun 2015, 06:22 AM
Hello Zac,

Please try enabling deploying and include the test as step in the list so it can be copied to the build server.

Give that a try and let us know the results. 

Regards,
Boyan Boev
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Zac Everett
Top achievements
Rank 1
answered on 29 Jun 2015, 03:51 PM

Unfortunately, I already had this setting enabled. I double checked and it hasn't made any difference.

I still get a FileNotFoundException for a 'TestAsStep' when running as a build on the build server. ie 'Queue new Build'

Any other ideas?

 

0
Konstantin Petkov
Telerik team
answered on 02 Jul 2015, 01:09 PM
Hello,

This is definitely a deployment problem on the build agent so it's about configuring the system properly. I cannot say what is missing in that setup however I'd recommend following this article to figure out what that is. I hope this helps!

Regards,
Konstantin Petkov
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Zac Everett
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Zac Everett
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Share this question
or