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 242134 - Groups from selenium tests are not offered when "Ask for Test Groups Before Running Tests" is used
Summary: Groups from selenium tests are not offered when "Ask for Test Groups Before ...
Status: RESOLVED WONTFIX
Alias: None
Product: php
Classification: Unclassified
Component: PHPUnit (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-20 09:54 UTC by Vladimir Riha
Modified: 2015-07-01 12:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-02-20 09:54:10 UTC
To reproduce:
 - create a new PHP project
 - create a Selenium Test Case for PHP file 
     - IDE asks for "Select a directory with project's Selenium test files" , click Browse button
     - create a new folder and select it
 - add some test method => 2 methods are declared
 - to each test method, add different @group annotation, e.g.

@group AA
@group AB

 - in project properties, select PHP Unit as testing provider and check  "Ask for Test Groups Before Running Tests"
 - confirm OK
 - right click on project and "Run Selenium tests"

=> all tests are executed without asking for groups

The problem is that if you create plain PHP Unit test case, add test method with

@group AA

and then again "Run Selenium tests", you are asked which test group to run, but this dialog does not offer group AB, only AA (because it was used in the plain PHP unit test) and if you select AA, then only the selenium test method with this group is executed.

As a result, test groups "work" with selenium tests, but they must be used in common phpunit test first



Product Version: NetBeans IDE Dev (Build 201402200001)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b129
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Tomas Mysik 2014-02-21 05:54:46 UTC
Hmm, perhaps we could have a look at this issue for a NB 8.0 Patch? Not sure whether there is some keyword for it (I am not able to find any).

Thanks.
Comment 2 Vladimir Riha 2014-02-21 07:19:02 UTC
I don't know either, let's try this one.
Comment 3 Tomas Mysik 2015-05-20 07:05:17 UTC
Ládo, is this issue still valid? I am asking because now we have completely new Selenium support and I am not sure.

Thanks!
Comment 4 Tomas Mysik 2015-07-01 12:20:52 UTC
Ládo, is this issue still valid now when we have new Selenium support? I guess not since Selenium has its own configuration... Feel free to reopen, thanks.