0

我一直在 specflow 中设置一个简单的浏览器自动化框架,当我从 VS 运行测试时一切正常。但是,如果我尝试通过命令行通过 specrun 运行它们;它运行但没有列出任何测试。我在这里遗漏了什么吗,因为我觉得我已经遵循了文档。

这就是我运行的:

> specrun.exe run Browser_Automation_Framework\Default.srprofile

这就是我得到的结果

************************
*** SpecFlow+ Runner ***
************************

Version 3.9.7+4ac605a907
Assembly Version 3.9.0.0
Released 03-03-2015

Copyright © SpecFlow Team
http://www.specflow.org/plus

Checking activation
Activated.
Activation check completed

SpecRun Console Tracer - press CTRL+C to stop before starting the next test

Discovered 0 tests
Thread#0:


Done.
Result: tests executed with warnings
  Total: 0
  Succeeded: 0
  Ignored: 0
  Pending: 0
  Skipped: 0
  Failed: 0

我的默认.srprofile

<?xml version="1.0" encoding="utf-8"?>
<TestProfile xmlns="http://www.specflow.org/schemas/plus/TestProfile/1.5">
  <Settings 
      projectName="Browser Automation Framework" 
      reportTemplate="ReportTemplate.cshtml"/>
  <Execution stopAfterFailures="1" testThreadCount="1" testSchedulingMode="Sequential" />
  <TestAssemblyPaths>
    <TestAssemblyPath>Browser_Automation_Framework.dll</TestAssemblyPath>
  </TestAssemblyPaths>
    <DeploymentTransformation>
        <Steps>
            <EnvironmentVariable variable="BaseURL" value="https://google.dk/" />
        </Steps>
    </DeploymentTransformation>
</TestProfile>
4

0 回答 0