We are facing similar issues but have figured out a hacky work-around.
You can override the retry method and set the test result to SKIP.
Then, TestNG doesn't mark the previous test as FAILED (if the last one
fails, it does mark it as FAILED which is correct).
Regarding the count, you gotta specify the number as 6 since it calls
retry method twice per retry.
But it would be nice to have the maxRetryCount feature without the
above mentioned hassle. If you feel so, please vote on the below
issue :
http://jira.opensymphony.com/browse/TESTNG-427
Jeegar Maru
On Aug 16, 9:39 am, kamalakar vadla <
vkchary...@gmail.com> wrote:
> Hi Cédric,
>
> Could you please help me to solve this issue.
>
> VK
> SocialTwist
>
> On Fri, Aug 13, 2010 at 10:23 AM, kamalakar vadla <
vkchary...@gmail.com>wrote:
>
> > I tried with testing-5.13.1.jar but no luck same issues i am facing.
>
> > Could you please help me to solve this problem.
> > For details of my code refer below
>
> > -- VK
>
> > 2010/8/12 Cédric Beust ♔ <
ced...@beust.com>
>
> > Kamalakar,
>
> >> Please try the latest version (5.13.1), I fixed a few bugs in that area
> >> recently.
>
> >> --
> >> Cédric
>
> >> On Thu, Aug 12, 2010 at 6:17 AM, kamalakar vadla <
vkchary...@gmail.com>wrote:
>
> >>> Hi All,
>
> >>> I was looking to into IRetryAnalyzer.
>
> >>> Following issues i am facing:
>
> >>> - With the below implemation my testmethod runs only 3 times
> >>> eventhough i have given as max count as 6
> >>> - Other issue actually i am running only one method why it is showing
> >>> as failed 3 methods???
> >>> - Suppose i have one testmethod and it rerun how many times it
> >>> should give only latest run result. -- How we can achieve this?
> >>> - If possible can you send i sample code
>
> >>> *Output:*
> >>> *Analyzer.java*
> >>>>> On Tue, Aug 10, 2010 at 7:04 AM, kamalakar vadla <
vkchary...@gmail.com
> >>>>> > wrote:
>
> >>>>>> - I ran 10 Testcases and in that 8 passed 2 failed and so hudson
> >>>>>> treat as build unstable and sends a mail. This send a false alaram
> >>>>>> - Rerunning testing-failed.xml will not serve my purpose .
> >>>>>> - Why i want to Rerun before the report generate is
> >>>>>> - Most of my testcases communicate with the outside application
> >>>>>> and there so many issues like network lag etc will effect testcase result.I
> >>>>>> want to make sure once again by rerunning the tests and send the mail to the
> >>>>>> team( These tests will run very frequently)
> >>>>>> - So suggest me best solution for this problem?
>
> >>>>>> Kamalakar
> >>>>>> SocialTwist
>
> >>>>>> On Thu, Jul 1, 2010 at 10:36 AM, kamalakar vadla <
> >>>>>>
vkchary...@gmail.com> wrote:
>
> >>>>>>> I am not sure how hudson will treat this rerun?? My only concern
> >>>>>>> if Hudson should treat this as build stable if at all after rerun if all
> >>>>>>> tests passed.
> >>>>>>> Lets try and see if it works for me or not?
>
> >>>>>>> Any thanks for quick reply
>
> >>>>>>> Kamalakar
> >>>>>>> Socialtwist
>
> >>>>>>> 2010/7/1 Cédric Beust ♔ <
ced...@beust.com>
>
> >>>>>>> Why don't you run the second time with a different output directory?
> >>>>>>>> This way, your reports won't get overridden.
>
> >>>>>>>> --
> >>>>>>>> Cédric
>
> >>>>>>>> On Wed, Jun 30, 2010 at 9:49 PM, kamalakar vadla <
> >>>>>>>>
vkchary...@gmail.com> wrote:
>
> >>>>>>>>> I can rerun the testng-failed.xml but the prob is i have
> >>>>>>>>> integrated these tests to Hudson CI so when u rerun the
> >>>>>>>>> reports accumulated will be Over written by rerun .
> >>>>>>>>> *My Requirement :*
> >>>>>>>>>>>
testng-users...@googlegroups.com<
testng-users%2Bunsu...@googlegroups.com>
> >>>>>>>>>>> .
> >>>>>>>>>>> For more options, visit this group at
> >>>>>>>>>>>
http://groups.google.com/group/testng-users?hl=en.
>
> >>>>>>>>>> --
> >>>>>>>>>> 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<
testng-users%2Bunsu...@googlegroups.com>
> >>>>>>>>>> .
> >>>>>>>>>> For more options, visit this group at
> >>>>>>>>>>
http://groups.google.com/group/testng-users?hl=en.
>
> >>>>>>>>> --
> >>>>>>>>> Kamalakar.Vadla
> >>>>>>>>> Pramati Technologies Pvt Ltd
> >>>>>>>>> Begumpet
>
> >>>>>>>>> --
> >>>>>>>>> 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<
testng-users%2Bunsu...@googlegroups.com>
> >>>>>>>>> .
> >>>>>>>>> For more options, visit this group at
> >>>>>>>>>
http://groups.google.com/group/testng-users?hl=en.
>
> >>>>>>>> --
> >>>>>>>> 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<
testng-users%2Bunsu...@googlegroups.com>
> >>>>>>>> .
> >>>>>>>> For more options, visit this group at
>
> ...
>
> read more »