當前位置: 首頁>>代碼示例>>C#>>正文


C# AndroidApp類代碼示例

本文整理匯總了C#中AndroidApp的典型用法代碼示例。如果您正苦於以下問題:C# AndroidApp類的具體用法?C# AndroidApp怎麽用?C# AndroidApp使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


AndroidApp類屬於命名空間,在下文中一共展示了AndroidApp類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: GlobalPage

 public GlobalPage(AndroidApp app)
     : base(app)
 {
     SalesTab = "Sales";
     CustomersTab = "Customers";
     ProductsTab = "Products";
 }
開發者ID:xamarin-automation-service,項目名稱:UITest-Training-Assignment,代碼行數:7,代碼來源:GlobalPage.cs

示例2: BeforeEachTest

 public void BeforeEachTest ()
 {
     app = (AndroidApp)AppInitializer.StartApp (
         platform,
         null,
         TestConsts.iOSBundleId);
 }
開發者ID:Redth,項目名稱:ZXing.Net.Mobile,代碼行數:7,代碼來源:ScanningTests.cs

示例3: CustomerOrderDetailsPage

 public CustomerOrderDetailsPage(AndroidApp app)
     : base(app, "Company")
 {
     ProductField = x => x.Class("EditTextEnter").Descendant(0);
     PriceField = x => x.Class("EntryEditText").Descendant(1);
     DateField = x => x.Class("EditText").Index(0);
 }
開發者ID:xamarin-automation-service,項目名稱:UITest-Training-Assignment,代碼行數:7,代碼來源:CustomerOrderDetailsPage.cs

示例4: CustomerSalesPage

        public CustomerSalesPage(AndroidApp app)
            : base(app)
        {
            app.WaitForElement("WEEKLY AVERAGE", timeout: TimeSpan.FromMinutes(2));

            app.Screenshot("On " + this.GetType().Name);
        }
開發者ID:xamarin-automation-service,項目名稱:UITest-Training-Assignment,代碼行數:7,代碼來源:CustomerSalesPage.cs

示例5: CustomerContactPage

 public CustomerContactPage(AndroidApp app)
     : base(app, "Address")
 {
     PhoneButton = x => x.Class("FormsImageView").Index(2);
     MapButton = x => x.Class("FormsImageView").Index(3);
     HeaderImage = x => x.Class("ImageRenderer").Index(0);
 }
開發者ID:xamarin-automation-service,項目名稱:UITest-Training-Assignment,代碼行數:7,代碼來源:CustomerContactPage.cs

示例6: BasePage

        protected BasePage(AndroidApp app, Func<AppQuery, AppQuery> androidTrait)
            : this(app)
        {
            Assert.DoesNotThrow(() => app.WaitForElement(androidTrait), "Unable to verify on page: " + this.GetType().Name);

            app.Screenshot("On " + this.GetType().Name);
        }
開發者ID:xamarin-automation-service,項目名稱:UITest-Training-Assignment,代碼行數:7,代碼來源:BasePage.cs

示例7: BeforeEachTest

        public void BeforeEachTest ()
        {
            app = (AndroidApp)AppInitializer.StartApp (
                platform, 
                TestConsts.ApkFile, 
                null);

            app.WakeUpAndroidDevice ();
        }
開發者ID:Redth,項目名稱:ZXing.Net.Mobile,代碼行數:9,代碼來源:InitializationTests.cs

示例8: BeforeEachTest

 public void BeforeEachTest ()
 {
     app = ConfigureApp
         .Android
         .ApkFile ("app.apk")
         .StartApp ();
 }
開發者ID:Redth,項目名稱:Cake.Xamarin,代碼行數:7,代碼來源:Tests.cs

示例9: BeforeEachTest

 public void BeforeEachTest()
 {
     app = ConfigureApp
         .Android
         .EnableLocalScreenshots ()
         .StartApp ();
 }
開發者ID:rameshvoltella,項目名稱:Moyeu,代碼行數:7,代碼來源:Tests.cs

示例10: BeforeEachTest

 public void BeforeEachTest ()
 {
     app = ConfigureApp.Android
         .ApkFile ("app.apk")
         .PreferIdeSettings ()
         .StartApp ();
 }
開發者ID:Ferencz8,項目名稱:RepeatApp,代碼行數:7,代碼來源:Tests.cs

示例11: BeforeEachTest

        public void BeforeEachTest ()
        {
            app = ConfigureApp
				.Android
                //.DeviceSerial()
				.StartApp ();
        }
開發者ID:ChandrakanthBCK,項目名稱:customer-success-samples,代碼行數:7,代碼來源:Tests.cs

示例12: AfterEachTest

        public void AfterEachTest()
        {
            // Start the application
            app = ConfigureApp.Android.StartApp();

            // Delete recently created city if still existing
            // Depending on your test configuration and environment, ConfigureApp.Android.StartApp(); sometimes
            // deployes a complete new package of the app. In this case, no cleanup work is needed.
            app.WaitForElement(x => x.Id("textView1"));
            var city = app.Query(x => x.Text(testCityName)).FirstOrDefault();
            if (city != null)
            {
                // Delete the recently created city
                app.Tap(x => x.Text(testCityName));
                app.WaitForElement(x => x.Class("OverflowMenuButton"));
                app.Tap(x => x.Class("OverflowMenuButton"));
                app.Tap(x => x.Class("TextView").Index(0)); // Edit button

                app.WaitForElement(x => x.Id("action_delete_city"), "Delete city button never appeared...");
                app.Tap(x => x.Id("action_delete_city"));
                app.Tap(x => x.Id("button1"));

                // Check if city has been deleted successfully
                var results = app.Query(x => x.Text(testCityName));
                Assert.IsFalse(results.Any());
            }
        }
開發者ID:Thepagedot,項目名稱:Pollenalarm,代碼行數:27,代碼來源:Tests.cs

示例13: SetUp

 public void SetUp()
 {
     app = ConfigureApp
         .Android
         .ApkFile (AppFile)
         .StartApp ();
 }
開發者ID:honbadger,項目名稱:counters-sampler,代碼行數:7,代碼來源:BenchmarkTestFixture.cs

示例14: BeforeEachTest

 public void BeforeEachTest()
 {
     app = ConfigureApp.Android.StartApp ();
     Func<AppQuery, AppQuery> menu_button_query = e => e.Id("menu_button");
     app.Tap (menu_button_query);
     Func<AppQuery, AppQuery> search_button = e => e.Text ("Search");
     app.Tap (search_button);
 }
開發者ID:aliarobinson,項目名稱:SpeedyChef_375,代碼行數:8,代碼來源:SearchActivityTests.cs

示例15: BeforeEachTest

 public void BeforeEachTest()
 {
     // TODO: If the Android app being tested is included in the solution then open
     // the Unit Tests window, right click Test Apps, select Add App Project
     // and select the app projects that should be tested.
     app = ConfigureApp
         .Android.ApkFile ("../../../APK/Test/com.refractored.bikenowpronto.apk")
         .StartApp();
 }
開發者ID:SpiderMaster,項目名稱:BikeNow,代碼行數:9,代碼來源:Tests.cs


注:本文中的AndroidApp類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。