SpecRun+ Test Run Error

329 views
Skip to first unread message

vlad.qbs...@gmail.com

unread,
Nov 24, 2016, 11:28:36 AM11/24/16
to SpecRun, vl...@qbs.co.uk
Hello Support,

Could you please help me with the following issue? 

When I run the discover test i get the following error:

------ Discover test started ------

An exception occurred while test discoverer 'SpecRunTestDiscoverer' was loading tests. Exception: Invalid configuration file: There is an error in XML document (2, 2). -> <TestProfile xmlns='http://www.specflow.org/schemas/plus/TestProfile/1.5'> was not expected.

========== Discover test finished: 0 found (0:00:00.343189) ==========



Please see the profile used below:


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

<TestProfile xmlns="http://www.specflow.org/schemas/plus/TestProfile/1.5">

  <Settings projectName="AcceptanceTests" projectId="{a1aba0a3-22d3-4d02-882d-0d44a1cf8c44}" />

  <Execution stopAfterFailures="3" testThreadCount="1" testSchedulingMode="Sequential" />

  <!-- 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>AcceptanceTests.dll</TestAssemblyPath>

  </TestAssemblyPaths>

  <DeploymentTransformation>

    <Steps>

      <!-- sample config transform to change the connection string-->

      <!--<ConfigFileTransformation configFile="App.config">

        <Transformation>

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

                                                <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">

                <connectionStrings>

                  <add name="MyDatabase" connectionString="Data Source=.;Initial Catalog=MyDatabaseForTesting;Integrated Security=True"

                       xdt:Locator="Match(name)" xdt:Transform="SetAttributes(connectionString)" />

                </connectionStrings>

                                                </configuration>

                                         ]]>

        </Transformation>

      </ConfigFileTransformation>-->

    </Steps>

  </DeploymentTransformation>

</TestProfile>

 "



Could you please advise? Thank you.


Kind regards,

Vlad.

Andreas Willich

unread,
Nov 24, 2016, 11:32:41 AM11/24/16
to SpecRun, vl...@qbs.co.uk
Hi

Which version of SpecFlow+Runner are you using?
When do you get this error? 
   When you run the tests in Visual Studio? 
   When you run the tests via command line? 
   When you run the tests on your buildserver? If it is happening here, which build server are you using and if it is TFS, if it is a XAML build or a new build.

Thanks!

Andreas Willich

--
You received this message because you are subscribed to the Google Groups "SpecRun" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specrun+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jim Cegelski

unread,
Dec 6, 2016, 1:10:58 AM12/6/16
to SpecRun, vl...@qbs.co.uk

Hi Vlad,  Did you figure out this issue?  I have the exact same issue running tests from the command prompt.  I am on SpecRun.Runner v1.5.2.  The tests were working fine for a while, but now I get this error every time.  I don't know what I did to cause this.  Any info you could provide would be greatly appreciated!


Thanks,

Jim 

Andreas Willich

unread,
Dec 6, 2016, 3:43:38 AM12/6/16
to SpecRun, vl...@qbs.co.uk
Hi Jim

I didn't get an answer from Vlad on my questions.
If you could answer them, I probably can help you:

When do you get this error? 
 .) if they are running in Visual Studio? 
 .) if they are running via command line? 
 .) if they are running on your buildserver? If it is happening here, which build server are you using and if it is TFS, if it is a XAML build or a new build.

Thanks
Andreas

Full disclosure: I am one of the developers of SpecFlow+

--

Andreas Willich

unread,
Dec 6, 2016, 4:37:32 AM12/6/16
to Vlad Ardelean, SpecRun
Thanks Vlad for the answer.

It is interessting, that downgrading to 1.3 helped. The error was about the namespace in the srProfile-XML. We added support for the namespace "http://www.specflow.org/schemas/plus/TestProfile/1.5in 1.5. So versions before that should not be able to handle the given srProfile.

There is one case, when this error can occour and we are aware of. It is when you are using TFS with XAML- Build Agents and you are using different SpecFlow+Runner versions on the same agent. Here the agent caches after restart the first used version of SpecFlow+Runner and uses this until it is restarted again. See http://specflow.org/plus/documentation/SpecFlowPlus-and-Build-Servers/ - Known Issues for that. This is a behavior of the xaml build agent, which we can not change.

We are not aware of any additional issues with loading the srProfile. So additional information from your end users would be appreciated to get to the root of this error.

Best regards
Andreas





On Tue, Dec 6, 2016 at 10:24 AM Vlad Ardelean <vl...@qbs.co.uk> wrote:

Good day Andreas,

 

 

Apologies for the delay, I have just reiceved the answer from the end user, please find it below:

 

The issue has been resolved when I removed latest versions of specrun.runner and specflow.specrun  and added specrun 1.3.0 and specflow.specrun1.3.0

 

I think there is a bug in latest version.

 

I think they need to resolve this as soon as they can.

I’m not sure if this helps. Thank you.

 

Kind regards,

Vlad.

Reply all
Reply to author
Forward
0 new messages