Source Code Cross Referenced for AbstractStepContainer.java in  » Testing » webtest » com » canoo » webtest » steps » 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 » webtest » com.canoo.webtest.steps 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        // Copyright © 2002-2007 Canoo Engineering AG, Switzerland.
02:        package com.canoo.webtest.steps;
03:
04:        import java.io.Serializable;
05:        import java.util.ArrayList;
06:        import java.util.Iterator;
07:        import java.util.List;
08:
09:        import org.apache.log4j.Logger;
10:        import org.apache.tools.ant.Task;
11:        import org.apache.tools.ant.TaskContainer;
12:
13:        import com.canoo.webtest.interfaces.IStepSequence;
14:
15:        /**
16:         * Common abstract base class for all container steps.<p>
17:         * <p/>
18:         * This is a container class for a list of AbstractTestSpecificationSteps. It is used for
19:         * the <code>&lt;steps&gt;</code> element in ant build scripts as well as for the
20:         * <code>&lt;not&gt;</code> test step elements.
21:         * <p/>
22:         * <p>An instance of this class is usually created by ant if it encounters the nested
23:         * <code>&lt;steps&gt;</code> element within a <code>&lt;webtest&gt;</code> element.
24:         * <p/>
25:         * <p><em>Note: The nested element object <code>ClickButton</code> is instantiated and "added" to the
26:         * <code>AbstractStepSequence</code> before the nested element is completely parsed! No attributes
27:         * or nested elements of the <code>&lt;clickButton&gt;</code> elements are available at time
28:         * when it is added to <code>AbstractStepSequence</code>.</em></p>
29:         *
30:         * @author Carsten Seibert
31:         * @author Marc Guillemot
32:         * @webtest.step
33:         */
34:        public abstract class AbstractStepContainer extends Step implements 
35:                TaskContainer, IStepSequence, Serializable, Cloneable {
36:            private static final Logger LOG = Logger
37:                    .getLogger(AbstractStepContainer.class);
38:
39:            private List fSteps = new ArrayList();
40:
41:            protected AbstractStepContainer() {
42:            }
43:
44:            /**
45:             * Called by ant to add a nested task to this container.
46:             *
47:             * @see org.apache.tools.ant.TaskContainer#addTask(org.apache.tools.ant.Task)
48:             */
49:            public void addTask(final Task newTask) {
50:                fSteps.add(newTask);
51:            }
52:
53:            /**
54:             * @param step
55:             * @webtest.nested.parameter required="yes"
56:             * description="A webtest step."
57:             */
58:            public void addStep(final Step step) {
59:                LOG.debug("Adding WebTest Step: " + step);
60:                addTask(step);
61:            }
62:
63:            public List getSteps() {
64:                return fSteps;
65:            }
66:
67:            /**
68:             * Executes the contained step taking care to setup needed properties before execution
69:             *
70:             * @param step the step to execute
71:             */
72:            protected void executeContainedStep(final Task step) {
73:                step.perform();
74:            }
75:
76:            /**
77:             * Executes the contained steps
78:             */
79:            protected void executeContainedSteps() {
80:                for (final Iterator iter = getSteps().iterator(); iter
81:                        .hasNext();) {
82:                    executeContainedStep((Task) iter.next());
83:                }
84:            }
85:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.