Um codierte UI-Tests mit Visual Studio (2017) auszuführen, ist eine Enterprise-Lizenz erforderlich.Ist eine Visual Studio Enterprise-Lizenz erforderlich, um Teststack.White für die UI-Automatisierung zu verwenden?
Weiß jemand, dass dies für TestStack.White Framework gilt?
ich Probleme habe es auf und läuft auf einem Testprojekt bekommen, wo ich die folgende Störung erhalte:
"System.ComponentModel.Win32Exception: The system cannot find the file specified"
Code:
[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, "");
}
}
Versuchen Sie 'applicationDirectory' als Arbeitsverzeichnis im zweiten Parameter von 'Application.Launch' zu übergeben. –