本文整理汇总了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";
}
示例2: BeforeEachTest
public void BeforeEachTest ()
{
app = (AndroidApp)AppInitializer.StartApp (
platform,
null,
TestConsts.iOSBundleId);
}
示例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);
}
示例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);
}
示例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);
}
示例7: BeforeEachTest
public void BeforeEachTest ()
{
app = (AndroidApp)AppInitializer.StartApp (
platform,
TestConsts.ApkFile,
null);
app.WakeUpAndroidDevice ();
}
示例8: BeforeEachTest
public void BeforeEachTest ()
{
app = ConfigureApp
.Android
.ApkFile ("app.apk")
.StartApp ();
}
示例9: BeforeEachTest
public void BeforeEachTest()
{
app = ConfigureApp
.Android
.EnableLocalScreenshots ()
.StartApp ();
}
示例10: BeforeEachTest
public void BeforeEachTest ()
{
app = ConfigureApp.Android
.ApkFile ("app.apk")
.PreferIdeSettings ()
.StartApp ();
}
示例11: BeforeEachTest
public void BeforeEachTest ()
{
app = ConfigureApp
.Android
//.DeviceSerial()
.StartApp ();
}
示例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());
}
}
示例13: SetUp
public void SetUp()
{
app = ConfigureApp
.Android
.ApkFile (AppFile)
.StartApp ();
}
示例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);
}
示例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();
}