當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。