Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
No interruption in a chain of dependent methods running
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  18 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Rice  
View profile  
 More options Nov 2, 3:45 am
From: Rice <rice...@gmail.com>
Date: Mon, 2 Nov 2009 00:45:41 -0800 (PST)
Local: Mon, Nov 2 2009 3:45 am
Subject: No interruption in a chain of dependent methods running
Hi,
  I have 3 test classes, T1, T2, and T3. All the methods in each of
these test classes are sequentially dependent, where configuration
settings, which are mostly ThreadLocal variables, is set up in the
first method. I find the running of each chain of methods in these
test classes are interleaved to each other. This causes ThreadLocal
variables setting changed. Is there a way to make sure no interruption
in a chain of dependent methods running? The following is an
illustration for my problem.

T1.method1
T1.method2
T2.method1 <-- interrupting the running of methods in T1.
T2.method2
T1.method3
T3.method1
T3.method2

Regards,
Rice


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cédric Beust ♔  
View profile  
 More options Nov 2, 11:07 am
From: Cédric Beust ♔ <cbe...@google.com>
Date: Mon, 2 Nov 2009 08:07:12 -0800
Local: Mon, Nov 2 2009 11:07 am
Subject: Re: [testng-users] No interruption in a chain of dependent methods running

Hi Rice,

I don't quite follow, can you be more specific?  What order of execution are
you seeing?  What do you think it should be?  Also, can you post your
(trimmed down) source that would allow me to reproduce this?

--
Cédric


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tomás Pollak  
View profile  
 More options Nov 2, 1:26 pm
From: Tomás Pollak <tpollak...@gmail.com>
Date: Mon, 2 Nov 2009 15:26:31 -0300
Local: Mon, Nov 2 2009 1:26 pm
Subject: Re: [testng-users] Re: No interruption in a chain of dependent methods running

Hi,

this is similar to the problem I reported recently. See:
http://groups.google.com/group/testng-users/browse_thread/thread/1289...
There's a test case attached there.

It's the same problem, except my tests interfere with each other through the
database, while Rice's do through ThreadLocal variables.

Regards,
Tomás

2009/11/2 Cédric Beust ♔ <cbe...@google.com>


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Reporting diff TestNames for @factory" by Pranav
Pranav  
View profile  
 More options Nov 2, 5:59 pm
From: Pranav <pranav.ve...@gmail.com>
Date: Mon, 02 Nov 2009 14:59:06 -0800
Local: Mon, Nov 2 2009 5:59 pm
Subject: Reporting diff TestNames for @factory
List,

Can somebody point me to some documentation/sample code .....on how to
change testcase name in report while running a @factory. right now i
have a factory which runs like 70-80 odd testcases, and in report they
have all same name, so its kindda tough to understand,  I can add some
specific log message to debug, and if nothing works out may be I will
have to create my own custom report , but was just wondering this should
be a common problem for most of @factory users, and there should be some
standard way to solve it. I tried but was unable to find anything on
this forum mail archive or on net . any help/suggestion will be
appreciated,

Best,
Pranav


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cédric Beust ♔  
View profile  
 More options Nov 2, 6:01 pm
From: Cédric Beust ♔ <cbe...@google.com>
Date: Mon, 2 Nov 2009 15:01:43 -0800
Local: Mon, Nov 2 2009 6:01 pm
Subject: Re: [testng-users] Reporting diff TestNames for @factory

Hi Pranav,

Did you take a look at the ITest
interface<http://testng.org/javadocs/org/testng/ITest.html>
?

--
Cédric


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pranav  
View profile  
 More options Nov 2, 7:12 pm
From: Pranav <pranav.ve...@gmail.com>
Date: Mon, 02 Nov 2009 16:12:41 -0800
Local: Mon, Nov 2 2009 7:12 pm
Subject: Re: [testng-users] Re: Reporting diff TestNames for @factory
This looks intresteing, so I implemented ITest in my testcase class,
something like this

public class SuperTest implements Itest{

private String testName ;

public SuperTest (String name){

this.testName = name;

}

@Test
public void testSomething() {

<test code >

}

public String getTestName() {

return this.testName;

}
}

this had no impact on my test report,
Actually it never calls getTestName , am I doing somethign wrong here ?

Best,
Pranav


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cédric Beust ♔  
View profile  
 More options Nov 2, 7:21 pm
From: Cédric Beust ♔ <cbe...@google.com>
Date: Mon, 2 Nov 2009 16:21:25 -0800
Local: Mon, Nov 2 2009 7:21 pm
Subject: Re: [testng-users] Re: Reporting diff TestNames for @factory

I just tested and it's working for me:

public class A implements ITest {
  public String getTestName() {
    return "This is test A";
  }

}

and my HTML report says:

*Test method* *Instance* *Time (seconds)* *Exception*  *g1*
Test class:This is test A test.tmp.A@46b6db0
 *g2*
Test class:This is test A test.tmp.A@46b6db0
Which report are you looking at?

--
***Cédric
*


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pranav  
View profile  
 More options Nov 2, 7:43 pm
From: Pranav <pranav.ve...@gmail.com>
Date: Mon, 02 Nov 2009 16:43:22 -0800
Local: Mon, Nov 2 2009 7:43 pm
Subject: Re: [testng-users] Re: Reporting diff TestNames for @factory

Your report looks  perfect , just what i want.

I am using 5.8 jar, running it through eclipse ( right clicking
testng.xml , and click on "Run as testng suite"), and checking the
report in test-output/index.html

intrestingly, I dont see any instance column in my report.

any ideas?


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cédric Beust ♔  
View profile  
 More options Nov 2, 8:16 pm
From: Cédric Beust ♔ <cbe...@google.com>
Date: Mon, 2 Nov 2009 17:16:00 -0800
Subject: Re: [testng-users] Re: Reporting diff TestNames for @factory

This is the right report, can you try 5.10?

On Nov 2, 2009 4:43 PM, "Pranav" <pranav.ve...@gmail.com> wrote:

Your report looks  perfect , just what i want.

I am using 5.8 jar, running it through eclipse ( right clicking
testng.xml , and click on "Run as testng suite"), and checking the
report in test-output/index.html

intrestingly, I dont see any instance column in my report.

any ideas?

Cédric Beust ♔ wrote: > I just tested and it's working for me: > > public

class A implements ITest ...

> <mailto:pranav.ve...@gmail.com>> wrote: > > > This looks intresteing, so I

implemented ITest i...


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pranav  
View profile  
 More options Nov 2, 8:26 pm
From: Pranav <pranav.ve...@gmail.com>
Date: Mon, 02 Nov 2009 17:26:32 -0800
Local: Mon, Nov 2 2009 8:26 pm
Subject: Re: [testng-users] Re: Reporting diff TestNames for @factory

I just tried with 5.10

these are my classes

package com.factory;

import org.testng.annotations.Factory;

import com.test.MyTest;

public class MyFactory {

    @Factory
    public Object[] createTests(){

        int num = 5;
        Object[] result = new Object[num];
        for(int i=0;i<num;i++){
            MyTest obj  = new MyTest("Test" + i);
            result[i] = obj;
        }
        return result;
    }

}

package com.test;

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

public class MyTest implements ITest {

    private String name;

    public String getTestName() {
        // TODO Auto-generated method stub
        return this.name;
    }

    public MyTest(String name){

        this.name = name;
    }

    @Test
    public void someTest(){

        Assert.assertEquals(true, false);
    }

}

this is my testng.xml

<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >

<suite name="testSuite" verbose="1" >

  <test verbose="2" name="ItestDemo">

    <classes>
        <class name="com.factory.MyFactory"/>

    </classes>
  </test>
</suite>

please find the html report (ItestDemo.html) attached with this mail.

( Btw if it matters I am on MAC, JRE 1.5 )

Best,
pranav

[ ItestDemo.html 17K ]

ItestDemo

Tests passed/Failed/Skipped:0/5/0
Started on:Mon Nov 02 17:21:46 PST 2009
Total time:0 seconds (49 ms)
Included groups:
Excluded groups:

(Hover the method name to see the test class name)

FAILED TESTS
Test method Time (seconds) Exception
someTest 0
java.lang.AssertionError: expected:<false> but was:<true>
	at com.test.MyTest.someTest(MyTest.java:24)
... Removed 27 stack frames
Click to show all stack frames
java.lang.AssertionError: expected:<false> but was:<true>
	at org.testng.Assert.fail(Assert.java:86)
	at org.testng.Assert.failNotEquals(Assert.java:440)
	at org.testng.Assert.assertEquals(Assert.java:110)
	at org.testng.Assert.assertEquals(Assert.java:241)
	at org.testng.Assert.assertEquals(Assert.java:251)
	at com.test.MyTest.someTest(MyTest.java:24)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:607)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:517)
	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:669)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:956)
	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:126)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:110)
	at org.testng.TestRunner.runWorkers(TestRunner.java:759)
	at org.testng.TestRunner.privateRun(TestRunner.java:592)
	at org.testng.TestRunner.run(TestRunner.java:486)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:332)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:327)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:299)
	at org.testng.SuiteRunner.run(SuiteRunner.java:204)
	at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:877)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:842)
	at org.testng.TestNG.run(TestNG.java:751)
	at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)
someTest 0
java.lang.AssertionError: expected:<false> but was:<true>
	at com.test.MyTest.someTest(MyTest.java:24)
... Removed 27 stack frames
Click to show all stack frames
java.lang.AssertionError: expected:<false> but was:<true>
	at org.testng.Assert.fail(Assert.java:86)
	at org.testng.Assert.failNotEquals(Assert.java:440)
	at org.testng.Assert.assertEquals(Assert.java:110)
	at org.testng.Assert.assertEquals(Assert.java:241)
	at org.testng.Assert.assertEquals(Assert.java:251)
	at com.test.MyTest.someTest(MyTest.java:24)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:607)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:517)
	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:669)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:956)
	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:126)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:110)
	at org.testng.TestRunner.runWorkers(TestRunner.java:759)
	at org.testng.TestRunner.privateRun(TestRunner.java:592)
	at org.testng.TestRunner.run(TestRunner.java:486)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:332)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:327)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:299)
	at org.testng.SuiteRunner.run(SuiteRunner.java:204)
	at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:877)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:842)
	at org.testng.TestNG.run(TestNG.java:751)
	at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)
someTest 0
java.lang.AssertionError: expected:<false> but was:<true>
	at com.test.MyTest.someTest(MyTest.java:24)
... Removed 27 stack frames
Click to show all stack frames
java.lang.AssertionError: expected:<false> but was:<true>
	at org.testng.Assert.fail(Assert.java:86)
	at org.testng.Assert.failNotEquals(Assert.java:440)
	at org.testng.Assert.assertEquals(Assert.java:110)
	at org.testng.Assert.assertEquals(Assert.java:241)
	at org.testng.Assert.assertEquals(Assert.java:251)
	at com.test.MyTest.someTest(MyTest.java:24)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:607)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:517)
	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:669)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:956)
	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:126)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:110)
	at org.testng.TestRunner.runWorkers(TestRunner.java:759)
	at org.testng.TestRunner.privateRun(TestRunner.java:592)
	at org.testng.TestRunner.run(TestRunner.java:486)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:332)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:327)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:299)
	at org.testng.SuiteRunner.run(SuiteRunner.java:204)
	at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:877)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:842)
	at org.testng.TestNG.run(TestNG.java:751)
	at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)
someTest 0
java.lang.AssertionError: expected:<false> but was:<true>
	at com.test.MyTest.someTest(MyTest.java:24)
... Removed 27 stack frames
Click to show all stack frames
java.lang.AssertionError: expected:<false> but was:<true>
	at org.testng.Assert.fail(Assert.java:86)
	at org.testng.Assert.failNotEquals(Assert.java:440)
	at org.testng.Assert.assertEquals(Assert.java:110)
	at org.testng.Assert.assertEquals(Assert.java:241)
	at org.testng.Assert.assertEquals(Assert.java:251)
	at com.test.MyTest.someTest(MyTest.java:24)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:607)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:517)
	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:669)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:956)
	at
...

read more »


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cédric Beust ♔  
View profile  
 More options Nov 2, 8:46 pm
From: Cédric Beust ♔ <cbe...@google.com>
Date: Mon, 2 Nov 2009 17:46:03 -0800
Local: Mon, Nov 2 2009 8:46 pm
Subject: Re: [testng-users] Re: Reporting diff TestNames for @factory

Can you try your code with TestNG on the command line?  (without Eclipse)

--
Cedric

...

read more »


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "No interruption in a chain of dependent methods running" by Rice
Rice  
View profile  
 More options Nov 2, 9:48 pm
From: Rice <rice...@gmail.com>
Date: Mon, 2 Nov 2009 18:48:24 -0800 (PST)
Local: Mon, Nov 2 2009 9:48 pm
Subject: Re: No interruption in a chain of dependent methods running
Hi Tomas,
  Yes, my problem is same as yours.

Regards,
Rice

On Nov 3, 2:26 am, Tomás Pollak <tpollak...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Reporting diff TestNames for @factory" by Pranav
Pranav  
View profile  
 More options Nov 3, 3:08 am
From: Pranav <pranav.ve...@gmail.com>
Date: Tue, 03 Nov 2009 00:08:39 -0800
Local: Tues, Nov 3 2009 3:08 am
Subject: Re: [testng-users] Re: Reporting diff TestNames for @factory
Cedric,

testng through commandline creates perfect report. So the problem is
with eclipse TestNG plugin.

I tried maven surefire too, that also like eclipse plugin does not
create the intended report, and just ignores ITest implementation.

anybody any ideas to make it work on eclipse/maven ( specially for maven
surefire ) ?

Best,
Pranav

P.S : Cedric, I really appreciate your quick replies, thanks for all the
support.

...

read more »


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cédric Beust ♔  
View profile  
 More options Nov 3, 10:13 am
From: Cédric Beust ♔ <cbe...@google.com>
Date: Tue, 3 Nov 2009 07:13:53 -0800
Local: Tues, Nov 3 2009 10:13 am
Subject: Re: [testng-users] Re: Reporting diff TestNames for @factory

That's really odd.  I would expect Maven/Eclipse to possibly remove the HTML
reporter, but in this case, you wouldn't see any report at all.

Can you try to replace the Eclipse plugin's testng.jar with the 5.10
version?

--
***Cédric
*

...

read more »


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zaphod  
View profile  
 More options Nov 3, 12:55 pm
From: Zaphod <ed.j.rand...@gmail.com>
Date: Tue, 3 Nov 2009 09:55:31 -0800 (PST)
Local: Tues, Nov 3 2009 12:55 pm
Subject: Re: Reporting diff TestNames for @factory
This is exactly the same problem that I was having with 5.10 and
reported in my post,
Subject: ITest.getTestName() method from an @Factory => same name for
every test
on: 06-Oct-2009

Unfortunately nobody replied at the time :-(

Regards

Ed


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pranav  
View profile  
 More options Nov 3, 7:36 pm
From: Pranav <pranav.ve...@gmail.com>
Date: Tue, 03 Nov 2009 16:36:41 -0800
Local: Tues, Nov 3 2009 7:36 pm
Subject: Re: [testng-users] Re: Reporting diff TestNames for @factory
for eclipse currently I have testng 5.9 jar in my plugin folder, I dont
know where to get a testng-eclipse jar  v5.10, if you can gimme some
link, I can try it.

Btw one  more weird thing,  testng 5.10 jar does not show ITest testname
in report , if I call it through command line or surefire . It creates
the report but just ignores the getTestName method. I get proper report
if I use testng v5.8 or v5.9

Let me know if you want me to file a bug for v5.10?

Best,
Pranav

...

read more »


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "No interruption in a chain of dependent methods running" by Cédric Beust ♔
Cédric Beust ♔  
View profile  
 More options Nov 7, 12:25 pm
From: Cédric Beust ♔ <cbe...@google.com>
Date: Sat, 7 Nov 2009 09:25:20 -0800
Local: Sat, Nov 7 2009 12:25 pm
Subject: Re: [testng-users] Re: No interruption in a chain of dependent methods running

Hi Tomás,

The order I get from the command line looks correct:

*********** INVOKED METHODS

    test.tmp.TestA.insertA() 12741398
        test.tmp.TestA.testGetA() 12741398
        test.tmp.TestA.testViewA_Details1() 12741398
        test.tmp.TestA.testViewA_Details2() 12741398
        test.tmp.TestA.testViewA_Details3() 12741398
        test.tmp.TestA.testViewA_Details4() 12741398
    test.tmp.TestB.insertB() 2592387
        test.tmp.TestB.testGetB() 2592387
        test.tmp.TestB.testViewB_Details1() 2592387
        test.tmp.TestB.testViewB_Details2() 2592387
        test.tmp.TestB.testViewB_Details3() 2592387
        test.tmp.TestB.testViewB_Details4() 2592387

The Eclipse screen shot you included does show a different order, though, so
something is wrong.  Are you running Maven in Eclipse or was it just a pure
Eclipse plug-in run?

Can you run your own example from the command line, just like I did?  And
then can you try with Maven from the command line?

I'd like to narrow down the problem and I strongly suspect a problem with
Maven/Surefire.

--
***Cédric
*


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tomás Pollak  
View profile  
 More options Nov 8, 4:06 pm
From: Tomás Pollak <tpollak...@gmail.com>
Date: Sun, 8 Nov 2009 18:06:56 -0300
Local: Sun, Nov 8 2009 4:06 pm
Subject: Re: [testng-users] Re: No interruption in a chain of dependent methods running

Hi Cédric,

The problem was with the eclipse plugin. I have now tested running the tests
from the command line and from maven, and they both execute the tests in the
expected order. So apparently the problem is only with the eclipse plugin.

I'll try to do more tests, but it will take me some time.

Meanwhile, I am attaching the sample project again. This time I have shared
3 launchers that run the tests from the 3 tools (command-line, maven,
eclipse plugin).

Cheers,
Tomás

2009/11/7 Cédric Beust ♔ <cbe...@google.com>

  testng-run-order-with-launchers.zip
6K Download

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google