Package | Description |
---|---|
com.jayway.android.robotium.remotecontrol.client | |
com.jayway.android.robotium.remotecontrol.client.processor | |
org.safs.android.engine.processor |
Modifier and Type | Method and Description |
---|---|
static double |
SoloMessage.getDouble(java.util.Properties props,
java.lang.String key)
Return the required parameter as a double value
If this parameter is optional, you should catch the ProcessorException |
static float |
SoloMessage.getFloat(java.util.Properties props,
java.lang.String key)
Return the required parameter as a float value
If this parameter is optional, you should catch the ProcessorException |
static int |
SoloMessage.getInteger(java.util.Properties props,
java.lang.String key)
Return the required parameter as an int value
If this parameter is optional, you should catch the ProcessorException |
static long |
SoloMessage.getLong(java.util.Properties props,
java.lang.String key)
Return the required parameter as a long value
If this parameter is optional, you should catch the ProcessorException |
static java.lang.Number |
SoloMessage.getNumber(java.util.Properties props,
java.lang.String key,
java.lang.Class numberClass)
Warn: If the key can't be found in the properties object, a ProcessorException will be thrown out
|
static java.lang.String |
SoloMessage.getString(java.util.Properties props,
java.lang.String key)
Return the required parameter as a String value
If this parameter is optional, you should catch the ProcessorException |
static void |
SoloMessage.main(java.lang.String[] args) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
SoloProcessor.assertCurrentActivity(java.util.Properties props)
assert the current activity has the given name/class, with the possibility to verify that
the expected Activity is a new instance of the Activity. |
(package private) void |
SoloProcessor.clearEditText(java.util.Properties props)
clear the text in
EditText |
(package private) void |
SoloProcessor.clearTextInWebElement(java.util.Properties props)
Clears text in a WebElement matching the specified By object.
|
(package private) void |
SoloProcessor.clickInList(java.util.Properties props,
boolean longtime)
click an item in android.widget.ListView
|
(package private) void |
SoloProcessor.clickOnActionBarItem(java.util.Properties props)
Clicks on an ActionBar item with a given resource id.
Requires Robotium 3.6 |
(package private) void |
SoloProcessor.clickOnMenuItem(java.util.Properties props,
boolean subMenu)
click on a 'menu item' indicated by text
|
(package private) void |
SoloProcessor.clickOnScreen(java.util.Properties props,
boolean longtime)
click some point on screen
|
(package private) void |
SoloProcessor.clickOnText(java.util.Properties props,
boolean longtime)
click on a string within the current
|
(package private) void |
SoloProcessor.clickOnView(java.util.Properties props,
boolean longtime)
click on a
View The view's id is given by parameter, according to this id, We will find the View from local cache SoloProcessor.viewCache and click on it.This method has no relationship with method SoloProcessor.clickOnViewByIndex(Properties) |
(package private) void |
SoloProcessor.clickOnViewByIndex(java.util.Properties props)
click on the following
TextView by indexCheckBox EditText ImageView ImageButton RadioButton Button The index is given by parameter, according to that index Solo will click on the appropriate TextView. This method has no relationship with method SoloProcessor.clickOnView(Properties, boolean) |
(package private) void |
SoloProcessor.clickOnViewByName(java.util.Properties props)
click on the following
TextView by nameButton ToggleButton The name is given by parameter, according to that name Solo will click on the appropriate TextView. This method has no relationship with method SoloProcessor.clickOnView(Properties, boolean) |
(package private) void |
SoloProcessor.clickOnWebElement(java.util.Properties props)
Clicks a WebElement matching the specified By object.
|
(package private) void |
SoloProcessor.clickOnWebElementByUID(java.util.Properties props)
Clicks a WebElement stored in cache by reference UID.
|
(package private) void |
SoloProcessor.drag(java.util.Properties props)
Simulate touching a given location and dragging it to a new location.
|
(package private) void |
SoloProcessor.enterText(java.util.Properties props)
input the text in
EditText |
(package private) void |
SoloProcessor.enterTextInWebElement(java.util.Properties props)
Enters text in a WebElement matching the specified By object.
|
(package private) void |
SoloProcessor.getActivityMonitor(java.util.Properties props)
Returns a String UID for the Robotium Solo Activity Monitor
Use a cache to store the ActivityMonitor. If the ActivityMonitor doesn't exist in the cache, we generate an ID and put the ActivityMonitor into cache with that ID. If the ActivityMonitor exists in the cache, we just return the related ID. |
(package private) void |
SoloProcessor.getAllOpenActivities(java.util.Properties props)
get all activities and return their ID in format ";ID;ID;ID"
the ID string will be stored in remoteresultinfo of parameter props. |
(package private) void |
SoloProcessor.getCurrentActivity(java.util.Properties props)
get the current activity and return its ID
the ID string will be stored in remoteresultinfo of parameter props. |
(package private) void |
SoloProcessor.getCurrentViews(java.util.Properties props)
get all the
View s of following type:Button CheckBox DatePicker EditText GridView ImageButton ImageView ListView ProgressBar RadioButton ScrollView SlidingDrawer Spinner TextView TimePicker ToggleButton View |
(package private) void |
SoloProcessor.getCurrentWebElements(java.util.Properties props)
get the current WebElements and return its ID
the ID string will be stored in remoteresultinfo of parameter props. |
(package private) void |
SoloProcessor.getGuiImage(java.util.Properties props)
Get image of a View.
According to the view's id, try to get a View from cache. If not found, a ProcessorException will be thrown out.If a view is found, we will get the bitmap of that view and compress the bytes to String and return it through KEY_REMOTERESULTINFO |
(package private) java.lang.String |
SoloProcessor.getImageBase64EncodedString(java.lang.String filename,
java.lang.StringBuffer absoluteFilePath)
Read a JPG file with name 'filename' from folder '/sdcard/Robotium-Screenshots/', then encode it to
a String and return, this method doesn't care when the image file is created.
|
(package private) java.lang.String |
SoloProcessor.getImageBase64EncodedString(java.lang.String filename,
java.lang.StringBuffer absoluteFilePath,
long newerThan)
Read a JPG file with name 'filename' from folder '/sdcard/Robotium-Screenshots/', then encode it to
a String and return, this method will only read the image file created after the time provide
by parameter 'newerThan'
|
(package private) void |
SoloProcessor.getObjectClassName(java.util.Properties props,
boolean isViewObject)
Get class name of an object.
According to the object's id, try to get it from cache. If not found, a ProcessorException will be thrown out.If it is found, we will get its class name and return through KEY_REMOTERESULTINFO |
(package private) void |
SoloProcessor.getScreenSize(java.util.Properties props)
Get the screen's size.
|
(package private) void |
SoloProcessor.getString(java.util.Properties props)
Returns a localized String from localized String resources, according to 'resource id'
in a current Activity, or a String resource name in the context of the
current package, or the android package.
given by Message.PARAM_RESID or Message.PARAM_ID |
(package private) void |
SoloProcessor.getTagForView(java.util.Properties props)
Get the View's Tag accroding to a View's UID, and return the Tag's UID.
|
(package private) void |
SoloProcessor.getTextViewValue(java.util.Properties props)
According to the view's id, try to get a View of type 'TextView'.
|
(package private) void |
SoloProcessor.getTopParent(java.util.Properties props)
Get the top parent view of the given view, identified by the parameter
Message.PARAM_REFERENCE |
(package private) void |
SoloProcessor.getViewById(java.util.Properties props)
get the
View by id (R.id)can also get the nth View by id at a provided index. |
(package private) void |
SoloProcessor.getViewByIndex(java.util.Properties props)
get the following
TextView by indexButton EditText TextView ImageView ImageButton The index is given by parameter, according to that index Solo will get the appropriate TextView. |
(package private) void |
SoloProcessor.getViewByName(java.util.Properties props)
get the
View by resource idname. |
(package private) void |
SoloProcessor.getViewByTag(java.util.Properties props)
get the
View by Tag Object. |
(package private) void |
SoloProcessor.getViewByText(java.util.Properties props)
get the following
TextView by textButton EditText TextView The text is given by parameter, according to that text Solo will get the appropriate TextView. |
(package private) void |
SoloProcessor.getViewClassName(java.util.Properties props)
Deprecated.
we can use
SoloProcessor.getObjectClassName(Properties, boolean) instead |
(package private) void |
SoloProcessor.getViewLocation(java.util.Properties props)
Get the View's location, (x,y,width,height).
|
(package private) void |
SoloProcessor.getViewsInParent(java.util.Properties props)
Get all the views belonging to a parent view.
|
(package private) void |
SoloProcessor.goBack(java.util.Properties props)
Simulates pressing the hardware back key.
|
(package private) void |
SoloProcessor.goBackToActivity(java.util.Properties props)
Returns to the given Activity.
|
(package private) void |
SoloProcessor.isViewByIndexChecked(java.util.Properties props)
test if the following
TextView is checked.CheckBox RadioButton Spinner ToggleButton The index is given by parameter, according to that index Solo will get the appropriate View and test if it is checked. |
(package private) void |
SoloProcessor.isViewByTextChecked(java.util.Properties props)
test if the following
TextView is checked.CheckBox RadioButton Spinner ToggleButton The text is given by parameter, according to that text Solo will get the appropriate View and test if it is checked. |
(package private) void |
SoloProcessor.pressMenuItem(java.util.Properties props)
press an item in
android.widget.Menu |
(package private) void |
SoloProcessor.pressSpinnerItem(java.util.Properties props)
press an item in
Spinner |
(package private) void |
SoloProcessor.scroll(java.util.Properties props)
scroll vertically.
|
(package private) void |
SoloProcessor.scrollToSide(java.util.Properties props)
scroll horizontally.
scrollPosition is an optional parameter. |
(package private) void |
SoloProcessor.searchView(java.util.Properties props)
search the following view.
Button EditText TextView ToggleButton |
(package private) void |
SoloProcessor.sendKey(java.util.Properties props)
send a key to current view.
|
(package private) void |
SoloProcessor.setActivityOrientation(java.util.Properties props)
set orientation of view.
|
(package private) void |
SoloProcessor.setDatePicker(java.util.Properties props)
set value of
DatePicker . |
(package private) void |
SoloProcessor.setMobileData(java.util.Properties props)
Turn on/off 'mobile data'
|
(package private) void |
SoloProcessor.setNavigationDrawer(java.util.Properties props)
Sets the status of the
NavigationDrawer . |
(package private) void |
SoloProcessor.setProgressBar(java.util.Properties props)
set value of
ProgressBar . |
(package private) void |
SoloProcessor.setSlidingDrawer(java.util.Properties props)
set value of
SlidingDrawer . |
(package private) void |
SoloProcessor.setTimePicker(java.util.Properties props)
set value of
TimePicker . |
(package private) void |
SoloProcessor.setWiFiData(java.util.Properties props)
Turn on/off 'wifi data'
|
(package private) void |
SoloProcessor.sleep(java.util.Properties props)
Robotium will sleep for a specified time (milliseconds).
|
protected void |
SoloProcessor.startMainLauncher(java.util.Properties props)
This method will launch the main activity.
It will initialize the Solo object of RobotiumTestRunner This Solo object will also be shared by this class If you want to use the Solo object, you MUST call this method firstly. |
(package private) void |
SoloProcessor.typeTextInWebElementByUID(java.util.Properties props)
Type text in a WebElement stored in cache by reference UID.
|
(package private) void |
SoloProcessor.waitForActivity(java.util.Properties props)
Wait for
Activity . |
(package private) void |
SoloProcessor.waitForCondition(java.util.Properties props)
Waits for a condition to be satisfied.
|
(package private) void |
SoloProcessor.waitForDialog(java.util.Properties props)
Wait for
Dialog to close/open. |
(package private) void |
SoloProcessor.waitForEmptyActivityStack(java.util.Properties props)
Wait for Empty Activity Stack.
Requires Robotium 5.0.1 |
(package private) void |
SoloProcessor.waitForFragmentById(java.util.Properties props)
Wait for a V4 Fragment by Id.
Requires Robotium 3.4.1 |
(package private) void |
SoloProcessor.waitForFragmentByTag(java.util.Properties props)
Wait for a V4 Fragment by Tag.
Requires Robotium 3.4.1 |
(package private) void |
SoloProcessor.waitForLogMessage(java.util.Properties props)
Wait for a specific log message.
Requires Robotium 3.4.1 |
(package private) void |
SoloProcessor.waitForText(java.util.Properties props)
Wait for
TextView . |
(package private) void |
SoloProcessor.waitForView(java.util.Properties props)
Wait for
View . |
(package private) void |
SoloProcessor.waitForViewByID(java.util.Properties props)
Wait for
View according to ID (R.id) Requires Robotium4.1+ |
(package private) void |
SoloProcessor.waitForViewByTag(java.util.Properties props)
Wait for
View . |
(package private) void |
SoloProcessor.waitForViewUID(java.util.Properties props)
Wait for
View . |
(package private) void |
SoloProcessor.waitForWebElement(java.util.Properties props)
Wait for
WebElement . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
TestStepProcessor.commandNotExecuted(java.util.Properties props)
Test if the command has been executed or not.
|
Copyright © SAS Institute. All Rights Reserved.