Change GUI apphost tests to not rely on window searches (dotnet/core-setup#6823)
authorVitek Karas <vitek.karas@microsoft.com>
Mon, 17 Jun 2019 07:43:38 +0000 (00:43 -0700)
committerGitHub <noreply@github.com>
Mon, 17 Jun 2019 07:43:38 +0000 (00:43 -0700)
commit069290aad7af7dab405c6b8fdea465b899637142
treef3fb7465bb16b8b750bf9d931f42e00c415c9833
parent937026fb5780be979e679a1a5076895dbdda92b9
Change GUI apphost tests to not rely on window searches (dotnet/core-setup#6823)

* Disable failures when no window popup is detected. I kept the window popup detection code active as a "Fast" way to detect the process is done (it would timeout otherwise)
* Add new trace to note that we are trying to popup a window
* Add some test helpers to remove code duplication and better logging
* Validate product behavior based on traces

Commit migrated from https://github.com/dotnet/core-setup/commit/74e62c50dbf559ba0dc8e2b1d5893309c2f058a4
src/installer/corehost/corehost.cpp
src/installer/test/HostActivationTests/CommandExtensions.cs
src/installer/test/HostActivationTests/StandaloneAppActivation.cs
src/installer/test/TestUtils/Assertions/CommandResultAssertions.cs
src/installer/test/TestUtils/FileUtils.cs