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

4 posts, 0 answers
  1. Zac Everett
    Zac Everett avatar
    15 posts
    Member since:
    Sep 2012

    Posted 24 Jun 2015 Link to this post

    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?

  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 29 Jun 2015 Link to this post

    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!
  3. Zac Everett
    Zac Everett avatar
    15 posts
    Member since:
    Sep 2012

    Posted 29 Jun 2015 in reply to Boyan Boev Link to this post

    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?

     

  4. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 02 Jul 2015 Link to this post

    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!
Back to Top