{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/7705","repository_url":"https://api.github.com/repos/Microsoft/vsts-tasks","labels_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/7705/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/7705/comments","events_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/7705/events","html_url":"https://github.com/Microsoft/vsts-tasks/issues/7705","id":340585365,"node_id":"MDU6SXNzdWUzNDA1ODUzNjU=","number":7705,"title":"UWP UnitTest App won't run using VsTest.Console","user":{"login":"Daroosh","id":11029357,"node_id":"MDQ6VXNlcjExMDI5MzU3","avatar_url":"https://avatars0.githubusercontent.com/u/11029357?v=4","gravatar_id":"","url":"https://api.github.com/users/Daroosh","html_url":"https://github.com/Daroosh","followers_url":"https://api.github.com/users/Daroosh/followers","following_url":"https://api.github.com/users/Daroosh/following{/other_user}","gists_url":"https://api.github.com/users/Daroosh/gists{/gist_id}","starred_url":"https://api.github.com/users/Daroosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daroosh/subscriptions","organizations_url":"https://api.github.com/users/Daroosh/orgs","repos_url":"https://api.github.com/users/Daroosh/repos","events_url":"https://api.github.com/users/Daroosh/events{/privacy}","received_events_url":"https://api.github.com/users/Daroosh/received_events","type":"User","site_admin":false},"labels":[{"id":391088422,"node_id":"MDU6TGFiZWwzOTEwODg0MjI=","url":"https://api.github.com/repos/Microsoft/vsts-tasks/labels/Area:%20Test","name":"Area: Test","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-07-12T10:45:47Z","updated_at":"2018-07-30T14:49:32Z","closed_at":null,"author_association":"NONE","body":"## Troubleshooting\r\nI have a UWP composed of 2 projects:\r\n1) Universal App\r\n2) Unit Test App\r\n\r\nTests are visible in Visual Studio Test Explorer and I am fully capable of running them.\r\nAs soon as I try to run the tests from VsTest.Console using the following command:\r\n\r\n**_vstest.console WTS.Tests.build.appxrecipe /framework:FrameworkUap10_**\r\n\r\nI get the following error message:\r\n\r\n```\r\nMicrosoft (R) Test Execution Command Line Tool Version 15.7.2\r\nCopyright (c) Microsoft Corporation.  All rights reserved.\r\n\r\nStarting test execution, please wait...\r\nAttempting to deploy to target 'Local Machine'.\r\nUpdating the layout...\r\n\r\nCopying files: Total 72 mb to layout...\r\n\r\nChecking whether required frameworks are installed...\r\n\r\nRegistering the application to run from layout...\r\n\r\nDeployment complete (0:00:02.528). Full package name: \"68D6D712.Webroot.WebThreatShield.UWP.Edge_1.8.0.0_x86__zn6f25kw3wxgr\"\r\n\r\nDeployment operation succeeded, package moniker: '68D6D712.Webroot.WebThreatShield.UWP.Edge_1.8.0.0_x86__zn6f25kw3wxgr'.\r\nAttempting to launch app with app user model Id '68D6D712.Webroot.WebThreatShield.UWP.Edge_zn6f25kw3wxgr!vstest.executionengine.universal.App' and arguments '--port 50319 --endpoint 127.0.0.1:050319 --role client --parentprocessid 17012 --telemetryoptedin false'.\r\nSuccessfully launched process Id '10084'.\r\nMicrosoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: Failed to initialize client proxy: could not connect to test process.\r\n   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources)\r\n   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyExecutionManager.StartTestRun(TestRunCriteria testRunCriteria, ITestRunEventsHandler eventHandler)\r\nClosing app with package full name '68D6D712.Webroot.WebThreatShield.UWP.Edge_1.8.0.0_x86__zn6f25kw3wxgr'.\r\n\r\nTest Run Aborted.\r\n\r\n```\r\nThe test application starts and for a second the window blinks open but, it shuts down right away and I get the above mentioned issue.\r\n\r\n\r\n## Environment\r\n- Visual Studio 17 (v.15.7.5)\r\n- MSTest.TestAdapter v.1.2.1\r\n- MSTest.TestFramework v.1.2.1"},"comment":{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/comments/408890430","html_url":"https://github.com/Microsoft/vsts-tasks/issues/7705#issuecomment-408890430","issue_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/7705","id":408890430,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODg5MDQzMA==","user":{"login":"Daroosh","id":11029357,"node_id":"MDQ6VXNlcjExMDI5MzU3","avatar_url":"https://avatars0.githubusercontent.com/u/11029357?v=4","gravatar_id":"","url":"https://api.github.com/users/Daroosh","html_url":"https://github.com/Daroosh","followers_url":"https://api.github.com/users/Daroosh/followers","following_url":"https://api.github.com/users/Daroosh/following{/other_user}","gists_url":"https://api.github.com/users/Daroosh/gists{/gist_id}","starred_url":"https://api.github.com/users/Daroosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daroosh/subscriptions","organizations_url":"https://api.github.com/users/Daroosh/orgs","repos_url":"https://api.github.com/users/Daroosh/repos","events_url":"https://api.github.com/users/Daroosh/events{/privacy}","received_events_url":"https://api.github.com/users/Daroosh/received_events","type":"User","site_admin":false},"created_at":"2018-07-30T14:49:32Z","updated_at":"2018-07-30T14:49:32Z","author_association":"NONE","body":"@mayankbansal018 \r\n**TestPlatform.Universal: v.15.0.0**\r\n\r\nCli output:\r\n```\r\nMicrosoft (R) Test Execution Command Line Tool Version 15.7.2\r\nCopyright (c) Microsoft Corporation.  All rights reserved.\r\n\r\nStarting test execution, please wait...\r\nLogging Vstest Diagnostics in file: C:\\Users\\MELSAIE\\Desktop\\TOOLS\\EDGE\\BuildLogs\\log.txt\r\nAttempting to deploy to target 'Local Machine'.\r\nUpdating the layout...\r\n\r\nCopying files: Total <1 mb to layout...\r\n\r\nChecking whether required frameworks are installed...\r\n\r\nRegistering the application to run from layout...\r\n\r\nDeployment complete (0:00:01.946). Full package name: \"4106298d-5419-42c3-85ad-fcddccafd67d_1.0.0.0_x86__zn6f25kw3wxgr\"\r\n\r\nDeployment operation succeeded, package moniker: '4106298d-5419-42c3-85ad-fcddccafd67d_1.0.0.0_x86__zn6f25kw3wxgr'.\r\nAttempting to launch app with app user model Id '4106298d-5419-42c3-85ad-fcddccafd67d_zn6f25kw3wxgr!vstest.executionengine.universal.App' and arguments '--port 49810 --endpoint 127.0.0.1:049810 --role client --parentprocessid 16416 --diag \"C:\\Users\\MELSAIE\\Desktop\\TOOLS\\EDGE\\BuildLogs\\log.host.18-07-30_16-19-32_11173_6.txt\" --telemetryoptedin false'.\r\nSuccessfully launched process Id '10904'.\r\nMicrosoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: Failed to initialize client proxy: could not connect to test process.\r\n   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources)\r\n   at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyExecutionManager.StartTestRun(TestRunCriteria testRunCriteria, ITestRunEventsHandler eventHandler)\r\nClosing app with package full name '4106298d-5419-42c3-85ad-fcddccafd67d_1.0.0.0_x86__zn6f25kw3wxgr'.\r\n\r\nTest Run Aborted.\r\n```\r\nWhen run from cli, unitTest app flickers, a window is displayed and then disappears. Shortly after, the test fails and i get the error message mentioned above.\r\n\r\n[Debugx86.zip](https://github.com/Microsoft/vsts-tasks/files/2241613/Debugx86.zip)\r\n"}}
{"actor":{"display_login":"Daroosh"}}