Commit Graph

61 Commits

Author SHA1 Message Date
Ed Morley
1536cfef6c Bug 808417 - Make runTests() exception reporting consistent across test harnesses; r=jmaher 2012-11-05 13:03:55 +00:00
William Lachance
cfb9c86b64 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
52bf998910 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
c2138f61fe Backout e814e12508af (bug 799107), 45863b00372b (bug 801633), 2012-10-15 13:33:37 -04:00
Joel Maher
3c72bf2083 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
771972c9f2 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
975fa8f860 Backout f271acb304c2 (bug 799107), 2012-10-15 09:08:41 -04:00
Joel Maher
2ac065a653 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
9b1cdd0fbe Bug 769145 - Part 6: Update test cases for layout changes. r=mfinkle 2012-10-05 17:27:12 -07:00
William Lachance
c5f092dab4 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
23f83e405b 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
Bob Clary
120a77d996 Bug 789086 - use unique temporary filename for robotium.config file in mochitest/runtestsremote.py, r=jmaher. 2012-09-28 12:25:46 -07:00
Kartikaya Gupta
49a83a548e Bug 767449 - Allow robotium tests to put files in places other than /mnt/sdcard. r=jmaher 2012-09-12 07:56:31 -04:00
William Lachance
2795774129 Bug 777500 - Log information about device before and after test for remote mochitest and reftests;r=jmaher 2012-07-25 20:45:36 -04:00
Joel Maher
a766519866 Bug 754873 - fennec automated tests should capture logcat output while test is running. r=wlach 2012-06-13 14:20:43 -04:00
Brian Nicholson
98f6c15f77 Bug 586885 - Add raw host to robotium.config. r=jmaher 2012-06-05 14:07:14 -07:00
Gervase Markham
82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Joel Maher
2d6ecaf98d Bug 736920 - mochitest-robocop log parser shouldn't repeat the whole test log, particularly not with spurious blank lines. r=gbrown 2012-03-22 10:45:20 -04:00
William Lachance
b875233d85 Bug 736246 - DeviceManagerADB should throw an exception if we know it's not going to work. r=jmaher 2012-03-16 18:36:28 -04:00
Joel Maher
2a64ef934f Bug 717018 - merge robotium logs into a single logfile. r=gbrown,jhammel 2012-02-09 08:49:00 -05:00
Joel Maher
6966b1650a Bug 717057 - allow robotium testPan to run in talos. r=kats,gbrown 2012-02-02 10:09:26 -05:00
Kartikaya Gupta
d295229424 Bug 722367 - Update path to robocop.apk and fennec_ids.txt in mochitest-robotium target. r=jmaher 2012-01-30 13:14:47 -05:00
Ms2ger
97967af56e Merge m-c to m-i. 2012-01-25 11:06:40 +01:00
Ms2ger
3b6294d172 Bug 718271 - Use TEST-UNEXPECTED-FAIL instead of TEST-UNEXPECTED-ERROR; r=jmaher 2012-01-25 08:50:04 +01:00
Joel Maher
3c5c587127 Bug 716732 - Robocop: fennec_ids.txt not always generated. r=kats 2012-01-11 08:50:10 -05:00
Joel Maher
d7033b7077 Bug 710445 - Add support for packaging tests in a specific directory. r=gbrown 2012-01-07 18:41:08 -05:00
Joel Maher
fb177d4678 Bug 715309 - robocop needs to have a more uniform log format. r=gbrown 2012-01-07 18:41:08 -05:00
Ed Morley
bc6bc81bd0 Backout 8ec01f6f316f (bug 705175), a1dc0efef542 (bug 716077), b5686f25b258 (bug 710445), 32f8d3be2ad1 (bug 715309) for mochitest/reftest failures on Android & Windows 2012-01-07 14:57:58 +00:00
Joel Maher
c6292f1fc8 Bug 710445 - Add support for packaging tests in a specific directory. r=gbrown 2012-01-07 08:25:05 -05:00
Joel Maher
c220fd6332 Bug 715309 - robocop needs to have a more uniform log format. r=gbrown 2012-01-07 08:25:05 -05:00
Geoff Brown
7d79b1d10e Bug 715408 - Delete any existing remote profile before running mochitest-remote; r=jmaher 2012-01-06 08:37:54 -05:00
Geoff Brown
37c895f598 Bug 717684 - Robocop: better diagnostics when TEST_PATH incorrect; r=jmaher 2012-01-24 09:46:34 -05:00
Joel Maher
e74485eb5e Bug 701076 - [hoooking up make] Robotium integration into birch tree. r=blassey,bear 2011-12-31 10:03:36 -05:00
Phil Ringnalda
ab5b6ce43d Back out 04ef7f564450 (bug 701076) and 632f07583bd8 (bug 711591) for mochitest-oth bustage 2011-12-30 14:19:30 -08:00
Joel Maher
d555d02e96 Bug 701076 - [hookup to make] Robotium integration into birch tree. r=blassey,bear 2011-12-30 15:57:34 -05:00
Joel Maher
ac86b93435 Bug 691425 - allow for reftest/mochitest android crashes to be dumped in the logs just like desktop crashes. r=ctalbert 2011-10-06 10:51:03 -04:00
Joel Maher
ce02631d63 Bug 688762 - add try/except blocks around all harnesses so we always return an error code. r=bear 2011-09-26 07:41:19 -04:00
Cameron McCormack
3eafd18eb4 Bug 479352 - Hide mochitest results table if MOZ_HIDE_RESULTS_TABLE=1 is set. (v4) r=jmaher, a=testonly 2011-07-26 16:13:20 -07:00
Geoff Brown
f6de8f0e85 Bug 672538 - remotereftest.py and runtestsremote.py reference dm_auto before initialized; r=jmaher 2011-07-20 13:02:48 -04:00
Kyle Huey
29476224bf Mass revert m-i to the last known good state 2011-07-13 18:22:33 -07:00
Joel Maher
55189cb46a Bug 669549 - Some DeviceManagerADB functions do not work; r=gbrown
--HG--
extra : rebase_source : 264dd349a73191697ee0fd8c770693bfe99e7d80
2011-07-13 17:43:52 -04:00
Brad Lassey
558792a749 bug 669874 - add support for adb devicemanager to mochitest-remote make target r=jmaher 2011-07-07 13:10:52 -04:00
Brad Lassey
8f65e2f059 Bug 650205 - Implement devicemanager using adb. r=jmaher, a=test-only 2011-05-06 18:17:55 -04:00
Joel Maher
b53ccb616c Bug 654116 - need pidfile generated for xpcshell process. r=bear, a=test-only 2011-05-12 12:47:38 -04:00
Joel Maher
a183e93439 Bug 650828 - change runtestremote and remotereftests to generate pid file. r=ctalbert 2011-04-19 15:17:01 -07:00
Joel Maher
33f1772d43 Bug 636450 - add a --host-os option for remote testing scripts. r=ctalbert, a=NPOTB 2011-02-24 14:45:42 -05:00
Joel Maher
cadb3b3032 Bug 629266 - org.mozilla.fennec is left running after dm.updateApp(). r=ctalbert, a=NPOTB 2011-02-23 14:38:56 -05:00
Clint Talbert
655e9599c7 Bug 624001 Update android devicemanager with better error handling r=jmaher,mcote a=NPOTB 2011-01-13 12:00:23 -06:00
Joel Maher
515bc25359 Bug 611230 Remote mochitest fails to honor --utility-path r=ctalbert a=NPOTB 2010-12-09 14:47:21 -08:00
Joel Maher
924613ea43 Bug 608740 Remote Testing on browser chrome misses testConfig.js file r=ctalbert a=NPOTB 2010-11-04 17:01:12 -07:00