Closed Bug 678399 Opened 14 years ago Closed 11 years ago

mutt test_controllerRefactor.js is now broken

Categories

(Testing Graveyard :: Mozmill, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: k0scist, Unassigned)

References

Details

As best I can recall, this worked on mozmill master yesterday and stopped working today. It looks like there was a content change which leads to an element not being found. I have turned it off on my push today ( https://github.com/mozautomation/mozmill/commit/c02925bc32a289db771d8e05dd25a27ca2379912#diff-29 ), but that's an interim solution and a bad one at that. In any case, whether it was today, yesterday, or the day before, there was no code change to mozmill master between the time the test worked (probably yesterday) and when the failure was noticed (today). In general, mutt shouldn't depend on external resources, but this is a difficult problem to solve today (for reasons I won't detail right now). The error: (mozmill)│mozmill -t test_controllerRefactor.js Xlib: extension "GLX" missing on display ":0.0". TEST-START | test_controllerRefactor.js | setupModule TEST-START | test_controllerRefactor.js | testMozElement INFO | Step Pass: {"function": "Controller.open()"} INFO | Step Pass: {"function": "controller.waitFor()"} INFO | Step Pass: {"function": "controller.waitForPageLoad()"} INFO | Step Pass: {"function": "MozMillTextBox.type()"} INFO | Step Pass: {"function": "MozMillElement.click()"} INFO | Step Pass: {"function": "controller.waitFor()"} INFO | Step Pass: {"function": "controller.waitForPageLoad()"} ERROR | Test Failure: {"exception": {"stack": "createInstance(\"ID\",\"www\",null)@resource://mozmill/modules/mozelement.js:68\n((void 0),\"www\")@resource://mozmill/modules/mozelement.js:80\n()@resource://mozmill/modules/frame.js -> file:///home/jhammel/mozmill/src/mozmill/mutt/mutt/tests/js/test_controllerRefactor.js:21\n((function () {controller.open(\"http://www.mozilla.org\");controller.waitForPageLoad();var textbox = findElement.Elem(controller.tabs.activeTab.getElementById(\"q\"));var button = findElement.ID(undefined, \"quick-search-btn\");textbox.sendKeys(\"mozmill\");controller.click(button);controller.waitForPageLoad();var radio = findElement.ID(undefined, \"www\");button = elementslib.XPath(undefined, \"/html/body/div/table/tbody/tr/td/table/tbody/tr/td[2]/table/tbody/tr[2]/td/input[7]\");radio.select();button.keypress(\"VK_RETURN\", {});controller.waitForPageLoad();var logo = findElement.XPath(undefined, \"/html/body/div/table/tbody/tr/td/table/tbody/tr/td/a/img\");logo.click();controller.waitForPageLoad();const NAV_BAR = \"/id(\\\"main-window\\\")/id(\\\"tab-view-deck\\\")/{\\\"flex\\\":\\\"1\\\"}/id(\\\"navigator-toolbox\\\")/id(\\\"nav-bar\\\")\";const URL_BAR = NAV_BAR + \"/id(\\\"urlbar-container\\\")/id(\\\"urlbar\\\")\";var urlBar = new elementslib.Lookup(controller.window.document, URL_BAR);urlBar.keypress(\"a\", {accelKey: true});urlBar.sendKeys(\"http://www.mozilla.org\");urlBar.keypress(\"VK_RETURN\", {});controller.waitForPageLoad();}))@resource://mozmill/modules/frame.js:499\n([object Object])@resource://mozmill/modules/frame.js:553\n(\"/home/jhammel/mozmill/src/mozmill/mutt/mutt/tests/js/test_controllerRefactor.js\",null)@resource://mozmill/modules/frame.js:463\n(\"/home/jhammel/mozmill/src/mozmill/mutt/mutt/tests/js/test_controllerRefactor.js\",false,null)@resource://mozmill/modules/frame.js:588\n((function (filename, invokedFromIDE, name) {var runner = new Runner(new Collector, invokedFromIDE);runner.runTestFile(filename, name);runner.end();return true;}),[object Proxy])@resource://jsbridge/modules/bridge.js:135\n(\"3c9e99dc-c471-11e0-94ab-00262df16844\",(function (filename, invokedFromIDE, name) {var runner = new Runner(new Collector, invokedFromIDE);runner.runTestFile(filename, name);runner.end();return true;}),[object Proxy])@resource://jsbridge/modules/bridge.js:139\n", "message": "could not find element ID: www", "fileName": "resource://mozmill/modules/mozelement.js", "name": "Error", "lineNumber": 68}} TEST-UNEXPECTED-FAIL | test_controllerRefactor.js | testMozElement ERROR | Test Failure: {"message": "[JavaScript Error: \"Error: could not find element ID: www\" {file: \"resource://mozmill/modules/frame.js\" line: 515}]"} INFO | Passed: 0 INFO | Failed: 1 INFO | Skipped: 0
This test doesn't exist anymore. Closing as invalid.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.