diff --git a/.DS_Store b/.DS_Store index e3e1b21..8adaf2d 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/adbEspressoAPI.rst b/adbEspressoAPI.rst index 0c338bb..6150b3d 100644 --- a/adbEspressoAPI.rst +++ b/adbEspressoAPI.rst @@ -5,7 +5,7 @@ API to execute ADB commands from within an Espresso test :class: bolditalic .. role:: underline - :class: underline + :class: underlin **API Definiton** diff --git a/adbespressoapi_test.rst b/adbEspressoAPI_NEW.rst similarity index 92% rename from adbespressoapi_test.rst rename to adbEspressoAPI_NEW.rst index 58d1063..6150b3d 100644 --- a/adbespressoapi_test.rst +++ b/adbEspressoAPI_NEW.rst @@ -1,52 +1,52 @@ -API to execute ADB commands from within an Espresso test -======================================================== - -.. role:: bolditalic - :class: bolditalic - -.. role:: underline - :class: underline - -**API Definiton** - -​Method: POST - -​ -URL: - -http:///v3/device/shell?accesskey= -​ -Payload: - -.. code-block:: JSON - - { - "_id" : "device_id", - "command" : "" - } - -​ -Since Device ID needs to be provided as part of the API payload, you can find the device id through the following Java code - -.. code-block:: Java - - Bundle testBundle = InstrumentationRegistry.getArguments(); - string deviceID = testBundle.getString("deviceID"); - -**Sample API Invocation** - -Method: POST -​ - -URL: - -http://devicelab.robustest.com/v3/device/shell?accesskey=1234DFFGG24FDSD -​ -Payload: - -.. code-block:: JSON - - { - "_id" : "2132SDSFDSFDSF", - "command" : "ls /data/local/tmp/" +API to execute ADB commands from within an Espresso test +======================================================== + +.. role:: bolditalic + :class: bolditalic + +.. role:: underline + :class: underlin + +**API Definiton** + +​Method: POST + +​ +URL: + +http:///v3/device/shell?accesskey= +​ +Payload: + +.. code-block:: JSON + + { + "_id" : "device_id", + "command" : "" + } + +​ +Since Device ID needs to be provided as part of the API payload, you can find the device id through the following Java code + +.. code-block:: Java + + Bundle testBundle = InstrumentationRegistry.getArguments(); + string deviceID = testBundle.getString("deviceID"); + +**Sample API Invocation** + +Method: POST +​ + +URL: + +http://devicelab.robustest.com/v3/device/shell?accesskey=1234DFFGG24FDSD +​ +Payload: + +.. code-block:: JSON + + { + "_id" : "2132SDSFDSFDSF", + "command" : "ls /data/local/tmp/" } \ No newline at end of file diff --git a/conf.py b/conf.py index 4b19413..28eb394 100644 --- a/conf.py +++ b/conf.py @@ -92,14 +92,15 @@ # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] -html_context = { - 'css_files': [ - '_static/theme_overrides.css', # override wide tables in RTD theme - ], - } +#html_context = { + #'css_files': [ + # '_static/theme_overrides.css', # override wide tables in RTD theme + # ], + # } def setup(app): - app.add_stylesheet("css/mycustom.css") + app.add_css_file("_static/mycustom.css") + #app.add_stylesheet("_static/mycustom.css") #html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] # Custom sidebar templates, must be a dictionary that maps document names # to template names.