Closed Bug 1058345 Opened 10 years ago Closed 10 years ago

[2.0] Semi-auto tests all fail with: TypeError: lockScreen.unlock is not a function

Categories

(Firefox OS Graveyard :: Certification Suite, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jgriffin, Assigned: ato)

References

Details

With a 2.0 Flame, all semi-auto tests fail with e.g., 

JavascriptException: JavascriptException: TypeError: lockScreen.unlock is not a function
stacktrace:
	execute_script @testcase.py, line 216
	inline javascript, line 314
	src: "        lockScreen.unlock();"
I also see these errors in the log:

test_end for webapi_tests.tcp_socket.test_tcp_socket.TestTcpSocketFormality.test_properties logged while not in progress. Logged with data: {"status": "ERROR", "extra": {}, "expected": "PASS", "test": "webapi_tests.tcp_socket.test_tcp_socket.TestTcpSocketFormality.test_properties", "message": "CloseError: Unable to close app: JavascriptException: TypeError: manager.getRunningApps is not a function\nstacktrace:\n\texecute_async_script @certapp.py, line 121\n\tinline javascript, line 154\n\tsrc: \" let runningApps = manager.getRunningApps();\"\n\n\n", "stack": "Traceback (most recent call last):\n File \"/home/jgriffin/fxos-certsuite/certsuite_venv/local/lib/python2.7/site-packages/fxos_certsuite-0.1-py2.7.egg/webapi_tests/semiauto/testcase.py\", line 43, in cleanup\n certapp.kill(self.marionette, app=self.app)\n File \"/home/jgriffin/fxos-certsuite/certsuite_venv/local/lib/python2.7/site-packages/fxos_certsuite-0.1-py2.7.egg/webapi_tests/certapp.py\", line 123, in kill\n raise CloseError(\"Unable to close app: %s\" % e)\n"}

I guess these may be related.
Because we can't turn the display on or unlock the screen on user builds I suggest we remove this.  It should've been addressed in the patch for bug 1043924.

Code review: https://critic.hoppipolla.co.uk/r/2449
Assignee: nobody → ato
Status: NEW → ASSIGNED
(In reply to Jonathan Griffin (:jgriffin) from comment #1)
> I also see these errors in the log:
> 
> test_end for
> webapi_tests.tcp_socket.test_tcp_socket.TestTcpSocketFormality.
> test_properties logged while not in progress. Logged with data: {"status":
> "ERROR", "extra": {}, "expected": "PASS", "test":
> "webapi_tests.tcp_socket.test_tcp_socket.TestTcpSocketFormality.
> test_properties", "message": "CloseError: Unable to close app:
> JavascriptException: TypeError: manager.getRunningApps is not a
> function\nstacktrace:\n\texecute_async_script @certapp.py, line
> 121\n\tinline javascript, line 154\n\tsrc: \" let runningApps =
> manager.getRunningApps();\"\n\n\n", "stack": "Traceback (most recent call
> last):\n File
> \"/home/jgriffin/fxos-certsuite/certsuite_venv/local/lib/python2.7/site-
> packages/fxos_certsuite-0.1-py2.7.egg/webapi_tests/semiauto/testcase.py\",
> line 43, in cleanup\n certapp.kill(self.marionette, app=self.app)\n File
> \"/home/jgriffin/fxos-certsuite/certsuite_venv/local/lib/python2.7/site-
> packages/fxos_certsuite-0.1-py2.7.egg/webapi_tests/certapp.py\", line 123,
> in kill\n raise CloseError(\"Unable to close app: %s\" % e)\n"}
> 
> I guess these may be related.

I think this is a separate issue to do with app_management.js and its Python-Marionette bindings in certapp.py.  I've filed 1058601 about this.
https://github.com/mozilla-b2g/fxos-certsuite/commit/31d70209bd86859feed4344797217e566b9c7fb6
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.