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.

Bug 230400 - Unable to run tests on Chrome(ium) with NB integration
Summary: Unable to run tests on Chrome(ium) with NB integration
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 7.4
Hardware: PC Linux
: P2 normal (vote)
Assignee: David Konecny
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2013-05-28 16:40 UTC by Vladimir Riha
Modified: 2013-07-05 02:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (26.62 KB, image/png)
2013-05-28 16:40 UTC, Vladimir Riha
Details
IDE log (29.94 KB, text/x-log)
2013-05-28 16:40 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-05-28 16:40:15 UTC
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)
Comment 1 Vladimir Riha 2013-05-28 16:40:38 UTC
Created attachment 135018 [details]
IDE log
Comment 2 David Konecny 2013-05-31 02:00:03 UTC
Thanks catching it.

68f96bb963d0

I also fixed the new "names". Btw. do mobile browsers work for unit testing?
Comment 3 Vladimir Riha 2013-05-31 04:46:52 UTC
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
Comment 4 Quality Engineering 2013-06-01 01:14:17 UTC
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
Comment 5 Vladimir Riha 2013-06-03 08:17:27 UTC
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)
Comment 6 David Konecny 2013-07-03 23:24:03 UTC
Re. "Mobile browsers do not work out of the box." - fixed in e3aae20a0005 - IP address should be used for mobile browsers.
Comment 7 Vladimir Riha 2013-07-04 06:14:07 UTC
Thank you, I'll try it
Comment 8 Quality Engineering 2013-07-05 02:24:51 UTC
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