当前位置: 首页>>代码示例>>C#>>正文


C# AndroidApp.Screenshot方法代码示例

本文整理汇总了C#中AndroidApp.Screenshot方法的典型用法代码示例。如果您正苦于以下问题:C# AndroidApp.Screenshot方法的具体用法?C# AndroidApp.Screenshot怎么用?C# AndroidApp.Screenshot使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AndroidApp的用法示例。


在下文中一共展示了AndroidApp.Screenshot方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: BeforeEachTest

        public void BeforeEachTest()
        {
            app = ConfigureApp.Android.StartApp ();
            app.Screenshot ("Given the app is loaded");
            app.Tap (x => x.Button ("btn_play"));

            app.WaitForElement (x => x.Id ("tv_bingoItem"));

            var results = app.Query (x => x.Id ("tv_bingoItem"));
            Assert.AreEqual (25, results.Length);
            app.Screenshot ("25 items should be shown");
        }
开发者ID:pavlinap,项目名称:BullshitBingo,代码行数:12,代码来源:TestWinningConditions.cs

示例2: 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

示例3: 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

示例4: BeforeEachTest

        public virtual void BeforeEachTest()
        {
            app = AppInitializer.StartApp();

            Thread.Sleep(TimeSpan.FromSeconds(5));

            if (app.Query("SIGN IN").Any())
            {
                new SplashScreenPage(app)
                    .ExitSplashScreen();
            }

            //waiting for next screen to load
            Thread.Sleep(TimeSpan.FromSeconds(5));

            app.Screenshot("On Home Page");
        }
开发者ID:xamarin-automation-service,项目名称:UITest-Training-Assignment,代码行数:17,代码来源:AbstractSetup.cs

示例5: 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
				// TODO: Update this path to point to your Android app and uncomment the
				// code if the app is not included in the solution.
				.ApkFile ("../../../Tasky.Droid/bin/Release/com.xamarin.samples.taskydroid.apk")
				.StartApp ();


			app.Screenshot("uslika.png");

			//app.Repl();

			return;
		}
开发者ID:moljac,项目名称:HolisticWare.Talks.MobilityDay.2015,代码行数:19,代码来源:Tests.cs


注:本文中的AndroidApp.Screenshot方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。