是否需要 Visual Studio 企业许可证才能将 Teststack.White 用于 UI 自动化?

Is it necessary to have Visual Studio Enterprise licence to use Teststack.White for UI Automation?

要使用 visual studio (2017) 运行 编码 UI 测试,必须拥有企业许可证。

有人知道这适用于 TestStack.White 框架吗?

我在启动和 运行 测试项目时遇到问题,我收到以下错误:

"System.ComponentModel.Win32Exception: The system cannot find the file specified"

代码:

[TestClass()]
public class MainWindowTests
{
    private static TestContext _testContext;

    [ClassInitialize]
    public static void Setup(TestContext testContext)
    {
        _testContext = testContext;
    }

    [TestMethod()]
    public void MainWindowTest()
    {
        var applicationDirectory = _testContext.DeploymentDirectory;
        var applicationPath = Path.Combine(applicationDirectory, "TestApp.exe");
        var application = Application.Launch(applicationPath);
        Window window = application.GetWindow("MainWindow");

        var button = window.Get<TestStack.White.UIItems.Button>();
        var label = window.Get<TestStack.White.UIItems.Label>();

        Assert.AreEqual(label.Text, ""); 

        button.Click();

        Assert.AreEqual(label.Text, "");
    }
}

不,使用 TestStack White 实现 UI 自动化不需要 Visual Studio 企业许可证。

在以前的角色中,公司使用 White 来自动测试 WPF 应用程序,而开发人员没有 Visual Studio Enterprise。

您确定为启动应用程序构建的路径是正确的吗?