Open maciejblinkbox opened 12 years ago
Actually, I can capture the browser just fine. I didn't put it right. The problem happens when I try to execute the tests. Are there any constraints on using unknown browsers?
The browser on TV is not Safari. I decided to run a test on Safari on windows and I got similar problem : Runner output: Safari: Reset Safari: Reset Safari 534.55.3 Windows loaded /test/lib/jasmine/jasmine.js [ERROR] error loading file: /test/src/JasmineAdapter.js:0: Error: duplicate test case names! On TestCaseInfo(Jasmine Adapter Tests,function () {},jasmine test case) and TestCaseInfo(Jasmine Adapter Tests,function () {},jasmine test case) Safari 534.55.3 Windows loaded /test/src-test/tests.js Total 0 tests (Passed: 0; Fails: 0; Errors: 0) (0.00 ms) Safari 534.55.3 Windows: Run 1 tests (Passed: 0; Fails: 0; Errors 1) (0.00 ms)
error loading file: /test/src/JasmineAdapter.js:0: Error: duplicate test case names! On TestCaseInfo(Jasmine Adapter Tests,function () {},jasmine test case) and TestCaseInfo(Jasmine Adapter Tests,function () {},jasmine test case)
Tests failed: Tests failed. See log for details. Press any key to continue . . .
Relevant server output: 18-Apr-2012 15:28:57 com.google.jstestdriver.servlet.fileset.BrowserFileCheck handle INFO: Resetting browser fileset to ensure proper overwriting. false [] 18-Apr-2012 15:28:57 com.google.jstestdriver.SlaveBrowser resetFileSet FINE: Resetting fileSet for SlaveBrowser(browserInfo=Safari 534.55.3 Windows, id=1334759265865, sinceLastCheck=0.03s, timeout=30000) 18-Apr-2012 15:28:57 com.google.jstestdriver.server.handlers.BrowserQueryResponseHandler handleFileLoadResult INFO: loaded 3 files 18-Apr-2012 15:28:57 com.google.jstestdriver.server.handlers.BrowserQueryResponseHandler handleFileLoadResult INFO: clearing fileset on browser errors:[FileSource(/test/src/JasmineAdapter.js, C:\Users\maciej\Desktop\jstestdriver\mhevery-jasmine-jstd-adapter\mhevery-jasmine-jstd-adapter-e0e6098 - blinkbox\src\JasmineAdapter.js, 1326891132000)] 18-Apr-2012 15:28:57 com.google.jstestdriver.SlaveBrowser resetFileSet FINE: Resetting fileSet for SlaveBrowser(browserInfo=Safari 534.55.3 Windows, id=1334759265865, sinceLastCheck=0.0050s, timeout=30000) 18-Apr-2012 15:28:57 com.google.jstestdriver.SlaveBrowser addResponse FINE: adding response type FILE_LOAD_RESULT done: true 18-Apr-2012 15:28:57 com.google.jstestdriver.server.handlers.BrowserQueryResponseHandler serviceBrowser INFO: Error in browser: Response ( browser=[null null null], error=[], executionTime=[0], response=[{"level":1000,"source":"jstestdriver.CommandExecutor","message":"Exception RangeError: Maximum call stack size exceeded.\nundefined(undefined):\nundefined","browser":{"id":1334759265865}}], type=[LOG]) 18-Apr-2012 15:28:57 com.google.jstestdriver.SlaveBrowser addResponse FINE: adding response type LOG done: true
So actual Safari on Windows is also throwing 'Exception RangeError: Maximum call stack size exceeded' exception.
Is this the adapter doing something wrong?
I've created a branch which reproduces this issue to hopefully help you @mhevery.
Just run --server http://localhost:9876 --tests all --config jsTestDriver.conf --testOutput src-test/output --reset --verbose
with Safari captured, and in the Safari Developer Console you should see;
runner.js:356
Exception RangeError: Maximum call stack size exceeded.
undefined(undefined):
undefined
jasmine-2.0.0.rc1.js:2441
RangeError: Maximum call stack size exceeded.
Hey @mhevery, Do you have any plans to fix this? No problem if not, just I'll delete the branch I'm maintaining for you if that is the case.
Thanks.
We don't plan to spend any more time on this adapter. We moved all of our testing infrastructure to Testacular which somes bundled with Jasmine adapter among many other goodies. Check it out at http://vojtajina.github.com/testacular
Cool, I'll check it out thanks
Sent from my mobile phone. On Oct 16, 2012 8:52 AM, "Igor Minar" notifications@github.com wrote:
We don't plan to spend any more time on this adapter. We moved all of our testing infrastructure to Testacular which somes bundled with Jasmine adapter among many other goodies. Check it out at http://vojtajina.github.com/testacular
— Reply to this email directly or view it on GitHubhttps://github.com/mhevery/jasmine-jstd-adapter/issues/8#issuecomment-9475862.
I'm trying to capture a custom webkit browser running on a tv using sample jasmine tests. None of the tests are executed, here is a runner output:
Safari: Reset Safari: Reset Safari 525.1 Linux loaded /test/lib/jasmine/jasmine.js Safari 525.1 Linux loaded /test/src/JasmineAdapter.js Safari 525.1 Linux loaded /test/src-test/tests.js Total 0 tests (Passed: 0; Fails: 0; Errors: 0) (0.00 ms) Tests failed: No tests executed. Press any key to continue . . .
The server reports a browser exception: Exception RangeError: Maximum call stack size exceeded.
18-Apr-2012 15:07:28 com.google.jstestdriver.server.handlers.BrowserQueryResponseHandler serviceBrowser INFO: Error in browser: Response ( browser=[null null null], error=[], executionTime=[0], response=[{"level":1000,"source":"jstestdriver.CommandExecutor","message":"Exception RangeError: Maximum call stack size exceeded.\nundefined(undefined):\nundefined","browser":{"id":1334757441841}}], type=[LOG])
What is the problem here?
Thanks