Is 'SpecRun adapter' in *.runsettings file support <SettingsFile>?

276 views
Skip to first unread message

Anjana Kulasinghe

unread,
Aug 20, 2015, 2:37:05 AM8/20/15
to SpecRun

Previously I used a *.testsettings file to define the remote server under Roles. (After compiling the code in the build server i need my tests to be executed in a remote TestControler where i have connected several TestAgents.)


I have successfully shifted to specrun and i'm using a different *.srprofile with TestRetry enabled for TFS builds.

Because of this, now i'm using a .runsettings file instead of .testsettings file.


Since the *.runsettings file do not have a tag to define the 'Remote Controller name' BuildServer is not redirecting the tests to my test controller.


My Question is

Is there a way to include 'Remote Controller name' in *.runsettings file??

If not 

Is 'SpecRun adapter' in *.runsettings file support <SettingsFile>?


I'm a very new to SpecRun and BuildServer configurations.

Any insights highly appreciated...

Thanks in advanced..



Additional Details:

I found this article and defined the settings file. But no luck.

https://msdn.microsoft.com/en-us/library/jj635153.aspx#sectionToggle7



Here's my  *.runsettings file.

<?xml version="1.0" encoding="utf-8"?>

<RunSettings>

  <!-- Configurations that affect the Test Framework -->

  <RunConfiguration>

    <!-- Path relative to solution directory -->

    <ResultsDirectory>........</ResultsDirectory>

  </RunConfiguration>

  

  <SpecRun>

    <Profile>TFS.srprofile</Profile>

    <ReportFile>TestResults.html</ReportFile>

    <GenerateSpecRunTrait>true</GenerateSpecRunTrait>

    <GenerateFeatureTrait>false</GenerateFeatureTrait>

<SettingsFile>........\Remote.AutoTest_2013.testsettings</SettingsFile>

<ForcedLegacyMode>true</ForcedLegacyMode>

  </SpecRun>

</RunSettings>


Here's my testsettings file.

<?xml version="1.0" encoding="UTF-8"?>
<TestSettings name="Remote.ps-all-bw" id="927b5........" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
  <Description>Remote settings for running the tests on ps-all-bw.mcom.local</Description>
  <Deployment>
    .........
  </Deployment>
  <RemoteController name="............local:6901" />
  <Execution location="Remote">
    <TestTypeSpecific>
      <UnitTestRunConfig testTypeId="...........">
        <AssemblyResolution>
          <TestDirectory useLoadContext="true" />
        </AssemblyResolution>
      </UnitTestRunConfig>
    </TestTypeSpecific>
    <AgentRule name=".........">
    </AgentRule>
  </Execution>
   <Properties />
</TestSettings>

Here's my TFS.srprofile file.

<?xml version="1.0" encoding="utf-8"?>
  <Settings projectName=".............." projectId="..................." />
  <Execution stopAfterFailures="20" testThreadCount="1" testSchedulingMode="Sequential" retryFor="Failing" retryCount="5"/>
  <!-- For collecting by a SpecRun server update and enable the following element. For using the 
      collected statistics, set testSchedulingMode="Adaptive" attribute on the <Execution> element.
    <Server serverUrl="http://specrunserver:6365" publishResults="true" />
  -->
  <TestAssemblyPaths>
    <TestAssemblyPath>...........Specs.dll</TestAssemblyPath>
  </TestAssemblyPaths>
  <DeploymentTransformation>
    <Steps>
    </Steps>
  </DeploymentTransformation>
</TestProfile>

Stephen McCafferty

unread,
Oct 12, 2015, 7:00:28 AM10/12/15
to SpecRun
The test adapter integration interface used to execute test in the test window and on TFS only supports a .runsettings file. .testsettings files are not supported.
Reply all
Reply to author
Forward
0 new messages