Loading WindowsDevicePortalWrapper/TestAppXbox/Operations/ScreenshotOperation.cs +2 −3 Original line number Diff line number Diff line Loading @@ -5,10 +5,9 @@ //---------------------------------------------------------------------------------------------- using System; using System.IO; using System.Threading.Tasks; using Microsoft.Tools.WindowsDevicePortal; using static Microsoft.Tools.WindowsDevicePortal.DevicePortal; using System.IO; namespace XboxWdpDriver { Loading Loading @@ -54,7 +53,6 @@ namespace XboxWdpDriver } else { Task<Stream> screenshotTask = portal.TakeXboxScreenshot(); screenshotTask.Wait(); Loading @@ -62,6 +60,7 @@ namespace XboxWdpDriver { screenshotTask.Result.CopyTo(fileStream); } Console.WriteLine("Screenshot saved as {0}.", filepath); } } Loading WindowsDevicePortalWrapper/TestAppXbox/Program.cs +1 −1 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ namespace XboxWdpDriver "systemPerf\n" + "config\n" + "file\n" + "screenshot\n"; "screenshot"; /// <summary> /// Usage string Loading WindowsDevicePortalWrapper/UnitTestProject/Device-VersionTests/XboxOne/XboxOne_rs1_xbox_rel_1608.cs +3 −0 Original line number Diff line number Diff line Loading @@ -583,6 +583,9 @@ namespace Microsoft.Tools.WindowsDevicePortal.Tests Assert.AreEqual("No", recievedSetting.RequiresReboot); } /// <summary> /// Simple test of Xbox Screenshot API. /// </summary> public void XboxScreenshotTest() { TestHelpers.MockHttpResponder.AddMockResponse(DevicePortal.GetXboxScreenshotApi, HttpMethods.Get); Loading XboxWDPDriver.md +1 −0 Original line number Diff line number Diff line Loading @@ -213,6 +213,7 @@ XboxWDPDriver.exe /op:file /supop:download /knownfolderid:DevelopmentFiles /subp ### The Screenshot operation Allows taking of screenshots of the remote console. Usage: ```shell [/filepath:<filepath> [/override]] Loading Loading
WindowsDevicePortalWrapper/TestAppXbox/Operations/ScreenshotOperation.cs +2 −3 Original line number Diff line number Diff line Loading @@ -5,10 +5,9 @@ //---------------------------------------------------------------------------------------------- using System; using System.IO; using System.Threading.Tasks; using Microsoft.Tools.WindowsDevicePortal; using static Microsoft.Tools.WindowsDevicePortal.DevicePortal; using System.IO; namespace XboxWdpDriver { Loading Loading @@ -54,7 +53,6 @@ namespace XboxWdpDriver } else { Task<Stream> screenshotTask = portal.TakeXboxScreenshot(); screenshotTask.Wait(); Loading @@ -62,6 +60,7 @@ namespace XboxWdpDriver { screenshotTask.Result.CopyTo(fileStream); } Console.WriteLine("Screenshot saved as {0}.", filepath); } } Loading
WindowsDevicePortalWrapper/TestAppXbox/Program.cs +1 −1 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ namespace XboxWdpDriver "systemPerf\n" + "config\n" + "file\n" + "screenshot\n"; "screenshot"; /// <summary> /// Usage string Loading
WindowsDevicePortalWrapper/UnitTestProject/Device-VersionTests/XboxOne/XboxOne_rs1_xbox_rel_1608.cs +3 −0 Original line number Diff line number Diff line Loading @@ -583,6 +583,9 @@ namespace Microsoft.Tools.WindowsDevicePortal.Tests Assert.AreEqual("No", recievedSetting.RequiresReboot); } /// <summary> /// Simple test of Xbox Screenshot API. /// </summary> public void XboxScreenshotTest() { TestHelpers.MockHttpResponder.AddMockResponse(DevicePortal.GetXboxScreenshotApi, HttpMethods.Get); Loading
XboxWDPDriver.md +1 −0 Original line number Diff line number Diff line Loading @@ -213,6 +213,7 @@ XboxWDPDriver.exe /op:file /supop:download /knownfolderid:DevelopmentFiles /subp ### The Screenshot operation Allows taking of screenshots of the remote console. Usage: ```shell [/filepath:<filepath> [/override]] Loading