当前位置: 首页>>代码示例>>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;未经允许,请勿转载。