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 249738 - Protractor: Results for single browser setup are not working
Summary: Protractor: Results for single browser setup are not working
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Testing (show other bugs)
Version: 8.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2015-01-12 07:37 UTC by Vladimir Riha
Modified: 2015-03-06 11:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample project (1.55 MB, application/zip)
2015-01-12 07:37 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2015-01-12 07:37:39 UTC
Created attachment 151446 [details]
sample project

Please check the attached project (invoke NPM install on it). If you try to run Protractor tests from project's context menu, the output in Output window is:


"/usr/local/bin/node" "/usr/local/bin/protractor" "/home/vriha/Downloads/netbeans/webcommon/protractor/netbeans-configuration.js"
WARNING - chromeOnly is deprecated. Use directConnect
WARNING - chromeOnly is deprecated. Use directConnect
Using ChromeDriver directly...
[launcher] Running 1 instances of WebDriver
Done.


After that, the opened browser is shutdown and that's it :) No test results, no more text in output window. If I use 

  multiCapabilities: [{
  'browserName': 'chrome'
}, {
  'browserName': 'firefox'
}],


then it works fine. Nothing suspicious in IDE log.


Thank you


Product Version: NetBeans IDE Dev (Build 201501120001)
Java: 1.8.0_25; Java HotSpot(TM) Client VM 25.25-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b17
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Comment 1 Theofanis Oikonomou 2015-03-03 15:37:17 UTC
Problem was with log parser. Should work as expected now. i have tested with capabilities and multiCapabilitie with one and two browsers.

http://hg.netbeans.org/web-main/rev/2e74765c9016
Comment 2 Quality Engineering 2015-03-04 03:57:35 UTC
Integrated into 'main-silver', will be available in build *201503040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2e74765c9016
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Task #249738 - Protractor: Results for single browser setup are not working
Comment 3 Vladimir Riha 2015-03-06 11:24:05 UTC
I'll have to reinstall Firefox to older version on Linux as Protractor/Selenium has some troubles with v36. I'm trying it on Windows and it works for single browser (either Chrome or Firefox), but not with multiCapabilities. Protractor finishes tests in Chrome and the IDE's output window shows that it Protractor is finishes, without waiting for Firefox to finish
Comment 4 Vladimir Riha 2015-03-06 11:32:35 UTC
Nice, seems to be a bug/feature in Protractor [1]

[1] http://stackoverflow.com/questions/23081500/jasmine-reporters-option-for-protractors-multicapabilities-option


Verified, thank you


Product Version: NetBeans IDE Dev (Build 201503060001)
Java: 1.8.0_11; Java HotSpot(TM) 64-Bit Server VM 25.11-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_11-b12
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)