Commit Graph

200 Commits

Author SHA1 Message Date
Geoff Brown
4df9c8555a Bug 908275 - Use mozlog in mochitest runtestsremote; r=jmaher 2013-09-05 10:14:54 -06:00
Geoff Brown
8895570968 Bug 900664 - Skip testImportFromAndroid on x86 emu; r=jmaher 2013-08-29 16:44:26 -06:00
Andrew Halberstadt
79a8acdc97 Bug 907552 - Mochitests should use __file__ for determining location, r=gps 2013-08-26 17:17:51 -04:00
Jeff Hammel
0e13a16f0b Bug 688667 - refactor automation.py into mozprocess and mozprofile and load via virtualenv. r=jmaher 2013-07-30 08:30:40 -04:00
Andrew Halberstadt
57c2addbea Bug 865349 - Refactor B2G mochitests off automation.py and onto mozbase, r=jgriffin,ted 2013-07-26 14:40:04 -04:00
Geoff Brown
e057a249be Bug 898036 - Set layout.css.devPixelsPerPx during robocop tests; r=kats 2013-07-26 05:59:07 -07:00
Geoff Brown
ea9fc552d6 Bug 882932 - (2) Fix httpdPath setting for remote mochitest; r=jmaher 2013-06-28 19:20:08 -07:00
Geoff Brown
b616f6f32f Bug 882932 - Add -httpd-path option to mochitests and reftests; r=jmaher 2013-06-26 20:42:46 -07:00
William Lachance
9f35dce601 Bug 885365 - Print testroot in mochitest/reftest for fennec;r=jmaher 2013-06-24 17:15:40 -07:00
Adrian Tamas
10b33bda98 Bug 833832 - Robocop: Add test for Import from Android feature. r=jmaher 2013-03-18 11:15:17 +02:00
Nick Alexander
eb821de345 Bug 863445 - Part 2: Specify Robocop APK on runtestsremote.py command line. r=jmaher
This deprecates --robocop in favour of --robocop-ini, and
--robocopPath in favour of --robocop-apk.
2013-05-20 11:39:50 -07:00
Geoff Brown
fd0f657ad1 Bug 872244 - Dump ANR stack traces after Android tests; r=jmaher 2013-05-16 14:32:52 -06:00
Ed Morley
b917df5204 Backed out changeset 611c81436abe (bug 863445) 2013-05-13 12:31:13 +01:00
Nick Alexander
c6d27cb544 Bug 863445 - Part 2: Specify Robocop APK on runtestsremote.py command line. r=jmaher
This deprecates --robocop in favour of --robocop-ini, and
--robocopPath in favour of --robocop-apk.
2013-05-11 16:53:48 -07:00
Nick Alexander
8032ca7d5c Backed out e7739a472f09, 3fd142236a0f, and 382ec69cdfb1 (Bug 863445) for Android rc1 and rc2 failures on a CLOSED TREE. r=me 2013-05-10 21:38:52 -07:00
Nick Alexander
907ce69a9e Bug 863445 - Part 2: Specify Robocop APK on runtestsremote.py command line. r=jmaher
This deprecates --robocop in favour of --robocop-ini, and
--robocopPath in favour of --robocop-apk.
2013-05-10 18:39:00 -07:00
Geoff Brown
a9b105a446 Bug 865944 - Use top activity instead of process to check launch success; r=jmaher 2013-05-03 11:37:59 -06:00
Geoff Brown
09b829969b Bug 833765 - Increase default sut timeout to 320 s during rc tests; r=jmaher DONTBUILD 2013-04-08 12:34:45 -06:00
Geoff Brown
8ab3d1e9ec Bug 855146 - Enable SpecialPowers in robocop tests; r=jmaher 2013-04-03 21:11:26 -06:00
Geoff Brown
6817d84451 Bug 854549 - Dump robocop screenshot to logs and cleanup; r=jmaher 2013-03-26 11:31:23 -06:00
Chris Lord
bdb2999c54 Bug 846772 - Disable dynamic toolbar on robocop tests. r=kats,jmaher
Pretty much all of the robocop tests that involve input assumed a static UI.
Making them compatible with the dynamic toolbar would require a considerable
rethink, so turn it off by default. We can introduce robocop tests specifically
for the dynamic toolbar later.
2013-03-12 18:32:26 +00:00
Ryan VanderMeulen
c8102cb870 Backed out 5 changesets (bug 846772) for Android reftest-3 orange on a CLOSED TREE. 2013-03-12 17:37:16 -04:00
Chris Lord
8acf90dda9 Bug 846772 - Disable dynamic toolbar on robocop tests. r=kats,jmaher
Pretty much all of the robocop tests that involve input assumed a static UI.
Making them compatible with the dynamic toolbar would require a considerable
rethink, so turn it off by default. We can introduce robocop tests specifically
for the dynamic toolbar later.
2013-03-12 18:32:26 +00:00
Geoff Brown
3e3f01ef86 Bug 784242 - set browser.viewport.scaleRatio during robocop tests; r=kats 2013-03-07 14:05:24 -07:00
Joel Maher
800dbfb068 Bug 843105 - allow robocop tests to be run in chunks. r=ted 2013-02-21 09:03:02 -05:00
Jonathan Griffin
1b85f765da Bug 826135 - Fix --utility-path error on Fennec, r=gbrown 2013-01-25 11:35:15 -08:00
Jonathan Griffin
3866e73ed3 Bug 826135 - Throw if --utility-path points to ARM version of xpcshell, r=ahal 2013-01-03 17:37:26 -08:00
Geoff Brown
001cf6d95f Bug 822823 - Dump logcat on any robocop failure; r=jmaher 2013-01-10 02:24:58 -07:00
Joel Maher
4f34bab8ba Bug 826769 - make mochitest-robotium may fail with: OSError: [Errno 2] No such file or directory: '/tmp/xxx/tests.jar'. r=gbrown 2013-01-04 13:42:32 -05:00
Joel Maher
dddfedf32a Bug 826308 - Robocop tests log output should contain begin/end block markers for the full test run. r=bc 2013-01-04 13:42:22 -05:00
Joel Maher
0a4091f7eb Bug 736105 - robocop does a lot of redundant copying of profile and sleeps, we can cut runtime almost in half. r=gbrown 2012-12-28 07:18:22 -05:00
Geoff Brown
b4ec1eb3bb Bug 810347 - Provide option for setting remote test root; r=jmaher 2012-12-20 09:11:11 -07:00
Geoff Brown
0c83ca6919 Bug 819093 - Use strings for env values in remote mochitest; r=jmaher DONTBUILD 2012-12-07 09:04:01 -07:00
Ed Morley
48028c7ee3 Bug 816532 - Print logcat for failed robocop tests; r=gbrown 2012-12-04 15:54:37 +00:00
Joel Maher
56edda1c29 Bug 811444 - panda boards magically reboot in the middle of the test. r=ted 2012-11-28 10:23:11 -05:00
Ed Morley
85d5967f66 Bug 814011 - Robocop should output the runTests() return code for that batch of tests, if non-zero; r=gbrown 2012-11-21 18:57:11 +00:00
Ed Morley
b0abd8f8cc Bug 814013 - Always print the final robocop pass/fail summary, even if we received a non-zero return value; r=gbrown 2012-11-21 18:53:48 +00:00
Ed Morley
d7ff8a55c6 Bug 808410 - Ensure non-zero return values for robocop tests aren't overwritten by later success; r=gbrown 2012-11-20 15:24:28 +00:00
William Lachance
bf48c7a9e9 Bug 805116 - Print more of the logcat in mobile tests;r=gbrown 2012-11-12 13:57:13 -08:00
Ed Morley
d2aa28c276 Bug 808417 - Make runTests() exception reporting consistent across test harnesses; r=jmaher 2012-11-05 13:03:55 +00:00
William Lachance
2964fe96a9 Bug 801652 - Make sure we print logcat, device info on remote mochitest/reftest failure;r=jmaher 2012-10-24 13:34:33 -04:00
Joel Maher
f9fea48a70 Bug 799107 - minidumps not being generated from robocop test crashes (breakpad environment variables not being set properly). r=kats 2012-10-16 13:25:23 -04:00
Joel Maher
bcfa9d8a11 Backout e814e12508af (bug 799107), 45863b00372b (bug 801633), 2012-10-15 13:33:37 -04:00
Joel Maher
73c02aef4b Bug 799107 - minidumps not being generated from robocop test crashes (breakpad environment variables not being set properly). r=kats 2012-10-15 11:13:44 -04:00
William Lachance
f6eb10dd3b Bug 756440 - Only warn when we fail cleanup steps with mobile mochitest/reftest;r=jmaher
Before we were outright failing if the test logfile was missing when cleaning
up these tests. But that's generally a sign that the app failed to start
up properly, which is the true issue we should be trying to catch / diagnose.
Let's just print a warning here and move on.
2012-10-15 10:15:19 -04:00
Joel Maher
9666d12624 Backout f271acb304c2 (bug 799107), 2012-10-15 09:08:41 -04:00
Joel Maher
859c2f666d Bug 799107 - minidumps not being generated from robocop test crashes (breakpad environment variables not being set properly). r=kats 2012-10-15 07:10:49 -04:00
Brian Nicholson
9089a9b77f Bug 769145 - Part 6: Update test cases for layout changes. r=mfinkle 2012-10-05 17:27:12 -07:00
William Lachance
bd5cbf8b30 Bug 795496 - Make mozdevice raise exceptions on error;r=ahal,jmaher
It turns out that relying on the user to check return codes for every
command was non-intuitive and resulted in many hard to trace bugs.
Now most functinos just return "None", and raise a DMError when there's an
exception. The exception to this are functions like dirExists, which now return
booleans, and throw exceptions on error. This is a fairly major refactor,
and also involved the following internal changes:

* Removed FileError and AgentError exceptions, replaced with DMError
  (having to manage three different types of exceptions was confusing,
  all the more so when we're raising them)
* Docstrings updated to remove references to return values where no
  longer relevant
* pushFile no longer will create a directory to accomodate the file
  if it doesn't exist (this makes it consistent with devicemanagerADB)
* dmSUT we validate the file, but assume that we get something back
  from the agent, instead of falling back to manual validation in the
  case that we didn't
* isDir and dirExists had the same intention, but different
  implementations for dmSUT. Replaced the dmSUT impl of getDirectory
  with that of isDir's (which was much simpler). Removed
  isDir from devicemanager.py, since it wasn't used externally
* killProcess modified to check for process existence before running
  (since the actual internal kill command will throw an exception
  if the process doesn't exist)

In addition to all this, more unit tests have been added to test these
changes for devicemanagerSUT.
2012-10-04 11:28:07 -04:00
Joel Maher
548aa53dce Bug 797112 - we have a call to dm.checkCmd and that api doesn't exist anymore. r=wlach 2012-10-03 11:07:31 -04:00