Display report automation test on Cruise control

39 posts, 0 answers
  1. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 23 Aug 2012 Link to this post

    Hello Randrew,

    I apologize for the delay getting back to you, but I think you're going to like what I came up with for you. Instead of modifying your existing xsl files I created a new custom one just for Test Studio test results. You will now get a report similar to the attached screen shot. The custom XSL file is contained in the attached .zip file. Place it into your folder: C:\Program Files (x86)\CruiseControl.NET\webdashboard\xsl

    Next modify the buildReportBuildPlugin section of your dashboard.config file to look like:

    <buildReportBuildPlugin>
      <xslFileNames>
        <xslFile>xsl\header.xsl</xslFile>
        <xslFile>xsl\modifications.xsl</xslFile>
        <xslFile>xsl\compile-msbuild.xsl</xslFile>
        <xslFile>xsl\TestStudioMSTest2010Report.xsl</xslFile>
      </xslFileNames>
    </buildReportBuildPlugin>

    Optionally you can add a custom report entry:
    <xslReportBuildPlugin description="Test Studio Report" actionName="TestStudioReport" xslFileName="xsl\TestStudioMSTest2010Report.xsl"></xslReportBuildPlugin>

    The only problem I haven't worked out yet is calculating the duration of the test. The total time it took to run all of the tests is not contained in the build log. The start and finish time is there making it possible to calculate and the duration of each individual test is also stored (not currently displayed but could be) just not the grand total. I decided to give you what I have since it's 99% there and gives you the details you're looking for. I'm going to continue working on this and post an update later when I figure out how to calculate the grand total duration in XSL. Kind regards,
    Cody
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  2. Randrew
    Randrew avatar
    8 posts
    Member since:
    Aug 2012

    Posted 23 Aug 2012 Link to this post

    Hi Cody,

    Thanks for your help,
    The test names still don't appear please see attached screen shots.

    Best Regards,
    Randrew
  3. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 24 Aug 2012 Link to this post

    Hello,

    Please send me a complete copy of your Build Log (the XML) so I can figure out why.

    All the best,
    Cody
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  4. Randrew
    Randrew avatar
    8 posts
    Member since:
    Aug 2012

    Posted 24 Aug 2012 Link to this post

    Hi Cody,

    Attached herewith the buildlog


    Thanks,
    Randrew
  5. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 24 Aug 2012 Link to this post

    Hi Randrew,

    Thank you for sending that. I see now you're actually running coded unit tests. I assumed you were running Test Studio tests which I now see you are not. The XSL file I sent you only applies to running Test Studio tests via MSTest. We, the Test Studio support team, cannot assist with any report generation problems when using coded unit tests.

    Regards,
    Cody
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  6. Randrew
    Randrew avatar
    8 posts
    Member since:
    Aug 2012

    Posted 24 Aug 2012 Link to this post

    Hi Cody,

    Can you please teach me how to run my ccnet on Test Studio tests via MSTest?

    Thanks,
    Randrew
  7. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 29 Aug 2012 Link to this post

    Hi Randrew,

    Yes I certainly can do that. What I'm doing is updating our documentation for CruiseControl.NET to show you how. I'm nearly finished. I just need one or two more days to complete the work. Then it should have all the information you need.

    Greetings,
    Cody
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  8. Randrew
    Randrew avatar
    8 posts
    Member since:
    Aug 2012

    Posted 02 Jan 2013 Link to this post

    Hi Cody,

    Do you have the documentation already?

    Many Thanks,

    Randrew
  9. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 17 Jan 2013 Link to this post

    Hello Randrew,

    I am taking over this ticket from Cody. I am actively working on this and as soon as it is done I will update this ticket.

    Thank you for your patience and understanding regarding this matter.

    Kind regards,
    Ivaylo
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!