runsettings

Using runsettings file when running NUnit tests via command line

早过忘川 提交于 2021-02-18 17:58:31
问题 I created a runsettings file which looks like this <?xml version="1.0" encoding="utf-8"?> <RunSettings> <TestRunParameters> <Parameter name ="environment" value="PROD" /> </TestRunParameters> </RunSettings> And then in my TestSetup portion (using LeanFT for UI tests) I specify that the target environment is contained under a paramater called environment string env= TestContext.Parameters["environment"]; This doesnt seem to work, and I am not getting any particular error messages. Is this the

Using runsettings file when running NUnit tests via command line

我怕爱的太早我们不能终老 提交于 2021-02-18 17:58:26
问题 I created a runsettings file which looks like this <?xml version="1.0" encoding="utf-8"?> <RunSettings> <TestRunParameters> <Parameter name ="environment" value="PROD" /> </TestRunParameters> </RunSettings> And then in my TestSetup portion (using LeanFT for UI tests) I specify that the target environment is contained under a paramater called environment string env= TestContext.Parameters["environment"]; This doesnt seem to work, and I am not getting any particular error messages. Is this the

How can I force exclusion of certain assemblies from Code Coverage?

泄露秘密 提交于 2019-12-06 02:19:10
问题 I'm trying to restrict the assemblies that get analyzed in the Code Coverage procedure in TFS by using a runsettings file, but some assemblies insist in being analyzed even if I exclude them explicitly. This is my current runsettings file contents: <?xml version="1.0" encoding="utf-8"?> <RunSettings> <!-- Configurations for data collectors --> <DataCollectionRunSettings> <DataCollectors> <DataCollector friendlyName="Code Coverage" uri="datacollector://Microsoft/CodeCoverage/2.0"

How can I force exclusion of certain assemblies from Code Coverage?

一笑奈何 提交于 2019-12-04 05:52:37
I'm trying to restrict the assemblies that get analyzed in the Code Coverage procedure in TFS by using a runsettings file, but some assemblies insist in being analyzed even if I exclude them explicitly. This is my current runsettings file contents: <?xml version="1.0" encoding="utf-8"?> <RunSettings> <!-- Configurations for data collectors --> <DataCollectionRunSettings> <DataCollectors> <DataCollector friendlyName="Code Coverage" uri="datacollector://Microsoft/CodeCoverage/2.0" assemblyQualifiedName="Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector, Microsoft.VisualStudio

How to access TestRunParameters within RunSettings file

六眼飞鱼酱① 提交于 2019-11-28 17:26:58
问题 Reading through https://msdn.microsoft.com/en-us/library/jj635153.aspx I have created a .RunSettings files with a few parameters similar to the example: <TestRunParameters> <Parameter name="webAppUrl" value="http://localhost" /> <Parameter name="webAppUserName" value="Admin" /> <Parameter name="webAppPassword" value="Password" /> </TestRunParameters> I plan on having a .RunSettings file for each of our environments with appropriate URLs and credentials for running a CodedUI test on the