diff options
author | Manish Sinha <manish.sinha@xamarin.com> | 2015-09-25 20:55:59 +0300 |
---|---|---|
committer | Manish Sinha <manish.sinha@xamarin.com> | 2015-09-25 20:55:59 +0300 |
commit | 171b696be9332dba48f4ab907b61548dd709a5d9 (patch) | |
tree | 751c25b6c29724004f8ff0ac6ef7712d5a9ff300 /main/tests | |
parent | cb34ff29a473e7317ab8443029b44536cb9a7307 (diff) |
[UITest] Add BuildTimeout in ProjectDetails as some templates take more time to build than others
Android Wear takes way more time, so hardcoding time for all
templates of one Category is not a sensible way to go. The
timeout should be associated with each template
Diffstat (limited to 'main/tests')
-rw-r--r-- | main/tests/UserInterfaceTests/CreateBuildTemplatesTestBase.cs | 2 | ||||
-rw-r--r-- | main/tests/UserInterfaceTests/TemplateTestOptions.cs | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/main/tests/UserInterfaceTests/CreateBuildTemplatesTestBase.cs b/main/tests/UserInterfaceTests/CreateBuildTemplatesTestBase.cs index 8b4496bc71..438a143fa5 100644 --- a/main/tests/UserInterfaceTests/CreateBuildTemplatesTestBase.cs +++ b/main/tests/UserInterfaceTests/CreateBuildTemplatesTestBase.cs @@ -92,7 +92,7 @@ namespace UserInterfaceTests Assert.Fail (e.ToString ()); } - OnBuildTemplate (); + OnBuildTemplate ((int)projectDetails.BuildTimeout.TotalSeconds); } catch (Exception e) { TakeScreenShot ("TestFailedWithGenericException"); Assert.Fail (e.ToString ()); diff --git a/main/tests/UserInterfaceTests/TemplateTestOptions.cs b/main/tests/UserInterfaceTests/TemplateTestOptions.cs index fc8930e7e0..1f34a95099 100644 --- a/main/tests/UserInterfaceTests/TemplateTestOptions.cs +++ b/main/tests/UserInterfaceTests/TemplateTestOptions.cs @@ -96,6 +96,7 @@ namespace UserInterfaceTests { ProjectName = CreateBuildTemplatesTestBase.GenerateProjectName (templateData.TemplateKind); SolutionName = ProjectName; + BuildTimeout = TimeSpan.FromSeconds (180); } public static ProjectDetails ToExistingSolution (string solutionName, string projectName) @@ -118,6 +119,8 @@ namespace UserInterfaceTests public bool AddProjectToExistingSolution { get; set; } + public TimeSpan BuildTimeout { get; set; } + public override string ToString () { return string.Format ("ProjectName={0}, SolutionName={1}, SolutionLocation={2}, ProjectInSolution={3}, AddProjectToExistingSolution={4}", |