0

I use the "One run per data source row" setting in Visual Studio:

Web Test Run Settings

As the dialog says, this is not saved.

How do I provide the setting to vstest.console.exe?


Edit: I think there used to be a Web Tests tab in the Test Settings Editor where I could set this. MSDN docs, screenshot below is from this article by John Peters.

My (VS 2017 Enterprise) Test Settings Editor does not show all these tabs. Only has General, Deployment, Setup and Cleanup Scripts, and Additional Settings.

enter image description here

Iain
  • 1,797
  • 1
  • 20
  • 38

1 Answers1

0

I was using the default Local.testsettings that comes with a VS 2017 Performance and Load Test project.

Turns out that if you hand-edit "LoadTest" at the end to "WebTest" then all the missing tabs appear. Including the Web Test tab which has the option I needed.

<?xml version="1.0" encoding="UTF-8"?>
<TestSettings name="Local" id="f541a35f-e46f-453e-82d1-813b068f8a1c" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
  <Description>These are default test settings for a local test run.</Description>
  <Deployment enabled="false" />
  <Execution>
    <TestTypeSpecific />
    <AgentRule name="Execution Agents">
    </AgentRule>
  </Execution>
  <Properties>
    <Property name="TestSettingsUIType" value="LoadTest" />
  </Properties>
</TestSettings>
Iain
  • 1,797
  • 1
  • 20
  • 38