예제 #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.Main);

            CommandListener commandListener = new CommandListener(this);

            _testLibrary = new TestLibrary(BaseUrl, ControlUrl, commandListener);
            // _testLibrary.DoNotExitAfterEnd();
            // _testLibrary.AddTestDirectory("current/gdpr");
            // _testLibrary.AddTest("current/gdpr/Test_GdprForgetMe_after_install_kill_before_install");

            commandListener.SetTestLibrary(_testLibrary);
            _testLibrary.StartTestSession(Adjust.SdkVersion);
        }
예제 #2
0
        public MainPage()
        {
            InitializeComponent();

            var localIp         = GetLocalIp();
            var commandListener = new CommandListener();

            _testLibrary = new TestLibrary.TestLibrary(BaseUrl, commandListener, localIp);

            //_testLibrary.AddTest("current/gdpr/Test_GdprForgetMe_after_install");
            _testLibrary.AddTestDirectory("current/gdpr");

            _testLibrary.ExitAppEvent += (sender, args) => { Exit(); };
            commandListener.SetTestLibrary(_testLibrary);

            StartTestSession();
        }