Javadoc

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Javadoc

Michel Charpentier
I'm unable to access the javadocs from the website: The requested URL /javadocs/index.html was not found on this server. Is it just me?

MC

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Javadoc

Cédric Beust ♔-2
It's fixed now, sorry about that.

-- 
Cédric


On Wed, Feb 10, 2016 at 12:25 AM, Michel Charpentier <[hidden email]> wrote:
I'm unable to access the javadocs from the website: The requested URL /javadocs/index.html was not found on this server. Is it just me?

MC

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Javadoc

Michel Charpentier


On Tuesday, February 9, 2016 at 6:05:16 PM UTC-5, Cédric Beust ♔ wrote:
It's fixed now, sorry about that.

Thanks.  Now that I've checked the API, I can ask my question: I'd like to set a default timeout for all tests in a class.  This doesn't work:

@Test(timeOut = 100)
public class Tests {
 
@Test(description = "a test")
 
public void test1() throws Exception {
   
Thread.sleep(1000);
 
}
}



I was hoping for a method on the TestNG class to set timeouts, but I didn't find one (I'm trying to avoid XML entirely).  Any way to do that?

MC 

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Javadoc

Krishnan Mahadevan
Michel,
The problem is in your test code.

You annotated your class with @Test wherein you are setting timeout. 

Then you are annotating your method also with @Test but here, there's no timeout attribute. 

I believe TestNG ends up overriding the class level @Test annotation attributes with the method level @Test annotation attributes.

That is why you don't see the timeouts.

If you would like to set a default timeout for all tests in a class then you have a couple of options.

1. You can just use a @Test annotation at the class level and choose not to annotate any of your methods.
2. You leverage an annotation transformer, wherein you add the timeout attribute on runtime basis for all your test methods.

If you are new to TestNG listeners, then maybe you can refer to my blog post : https://rationaleemotions.wordpress.com/2012/01/27/listen-to-what-i-have-to-say-about-testng-listeners/

If you are just looking for a sample on how to use annotation transformer, then you can take a look at this gist post of mine


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

On Wed, Feb 10, 2016 at 6:24 AM, Michel Charpentier <[hidden email]> wrote:


On Tuesday, February 9, 2016 at 6:05:16 PM UTC-5, Cédric Beust ♔ wrote:
It's fixed now, sorry about that.

Thanks.  Now that I've checked the API, I can ask my question: I'd like to set a default timeout for all tests in a class.  This doesn't work:

@Test(timeOut = 100)
public class Tests {
 
@Test(description = "a test")
 
public void test1() throws Exception {
   
Thread.sleep(1000);
 
}
}



I was hoping for a method on the TestNG class to set timeouts, but I didn't find one (I'm trying to avoid XML entirely).  Any way to do that?

MC 

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Javadoc

Michel Charpentier
(1) is not an option because I need description attributes on my tests.  (2) will do just fine.  Thanks for the suggestion.

MC

P.S. Note that the TestNG documentation should be fixed.  It has the first parameter of a listener be of type ITest instead of ITestAnnotation.

On Wednesday, February 10, 2016 at 10:45:58 AM UTC-5, Krishnan wrote:
Michel,
The problem is in your test code.

You annotated your class with @Test wherein you are setting timeout. 

Then you are annotating your method also with @Test but here, there's no timeout attribute. 

I believe TestNG ends up overriding the class level @Test annotation attributes with the method level @Test annotation attributes.

That is why you don't see the timeouts.

If you would like to set a default timeout for all tests in a class then you have a couple of options.

1. You can just use a @Test annotation at the class level and choose not to annotate any of your methods.
2. You leverage an annotation transformer, wherein you add the timeout attribute on runtime basis for all your test methods.

If you are new to TestNG listeners, then maybe you can refer to my blog post : <a href="https://rationaleemotions.wordpress.com/2012/01/27/listen-to-what-i-have-to-say-about-testng-listeners/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Frationaleemotions.wordpress.com%2F2012%2F01%2F27%2Flisten-to-what-i-have-to-say-about-testng-listeners%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNGYgJwo7I72dTaaZEghe-zDtsUnkQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Frationaleemotions.wordpress.com%2F2012%2F01%2F27%2Flisten-to-what-i-have-to-say-about-testng-listeners%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNGYgJwo7I72dTaaZEghe-zDtsUnkQ&#39;;return true;">https://rationaleemotions.wordpress.com/2012/01/27/listen-to-what-i-have-to-say-about-testng-listeners/

If you are just looking for a sample on how to use annotation transformer, then you can take a look at this gist post of mine

<a href="https://gist.github.com/krmahadevan/1155871" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgist.github.com%2Fkrmahadevan%2F1155871\46sa\75D\46sntz\0751\46usg\75AFQjCNHnu_t9oMYwJbC15adB7e3aMexmtw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgist.github.com%2Fkrmahadevan%2F1155871\46sa\75D\46sntz\0751\46usg\75AFQjCNHnu_t9oMYwJbC15adB7e3aMexmtw&#39;;return true;">https://gist.github.com/krmahadevan/1155871

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fwakened-cognition.blogspot.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fwakened-cognition.blogspot.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/
My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Frationaleemotions.wordpress.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Frationaleemotions.wordpress.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/

On Wed, Feb 10, 2016 at 6:24 AM, Michel Charpentier <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="-Ll1FA8JAgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">cha...@...> wrote:


On Tuesday, February 9, 2016 at 6:05:16 PM UTC-5, Cédric Beust ♔ wrote:
It's fixed now, sorry about that.

Thanks.  Now that I've checked the API, I can ask my question: I'd like to set a default timeout for all tests in a class.  This doesn't work:

@Test(timeOut = 100)
public class Tests {
 
@Test(description = "a test")
 
public void test1() throws Exception {
   
Thread.sleep(1000);
 
}
}



I was hoping for a method on the TestNG class to set timeouts, but I didn't find one (I'm trying to avoid XML entirely).  Any way to do that?

MC 

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="-Ll1FA8JAgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng-users...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="-Ll1FA8JAgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng...@....
Visit this group at <a href="https://groups.google.com/group/testng-users" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/testng-users&#39;;return true;">https://groups.google.com/group/testng-users.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Javadoc

Cédric Beust ♔-2

On Wed, Feb 10, 2016 at 8:45 AM, Michel Charpentier <[hidden email]> wrote:
P.S. Note that the TestNG documentation should be fixed.  It has the first parameter of a listener be of type ITest instead of ITestAnnotation.

Thanks, Michel.

FYI (everyone, not just you), the TestNG documentation is now in its own github repo, which should make pull requests easier:

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Javadoc

Michel Charpentier
Another thing I noticed (but it's more difficult to fix) is that invocationTimeOut is not named getInvocationTimeOut like the other methods (for a while, I couldn't find it).

MC

On Wednesday, February 10, 2016 at 12:38:17 PM UTC-5, Cédric Beust ♔ wrote:

On Wed, Feb 10, 2016 at 8:45 AM, Michel Charpentier <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="RXxBJDAPAgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">cha...@...> wrote:
P.S. Note that the TestNG documentation should be fixed.  It has the first parameter of a listener be of type ITest instead of ITestAnnotation.

Thanks, Michel.

FYI (everyone, not just you), the TestNG documentation is now in its own github repo, which should make pull requests easier:

<a href="https://github.com/testng-team/testng-team.github.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Ftestng-team%2Ftestng-team.github.io\46sa\75D\46sntz\0751\46usg\75AFQjCNEQWiG_9pE29-5vCZN2lG0m1zJY_g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Ftestng-team%2Ftestng-team.github.io\46sa\75D\46sntz\0751\46usg\75AFQjCNEQWiG_9pE29-5vCZN2lG0m1zJY_g&#39;;return true;">https://github.com/testng-team/testng-team.github.io

-- 
Cédric

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Javadoc

Michel Charpentier
In reply to this post by Cédric Beust ♔-2
How do I link to it?  I used to have a "-link http://testng.org/javadocs/" in my javadoc options, but this URL is gone.  Is there anything other than the long "jitpack.io" URL (which gives me trouble)?

MC

On Wednesday, February 10, 2016 at 12:38:17 PM UTC-5, Cédric Beust ♔ wrote:

On Wed, Feb 10, 2016 at 8:45 AM, Michel Charpentier <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="RXxBJDAPAgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">cha...@...> wrote:
P.S. Note that the TestNG documentation should be fixed.  It has the first parameter of a listener be of type ITest instead of ITestAnnotation.

Thanks, Michel.

FYI (everyone, not just you), the TestNG documentation is now in its own github repo, which should make pull requests easier:

<a href="https://github.com/testng-team/testng-team.github.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Ftestng-team%2Ftestng-team.github.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEQWiG_9pE29-5vCZN2lG0m1zJY_g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Ftestng-team%2Ftestng-team.github.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEQWiG_9pE29-5vCZN2lG0m1zJY_g&#39;;return true;">https://github.com/testng-team/testng-team.github.io

-- 
Cédric

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Javadoc

Cédric Beust ♔-2
Salut Michel,

I just created a redirect for http://testng.org/javadoc

-- 
Cédric


On Sun, Mar 26, 2017 at 6:14 PM, Michel Charpentier <[hidden email]> wrote:
How do I link to it?  I used to have a "-link http://testng.org/javadocs/" in my javadoc options, but this URL is gone.  Is there anything other than the long "jitpack.io" URL (which gives me trouble)?

MC

On Wednesday, February 10, 2016 at 12:38:17 PM UTC-5, Cédric Beust ♔ wrote:

On Wed, Feb 10, 2016 at 8:45 AM, Michel Charpentier <[hidden email]> wrote:
P.S. Note that the TestNG documentation should be fixed.  It has the first parameter of a listener be of type ITest instead of ITestAnnotation.

Thanks, Michel.

FYI (everyone, not just you), the TestNG documentation is now in its own github repo, which should make pull requests easier:

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Loading...