Use consistent version of TestFramework in all projects

This commit is contained in:
Matt Cooley 2022-02-09 16:43:41 -08:00
commit 4d08bf63b7
3 changed files with 6 additions and 6 deletions

View file

@ -3,7 +3,7 @@
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Appium.WebDriver" Version="4.0.0.6-beta" />
<PackageReference Include="MSTest.TestFramework" Version="1.4.0" />
<PackageReference Include="Appium.WebDriver" Version="4.3.1" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.8" />
</ItemGroup>
</Project>

View file

@ -56,9 +56,9 @@ namespace CalculatorUITestFramework
// Note: Multiple calculator windows (instances) share the same process Id
var options = new AppiumOptions();
if (context.Properties.TryGetValue("AppId", out object appId))
if (context.Properties.Contains("AppId"))
{
options.AddAdditionalCapability("app", (string)appId);
options.AddAdditionalCapability("app", (string)context.Properties["AppId"]);
}
else
{

View file

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<IsPackable>false</IsPackable>
@ -7,7 +7,7 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.8" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.8" />
<PackageReference Include="Appium.WebDriver" Version="4.0.0.6-beta" />
<PackageReference Include="Appium.WebDriver" Version="4.3.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CalculatorUITestFramework\CalculatorUITestFramework.csproj" />