This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Brought to you by https://mallibone.com under MIT license. Enjoy sensibly. --> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>items</key> | |
<array> | |
<dict> | |
<key>assets</key> | |
<array> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override bool FinishedLaunching(UIApplication app, NSDictionary options) | |
{ | |
#if ENABLE_TEST_CLOUD | |
Xamarin.Calabash.Start(); | |
#endif | |
Forms.Init(); | |
LoadApplication(new App()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test] | |
public void AppLaunches() | |
{ | |
app.Repl(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Entry AutomationId="InputMessageEntry" Text="{Binding InputMessage, Mode=TwoWay}" Placeholder="Enter a message and submit it" VerticalOptions="Center" HorizontalOptions="FillAndExpand" /> | |
<Button AutomationId="SubmitMessageButton" Text="Submit" Command="{Binding SubmitMessageCommand}" VerticalOptions="Center" HorizontalOptions="Center" /> | |
<Label AutomationId="SubmittedMessageLabel" Text="{Binding SubmittedMessage}" VerticalOptions="Center" HorizontalOptions="CenterAndExpand" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override bool FinishedLaunching(UIApplication app, NSDictionary options) | |
{ | |
#if ENABLE_TEST_CLOUD | |
Xamarin.Calabash.Start(); | |
#endif | |
Forms.Init(); | |
Forms.ViewInitialized += (object sender, ViewInitializedEventArgs e) => { | |
// http://developer.xamarin.com/recipes/testcloud/set-accessibilityidentifier-ios/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override void OnCreate(Bundle bundle) | |
{ | |
base.OnCreate(bundle); | |
global::Xamarin.Forms.Forms.Init(this, bundle); | |
Xamarin.Forms.Forms.ViewInitialized += (object sender, Xamarin.Forms.ViewInitializedEventArgs e) => { | |
if (!string.IsNullOrWhiteSpace(e.View.AutomationId)) | |
{ | |
e.NativeView.ContentDescription = e.View.AutomationId; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test] | |
public void EnterAndSubmitText_ItAppearsInTheSubmittedTextLabel() | |
{ | |
app.EnterText(q => q.Marked("InputMessageEntry"), "Hello from Xamarin Test Cloud"); | |
app.Screenshot("Has entered text"); | |
app.Tap(q => q.Marked("SubmitMessageButton")); | |
app.Screenshot("Has taped the submit button."); | |
Assert.IsFalse(string.IsNullOrEmpty(app.Query(q => q.Marked("SubmittedMessageLabel")).First().Text)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test] | |
[Category("BasicSanity")] | |
public void NavigateToSettings_VerifyUserNameIsVisibleOnSettingsPage() | |
{ | |
// ... | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--category "all" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
packages\Xamarin.UITest.[version]\tools\test-cloud.exe submit yourAppFile.apk [API_KEY] --devices 5fd52203 --series "master" --locale "en_US" --user [email protected] --assembly-dir pathToTestDllFolder |
OlderNewer