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


java.lang.Object
   com.metaboss.sdlctools.applications.systemtester.ScenarioRunner

ScenarioRunner
public class ScenarioRunner (Code)
This class runs a single test scenario (note that scenarion may in fact consist of many test steps. It should be called from command line and needs following arguments
  • -scenarioPath=<test scenario directory path>. If it is not specified - the current working directory is used. All xml files residing in this directory (apart from possible specimen xml file described below) will be read, sorted in alphabetical order and executed in sequence.
  • -scenarioName=<a name of this scenario>. If it is not specified - "UnnamedScenario" name is used. This is the name which is used to form a core of the log file name and also for the console output. For example scenarioName might be 'MyRegressionTest' or 'AcceptanceScenarios' etc. The actual log file name is formed by concatenating scenarioName, scenarioRunName and timestamp.
  • -scenarioRunName=<a name of the run of this scenario>. If it is not specified the empty string is used. This is the name which is used to form a suffix of the log file name and also for the console output. For example scenarioRunName might be 'JBossClient' or 'OracleInprocess' etc. The actual log file name is formed by concatenating scenarioName, scenarioRunName and timestamp.
  • -clientPath=<system clients configuration directory path>. This directory should contain subdirectories with names <EnterpriseName>.<SystemName>.<ServicemoduleName>. When runner parses scenarios it uses namespace information from the test input documents to understand which client is needed, loads contents of the matching directory in the specified path and executes servicemodule's xmlstrings adapter. This basically allows for each client to be configurred and versioned separately (i.e. it may have different versions of libraries etc...) If path is not given, path from under current directory is assumed. If directory is not found - attempt is made to load adapter from the system classpath
  • -loggingPath=<test logs directory path>. While runner is running - it outputs the log file (one per run). The name of this file is formed from the scenarioName (see argument description above) and date and time of the test. This ensures recognisable name of the log file and uniqueness of the names even if same test is run more than once in quick succession.
  • -specimenFile=<path and name of the scenario log specimen file>. This parameter triggers the test scenario validation against specified specimen file. This validation takes place at the end of the scenario run. The specimen file is simply a previous good log file (i.e. result of good scenario run) with all volotile data removed from it. Comparison process will ensure that all data in specimen file is present in the log file being validated, but not visa versa. If this file is not specified validation of the test data against the specimen is not performed.
  • -logTestPerformance=<true or flse>. Default is true. This argument controls output of the performance statistics records into the scenario log. Note that by its nature performance data is volotile and there is usually a lot of it in the log. Therefore the presence of the performance data in the log makes it a bad candidate for a specimen. Unless you want to do lots of manual editing (i.e. deleting of performance data from the log file) it is a good idea to switch off performance records output when capturing the log to be used as a specimen.



Constructor Summary
public  ScenarioRunner()
    

Method Summary
public static  voidmain(String[] args)
    
public  voidprocessInclude(Element pTargetElement, Element pTemplateElement, TemplateContext pTemplateContext)
    
public  voidprocessOperationPlan(Element pTargetElement, Element pOperationPlanElement, TemplateContext pTemplateContext)
    
public  voidprocessSubscriptionPlan(Element pTargetElement, Element pSubscriptionPlanElement, TemplateContext pTemplateContext)
    
public  voidprocessTemplate(Element pTargetElement, Element pTemplateElement, TemplateContext pTemplateContext)
    
public  voidprocessTemplateXSLDocument(Element pTargetElement, Element pTemplateElement, TemplateContext pTemplateContext, Element pSourceElement)
    
public  voidprocessTemplateXSLText(Element pTargetElement, Element pTemplateElement, TemplateContext pTemplateContext, Element pSourceElement)
    
public  voidprocessValueOf(Element pTargetElement, Element pValueOfElement, TemplateContext pTemplateContext)
    
public  voidprocessValueOfTimestamp(Element pTargetElement, Element pTimestampElement, TemplateContext pTemplateContext)
    
public synchronized  booleanrunScenario()
    
public  voidsaveScenarioLogIfNecessary()
    
public synchronized  voidsetClientPath(String pClientPath)
    
public synchronized  voidsetIncludePath(String pIncludePath)
    
public synchronized  voidsetLogTestPerformance(boolean pNeedToLog)
    
public synchronized  voidsetLoggingPath(String pLoggingPath)
    
public synchronized  voidsetScenarioName(String pScenarioName)
    
public synchronized  voidsetScenarioPath(String pScenarioPath)
    
public synchronized  voidsetScenarioRunName(String pScenarioRunName)
    
public synchronized  voidsetSpecimenFile(String pSpecimenFile)
    


Constructor Detail
ScenarioRunner
public ScenarioRunner() throws Exception(Code)




Method Detail
main
public static void main(String[] args)(Code)



processInclude
public void processInclude(Element pTargetElement, Element pTemplateElement, TemplateContext pTemplateContext) throws Exception(Code)
Include processor functionality, processes given Include element and populates results back into the target element



processOperationPlan
public void processOperationPlan(Element pTargetElement, Element pOperationPlanElement, TemplateContext pTemplateContext) throws Exception(Code)
Operation invocation functionality, processes given Operation element and populates results back into the target element



processSubscriptionPlan
public void processSubscriptionPlan(Element pTargetElement, Element pSubscriptionPlanElement, TemplateContext pTemplateContext) throws Exception(Code)
Subscription invocation functionality, processes given SubscriptionPlan element and populates results back into the target element



processTemplate
public void processTemplate(Element pTargetElement, Element pTemplateElement, TemplateContext pTemplateContext) throws Exception(Code)
Template processor functionality, processes given Template element and populates results back into the target element



processTemplateXSLDocument
public void processTemplateXSLDocument(Element pTargetElement, Element pTemplateElement, TemplateContext pTemplateContext, Element pSourceElement) throws Exception(Code)
Template processor functionality, processes given Template element and populates results back into the target element



processTemplateXSLText
public void processTemplateXSLText(Element pTargetElement, Element pTemplateElement, TemplateContext pTemplateContext, Element pSourceElement) throws Exception(Code)
Template processor functionality, processes given Template element and populates results back into the target element



processValueOf
public void processValueOf(Element pTargetElement, Element pValueOfElement, TemplateContext pTemplateContext) throws Exception(Code)
Special functionality, processes given ValueOf element and populates results into the target element



processValueOfTimestamp
public void processValueOfTimestamp(Element pTargetElement, Element pTimestampElement, TemplateContext pTemplateContext) throws Exception(Code)
Special functionality, processes given Timestamp element and populates results into the target element



runScenario
public synchronized boolean runScenario() throws Exception(Code)
Runs scenario and returns true if test was successfull and false otherwise



saveScenarioLogIfNecessary
public void saveScenarioLogIfNecessary() throws Exception(Code)



setClientPath
public synchronized void setClientPath(String pClientPath)(Code)



setIncludePath
public synchronized void setIncludePath(String pIncludePath)(Code)



setLogTestPerformance
public synchronized void setLogTestPerformance(boolean pNeedToLog)(Code)



setLoggingPath
public synchronized void setLoggingPath(String pLoggingPath)(Code)



setScenarioName
public synchronized void setScenarioName(String pScenarioName)(Code)



setScenarioPath
public synchronized void setScenarioPath(String pScenarioPath)(Code)



setScenarioRunName
public synchronized void setScenarioRunName(String pScenarioRunName)(Code)



setSpecimenFile
public synchronized void setSpecimenFile(String pSpecimenFile)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.