@Retention(value=RUNTIME) @Target(value={CONSTRUCTOR,METHOD,TYPE}) public @interface MobileTest
Modifier and Type | Optional Element and Description |
---|---|
String[] |
additionalCapabilities
Provide additional capabilities that you may wish to add as a name value pair.
|
Class<? extends DefaultCapabilitiesBuilder>[] |
additionalCapabilitiesBuilders
Additional
DefaultCapabilitiesBuilder s that this mobile test should use. |
String |
appName
Establish application name to use.
|
String |
appPath
This parameter represents the fully qualified path of the app that is to be spawned.
|
String |
device
Establish the type of device to be used (android, iphone, etc).
|
String |
deviceSerial
Device Serial to be used.
|
String |
deviceType
Establish the type of device to be used (Nexus5, Iphone5s, etc).
|
String |
language
Establish the application's language that is to be used.
|
String |
locale
Establish the application's locale that is to be used.
|
String |
mobileNodeType
This parameter specifies to execute mobile test cases using respective mobile driver.
|
public abstract String appName
@Test() @MobileTest(appName = "Safari") public void webtest2() { Grid.open("http://paypal.com"); }App version can be specified as part of the appName as:
appName = "Safari:7.0"
public abstract String device
device = "iphone:7.1"
public abstract String language
en
for English. Defaults to
the language chosen by Selendroid / ios-driver / Appiumpublic abstract String locale
en_US
for US English. Defaults
to the locale chosen by Selendroid / ios-driver / Appiumpublic abstract String deviceSerial
public abstract String deviceType
public abstract String[] additionalCapabilities
'
@Test @MobileTest(additionalCapabilities={"key1:value1","key2:value2"}) public void testMethod(){ // flow }
public abstract Class<? extends DefaultCapabilitiesBuilder>[] additionalCapabilitiesBuilders
DefaultCapabilitiesBuilder
s that this mobile test should use. Capabilities which are
constructed this way are merged with the results of any/all globally applicable capability builders.public abstract String appPath
appPath
cannot be used along with the appName
.
for app in local disk it can be like appPath = C:\\test\\testApp.apk; or for app in http location it can be like appPath = http://server/downloads/testApp.apk or for app in sauce cloud it can be like appPath = sauce-storage:testApp.zip
public abstract String mobileNodeType
Copyright © 2016 PayPal Open Source. All rights reserved.