Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Make Screenshot of Client Setup
- OutputHandler.ColorCMDOutput(" + Make a Screenshot",
- ConsoleColor.Gray);
- Process makeScreenshot = new Process();
- makeScreenshot.StartInfo.FileName = screenShotTool;
- makeScreenshot.StartInfo.Arguments = "/f "" + testResult + "\Screenshots\" + screenShotName + ".png"";
- makeScreenshot.StartInfo.UseShellExecute = false;
- makeScreenshot.StartInfo.RedirectStandardError = true;
- makeScreenshot.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
- makeScreenshot.Start();
- //Start StreamReader
- StreamReader myStreamReader = makeScreenshot.StandardError;
- string error = makeScreenshot.StandardError.ReadToEnd();
- //Read the standard error
- OutputHandler.AppendDataToFile(buglist, error);
- makeScreenshot.WaitForExit();
- makeScreenshot.Dispose();
Add Comment
Please, Sign In to add comment