mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 12:18:50 +02:00
change winappdriver path in fz tests
This commit is contained in:
@@ -2,9 +2,7 @@
|
|||||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
|
||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
|
||||||
namespace Microsoft.FancyZonesEditor.UITests
|
namespace Microsoft.FancyZonesEditor.UITests
|
||||||
@@ -17,17 +15,9 @@ namespace Microsoft.FancyZonesEditor.UITests
|
|||||||
[AssemblyInitialize]
|
[AssemblyInitialize]
|
||||||
public static void SetupAll(TestContext context)
|
public static void SetupAll(TestContext context)
|
||||||
{
|
{
|
||||||
string? sourceDirPath = Environment.GetEnvironmentVariable("SrcPath"); // get source dir in CI
|
string winAppDriverPath = "C:\\Program Files (x86)\\Windows Application Driver\\WinAppDriver.exe";
|
||||||
if (sourceDirPath == null)
|
context.WriteLine($"Attempting to launch WinAppDriver at: {winAppDriverPath}");
|
||||||
{
|
appDriver = Process.Start(winAppDriverPath);
|
||||||
sourceDirPath = Path.GetFullPath($"{Environment.CurrentDirectory}" + @".\..\..\..\..\..\"); // local
|
|
||||||
}
|
|
||||||
|
|
||||||
context.WriteLine($"Source dir: {sourceDirPath}");
|
|
||||||
string winAppDriver = Path.Combine(sourceDirPath, @".\deps\WinAppDriver", "WinAppDriver.exe");
|
|
||||||
|
|
||||||
context.WriteLine($"Attempting to launch WinAppDriver at: {winAppDriver}");
|
|
||||||
appDriver = Process.Start(winAppDriver);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[AssemblyCleanup]
|
[AssemblyCleanup]
|
||||||
|
|||||||
@@ -2,9 +2,7 @@
|
|||||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
|
||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
|
||||||
namespace Microsoft.FancyZonesEditor.UITests
|
namespace Microsoft.FancyZonesEditor.UITests
|
||||||
|
|||||||
Reference in New Issue
Block a user