This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 135017 [details] screenshot To reproduce, please try: - run click on HTML5 project, select Test - check Chrome and Chrome with NB integration and JS Debugger - select path to jstestdriver jar - confirm it fails with this in output window (clearly output from JSTestDriver) setting runnermode QUIET Exception in thread "main" java.lang.RuntimeException: No browsers available, yet actions [com.google.jstestdriver.RunTestsAction@14e9726] requested. If running against a persistent server please capture browsers. Otherwise, ensure that browsers are defined. at com.google.jstestdriver.browser.BrowserActionExecutorAction.run(BrowserActionExecutorAction.java:94) at com.google.jstestdriver.ActionRunner.runActions(ActionRunner.java:81) at com.google.jstestdriver.embedded.JsTestDriverImpl.runConfigurationWithFlags(JsTestDriverImpl.java:342) at com.google.jstestdriver.embedded.JsTestDriverImpl.runAllTests(JsTestDriverImpl.java:253) at com.google.jstestdriver.embedded.JsTestDriverImpl.runAllTests(JsTestDriverImpl.java:242) at org.netbeans.libs.jstestdriver.ext.RunTests.runTests(RunTests.java:86) at org.netbeans.libs.jstestdriver.ext.RunTests.main(RunTests.java:72) and in "Configure JSTestDriver installation and its startup" dialog (from Services|JS Test Driver), previously checked Chrome/Chromium with NB integration is no longer checked (but e.g. plain Chrome is remembered). Tests are executed only in Chrome but not in "Chrome with...." It could be related by the "new" names of these browsers? This is a regression and I think it should be resolved for beta. I'm using the same jstestdriver and same project with tests as with 7.3 where it works. Product Version: NetBeans IDE Dev (Build web-main-10634-on-20130528) Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11 System: Linux version 3.2.0-43-generic-pae running on i386; UTF-8; en_US (nb)
Created attachment 135018 [details] IDE log
Thanks catching it. 68f96bb963d0 I also fixed the new "names". Btw. do mobile browsers work for unit testing?
Thank you. I'll try mobile browsers with this fix again but mobile Chrome (without IDE integration) worked if I manually captured it otherwise it had the same problem as written in description here. And default Android browser worked Ok
Integrated into 'main-golden', will be available in build *201305312301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/68f96bb963d0 User: David Konecny <dkonecny@netbeans.org> Log: #230400 - Unable to run tests on Chrome(ium) with NB integration
Verified David: Mobile browsers do not work out of the box. The problem is that for having to capture target browser, IDE (or JSTestDriver?) opens localhost:[port]/capture and clearly localhost on device is something different then on PC with IDE. So if you enter [ip]:[port]/capture in mobile browser (where IP is PC's IP in network), you can capture mobile browser and then IDE allow you to run tests on the device, view results etc. I tried this with Android default browser and mobile Chrome (the steps above do not allow JS debugging). Is it possible to change name to IP address used to capture browser? Product Version: NetBeans IDE Dev (Build 201306022301) Java: 1.7.0_25; Java HotSpot(TM) Client VM 23.25-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b13 System: Linux version 3.2.0-44-generic-pae running on i386; UTF-8; en_US (nb)
Re. "Mobile browsers do not work out of the box." - fixed in e3aae20a0005 - IP address should be used for mobile browsers.
Thank you, I'll try it
Integrated into 'main-silver', will be available in build *201307042300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/e3aae20a0005 User: David Konecny <dkonecny@netbeans.org> Log: #230400 - Unable to run tests on Chrome(ium) with NB integration