Skip to content

Run FlaUI tests on CI #168

@kaafer

Description

@kaafer

Hi.

UI tests for desktop application(not store app):
Used:
FlaUI.Core v2.0.0-alpha6
FlaUI.UIA3 v2.0.0-alpha6
SpecFlow v.2.3.2
NUnit 3.10.1
NUnit.ConsoleRunner 3.8.0
TeamCity Professional 2017.1.4 (build 47070)

On my local machine works perfectly. On Teamcity test stand pc (win server 2012) when run from console - work perfectly.

But the problem when run test with Teamcity on test stand pc.
Build steps:
get project from git

  1. Restore NuGet Packages
  2. Build solution
  3. Run test with NUnit console runner.

Build is hangs on last step. On debug NUnit mode problem in last string here:
ProcessStartInfo process = new ProcessStartInfo(path);
var app = Application.AttachOrLaunch(process);
var automation = new UIA3Automation();
return app.GetMainWindow(automation);

app initialized success, automation too.
but when in GetWindow method this: _process.MainWindowHandle is hangs.

Any helps will be nice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions