[ECLIPSE] Run configurations and groups

474 views
Skip to first unread message

Nicolas Lelievre

unread,
Feb 7, 2012, 7:28:12 PM2/7/12
to testng-users
Hi,

I'm trying to run my tests on a specific group but when I'm going to
the run configuration and add a group in the "Groups" section, it's
like I'm doing nothing.
I cannot save it and also if I click on Debug or Run this is the
output :

[TestRunner] Running the tests in 'Default test' with parallel
mode:false
[RunInfo] Adding method selector:
org.testng.internal.XmlMethodSelector@49d8c528 priority: 10
[TestNG] Running:
C:\[...]\testng-eclipse-1862678883\testng-customsuite.xml

[SuiteRunner] Created 1 TestRunners
[TestRunner] Running test Default test on 0 classes, included groups:
[] excluded groups:[]
===== Invoked methods
=====
Creating C:\[...]\test-output\Default suite\Default test.html
Creating C:\[...]\test-output\Default suite\Default test.xml

===============================================
Default test
Tests run: 0, Failures: 0, Skips: 0
===============================================


===============================================
Default suite
Total tests run: 0, Failures: 0, Skips: 0
===============================================
[..]

So I think this is a TestNG Eclipse plugin issue, this is very
annoying.

Regards,

Cédric Beust ♔

unread,
Feb 7, 2012, 8:11:32 PM2/7/12
to testng...@googlegroups.com
Can you post your class?

-- 
Cédric





--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to testng...@googlegroups.com.
To unsubscribe from this group, send email to testng-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.


Nicolas Lelievre

unread,
Feb 8, 2012, 1:24:59 PM2/8/12
to testng-users
Hi,

I cannot, I have maybe 10 different testng groups and millions of line
of code in the project.
So for example, on the run configuration window, when I click on
"browse" to browse through the testng groups it will takes forever and
I have to kill it, maybe because the project is too big.
But when I manually add the group it the textbox, or do any
modification on this textbox I cannot click on Apply, it's like I'm
doing nothing.

I'm using Eclipse Indigo service Release 1 and the lastest version of
testng plugin 6.3.2.20120201_1256

Thank you for your help,

Regards,

On Feb 7, 5:11 pm, Cédric Beust ♔ <ced...@beust.com> wrote:
> Can you post your class?
>
> --
> Cédric
>
> On Tue, Feb 7, 2012 at 4:28 PM, Nicolas Lelievre <nicolas.lelie...@gmail.com

Cédric Beust ♔

unread,
Feb 8, 2012, 1:30:56 PM2/8/12
to testng...@googlegroups.com
The size of your project is certainly an issue, but I'm still a bit confused about the problem you're seeing because you've described three different things in your emails. For example, what does "it's like I'm doing nothing." mean exactly?

-- 
Cédric

Nicolas Lelievre

unread,
Feb 8, 2012, 1:35:10 PM2/8/12
to testng-users
It means that I when you are doing any modification on the run
configuration panel you can apply these modifications (in order to
save them).
When I'm making a modification in the "Groups" field, I cannot "Apply"
them, it's like eclipse is not detecting that I made a change on this
field.

Cédric Beust ♔

unread,
Feb 8, 2012, 1:38:31 PM2/8/12
to testng...@googlegroups.com
Can you create a brand new project with one test class and see if you have the same problem?

-- 
Cédric

Nicolas Lelievre

unread,
Feb 8, 2012, 2:24:32 PM2/8/12
to testng-users
it's still acting weird.
if you add manualy any text in the Groups field, you cannot Apply
these changes.
if for example I put "test1" in the field and then click run, it will
not run the test1 group.

here my class:


-----
package testPackage;

public class testClass {
public static boolean f1() {
return true;
}
}

-----

package testPackage;

import org.testng.Assert;
import org.testng.annotations.Test;

public class NewTest {
@Test(groups = { "test1", "test2" })
public void f() {
Assert.assertTrue(testClass.f1());
}
}

----

Nicolas Lelievre

unread,
Feb 13, 2012, 4:09:43 PM2/13/12
to testng-users
Hi Cedric,

Do you know if there is another way of doing the same thing because
with this bug I can't debug on Eclipse on my groups tests...
Also do you have any plan on fixing this ?

Thank you,

On Feb 8, 11:24 am, Nicolas Lelievre <nicolas.lelie...@gmail.com>
wrote:

Cédric Beust ♔

unread,
Feb 13, 2012, 4:16:35 PM2/13/12
to testng...@googlegroups.com
Hi Nicolas,

I can't reproduce the behavior you're seeing. I create a simple class with one method in a group, then I edit the launch configuration. "Apply" is enabled. I select "Groups", "Apply" becomes disabled (since it's waiting for me to type a group name). As soon as I type a letter in the Groups field, "Apply" becomes enabled again.

The only way I could debug this is if you can create a small Eclipse project that shows the problem and email it to me (make sure it includes .classpath and .project).

Thanks.

-- 
Cédric

Nicolas Lelievre

unread,
Feb 21, 2012, 1:01:43 PM2/21/12
to testng-users
Hi Cedric,

Did you get my email ?
If so, did you get a change to take a look at this issue ?

Thank you,

Cédric Beust ♔

unread,
Feb 21, 2012, 1:03:53 PM2/21/12
to testng...@googlegroups.com
Nicolas,

I responded the following on February 8th and that's the last I heard from you until today:



Hi Nicolas,

I can't reproduce the behavior you're seeing. I create a simple class with one method in a group, then I edit the launch configuration. "Apply" is enabled. I select "Groups", "Apply" becomes disabled (since it's waiting for me to type a group name). As soon as I type a letter in the Groups field, "Apply" becomes enabled again.

The only way I could debug this is if you can create a small Eclipse project that shows the problem and email it to me (make sure it includes .classpath and .project).

Thanks.

-- 
Cédric




Nicolas Lelievre

unread,
Feb 21, 2012, 1:46:05 PM2/21/12
to testng-users
Cedric,

I sent you an email the 13th with a project and also a video recording
of the issue on my computer, it's maybe into your spam (huge 20Mb
email).
> > > > > > > > > > > org.testng.internal.XmlMethodSelector@49d8c528priority: 10

Cédric Beust ♔

unread,
Feb 21, 2012, 1:48:22 PM2/21/12
to testng...@googlegroups.com
Yeah, never got it. 20Mb? Never send emails that big, please. First because it will get trashed by a mail server along the way for sure, second because... well, I'm probably not going to try to understand a 20Mb project.

Please trim it down and post it on github, it's the easiest way.

-- 
Cédric

Nicolas Lelievre

unread,
Feb 21, 2012, 1:52:24 PM2/21/12
to testng-users
It was not a 20 MB project, the project was really small, it was the
recorded action on my computer.

But never mind, I will post the small project on github.
> ...
>
> read more »

Jens Alenius

unread,
May 21, 2012, 1:00:27 AM5/21/12
to testng...@googlegroups.com
Don't type the group. Press browse and select it. I had some problems myself even if I selected the groups. TestNG plugin did not remember the group after I Run the test. Switched to latest testng plugin. Then I saw that it was adding a comma ',' after the group. Seems to remember it now
Jens

Nicolas Lelievre

unread,
Jun 29, 2012, 5:12:27 PM6/29/12
to testng...@googlegroups.com
Hi,

I cannot browse since my project is way too big.
So it's still not working event with the comma....
Reply all
Reply to author
Forward
0 new messages