How to run WebAii automated tests as part of an automated build

4 posts, 0 answers
  1. Nuno
    Nuno avatar
    53 posts
    Member since:
    Dec 2007

    Posted 06 Dec 2010 Link to this post

    Hi all,

    I'm using TFS 2010 continous integration and I need to run WebAii tests as part of automated builds.

    WebAii tests have coded steps. I guess I need the "xpto.aii" files and the "xptoProj.dll" (because of the compiled coded steps) on the same drop folder. Right?

    So, as far as for the "xpto.aii" files, in VS2010 on the "Copy to Output Directory" I set it to "Copy Always".

    Finally, to try to glue both parts / to make them communicate, I edited the build definition and on the Process Tab / Automated Tests settings, I specified two assemblies: *xpto.aii* and *xptoProj*.dll

    This is not working because the test fails. Please see the attached image.

    As additional information, all machines have WebUI Test Studio version 2010.3.1117.0 and the "xpto.aii" test runs sucessfully from my local machine and from the build server machine (using the Test View Window)

    If I try to view test results by clicking on View Test Results located at the end of the build log I get an error (alert window), please find it also attached to this post. So, I opened the .TRX file to inspect and attach a screenshot to this post too.

    This is a major issue for us, so any help is very much appreciated.

    Regards,
    Nuno Senica

  2. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 07 Dec 2010 Link to this post

    Hello Nuno,

    First I can confirm we have a bug regarding the "Invalid cast" error message. This is bug 101274 and is actively being worked on.

    I have found that a TFS build will copy the .aii file to the drop folder automatically. You don't need to set it to "Copy always". The .dll is also a generated file and the TFS build should also copy this to the drop folder.

    What are you using to launch your tests? i.e. how are they getting started?

    Kind regards,
    Cody
    the Telerik team
    Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
  3. Nuno
    Nuno avatar
    53 posts
    Member since:
    Dec 2007

    Posted 09 Dec 2010 Link to this post

    Hi Cody,

    Lets use the open ticket to follow this issue.

    Thank you,
    Nuno Senica
  4. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 04 Mar 2011 Link to this post

    Hi Nuno,

    I'm just following up on some old threads. I see you have already downloaded the latest build that includes the fix for this bug. Let me know if you need further assistance.

     

    Greetings,
    Cody
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!