Confirmed users
1,759
edits
Line 39: | Line 39: | ||
mach install | mach install | ||
Next, execute <tt>mach robocop</tt> which installs the Robocop APK to the device and starts testing the entire test suite | Next, execute <tt>mach robocop</tt> which installs the Robocop APK to the device and starts testing the entire test suite. | ||
mach robocop | mach robocop | ||
Line 57: | Line 57: | ||
* To run one test at a time, find the test name (like "testLoad") in <tt>mobile/android/tests/browser/robocop/robocop.ini</tt> and pass it as an argument, like: <tt>mach robocop testLoad</tt>. | * To run one test at a time, find the test name (like "testLoad") in <tt>mobile/android/tests/browser/robocop/robocop.ini</tt> and pass it as an argument, like: <tt>mach robocop testLoad</tt>. | ||
* A rooted device is NOT required. | * A rooted device is NOT required. | ||
* <tt>MOZ_HOST_BIN</tt> is used to launch <tt>xpcshell</tt> on the desktop to provide a web server. | * If set, <tt>MOZ_HOST_BIN</tt> is used to launch <tt>xpcshell</tt> on the desktop to provide a web server. | ||
Troubleshooting: | Troubleshooting: | ||
Line 68: | Line 68: | ||
** Make sure _SERVER_ADDR in the Robocop output is the same as your machine's IP address. | ** Make sure _SERVER_ADDR in the Robocop output is the same as your machine's IP address. | ||
** If not, set it to your IP by running <tt>export DM_FLAGS="--remote-webserver=xxx.xxx.xxx.xxx"</tt> | ** If not, set it to your IP by running <tt>export DM_FLAGS="--remote-webserver=xxx.xxx.xxx.xxx"</tt> | ||
* | * If using MOZ_HOST_BIN, ensure the binaries in your MOZ_HOST_BIN folder are executable, in case you pull them down from the FTP site. You might see "OSError: [Errno 13] Permission denied" if they are not executable. Use chmod to fix them. Check certutil, pk12util and ssltunnel. | ||
*Additional tips at [[Auto-tools/Projects/Robocop#Frequently_found_errors]] | *Additional tips at [[Auto-tools/Projects/Robocop#Frequently_found_errors]] | ||