本文整理汇总了C#中AndroidApp类的典型用法代码示例。如果您正苦于以下问题:C# AndroidApp类的具体用法?C# AndroidApp怎么用?C# AndroidApp使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AndroidApp类属于命名空间,在下文中一共展示了AndroidApp类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: LeadDetailsPage
public LeadDetailsPage(AndroidApp app)
: base(app, "Opportunity")
{
ContactTab = x => x.Descendant("Contact");
EditCompany = x => x.Marked("Company").Sibling();
EditIndustry = x => x.Class("android.widget.EditText").Index(1);
EditSize = x => x.Marked("Size").Sibling();
EditStage = x => x.Class("android.widget.EditText").Index(3);
Done = x => x.Marked("Save");
Save = x => x.Marked("Save");
ScrollPanel = x => x.Marked("customPanel");
OkButton = x => x.Marked("button1");
}
开发者ID:xamarin-automation-service,项目名称:UITest-Training-Assignment,代码行数:13,代码来源:LeadDetailsPage.cs
示例9: SalesHomePage
public SalesHomePage(AndroidApp app)
: base(app, "WEEKLY AVERAGE")
{
FirstLead = x => x.Marked("50% - Value Proposition");
ListView = x => x.Id("content");
AddLeadButton = x => x.Class("FormsImageView");
LeadCell = x => x.Class("ViewCellRenderer_ViewCellContainer");
ChartIdentifier = x => x.Id("stripLinesLayout");
//Verifying page has loaded
app.WaitForElement(LeadCell);
app.WaitForElement(ChartIdentifier);
app.WaitForNoElement(SalesDataLoading, timeout: TimeSpan.FromSeconds(20));
app.WaitForNoElement(LeadsLoading, timeout: TimeSpan.FromSeconds(20));
}
开发者ID:xamarin-automation-service,项目名称:UITest-Training-Assignment,代码行数:15,代码来源:SalesHomePage.cs
示例10: LeadContactPage
public LeadContactPage(AndroidApp app)
: base(app, "Phone")
{
DetailsTab = x => x.Index(9);
RoleField = x => x.Marked("Role").Sibling();
FirstNameField = x => x.Marked("First Name").Sibling();
LastNameField = x => x.Marked("Last Name").Sibling();
PhoneField = x => x.Marked("Phone").Sibling();
EmailField = x => x.Marked("Email").Sibling();
AddressField = x => x.Marked("Address").Sibling();
PostalCodeField = x => x.Marked("Postal Code").Sibling();
CityField = x => x.Marked("City").Sibling();
StateField = x => x.Marked("State").Sibling();
CountryField = x => x.Marked("Country").Sibling();
ContactList = x => x.Class("ListView");
Done = "DONE";
Save = "Save";
}
开发者ID:xamarin-automation-service,项目名称:UITest-Training-Assignment,代码行数:18,代码来源:LeadContactPage.cs
示例11: LoginPage
public LoginPage(AndroidApp app)
: base(app, "Sign in")
{
}
开发者ID:xamarin-automation-service,项目名称:UITest-Training-Assignment,代码行数:4,代码来源:LoginPage.cs
示例12: BasePage
protected BasePage(AndroidApp app)
{
this.app = app;
//app.WaitForElement(element);
}
开发者ID:Merovingien13,项目名称:XamarinSample,代码行数:5,代码来源:BasePage.cs
示例13: BeforeEachTest
public void BeforeEachTest ()
{
app = ConfigureApp
.Android
.ApkFile ("app.apk")
.StartApp ();
}
开发者ID:Redth,项目名称:Cake.Xamarin,代码行数:7,代码来源:Tests.cs
示例14: BeforeEachTest
public void BeforeEachTest()
{
app = ConfigureApp
.Android
.EnableLocalScreenshots ()
.StartApp ();
}
开发者ID:rameshvoltella,项目名称:Moyeu,代码行数:7,代码来源:Tests.cs
示例15: BeforeEachTest
public void BeforeEachTest ()
{
app = ConfigureApp.Android
.ApkFile ("app.apk")
.PreferIdeSettings ()
.StartApp ();
}
开发者ID:Ferencz8,项目名称:RepeatApp,代码行数:7,代码来源:Tests.cs
示例16: BeforeEachTest
public void BeforeEachTest ()
{
app = ConfigureApp
.Android
//.DeviceSerial()
.StartApp ();
}
开发者ID:ChandrakanthBCK,项目名称:customer-success-samples,代码行数:7,代码来源:Tests.cs
示例17: 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
示例18: SetUp
public void SetUp()
{
app = ConfigureApp
.Android
.ApkFile (AppFile)
.StartApp ();
}
开发者ID:honbadger,项目名称:counters-sampler,代码行数:7,代码来源:BenchmarkTestFixture.cs
示例19: 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
示例20: 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;未经允许,请勿转载。 |
请发表评论