diff options
author | Manish Sinha <manish.sinha@xamarin.com> | 2015-09-01 18:45:14 +0300 |
---|---|---|
committer | Manish Sinha <manish.sinha@xamarin.com> | 2015-09-01 18:45:47 +0300 |
commit | e1d6bc1bfcef4eb21f0abb815e0c3c7b15957cf3 (patch) | |
tree | 377f3ddf4ba5d6714c2ea91d3978aba8b22d47d9 /main/tests/UserInterfaceTests/UITestBase.cs | |
parent | 1894298b74c02f36f19a53c33750b8eaeda44502 (diff) |
[UITest] Preferences.SetAuthorInfo and suppress failure TakeScreenshot errors
Diffstat (limited to 'main/tests/UserInterfaceTests/UITestBase.cs')
-rw-r--r-- | main/tests/UserInterfaceTests/UITestBase.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/main/tests/UserInterfaceTests/UITestBase.cs b/main/tests/UserInterfaceTests/UITestBase.cs index a95e99779d..d2359c2057 100644 --- a/main/tests/UserInterfaceTests/UITestBase.cs +++ b/main/tests/UserInterfaceTests/UITestBase.cs @@ -96,7 +96,11 @@ namespace UserInterfaceTests } finally { var testStatus = TestContext.CurrentContext.Result.Status; if (testStatus != TestStatus.Passed) { - TakeScreenShot (string.Format ("{0}-Test-Failed", TestContext.CurrentContext.Test.Name)); + try { + TakeScreenShot (string.Format ("{0}-Test-Failed", TestContext.CurrentContext.Test.Name)); + } catch (Exception e) { + Session.DebugObject.Debug ("Final Screenshot failed"); + } } File.WriteAllText (Path.Combine (currentTestResultFolder, "MemoryUsage.json"), |