Source Code Cross Referenced for TestInfoStep.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:        package com.canoo.webtest.steps;
02:
03:        import org.apache.commons.lang.StringUtils;
04:
05:        /**
06:         * Placeholder for information. This Step does nothing but as it is "executed" its parameter
07:         * are written in the results and can be formatted as needed for display.
08:         *
09:         * @author Marc Guillemot
10:         * @webtest.step category="Core"
11:         * name="testInfo"
12:         * description="Provides the ability to display 'static' information in report.
13:         * This step does nothing. It just gets reported as it (with its attributes) in the report."
14:         */
15:        public class TestInfoStep extends Step {
16:            private String fType;
17:            private String fInfo;
18:
19:            /**
20:             * Sets the information.
21:             *
22:             * @param info the information. May be any value as it has only to make sense for user
23:             * @webtest.parameter required="no"
24:             * description="The information that has to be displayed in the report (ex: related bug number, ...)"
25:             */
26:            public void setInfo(final String info) {
27:                fInfo = info;
28:            }
29:
30:            public String getInfo() {
31:                return fInfo;
32:            }
33:
34:            /**
35:             * Sets the type of the information. The type can be any string and has only a signification for the user.
36:             * @param type the information type
37:             * @webtest.parameter required="yes"
38:             * description="The information type.
39:             * Helps to classify info. Many information of the same type within a single WebTest are allowed."
40:             */
41:            public void setType(final String type) {
42:                fType = type;
43:            }
44:
45:            public String getType() {
46:                return fType;
47:            }
48:
49:            public void doExecute() {
50:                // absolutely nothing, the single purpose of the step is to transfer typed information to the report 
51:            }
52:
53:            /**
54:             * Verifies the parameters
55:             */
56:            protected void verifyParameters() {
57:                super .verifyParameters();
58:                emptyParamCheck(getType(), "type");
59:            }
60:
61:            /**
62:             * Called by ant to set the text contained in the tag.
63:             * An alternative to value="blabla" for e.g. Large TextAreas. Usage:<br/>
64:             * &lt;setInputField>blabla<br/>
65:             * blibli<br/>
66:             * &lt;/setInputField>
67:             *
68:             * @param str the text value to add
69:             * @webtest.nested.parameter
70:             *    required="no"
71:             *    description="An alternative to the attribute info for e.g. large texts."
72:             */
73:            public void addText(final String str) {
74:                final String expanded = StringUtils.defaultString(getInfo())
75:                        + getProject().replaceProperties(str);
76:                setInfo(expanded);
77:            }
78:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.