com.jayway.android.robotium.remotecontrol.client
Class SoloMessage

java.lang.Object
  extended by org.safs.sockets.Message
      extended by com.jayway.android.robotium.remotecontrol.solo.Message
          extended by com.jayway.android.robotium.remotecontrol.client.SoloMessage

public class SoloMessage
extends Message

This class is just a wrapper to com.jayway.android.robotium.remotecontrol.solo.Message As we have org.safs.sockets.Message, who has the same. To avoid using the full qualified name, I create this class.

Since:
Feb 16, 2012

Field Summary
static java.lang.String RESULT_INFO_ACTIVITYMONITOR_NULL
           
static java.lang.String RESULT_INFO_ASSERTION_FAIL
           
static java.lang.String RESULT_INFO_COMMAND_ISNULL
           
static java.lang.String RESULT_INFO_COMMAND_UNKNOWN
           
static java.lang.String RESULT_INFO_COMPARAISON_FAIL
           
static java.lang.String RESULT_INFO_EXCEPTION
           
static java.lang.String RESULT_INFO_GENERAL_FAIL
           
static java.lang.String RESULT_INFO_GENERAL_SUCCESS
           
static java.lang.String RESULT_INFO_GENERATE_UID_NULL
           
static java.lang.String RESULT_INFO_MEMORY_ISLOW
           
static java.lang.String RESULT_INFO_PARAM_WRONG
           
static java.lang.String RESULT_INFO_PROCESSOR_EXCEPTION
           
static java.lang.String RESULT_INFO_SOLO_ISNULL
           
 
Fields inherited from class com.jayway.android.robotium.remotecontrol.solo.Message
cmd_assertcurrentactivityclass, cmd_assertcurrentactivityname, cmd_assertmemorynotlow, cmd_assertnewcurrentactivityclass, cmd_assertnewcurrentactivityname, cmd_clearedittextindex, cmd_clearedittextreference, cmd_clickinlist, cmd_clickinlistindex, cmd_clicklonginlist, cmd_clicklonginlistindex, cmd_clicklongonscreen, cmd_clicklongontext, cmd_clicklongontextmatch, cmd_clicklongontextmatchscroll, cmd_clicklongonview, cmd_clicklongpressontext, cmd_clicklongtimeinlistindex, cmd_clicklongtimeonscreen, cmd_clicklongtimeontextmatch, cmd_clicklongtimeonview, cmd_clickonactionbarhomebutton, cmd_clickonactionbaritem, cmd_clickonbutton, cmd_clickonbuttonindex, cmd_clickoncheckboxindex, cmd_clickonedittextindex, cmd_clickonimage, cmd_clickonimagebutton, cmd_clickonmenuitem, cmd_clickonradiobuttonindex, cmd_clickonscreen, cmd_clickonsubmenuitem, cmd_clickontext, cmd_clickontextmatch, cmd_clickontextmatchscroll, cmd_clickontogglebutton, cmd_clickonview, cmd_drag, cmd_entertextindex, cmd_entertextreference, cmd_finalizeremotesolo, cmd_finishopenedactivities, cmd_getactivitymonitor, cmd_getallopenactivities, cmd_getbutton, cmd_getbuttontext, cmd_getbuttonvisible, cmd_getcurrentactivity, cmd_getcurrentbuttons, cmd_getcurrentcheckboxes, cmd_getcurrentdatepickers, cmd_getcurrentedittexts, cmd_getcurrentgridviews, cmd_getcurrentimagebuttons, cmd_getcurrentimageviews, cmd_getcurrentlistviews, cmd_getcurrentnumberpickers, cmd_getcurrentprogressbars, cmd_getcurrentradiobuttons, cmd_getcurrentscrollviews, cmd_getcurrentslidingdrawers, cmd_getcurrentspinners, cmd_getcurrenttextviews, cmd_getcurrenttimepickers, cmd_getcurrenttogglebuttons, cmd_getcurrentviews, cmd_getedittext, cmd_getedittexttext, cmd_getedittextvisible, cmd_getguiimage, cmd_getimage, cmd_getimagebutton, cmd_getparentviews, cmd_getscreensize, cmd_getstring, cmd_gettext, cmd_gettexttext, cmd_gettextviewvalue, cmd_gettextvisible, cmd_gettopparent, cmd_getviewclass, cmd_getviewclassname, cmd_getviewid, cmd_getviewlocation, cmd_getviews, cmd_goback, cmd_gobacktoactivity, cmd_ischeckboxchecked, cmd_ischeckboxcheckedtext, cmd_isradiobuttonchecked, cmd_isradiobuttoncheckedtext, cmd_isspinnertextselected, cmd_isspinnertextselectedindex, cmd_istextchecked, cmd_istogglebuttonchecked, cmd_istogglebuttoncheckedtext, cmd_pressmenuitem, cmd_pressspinneritem, cmd_presssubmenuitem, cmd_scrolldown, cmd_scrolldownlist, cmd_scrolldownlistuid, cmd_scrolllisttobottom, cmd_scrolllisttobottomuid, cmd_scrolllisttoline, cmd_scrolllisttolineuid, cmd_scrolllisttotop, cmd_scrolllisttotopuid, cmd_scrolltobottom, cmd_scrolltobottomuid, cmd_scrolltoside, cmd_scrolltotop, cmd_scrollup, cmd_scrolluplist, cmd_scrolluplistuid, cmd_scrollviewtoside, cmd_searchbutton, cmd_searchbuttonmatch, cmd_searchbuttonmatchvisible, cmd_searchbuttonvisible, cmd_searchedittext, cmd_searchtext, cmd_searchtextmatch, cmd_searchtextmatchscroll, cmd_searchtextmatchscrollvisible, cmd_searchtextvisible, cmd_searchtogglebutton, cmd_searchtogglebuttonmatch, cmd_sendkey, cmd_setactivityorientation, cmd_setdatepickerindex, cmd_setdatepickerreference, cmd_setprogressbarindex, cmd_setprogressbarreference, cmd_setslidingdrawerindex, cmd_setslidingdrawerreference, cmd_settimepickerindex, cmd_settimepickerreference, cmd_sleep, cmd_startmainlauncher, cmd_takescreenshot, cmd_typetext, cmd_typetextuid, cmd_waitforactivity, cmd_waitforactivitytimeout, cmd_waitfordialogtoclose, cmd_waitforfragmentbyid, cmd_waitforfragmentbytag, cmd_waitforlogmessage, cmd_waitfortext, cmd_waitfortextmatchtimeout, cmd_waitfortextmatchtimeoutscroll, cmd_waitfortextmatchtimeoutscrollvisible, cmd_waitforviewclass, cmd_waitforviewclassmatchtimeout, cmd_waitforviewclassmatchtimeoutscroll, cmd_waitforviewreference, cmd_waitforviewreferencetimeoutscroll, KEY_CHANGETIMEOUT, KEY_COMMAND, KEY_TARGET, NULL_VALUE, PARAM_CLASS, PARAM_ERRORMSG, PARAM_FLOATX, PARAM_FLOATY, PARAM_FROMX, PARAM_FROMY, PARAM_HOUR, PARAM_ID, PARAM_INDEX, PARAM_ISNEWINSTANCE, PARAM_ITEMINDEX, PARAM_ITEMSPERROW, PARAM_KEY, PARAM_LINE, PARAM_MATCH, PARAM_MINIMUMMATCHES, PARAM_MINUTE, PARAM_MONTHDAY, PARAM_NAME, PARAM_ONLYVISIBLE, PARAM_ORIENTATION, PARAM_PROGRESS, PARAM_REFERENCE, PARAM_RESID, PARAM_SCROLL, PARAM_SIDE, PARAM_STATUS, PARAM_STEPCOUNT, PARAM_SUBMENU, PARAM_TEXT, PARAM_TIME, PARAM_TIMEOUT, PARAM_TOX, PARAM_TOY, PARAM_YEAR, PARAM_YEARMONTH, target_instrument, target_solo
 
Fields inherited from class org.safs.sockets.Message
KEY_ISREMOTERESULT, KEY_REMOTERESULTCODE, KEY_REMOTERESULTINFO, msg_connected, msg_debug, msg_dispatchfile, msg_dispatchprops, msg_exception, msg_message, msg_ready, msg_remoteshutdown, msg_result, msg_resultprops, msg_running, msg_sep, msg_shutdown, shutdown_cause_controller, shutdown_cause_device, shutdown_cause_normal, shutdown_cause_service, STATUS_REMOTE_NOT_EXECUTED, STATUS_REMOTE_NOT_EXECUTED_STRING, STATUS_REMOTERESULT_FAIL, STATUS_REMOTERESULT_FAIL_STRING, STATUS_REMOTERESULT_OK, STATUS_REMOTERESULT_OK_STRING, STATUS_REMOTERESULT_UNKNOWN, STATUS_REMOTERESULT_UNKNOWN_STRING, STATUS_REMOTERESULT_WARN, STATUS_REMOTERESULT_WARN_STRING
 
Constructor Summary
SoloMessage()
           
 
Method Summary
static boolean getBoolean(java.util.Properties props, java.lang.String key)
          Return the optional parameter as a boolean value
static double 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 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 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 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 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 getSimpleClassName(java.lang.String fullQulifiedClassName)
          get the 'simple class name' from a 'full qualified class name'
static java.lang.String 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 main(java.lang.String[] args)
           
static java.lang.String makeUniqueCacheKey()
          Routine is used to create a unique ID String key.
 
Methods inherited from class org.safs.sockets.Message
getStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESULT_INFO_GENERAL_SUCCESS

public static final java.lang.String RESULT_INFO_GENERAL_SUCCESS
See Also:
Constant Field Values

RESULT_INFO_GENERAL_FAIL

public static final java.lang.String RESULT_INFO_GENERAL_FAIL
See Also:
Constant Field Values

RESULT_INFO_COMMAND_ISNULL

public static final java.lang.String RESULT_INFO_COMMAND_ISNULL
See Also:
Constant Field Values

RESULT_INFO_COMMAND_UNKNOWN

public static final java.lang.String RESULT_INFO_COMMAND_UNKNOWN
See Also:
Constant Field Values

RESULT_INFO_PARAM_WRONG

public static final java.lang.String RESULT_INFO_PARAM_WRONG
See Also:
Constant Field Values

RESULT_INFO_PROCESSOR_EXCEPTION

public static final java.lang.String RESULT_INFO_PROCESSOR_EXCEPTION
See Also:
Constant Field Values

RESULT_INFO_COMPARAISON_FAIL

public static final java.lang.String RESULT_INFO_COMPARAISON_FAIL
See Also:
Constant Field Values

RESULT_INFO_ASSERTION_FAIL

public static final java.lang.String RESULT_INFO_ASSERTION_FAIL
See Also:
Constant Field Values

RESULT_INFO_EXCEPTION

public static final java.lang.String RESULT_INFO_EXCEPTION
See Also:
Constant Field Values

RESULT_INFO_SOLO_ISNULL

public static final java.lang.String RESULT_INFO_SOLO_ISNULL
See Also:
Constant Field Values

RESULT_INFO_MEMORY_ISLOW

public static final java.lang.String RESULT_INFO_MEMORY_ISLOW
See Also:
Constant Field Values

RESULT_INFO_ACTIVITYMONITOR_NULL

public static final java.lang.String RESULT_INFO_ACTIVITYMONITOR_NULL
See Also:
Constant Field Values

RESULT_INFO_GENERATE_UID_NULL

public static final java.lang.String RESULT_INFO_GENERATE_UID_NULL
See Also:
Constant Field Values
Constructor Detail

SoloMessage

public SoloMessage()
Method Detail

getBoolean

public static boolean getBoolean(java.util.Properties props,
                                 java.lang.String key)
Return the optional parameter as a boolean value


getString

public static java.lang.String getString(java.util.Properties props,
                                         java.lang.String key)
                                  throws ProcessorException
Return the required parameter as a String value
If this parameter is optional, you should catch the ProcessorException

Throws:
ProcessException - if the value is not found in the properties.
ProcessorException

getInteger

public static int getInteger(java.util.Properties props,
                             java.lang.String key)
                      throws ProcessorException
Return the required parameter as an int value
If this parameter is optional, you should catch the ProcessorException

Throws:
ProcessorException

getFloat

public static float getFloat(java.util.Properties props,
                             java.lang.String key)
                      throws ProcessorException
Return the required parameter as a float value
If this parameter is optional, you should catch the ProcessorException

Throws:
ProcessorException

getDouble

public static double getDouble(java.util.Properties props,
                               java.lang.String key)
                        throws ProcessorException
Return the required parameter as a double value
If this parameter is optional, you should catch the ProcessorException

Throws:
ProcessorException

getLong

public static long getLong(java.util.Properties props,
                           java.lang.String key)
                    throws ProcessorException
Return the required parameter as a long value
If this parameter is optional, you should catch the ProcessorException

Throws:
ProcessorException

getNumber

public static java.lang.Number getNumber(java.util.Properties props,
                                         java.lang.String key,
                                         java.lang.Class numberClass)
                                  throws ProcessorException
Warn: If the key can't be found in the properties object, a ProcessorException will be thrown out

Throws:
ProcessorException

getSimpleClassName

public static java.lang.String getSimpleClassName(java.lang.String fullQulifiedClassName)
get the 'simple class name' from a 'full qualified class name'


makeUniqueCacheKey

public static java.lang.String makeUniqueCacheKey()
Routine is used to create a unique ID String key.

Returns:
unique String

main

public static void main(java.lang.String[] args)
                 throws ProcessorException
Throws:
ProcessorException