diff options
author | Manish Sinha <manish.sinha@xamarin.com> | 2015-10-22 21:12:50 +0300 |
---|---|---|
committer | Manish Sinha <manish.sinha@xamarin.com> | 2015-10-22 21:12:50 +0300 |
commit | 271c82c2dd66abea07253f0bb927cd7e9dc6ec2d (patch) | |
tree | 732d302b6972e94b7030beb81d94fbf2aa1683ee /main/tests | |
parent | 467cacde5893c55ead88c8347751e4a172d87ba0 (diff) |
[UITest] Added RepoFailedStep to construct Expected,Actual format
Diffstat (limited to 'main/tests')
-rw-r--r-- | main/tests/UserInterfaceTests/CreateBuildTemplatesTestBase.cs | 2 | ||||
-rw-r--r-- | main/tests/UserInterfaceTests/UITestBase.cs | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/main/tests/UserInterfaceTests/CreateBuildTemplatesTestBase.cs b/main/tests/UserInterfaceTests/CreateBuildTemplatesTestBase.cs index d7bb1618de..914d78b0da 100644 --- a/main/tests/UserInterfaceTests/CreateBuildTemplatesTestBase.cs +++ b/main/tests/UserInterfaceTests/CreateBuildTemplatesTestBase.cs @@ -220,7 +220,7 @@ namespace UserInterfaceTests try { Session.WaitForElement (query, timeoutInSecs * 1000); } catch (TimeoutException) { - ReproStep (string.Format ("Expected: {0}\nActual:{1}", expected, actual)); + ReproStep (expected, actual); throw; } } diff --git a/main/tests/UserInterfaceTests/UITestBase.cs b/main/tests/UserInterfaceTests/UITestBase.cs index 924dcbfa09..7d025cd84d 100644 --- a/main/tests/UserInterfaceTests/UITestBase.cs +++ b/main/tests/UserInterfaceTests/UITestBase.cs @@ -196,6 +196,11 @@ namespace UserInterfaceTests } } + public void ReproFailedStep (string expected, string actual, params object [] info) + { + ReproStep (string.Format ("Expected: {0}\nActual: {1}", expected, actual), info); + } + protected virtual void OnCleanUp () { foreach (var folder in FoldersToClean) { |