Source Code Cross Referenced for BeforeMethod.java in  » Testing » testng » org » testng » annotations » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » testng » org.testng.annotations 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        package org.testng.annotations;
02:
03:        import java.lang.annotation.Retention;
04:        import java.lang.annotation.Target;
05:
06:        @Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
07:        @Target(java.lang.annotation.ElementType.METHOD)
08:        public @interface BeforeMethod {
09:            /**
10:             * Whether methods on this class/method are enabled.
11:             */
12:            public boolean enabled() default true;
13:
14:            /**
15:             * The list of groups this class/method belongs to. 
16:             */
17:            public String[] groups() default {};
18:
19:            /**
20:             * The list of groups this method depends on.  Every method
21:             * member of one of these groups is guaranteed to have been
22:             * invoked before this method.  Furthermore, if any of these
23:             * methods was not a SUCCESS, this test method will not be
24:             * run and will be flagged as a SKIP.  
25:             */
26:            public String[] dependsOnGroups() default {};
27:
28:            /**
29:             * The list of methods this method depends on.  There is no guarantee
30:             * on the order on which the methods depended upon will be run, but you
31:             * are guaranteed that all these methods will be run before the test method
32:             * that contains this annotation is run.  Furthermore, if any of these
33:             * methods was not a SUCCESS, this test method will not be
34:             * run and will be flagged as a SKIP.  
35:             * 
36:             *  If some of these methods have been overloaded, all the overloaded
37:             *  versions will be run.
38:             */
39:            public String[] dependsOnMethods() default {};
40:
41:            /**
42:             *  For before methods (beforeSuite, beforeTest, beforeTestClass and
43:             *  beforeTestMethod, but not beforeGroups):
44:             *  If set to true, this configuration method will be run
45:             *  regardless of what groups it belongs to. 
46:             *  <br>
47:             * For after methods (afterSuite, afterClass, ...): 
48:             *  If set to true, this configuration method will be run
49:             *  even if one or more methods invoked previously failed or
50:             *  was skipped.
51:             */
52:            public boolean alwaysRun() default false;
53:
54:            /**
55:             * If true, this &#64;Configuration method will belong to groups specified in the
56:             * &#64;Test annotation on the class (if any).
57:             */
58:            public boolean inheritGroups() default true;
59:
60:            /**
61:             * The description for this method.  The string used will appear in the
62:             * HTML report and also on standard output if verbose >= 2.
63:             */
64:            public String description() default "";
65:
66:            /**
67:             * If true and the @Test method about to be run has an invocationCount > 1, this
68:             * BeforeMethod will only be invoked once (before the first test invocation).
69:             */
70:            public boolean firstTimeOnly() default false;
71:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.