Java Doc for ScenarioRunnerTask.java in  » UML » MetaBoss » com » metaboss » sdlctools » applications » anttasks » scenariorunner » 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 » UML » MetaBoss » com.metaboss.sdlctools.applications.anttasks.scenariorunner 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.metaboss.sdlctools.applications.anttasks.MetaBossTask
   com.metaboss.sdlctools.applications.anttasks.scenariorunner.ScenarioRunnerTask

ScenarioRunnerTask
public class ScenarioRunnerTask extends MetaBossTask (Code)
Special Ant task used to run test scenarios. The source UML Model must conform to UML Profile For MetaBoss Design Model. This task extends abstract com.metaboss.sdlctools.applications.anttasks.MetaBossTask MetaBossTask and therefore suports all of its attributes. In addition it supports the following attributes:
Attribute Name Attribute Description
scenarioname The optional name of the scenario. If this attribute is not present the name will be set to the 'UnnamedScenario'. This name will appear on the console log and will also form part of the log file name.
runname The optional name of the scenario run. This name is appended as a suffix to the scenario name to form full name of the scenario run (This name which appears on the console log and forms the part of the log file name). Suffix is used to specify additional important feature of the particuar scenario run. For example scenario 'SearchForClients' can have two runs: 'OnCORBA' and 'OnJ2EE'. If this attribute is not present it is simply omitted.
scenariopath This mandatory attribute contains list of one or more directories (accepting : and ; as path separators. relative path names will be interpreted as relative to the project's basedir). This is where scenario files will be read from. The directories will be read from left to right, but the test case files in each directory will be picked up and executed in the ascending alphabetical order.
includepath This optional attribute contains list of zero or more directories (accepting : and ; as path separators. relative path names will be interpreted as relative to the project's basedir). This is where include scenario files will be read from. The directories will be searched from the left to right and the first file with matching name will be included.
classpath Alternatively to the classpath subelement or classpathref attribute, the classpath can be specified using this attribute with the single string containing one or more directories or files (accepting : and ; as path separators. relative path names will be interpreted as relative to the project's basedir). See the classpath subelement documentation below for more details.
classpathref Alternatively to the classpath subelement or classpath attribute, the classpath can be specified using this attribute using path reference id of the path defined elsewhere. See the classpath subelement documentation below for more details.
clientclasspathdir THis optional attribute must point to the root directory of the client classpath tree. The invocation of every servicemodule can be done using dedicated classpath. For example when HatMaker.CRM.MarketingQueries servicemodule is invoked the classpath is build from the following components:
  • All jarfiles located in the ${clientclasspathdir}/HatMaker.CRM.MarketingQueries directory, if it is present.
  • All jarfiles located in the ${clientclasspathdir} directory, if it is present.
  • All classes defined in the classpath subelements of this element.
Note that this feature is very advanced and is used mainly in the big testing installations where many systems built on separate technologies are tested toghether.
failonerror The optional boolean flag which tells scenario runner whether to fail or not if the test scenario run itself has failed. Default is true, which means the scenario runner will fail if any of the tests will fail.
logperformance The optional boolean flag which tells scenario runner whether to log the performance data or not. Default is true, which means the scenario runner will log performance data.
specimenfile The optional path and name of the file where the original specimen log should be obtained from. If this is attrribute is given, the regression analysis will be performed at the end of the test. If this attribute is not given - the regression analysis will not be performed.
rundir The optional path and name of the directory where to run the scenario runner from. If this is attrribute is not given, the project's base directory is used.
logdir The optional path and name of the directory where the logs should be stored. If this is attrribute is not given, the directory where scenario runner is running from is used. This directory will be created if required.

This task also supports following subelements:
SubElement Name SubElement Description
classpath This optional Ant's Path-like element should occur once or not at all. It defines the classpath of the JVM which executes the ScenarioRunner. The classpath should include all the required jars apart from the following jars which are always included by default:
  • MetaBossSystemTester.jar - the scenario runner
  • MetaBossComponentNamingProvider.jar - the jndi component naming provider
  • MetaBossCore.jar - the core framework classes
  • MetaBossEnterprise.jar - the enterprise framework
  • commons-logging-x.x.x.jar and log4j-x.x.x.jar - logging framework
sysproperty This optional Environment variable like element can occur any number of times. The specified value of the system properties will be passed to the underlying JVM which executes the ScenarioRunner.




Constructor Summary
public  ScenarioRunnerTask()
    

Method Summary
public  voidaddSysproperty(Environment.Variable pSystemProperty)
    
public  PathcreateClasspath()
    
public  Commandline.ArgumentcreateJvmarg()
    
public  voidexecute()
    
public  PathgetClasspath()
    
public  FilegetClientClasspathDir()
    
public  booleangetFailOnError()
    
public  PathgetIncludePath()
    
public  FilegetLogDir()
    
public  booleangetLogPerformance()
    
public  FilegetRunDir()
    
public  StringgetRunName()
    
public  StringgetScenarioName()
    
public  PathgetScenarioPath()
    
public  FilegetSpecimenFile()
    
public  voidsetClasspath(Path pClasspath)
    
public  voidsetClasspathRef(String pClasspathRef)
    
public  voidsetClientClasspathDir(File pClientClasspathDir)
    
public  voidsetFailOnError(boolean pFailOnError)
    
public  voidsetIncludePath(Path pIncludePath)
    
public  voidsetLogDir(File pLogDir)
    
public  voidsetLogPerformance(boolean pLogPerformance)
    
public  voidsetRunDir(File pRunDir)
    
public  voidsetRunName(String pRunName)
    
public  voidsetScenarioName(String pScenarioName)
    
public  voidsetScenarioPath(Path pScenarioPath)
    
public  voidsetSpecimenFile(File pSpecimenFile)
    


Constructor Detail
ScenarioRunnerTask
public ScenarioRunnerTask()(Code)
Default constructor




Method Detail
addSysproperty
public void addSysproperty(Environment.Variable pSystemProperty)(Code)
Adds a system property



createClasspath
public Path createClasspath()(Code)
The setter for the optional "classpath" subelement



createJvmarg
public Commandline.Argument createJvmarg()(Code)
Adds a system property



execute
public void execute() throws BuildException(Code)



getClasspath
public Path getClasspath()(Code)
The getter for the optional "classpath" attribute



getClientClasspathDir
public File getClientClasspathDir()(Code)
The getter for the optional "clientclasspathdir" attribute



getFailOnError
public boolean getFailOnError()(Code)
The getter for the optional "failonerror" attribute



getIncludePath
public Path getIncludePath()(Code)
The getter for the mandatory "includepath" attribute



getLogDir
public File getLogDir()(Code)
The getter for the optional "logdir" attribute



getLogPerformance
public boolean getLogPerformance()(Code)
The getter for the optional "logperformance" attribute



getRunDir
public File getRunDir()(Code)
The getter for the optional "rundir" attribute



getRunName
public String getRunName()(Code)
The getter for the optional "runname" attribute



getScenarioName
public String getScenarioName()(Code)
The getter for the optional "scenarioname" attribute



getScenarioPath
public Path getScenarioPath()(Code)
The getter for the mandatory "scenariopath" attribute



getSpecimenFile
public File getSpecimenFile()(Code)
The getter for the optional "specimenfile" attribute



setClasspath
public void setClasspath(Path pClasspath)(Code)
The setter for the optional "classpath" attribute



setClasspathRef
public void setClasspathRef(String pClasspathRef)(Code)
The setter for the optional "classpath" attribute



setClientClasspathDir
public void setClientClasspathDir(File pClientClasspathDir)(Code)
The setter for the optional "clientclasspathdir" attribute



setFailOnError
public void setFailOnError(boolean pFailOnError)(Code)
The setter for the optional "failonerror" attribute



setIncludePath
public void setIncludePath(Path pIncludePath)(Code)
The setter for the mandatory "includepath" attribute



setLogDir
public void setLogDir(File pLogDir)(Code)
The setter for the optional "logdir" attribute



setLogPerformance
public void setLogPerformance(boolean pLogPerformance)(Code)
The setter for the optional "logperformance" attribute



setRunDir
public void setRunDir(File pRunDir)(Code)
The setter for the optional "rundir" attribute



setRunName
public void setRunName(String pRunName)(Code)
The setter for the optional "runname" attribute



setScenarioName
public void setScenarioName(String pScenarioName)(Code)
The setter for the optional "scenarioname" attribute



setScenarioPath
public void setScenarioPath(Path pScenarioPath)(Code)
The setter for the mandatory "scenariopath" attribute



setSpecimenFile
public void setSpecimenFile(File pSpecimenFile)(Code)
The setter for the optional "specimenfile" attribute



Methods inherited from com.metaboss.sdlctools.applications.anttasks.MetaBossTask
public TaskLogger getLogger()(Code)(Java Doc)
protected File getMetaBossHome() throws BuildException(Code)(Java Doc)
public Path getPath(String pPathName) throws BuildException(Code)(Java Doc)
public FileSet getPathAsFileSet(String pPathName) throws BuildException(Code)(Java Doc)
protected void handleException(Throwable pThrowable) throws BuildException(Code)(Java Doc)
public void init()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.