Skip to content

Instantly share code, notes, and snippets.

@sthewissen
Last active June 9, 2016 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sthewissen/7e58e3612619697bfd2def7c0533bbd0 to your computer and use it in GitHub Desktop.
Save sthewissen/7e58e3612619697bfd2def7c0533bbd0 to your computer and use it in GitHub Desktop.
Piece of startup code for Xamarin Test Cloud UI testing - Android
void SetupTestCloud()
{
// Code for starting up the Xamarin Test Cloud Agent
#if ENABLE_TEST_CLOUD
Xamarin.Forms.Forms.ViewInitialized += (object sender, Xamarin.Forms.ViewInitializedEventArgs e) => {
if (!string.IsNullOrWhiteSpace(e.View.AutomationId))
{
e.NativeView.ContentDescription = e.View.AutomationId;
}
};
#endif
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment