|
TelluriumConfig070
Tellurium Sample Configuration File 0.7.0.
Phase-Implementation Tellurium Configuration File
tellurium{
//embedded selenium server configuration
embeddedserver {
//port number
port = "4444"
//whether to use multiple windows
useMultiWindows = false
//whether to trust all SSL certs, i.e., option "-trustAllSSLCertificates"
trustAllSSLCertificates = true
//whether to run the embedded selenium server. If false, you need to manually set up a selenium server
runInternally = true
//By default, Selenium proxies every browser request; set this flag to make the browser use proxy only for URLs containing '/selenium-server'
avoidProxy = false
//stops re-initialization and spawning of the browser between tests
browserSessionReuse = false
//enabling this option will cause all user cookies to be archived before launching IE, and restored after IE is closed.
ensureCleanSession = false
//debug mode, with more trace information and diagnostics on the console
debugMode = false
//interactive mode
interactive = false
//an integer number of seconds before we should give up
timeoutInSeconds = 30
//profile location
// profile = "/home/jiafan1/.mozilla/firefox/820j3ca9.default"
profile = ""
//user-extension.js file
userExtension = "target/test-classes/extension/user-extensions.js"
}
//event handler
eventhandler{
//whether we should check if the UI element is presented
checkElement = false
//wether we add additional events like "mouse over"
extraEvent = false
}
//data accessor
accessor{
//whether we should check if the UI element is presented
checkElement = true
}
//the bundling tier
bundle{
maxMacroCmd = 5
useMacroCommand = false
}
//the configuration for the connector that connects the selenium client to the selenium server
connector{
//selenium server host
//please change the host if you run the Selenium server remotely
serverHost = "localhost"
//server port number the client needs to connect
port = "4444"
//base URL
baseUrl = "http://localhost:8080"
//Browser setting, valid options are
// *firefox [absolute path]
// *iexplore [absolute path]
// *chrome
// *iehta
browser = "*chrome"
//user's class to hold custom selenium methods associated with user-extensions.js
//should in full class name, for instance, "com.mycom.CustomSelenium"
customClass = ""
//browser options such as
// options = "captureNetworkTraffic=true, addCustomRequestHeader=true"
options = ""
}
datadriven{
dataprovider{
//specify which data reader you like the data provider to use
//the valid options include "PipeFileReader", "CSVFileReader" at this point
reader = "PipeFileReader"
}
}
//this section allows users to define the internationalization required
//if this section is removed, we take the default locale
//from the system
//enter only one locale at a time, and use this only if you want to explicitly
//set the locale, preferrable way is to comment out this section
i18n{
//locale = "fr_FR"
locale = "en_US"
}
test{
execution{
//whether to trace the execution timing
trace = false
}
//at current stage, the result report is only for tellurium data driven testing
//we may add the result report for regular tellurium test case
result{
//specify what result reporter used for the test result
//valid options include "SimpleResultReporter", "XMLResultReporter", and "StreamXMLResultReporter"
reporter = "XMLResultReporter"
//the output of the result
//valid options include "Console", "File" at this point
//if the option is "File", you need to specify the file name, other wise it will use the default
//file name "TestResults.output"
output = "Console"
//test result output file name
filename = "TestResult.output"
}
exception{
//whether Tellurium captures the screenshot when exception occurs.
//Note that the exception is the one thrown by Selenium Server
//we do not care the test logic errors here
captureScreenshot = true
//we may have a series of screenshots, specify the file name pattern here
//Here the ? will be replaced by the timestamp and you might also want to put
//file path in the file name pattern
filenamePattern = "Screenshot?.png"
}
}
uiobject{
builder{
//user can specify custom UI objects here by define the builder for each UI object
//the custom UI object builder must extend UiObjectBuilder class
//and implement the following method:
//
// public build(Map map, Closure c)
//
//For container type UI object, the builder is a bit more complicated, please
//take the TableBuilder or ListBuilder as an example
//example:
// Icon="org.tellurium.builder.IconBuilder"
}
}
widget{
module{
//define your widget modules here, for example Dojo or ExtJs
// included="dojo, extjs"
included=""
}
}
}
Tellurium Configuration JSON String{"tellurium":{"test":{"result":{"reporter":"XMLResultReporter","filename":"TestResult.output","output":"Console"},"exception":{"filenamePattern":"Screenshot?.png","captureScreenshot":false},"execution":{"trace":false}},"accessor":{"checkElement":false},"embeddedserver":{"port":"4444","browserSessionReuse":false,"debugMode":false,"ensureCleanSession":false,"interactive":false,"avoidProxy":false,"timeoutInSeconds":30,"runInternally":true,"trustAllSSLCertificates":true,"useMultiWindows":false,"userExtension":"","profile":""},"uiobject":{"builder":{}},"eventhandler":{"checkElement":false,"extraEvent":false},"i18n":{"locale":"en_US"},"connector":{"baseUrl":"http://localhost:8080","port":"4444","browser":"*chrome","customClass":"","serverHost":"localhost","options":""},"bundle":{"maxMacroCmd":5,"useMacroCommand":true},"datadriven":{"dataprovider":{"reader":"PipeFileReader"}},"widget":{"module":{"included":""}}}}The JSON String can be formatted as. {
"tellurium": {
"test": {
"result": {
"reporter": "XMLResultReporter",
"filename": "TestResult.output",
"output": "Console"
},
"exception": {
"filenamePattern": "Screenshot?.png",
"captureScreenshot": false
},
"execution": {
"trace": false
}
},
"accessor": {
"checkElement": false
},
"embeddedserver": {
"port": "4444",
"browserSessionReuse": false,
"debugMode": false,
"ensureCleanSession": false,
"interactive": false,
"avoidProxy": false,
"timeoutInSeconds": 30,
"runInternally": true,
"trustAllSSLCertificates": true,
"useMultiWindows": false,
"userExtension": "",
"profile": ""
},
"uiobject": {
"builder": { }
},
"eventhandler": {
"checkElement": false,
"extraEvent": false
},
"i18n": {
"locale": "en_US"
},
"connector": {
"baseUrl": "http://localhost:8080",
"port": "4444",
"browser": "*chrome",
"customClass": "",
"serverHost": "localhost",
"options": ""
},
"bundle": {
"maxMacroCmd": 5,
"useMacroCommand": true
},
"datadriven": {
"dataprovider": {
"reader": "PipeFileReader"
}
},
"widget": {
"module": {
"included": ""
}
}
}
}
| |
► Sign in to add a comment