Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish test result fails if trx file has a username in USERNAME format instead of DOMAIN\USERNAME #428

Closed
jessehouwing opened this issue Aug 19, 2015 · 3 comments
Assignees

Comments

@jessehouwing
Copy link
Contributor

Related to:
hatchteam/karma-trx-reporter#1

Related to:
#418

It looks like the trx test publish fails when the username is not in the windows default format. Going cross platform it may not be the best way going forward.

@adriaanthomas
Copy link

Example generated .trx file using karma-trx-reporter:

<?xml version="1.0" encoding="UTF-8"?>
<TestRun id="87d9df12-a9b2-e8a4-d174-c9d1a9975b7c" name="[email protected] 2015-08-19T17:26:44" runUser="adriaan" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
  <TestSettings name="Karma Test Run" id="3d4573a7-345c-7b1b-30d4-6ea74be41c3e"/>
  <ResultSummary outcome="Passed">
    <Counters total="2" executed="2" passed="2" error="0" failed="0"/>
  </ResultSummary>
  <TestDefinitions>
    <UnitTest name="PhantomJS 1.9.8 (Mac OS X 0.0.0)_should return a promise" id="5226f049-6190-2a8f-e463-0a60ce0ef832">
      <Execution id="22655079-1670-a6e0-6121-2308991d18c1"/>
      <TestMethod codeBase="given the contractAccountAuthorizationService.initialise.PhantomJS 1.9.8 (Mac OS X 0.0.0)_should return a promise" name="PhantomJS 1.9.8 (Mac OS X 0.0.0)_should return a promise" className="given the contractAccountAuthorizationService.initialise"/>
    </UnitTest>
    <UnitTest name="PhantomJS 1.9.8 (Mac OS X 0.0.0)_should return a promise" id="12d26679-6818-35aa-9870-e166dc26333e">
      <Execution id="d9e0bc29-e748-cebe-487a-85dfa6b43b87"/>
      <TestMethod codeBase="given the contractAccountAuthorizationService.whenInitialised.PhantomJS 1.9.8 (Mac OS X 0.0.0)_should return a promise" name="PhantomJS 1.9.8 (Mac OS X 0.0.0)_should return a promise" className="given the contractAccountAuthorizationService.whenInitialised"/>
    </UnitTest>
  </TestDefinitions>
  <TestLists>
    <TestList name="Results Not in a List" id="8c84fa94-04c1-424b-9868-57a2d4851a1d"/>
    <TestList name="All Loaded Results" id="19431567-8539-422a-85d7-44ee4e166bda"/>
  </TestLists>
  <TestEntries>
    <TestEntry testId="5226f049-6190-2a8f-e463-0a60ce0ef832" executionId="22655079-1670-a6e0-6121-2308991d18c1" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d"/>
    <TestEntry testId="12d26679-6818-35aa-9870-e166dc26333e" executionId="d9e0bc29-e748-cebe-487a-85dfa6b43b87" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d"/>
  </TestEntries>
  <Results>
    <UnitTestResult executionId="22655079-1670-a6e0-6121-2308991d18c1" testId="5226f049-6190-2a8f-e463-0a60ce0ef832" testName="PhantomJS 1.9.8 (Mac OS X 0.0.0)_should return a promise" computerName="devmachine.intranet" startTime="2015-08-19T17:26:47" endTime="2015-08-19T17:26:47" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="Passed" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d"/>
    <UnitTestResult executionId="d9e0bc29-e748-cebe-487a-85dfa6b43b87" testId="12d26679-6818-35aa-9870-e166dc26333e" testName="PhantomJS 1.9.8 (Mac OS X 0.0.0)_should return a promise" computerName="devmachine.intranet" startTime="2015-08-19T17:26:47" endTime="2015-08-19T17:26:47" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="Passed" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d"/>
  </Results>
</TestRun>

@kaadhina
Copy link
Contributor

Hi,
The publish fails because it is looking for the start and finish times under a tag like in a trx generated from vstest.
You can workaround this by fixing the trx generator to include the tag.
Meanwhile, since these fields are not mandatory to publish results, we will be fixing the publish to be more flexible with the trx format.

Thanks,
Kavipriya.

@bryanmacfarlane
Copy link
Contributor

@kaadhina - is this getting fixed in the S88 rollout?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants