Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManish Sinha <manish.sinha@xamarin.com>2015-09-01 18:45:14 +0300
committerManish Sinha <manish.sinha@xamarin.com>2015-09-01 18:45:47 +0300
commite1d6bc1bfcef4eb21f0abb815e0c3c7b15957cf3 (patch)
tree377f3ddf4ba5d6714c2ea91d3978aba8b22d47d9 /main/tests/UserInterfaceTests/UITestBase.cs
parent1894298b74c02f36f19a53c33750b8eaeda44502 (diff)
[UITest] Preferences.SetAuthorInfo and suppress failure TakeScreenshot errors
Diffstat (limited to 'main/tests/UserInterfaceTests/UITestBase.cs')
-rw-r--r--main/tests/UserInterfaceTests/UITestBase.cs6
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"),