Mobile/Fennec/Android: Difference between revisions

Jump to navigation Jump to search
(→‎Using logcat: Update instructions to include timestamps in logcat)
Line 406: Line 406:
                         --output trobo.yml \
                         --output trobo.yml \
                         --remotePort -1 \
                         --remotePort -1 \
                         --remoteDevice 1.2.3.4  
                         --remoteDevice 1.2.3.4 \
                        --fennecIDs <abs-path-to-objdir>/dist/fennec_ids.txt


If you want to use [http://people.mozilla.com/~bmoss/SUTAgent/ SUTAgent] to communicate with the device, do something like this:
If you want to use [http://people.mozilla.com/~bmoss/SUTAgent/ SUTAgent] to communicate with the device, do something like this:
Line 412: Line 413:
   remotePerfConfigurator -v -e org.mozilla.fennec --develop --activeTests tsvg --output tsvg.yml --results_url file://${PWD}/tsvg.txt --noChrome --remoteDevice <ip of your sutagent>
   remotePerfConfigurator -v -e org.mozilla.fennec --develop --activeTests tsvg --output tsvg.yml --results_url file://${PWD}/tsvg.txt --noChrome --remoteDevice <ip of your sutagent>


SUTAgent will not be able to read the application.ini on the device, so you will need to copy it. We highly recommend pulling the application.ini from the .apk and copying it to the talos/talos/remoteapp.ini file.
SUTAgent will not be able to read the application.ini on the device, so you will need to copy it. We highly recommend pulling the application.ini from the .apk and copying it to the talos/talos/remoteapp.ini file.
 
The fennecIDs parameter is required to generate a new robotium.config on the device. (What else does it do?)


Unless two applications are signed with the same key they cannot read each others' /data/data directories, so SUTAgent cannot read org.mozilla.fennec's data directory.
Unless two applications are signed with the same key they cannot read each others' /data/data directories, so SUTAgent cannot read org.mozilla.fennec's data directory.
Line 445: Line 448:
'''Note''': As of this writing (Sept 27, 2011), the tgfx pageset does not currently work (it isn't run on the desktop either). Don't try it. :)
'''Note''': As of this writing (Sept 27, 2011), the tgfx pageset does not currently work (it isn't run on the desktop either). Don't try it. :)


'''Note''': When running robocop-based talos tests (tcheck, etc), be aware that some robocop-required files are not updated by Talos. For example, robocop.apk is not installed, and robotium.config is not re-generated and copied to device. Your best bet is to run mochitest-robotium first to make sure everything is up to date.
'''Note''': When running robocop-based talos tests (tcheck, etc), be aware that some robocop-required files are not updated by Talos. For example, robocop.apk is not installed. Your best bet is to run mochitest-robotium first to make sure everything is up to date, or manually install robocop.apk from the dist folder.


Aside: For a quick-and-dirty hacky way to run robocop-talos tests locally, see [[Mobile/Fennec/Android/LocalRoboTalos]]
Aside: For a quick-and-dirty hacky way to run robocop-talos tests locally, see [[Mobile/Fennec/Android/LocalRoboTalos]]
Confirmed users
44

edits

Navigation menu