public class RobotiumTestCase
extends android.test.ActivityInstrumentationTestCase2
In a general-purpose framework like SAFS this may be all that this class ever does-- instantiate a working version of Robotium Solo.
Modifier and Type | Field and Description |
---|---|
(package private) android.app.Activity |
activity |
(package private) android.content.Intent |
intent |
(package private) RCSolo |
solo |
Constructor and Description |
---|
RobotiumTestCase(java.lang.String targetPackage,
java.lang.Class targetClass)
Constructor for the class merely calling the superclass constructor.
|
Modifier and Type | Method and Description |
---|---|
RCSolo |
getRobotium()
Retrieve the Solo instance after it has been created.
|
(package private) void |
setStatus(java.lang.String text)
Wrapper to preferred output/debug logging.
|
void |
setUp()
Acquires the launch Activity with a call to getActivity() and then creates the
Robotium Solo instance from that Activity.
|
void |
tearDown()
Currently, simply calls solo.finishOpenActivities()
|
getActivity, runTest, setActivityInitialTouchMode, setActivityIntent
getInstrumentation, injectInsrumentation, injectInstrumentation, launchActivity, launchActivityWithIntent, runTestOnUiThread, sendKeys, sendKeys, sendRepeatedKeys
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toString
RCSolo solo
android.app.Activity activity
android.content.Intent intent
public RobotiumTestCase(java.lang.String targetPackage, java.lang.Class targetClass)
String
- targetPackageClass
- targetClassActivityInstrumentationTestCase2.ActivityInstrumentationTestCase2(String, Class)
void setStatus(java.lang.String text)
text
- public void setUp()
setUp
in class android.test.ActivityInstrumentationTestCase2
ActivityInstrumentationTestCase2.getActivity()
,
RCSolo.RCSolo(Instrumentation, Activity)
public RCSolo getRobotium()
public void tearDown()
tearDown
in class android.test.ActivityInstrumentationTestCase2
Solo.finishOpenedActivities()
Copyright © SAS Institute. All Rights Reserved.