diff options
author | Manish Sinha <manish.sinha@xamarin.com> | 2015-09-29 23:42:58 +0300 |
---|---|---|
committer | Manish Sinha <manish.sinha@xamarin.com> | 2015-09-29 23:42:58 +0300 |
commit | f375cfb8227881d6851e4e472363247f4a5d888b (patch) | |
tree | fdf1bebf13a003d9ff10d7c8d88894e4187b5d30 /main/tests | |
parent | 671d36a95071614962d95950bc02a7b81c7a69a0 (diff) |
[UITest] Move Build ReproStep inside OnBuildSolution
Diffstat (limited to 'main/tests')
-rw-r--r-- | main/tests/UserInterfaceTests/CreateBuildTemplatesTestBase.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/tests/UserInterfaceTests/CreateBuildTemplatesTestBase.cs b/main/tests/UserInterfaceTests/CreateBuildTemplatesTestBase.cs index 57155ed7f7..f48f2e6125 100644 --- a/main/tests/UserInterfaceTests/CreateBuildTemplatesTestBase.cs +++ b/main/tests/UserInterfaceTests/CreateBuildTemplatesTestBase.cs @@ -91,7 +91,6 @@ namespace UserInterfaceTests TakeScreenShot ("BeforeBuildActionFailed"); Assert.Fail (e.ToString ()); } - ReproStep ("Build solution"); OnBuildTemplate ((int)projectDetails.BuildTimeout.TotalSeconds); } catch (Exception e) { TakeScreenShot ("TestFailedWithGenericException"); @@ -189,10 +188,13 @@ namespace UserInterfaceTests protected virtual void OnBuildTemplate (int buildTimeoutInSecs = 180) { + ReproStep ("Build solution"); try { Assert.IsTrue (Ide.BuildSolution (timeoutInSecs : buildTimeoutInSecs), "Build Failed"); TakeScreenShot ("AfterBuildFinishedSuccessfully"); } catch (TimeoutException e) { + Session.DebugObject.Debug ("Build Failed"); + ReproStep (string.Format ("Expected: Build should finish within '{0}' seconds\nActual: Build timed out", buildTimeoutInSecs)); TakeScreenShot ("AfterBuildFailed"); Assert.Fail (e.ToString ()); } |