Hi all,
I'm trying to run a marionette test on my device to test ADN/FDN functionality but I'm encountering some difficulties. First of all I've setup everything as per the MDN page [1] using an engineering build, forwarding port 2828 and all. Then I tried running the test with the following command:

./test.sh marionette --address=localhost:2828 ./gecko/dom/icc/tests/marionette/test_icc_contact.js

The first problem I hit was the minimal web server refusing to bind to the address it was given. Turns out this line was returning a weird address which I have no idea where it's coming from:

https://mxr.mozilla.org/mozilla-central/source/testing/marionette/client/marionette/runtests.py#245

I commented out that line and hardcoded my machine's address instead to go past that point. Now it seems that the test is starting correctly on the phone however the script times out on my box and fails. In the logcat output I get the following lines:

I/Gecko ( 105): 1371191145241 Marionette INFO sendToClient: {"from":"0","ok":true}, {98997b20-ac88-4f04-8a32-cdec2aafcbc9}, {98997b20-ac88-4f04-8a32-cdec2aafcbc9} I/Gecko ( 105): Handler function DebuggerTransport.prototype.onOutputStreamReady threw an exception: [Exception... "Component returned failure code: 0x80470002 (NS_BASE_STREAM_CLOSED) [nsIOutputStream.write]" nsresult: "0x80470002 (NS_BASE_STREAM_CLOSED)" location: "JS frame :: chrome://marionette/content/marionette-server.js -> resource://gre/modules/devtools/server/transport.js :: DT_onOutputStreamReady :: line 95" data: no] E/GeckoConsole( 105): [JavaScript Error: "Handler function DebuggerTransport.prototype.onOutputStreamReady threw an exception: [Exception... "Component returned failure code: 0x80470002 (NS_BASE_STREAM_CLOSED) [nsIOutputStream.write]" nsresult: "0x80470002 (NS_BASE_STREAM_CLOSED)" location: "JS frame :: chrome://marionette/content/marionette-server.js -> resource://gre/modules/devtools/server/transport.js :: DT_onOutputStreamReady :: line 95" data: no]" {file: "chrome://marionette/content/marionette-server.js -> resource://gre/modules/devtools/DevToolsUtils.js" line: 37}] I/Gecko ( 105): 1371191145356 Marionette INFO loaded marionette-listener.js I/Gecko ( 105): 1371191145359 Marionette INFO sendToClient: {"from":"0","value":"6-b2g"}, {bb15e123-18b7-449d-92ae-0cbf5b2369be}, {bb15e123-18b7-449d-92ae-0cbf5b2369be} I/Gecko ( 105): 1371191145371 Marionette INFO sendToClient: {"from":"0","ok":true}, {1f2d8199-5ce8-4383-89dd-860441c9d8e0}, {1f2d8199-5ce8-4383-89dd-860441c9d8e0} I/Gecko ( 105): 1371191145377 Marionette INFO sendToClient: {"from":"0","ok":true}, {9775b733-04fc-4bea-b15b-1dcfe495be54}, {9775b733-04fc-4bea-b15b-1dcfe495be54} I/Gecko ( 105): MARIONETTE LOG: INFO: TEST-START: /home/gsvelto/projects/B2G/gecko/dom/icc/tests/marionette/test_icc_contact.js I/Gecko ( 105): 1371191145391 Marionette INFO sendToClient: {"from":"0","value":null}, {0d43d666-1be4-4a16-a514-f9c55a0fdb80}, {0d43d666-1be4-4a16-a514-f9c55a0fdb80} E/GeckoConsole( 105): [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "data:text/html,<html>test%20page</html>" line: 0}]
I/Gecko   (  355):
I/Gecko ( 355): ###!!! [Child][AsyncChannel] Error: Channel closing: too late to send/recv, messages will be lost
I/Gecko   (  355):
I/Gecko ( 105): 1371191145705 Marionette INFO sendToClient: {"from":"0","ok":true}, {dcaaf483-4a04-42bc-9e66-5ba50a075501}, {dcaaf483-4a04-42bc-9e66-5ba50a075501} I/Gecko ( 105): 1371191145743 Marionette INFO sendToClient: {"from":"0","ok":true}, {688f906f-ec29-4928-a020-80b98683d831}, {688f906f-ec29-4928-a020-80b98683d831} I/Gecko ( 105): MARIONETTE TEST RESULT:TEST-PASS | test_icc_contact.js | icc is instanceof [object MozIccManager] - true was true, expected true
I/Gecko   (  361):
I/Gecko ( 361): ###!!! [Child][AsyncChannel] Error: Channel closing: too late to send/recv, messages will be lost
I/Gecko   (  361):
I/Gecko ( 105): 1371191175765 Marionette INFO sendToClient: {"from":"0","error":{"message":"timed out","status":28,"stacktrace":null}}, {7e36f3e5-32fe-4a64-9349-a5bb709b364c}, {7e36f3e5-32fe-4a64-9349-a5bb709b364c} I/Gecko ( 105): 1371191175783 Marionette INFO sendToClient: {"from":"0","value":[["INFO","TEST-START: /home/gsvelto/projects/B2G/gecko/dom/icc/tests/marionette/test_icc_contact.js","Fri Jun 14 2013 08:25:45 GMT+0200 (CEST)"]]}, {2cb2314a-c6b8-40a9-bafc-22c7857bd67f}, {2cb2314a-c6b8-40a9-bafc-22c7857bd67f} I/Gecko ( 105): 1371191175799 Marionette INFO sendToClient: {"from":"0","value":[]}, {7210d5c2-955e-44c6-aaa4-c7f240a5dfac}, {7210d5c2-955e-44c6-aaa4-c7f240a5dfac} I/Gecko ( 105): 1371191175805 Marionette INFO sendToClient: {"from":"0","ok":true}, {97bea548-b827-4ce5-a60c-2b93213028d3}, {97bea548-b827-4ce5-a60c-2b93213028d3} I/Gecko ( 105): 1371191175815 Marionette INFO sendToClient: {"from":"0","ok":true}, {7a5634b4-5299-4efa-86b3-d77e36f7b253}, {7a5634b4-5299-4efa-86b3-d77e36f7b253}

I'm not familiar with the framework but it looks like it's unable to call back home to report the results or something. I'm I missing something in my configuration?

 Gabriele

[1] https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Platform/Testing/Setting_up_Marionette
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to