From ec880a7ce92b4bf303ca2f23d7164a7c88e0effe Mon Sep 17 00:00:00 2001 From: Kent Green Date: Thu, 3 Dec 2020 10:24:33 -0800 Subject: [PATCH 1/4] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 8ef0c8d..a17985a 100755 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +# Main branch project build status +- Android: [![Build status](https://build.appcenter.ms/v0.1/apps/01eaff43-f76e-4d4c-a33b-dcfc7f5ebd0d/branches/master/badge)](https://appcenter.ms/orgs/XTCTeam/apps/Kent-G.-Forms-Gallery-1/build/branches) +- iOS: [![Build status](https://build.appcenter.ms/v0.1/apps/95d03078-c216-418e-a1dc-f7f8338fb1e8/branches/master/badge)](https://appcenter.ms/orgs/XTCTeam/apps/Kent-G.-Forms-Gallery/build/branches) + # Packages If the sample hasn't been updated for awhile and hits strange errors, it's highly recommended to try updating the following packages: - Xamarin.UITest in the Xamarin.UITest project From 0a647f08c5c6c601b35d5563887d11f64a136e45 Mon Sep 17 00:00:00 2001 From: Kent Green Date: Thu, 3 Dec 2020 10:32:20 -0800 Subject: [PATCH 2/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a17985a..b25b8dd 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Main branch project build status -- Android: [![Build status](https://build.appcenter.ms/v0.1/apps/01eaff43-f76e-4d4c-a33b-dcfc7f5ebd0d/branches/master/badge)](https://appcenter.ms/orgs/XTCTeam/apps/Kent-G.-Forms-Gallery-1/build/branches) -- iOS: [![Build status](https://build.appcenter.ms/v0.1/apps/95d03078-c216-418e-a1dc-f7f8338fb1e8/branches/master/badge)](https://appcenter.ms/orgs/XTCTeam/apps/Kent-G.-Forms-Gallery/build/branches) +- Android: [![Build status](https://build.appcenter.ms/v0.1/apps/01eaff43-f76e-4d4c-a33b-dcfc7f5ebd0d/branches/main/badge)](https://appcenter.ms/orgs/XTCTeam/apps/Kent-G.-Forms-Gallery-1/build/branches) +- iOS: [![Build status](https://build.appcenter.ms/v0.1/apps/95d03078-c216-418e-a1dc-f7f8338fb1e8/branches/main/badge)](https://appcenter.ms/orgs/XTCTeam/apps/Kent-G.-Forms-Gallery/build/branches) # Packages If the sample hasn't been updated for awhile and hits strange errors, it's highly recommended to try updating the following packages: From 5a99f699a12e59ced506eac021ba8bc872959fce Mon Sep 17 00:00:00 2001 From: Kent Green Date: Thu, 3 Dec 2020 13:20:40 -0800 Subject: [PATCH 3/4] Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b25b8dd..94a4a22 100755 --- a/README.md +++ b/README.md @@ -43,26 +43,26 @@ This file contains methods which are shared across each and every Test Fixture l #### TestFixture required SetUp method This includes a required [SetUp] method called "BeforeEachTest()", which is executed _before each [Test]_: -https://github.com/King-of-Spades/AppCenter-Test-Samples/blob/master/Xamarin.UITest/FormsGallery/FormsGallery.UITest/HelperMethods.cs#L100-L104 +https://github.com/King-of-Spades/appcenter-Xamarin.Forms-Gallery-Demo/blob/main/FormsGallery/FormsGallery.UITest/HelperMethods.cs#L100-L104 #### OpenPage(string page, int pageType) - *page* - pass a case-sensitive string for Xamarin.UITest to find on the main page of the app. UITest will tap the element to open the page or scroll down on the view if it's not found to see if it appears and then can tap it. - *pageType* - Selects either "C# Pages" or "XAML Pages" in the UI before finding the specific page searched for. -Source: https://github.com/King-of-Spades/AppCenter-Test-Samples/blob/master/Xamarin.UITest/FormsGallery/FormsGallery.UITest/HelperMethods.cs#L14-L31 +Source: https://github.com/King-of-Spades/appcenter-Xamarin.Forms-Gallery-Demo/blob/main/FormsGallery/FormsGallery.UITest/HelperMethods.cs#L14-L31 #### SetDatePicker(DateTime date) This method Invokes native Android & iOS methods on their respective platforms in order to update the DatePicker values. - *date* - Takes a standard "DateTime" value, though the method only works with Month, Day & Year; because those are what the Forms DatePickers are set up to work with. -Source: https://github.com/King-of-Spades/AppCenter-Test-Samples/blob/master/Xamarin.UITest/FormsGallery/FormsGallery.UITest/HelperMethods.cs#L34-L57 +Source: https://github.com/King-of-Spades/appcenter-Xamarin.Forms-Gallery-Demo/blob/main/FormsGallery/FormsGallery.UITest/HelperMethods.cs#L34-L57 -Called by **ViewsforSettingValues.cs -> [Test] DatePicker()**: https://github.com/King-of-Spades/AppCenter-Test-Samples/blob/master/Xamarin.UITest/FormsGallery/FormsGallery.UITest/ViewsForSettingValues.cs#L81-L93 +Called by **ViewsforSettingValues.cs -> [Test] DatePicker()**: https://github.com/King-of-Spades/appcenter-Xamarin.Forms-Gallery-Demo/blob/main/FormsGallery/FormsGallery.UITest/ViewsForSettingValues.cs#L81-L93 #### SetTimePicker (int hour, int minute, bool am) Unlike `SetDatePicker` this method can't directly accept a DateTime, because it would require setting a day, month, & year when only the hour, minute & am/pm values are actually needed. This is worked around by using DateTime.Now within the method itself so that it can be handled in a somewhat similar fashion to the companion `SetDatePicker` method. -- Source: https://github.com/King-of-Spades/AppCenter-Test-Samples/blob/master/Xamarin.UITest/FormsGallery/FormsGallery.UITest/HelperMethods.cs#L59-L98 +- Source: https://github.com/King-of-Spades/appcenter-Xamarin.Forms-Gallery-Demo/blob/main/FormsGallery/FormsGallery.UITest/HelperMethods.cs#L59-L98 -Called by **ViewsforSettingValues.cs -> [Test] TimePicker()**: https://github.com/King-of-Spades/AppCenter-Test-Samples/blob/master/Xamarin.UITest/FormsGallery/FormsGallery.UITest/ViewsForSettingValues.cs#L95-L107 +Called by **ViewsforSettingValues.cs -> [Test] TimePicker()**: https://github.com/King-of-Spades/appcenter-Xamarin.Forms-Gallery-Demo/blob/main/FormsGallery/FormsGallery.UITest/ViewsForSettingValues.cs#L95-L107 From 918751485a2976e8978767fb22802826ab888f6f Mon Sep 17 00:00:00 2001 From: Kent Green Date: Thu, 3 Dec 2020 13:49:41 -0800 Subject: [PATCH 4/4] Update android.sh --- android.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android.sh b/android.sh index 7bbbaf7..21985ed 100644 --- a/android.sh +++ b/android.sh @@ -6,7 +6,7 @@ AppCenter_Test_Command='paste upload command here' # Debugging upload command -# AppCenter_Test_Command='appcenter test run uitest --app "XTCTeam/Kent-G.-Forms-Gallery-1" --devices "XTCTeam/10-11-pixels-and-motorolas" --app-path pathToFile.apk --test-series "master" --locale "en_US" --build-dir pathToUITestBuildDir' +# AppCenter_Test_Command='appcenter test run uitest --app "XTCTeam/Kent-G.-Forms-Gallery-1" --devices "XTCTeam/10-11-pixels-and-motorolas" --app-path pathToFile.apk --test-series "main" --locale "en_US" --build-dir pathToUITestBuildDir' # Step 2 Provide the (absolute or relative) path to the apk app_path='FormsGallery/FormsGallery.Android/bin/Debug/com.appcenter.formsgallery-Signed.apk'