XSL violation in test result file

4 posts, 0 answers
  1. Quenby
    Quenby avatar
    2 posts
    Member since:
    Aug 2010

    Posted 25 Mar 2011 Link to this post

    Our automated UI tests are run as ordered tests in our build process. Visual Studio and TFS report errors on generated test result file saying "XSD violation: The required attribute 'type' is missing." for each ordered test in the test result xml. The TestLink elements below should have the 'type' attribute.

    <TestDefinitions>
        <OrderedTest name="ci" storage="c:\***\***\ci.orderedtest" id="cef98908-e017-4389-8690-5c50b325805f" continueAfterFailure="true">
          <Css projectStructure="" iteration="" />
          <Execution timeOut="2147483647" id="48843d4f-c2d8-4905-a205-868476c80ddb" />
          <Owners>
            <Owner name="" />
          </Owners>
          <TestLinks>
            <TestLink id="594a2fef-7140-4bd9-ad8c-6d8be975b0be" name="SU01" storage="su01.aii" />
            <TestLink id="cb2cb72b-2a17-47b9-85dc-d417138eb7d4" name="SU02" storage="su02.aii" />
            <TestLink id="36ca1973-869c-47bb-ab01-aa68ec133fd2" name="SU03" storage="su03.aii" />
          </TestLinks>
        </OrderedTest>

    When I run the ordered tests through the command line on the machine these tests are developed on, the test result file contains the type attribute.

    <TestDefinitions>
        <OrderedTest name="ci" storage="c:\***\***\ci.orderedtest" id="cef98908-e017-4389-8690-5c50b325805f" continueAfterFailure="true">
          <Css projectStructure="" iteration="" />
          <Execution timeOut="2147483647" id="2a00d20e-14de-41ec-82bf-3ec417ce6092" />
          <Owners>
            <Owner name="" />
          </Owners>
          <TestLinks>
            <TestLink id="594a2fef-7140-4bd9-ad8c-6d8be975b0be" name="SU01" storage="su01.aii" type="ArtOfTest.WebAiiVSIP.WebAiiTest, ArtOfTest.WebAiiVSIP,   PublicKeyToken=14176981d1873d86" />
            <TestLink id="cb2cb72b-2a17-47b9-85dc-d417138eb7d4" name="SU02" storage="su02.aii" type="ArtOfTest.WebAiiVSIP.WebAiiTest, ArtOfTest.WebAiiVSIP,   PublicKeyToken=14176981d1873d86" />
            <TestLink id="36ca1973-869c-47bb-ab01-aa68ec133fd2" name="SU03" storage="su03.aii" type="ArtOfTest.WebAiiVSIP.WebAiiTest, ArtOfTest.WebAiiVSIP,   PublicKeyToken=14176981d1873d86" />
          </TestLinks>
        </OrderedTest>

    The development machine is 32-bit and the build machine is 64-bit. Both have the same version of WebUI Test Studio (2.0.8.0). What can I do to get the test results file on the build machine to add the type attribute to the TestLink element?
  2. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 25 Mar 2011 Link to this post

    Hi Quenby,

    Looking at your account status, it appears your license and support has expired. While you are free to use the software you have now for as long as you like, if you renew your license you would be entitled to access the most current version of Test Studio (renamed from Design Canvas) along with full support.

    We recently found a problem in this area and it may be fixed in the latest version. One of the fixes we made was to add a test type registry key. You can try adding this registry key yourself, but I cannot 100% guarantee it will fix this problem. For 64 bit VS 2008, this is the .reg file needed:

    Windows Registry Editor Version 5.00
     
    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\9.0\EnterpriseTools\QualityTools\Xml\http://artoftest.com/schemas/WebAiiDesignCanvas/1.0.0\ElementToClass]
    "WebAiiTestRunConfig"="ArtOfTest.WebAiiVSIP.WebAiiTestRunConfig, ArtOfTest.WebAiiVSIP"
    "WebAiiTestResult"="ArtOfTest.WebAiiVSIP.WebAiiTestResult, ArtOfTest.WebAiiVSIP"
    "WebAiiTest"="ArtOfTest.WebAiiVSIP.WebAiiTest, ArtOfTest.WebAiiVSIP"


    Regards,
    Cody
    the Telerik team
  3. Quenby
    Quenby avatar
    2 posts
    Member since:
    Aug 2010

    Posted 25 Mar 2011 Link to this post

    I had already found a forum post with that registry key fix. I had already checked the build machine and the registry entries were there.
  4. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 29 Mar 2011 Link to this post

    Hi Quenby,

    I am sorry that recommendation did not resolve the problem for you. At this point the best recommendation I have for you is to download and try our latest version. You should be able to run it in trial mode just to see how it behaves for you.

    All the best,
    Cody
    the Telerik team
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!