Forum Xamarin Test Cloud (Read Only)

BackDoor for Xamarin Forms(Android)

ZenDroidZenDroid USMember ✭✭✭

I created app with Xamarin Forms(Android). I creaded xamarin ui test project. I need the use backdoor. It is my code:

 public class MainActivity : FormsApplicationActivity
    public void Test()  { }

it is call method in test


I get this exception:

  20-04-2016 12:02:36.805 +03:00 - 72182 - Error while performing Invoke("Test", null)
  Exception: System.Exception: Invoke for StartActivityTwo failed with outcome: ERROR
   No such method found: Test()
    in Xamarin.UITest.Android.AndroidGestures.Invoke(String methodName, Object[] arguments)
    in Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)

For Xamarin Android project it code is work.
How to use a backdoor method on the xamarin form project?


  • ZenDroidZenDroid USMember ✭✭✭

    the problem was that in activity there was no - MainLauncher = true. I added this atributte and ui test work.

Sign In or Register to comment.