Source Code Cross Referenced for Configuration.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) 


001:        package org.testng.annotations;
002:
003:        import java.lang.annotation.Target;
004:        import java.lang.annotation.Retention;
005:
006:        /**
007:         * Configuration information for a TestNG class.
008:         * 
009:         * @deprecated Use @BeforeSuite, @AfterSuite, @BeforeTest, @AfterTest,
010:         * @BeforeGroups, @AfterGroups, @BeforeClass, @AfterClass, @BeforeMethod,
011:         * @AfterMethod
012:         *
013:         * @author Cedric Beust, Apr 26, 2004
014:         * 
015:         */
016:        @Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
017:        @Target(java.lang.annotation.ElementType.METHOD)
018:        public @interface Configuration {
019:
020:            /**
021:             * If true, the annotated method will be run after the test class is instantiated
022:             * and before the test method is invoked.
023:             */
024:            public boolean beforeTestClass() default false;
025:
026:            /**
027:             * If true, the annotated method will be run after all the tests in the test
028:             * class have been run.
029:             */
030:            public boolean afterTestClass() default false;
031:
032:            /**
033:             * If true, the annotated method will be run before any test method is invoked.
034:             */
035:            public boolean beforeTestMethod() default false;
036:
037:            /**
038:             * If true, the annotated method will be run after any test method is invoked.
039:             */
040:            public boolean afterTestMethod() default false;
041:
042:            /**
043:             * If true, the annotated method will be run before this suite starts.
044:             */
045:            public boolean beforeSuite() default false;
046:
047:            /**
048:             * If true, the annotated method will be run after all tests in this suite
049:             * have run.
050:             */
051:            public boolean afterSuite() default false;
052:
053:            /**
054:             * If true, the annotated method will be run before every test.
055:             */
056:            public boolean beforeTest() default false;
057:
058:            /**
059:             * If true, the annotated method will be run after all every test.
060:             */
061:            public boolean afterTest() default false;
062:
063:            /**
064:             * The list of groups that this configuration method will run before.
065:             * This method is guaranteed to run shortly before the first test method that
066:             * belongs to any of these groups is invoked.
067:             */
068:            public String[] beforeGroups() default {};
069:
070:            /**
071:             * The list of groups that this configuration method will run after.
072:             * This method is guaranteed to run shortly after the last test method that
073:             * belongs to any of these groups is invoked.
074:             */
075:            public String[] afterGroups() default {};
076:
077:            /**
078:             * The list of variables used to fill the parameters of this method.
079:             * These variables must be defined in the property file.
080:             * 
081:             * @deprecated Use @Parameters
082:             */
083:            @Deprecated
084:            public String[] parameters() default {};
085:
086:            /**
087:             * Whether methods on this class/method are enabled.
088:             */
089:            public boolean enabled() default true;
090:
091:            /**
092:             * The list of groups this class/method belongs to. 
093:             */
094:            public String[] groups() default {};
095:
096:            /**
097:             * The list of groups this method depends on.  Every method
098:             * member of one of these groups is guaranteed to have been
099:             * invoked before this method.  Furthermore, if any of these
100:             * methods was not a SUCCESS, this test method will not be
101:             * run and will be flagged as a SKIP.  
102:             */
103:            public String[] dependsOnGroups() default {};
104:
105:            /**
106:             * The list of methods this method depends on.  There is no guarantee
107:             * on the order on which the methods depended upon will be run, but you
108:             * are guaranteed that all these methods will be run before the test method
109:             * that contains this annotation is run.  Furthermore, if any of these
110:             * methods was not a SUCCESS, this test method will not be
111:             * run and will be flagged as a SKIP.  
112:             * 
113:             *  If some of these methods have been overloaded, all the overloaded
114:             *  versions will be run.
115:             */
116:            public String[] dependsOnMethods() default {};
117:
118:            /**
119:             *  For before methods (beforeSuite, beforeTest, beforeTestClass and
120:             *  beforeTestMethod, but not beforeGroups):
121:             *  If set to true, this configuration method will be run
122:             *  regardless of what groups it belongs to. 
123:             *  <br>
124:             * For after methods (afterSuite, afterClass, ...): 
125:             *  If set to true, this configuration method will be run
126:             *  even if one or more methods invoked previously failed or
127:             *  was skipped.
128:             */
129:            public boolean alwaysRun() default false;
130:
131:            /**
132:             * If true, this &#64;Configuration method will belong to groups specified in the
133:             * &#64;Test annotation on the class (if any).
134:             */
135:            public boolean inheritGroups() default true;
136:
137:            /**
138:             * The description for this method.  The string used will appear in the
139:             * HTML report and also on standard output if verbose >= 2.
140:             */
141:            public String description() default "";
142:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.