Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion adbEspressoAPI.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ API to execute ADB commands from within an Espresso test
:class: bolditalic

.. role:: underline
:class: underline
:class: underlin

**API Definiton**

Expand Down
102 changes: 51 additions & 51 deletions adbespressoapi_test.rst → adbEspressoAPI_NEW.rst
Original file line number Diff line number Diff line change
@@ -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://<RobusTest URL>/v3/device/shell?accesskey=<user_access_key>
Payload:

.. code-block:: JSON

{
"_id" : "device_id",
"command" : "<ADB SHELL 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://<RobusTest URL>/v3/device/shell?accesskey=<user_access_key>
Payload:
.. code-block:: JSON
{
"_id" : "device_id",
"command" : "<ADB SHELL 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/"
}
13 changes: 7 additions & 6 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down