websvc.restkit/test/qa-functional/data/projects/TestClientTestApp/TelluriumConfig.groovy
author Jan Lahoda <jlahoda@netbeans.org>
Tue Jan 20 22:45:33 2009 +0100 (10 months ago)
changeset 114631 9ba769ad299e
parent 11458265f731a59a85
permissions -rw-r--r--
Automated merge with http://hg.netbeans.org/main
     1 /*
     2  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     3  *
     4  * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
     5  *
     6  * The contents of this file are subject to the terms of either the GNU
     7  * General Public License Version 2 only ("GPL") or the Common
     8  * Development and Distribution License("CDDL") (collectively, the
     9  * "License"). You may not use this file except in compliance with the
    10  * License. You can obtain a copy of the License at
    11  * http://www.netbeans.org/cddl-gplv2.html
    12  * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
    13  * specific language governing permissions and limitations under the
    14  * License.  When distributing the software, include this License Header
    15  * Notice in each file and include the License file at
    16  * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
    17  * particular file as subject to the "Classpath" exception as provided
    18  * by Sun in the GPL Version 2 section of the License file that
    19  * accompanied this code. If applicable, add the following below the
    20  * License Header, with the fields enclosed by brackets [] replaced by
    21  * your own identifying information:
    22  * "Portions Copyrighted [year] [name of copyright owner]"
    23  *
    24  * If you wish your version of this file to be governed by only the CDDL
    25  * or only the GPL Version 2, indicate your decision by adding
    26  * "[Contributor] elects to include this software in this distribution
    27  * under the [CDDL or GPL Version 2] license." If you do not indicate a
    28  * single choice of license, a recipient has the option to distribute
    29  * your version of this file under either the CDDL, the GPL Version 2 or
    30  * to extend the choice of license to its licensees as provided above.
    31  * However, if you add GPL Version 2 code and therefore, elected the GPL
    32  * Version 2 license, then the option applies only if the new code is
    33  * made subject to such option by the copyright holder.
    34  *
    35  * Contributor(s):
    36  *
    37  * Portions Copyrighted 2009 Sun Microsystems, Inc.
    38  */
    39 
    40 /**
    41  * Tellurium configuration
    42  *
    43  */
    44 //tellurium.embeddedserver.port = XXXX - a port for embedded Selenium server
    45 //tellurium.connector.browser = [browser type] - a browser to use
    46 tellurium{
    47     //embedded selenium server configuration
    48     embeddedserver {
    49         //port number
    50         port = "4445"
    51         //whether to use multiple windows
    52         useMultiWindows = false
    53         //whether to run the embedded selenium server. If false, you need to manually set up a selenium server
    54         runInternally = true
    55         //the log file for selenium server
    56 //        logFile = "selenium.log"
    57     }
    58     //event handler
    59     eventhandler{
    60         //whether we should check if the UI element is presented
    61         checkElement = true
    62         //wether we add additional events like "mouse over"
    63         extraEvent = true
    64     }
    65     //data accessor
    66     accessor{
    67         //whether we should check if the UI element is presented
    68         checkElement = false
    69     }
    70     //the configuration for the connector that connects the selenium client to the selenium server
    71     connector{
    72         //selenium server host
    73         //please change the host if you run the Selenium server remotely
    74         serverHost = "localhost"
    75         //server port number the client needs to connect
    76         port = "4445"
    77         //base URL
    78         baseUrl = "http://localhost:8080"
    79         //Browser setting, valid options are
    80         //  *firefox [absolute path]
    81         //  *iexplore [absolute path]
    82         //  *chrome
    83         //   *iehta
    84         browser = "*firefox"
    85     }
    86     datadriven{
    87         dataprovider{
    88             //specify which data reader you like the data provider to use
    89             //the valid options include "PipeFileReader", "CVSFileReader" at this point
    90             reader = "PipeFileReader"
    91         }
    92     }
    93     test{
    94         //at current stage, the result report is only for tellurium data driven testing
    95         //we may add the result report for regular tellurium test case
    96         result{
    97             //specify what result reporter used for the test result
    98             //valid options include "SimpleResultReporter", "XMLResultReporter", and "StreamXMLResultReporter"
    99             reporter = "XMLResultReporter"
   100             //the output of the result
   101             //valid options include "Console", "File" at this point
   102             //if the option is "File", you need to specify the file name, other wise it will use the default
   103             //file name "TestResults.output"
   104             output = "Console"
   105             //test result output file name
   106             filename = "TestResult.output"
   107         }
   108         exception{
   109             //whether Tellurium captures the screenshot when exception occurs.
   110             //Note that the exception is the one thrown by Selenium Server
   111             //we do not care the test logic errors here
   112             captureScreenshot = true
   113             //we may have a series of screenshots, specify the file name pattern here
   114             //Here the ? will be replaced by the timestamp and you might also want to put
   115             //file path in the file name pattern
   116             filenamePattern = "build/Screenshot?.png"
   117         }
   118     }
   119     uiobject{
   120         builder{
   121             //user can specify custom UI objects here by define the builder for each UI object
   122             //the custom UI object builder must extend UiObjectBuilder class
   123             //and implement the following method:
   124             //
   125             // public build(Map map, Closure c)
   126             //
   127             //For container type UI object, the builder is a bit more complicated, please
   128             //take the TableBuilder or ListBuilder as an example
   129 
   130             //example:
   131 //           SelectMenu="org.tellurium.builder.SelectMenuBuilder"
   132 //           ClickableImage="customertestapp.ClickableImageBuilder"
   133         }
   134     }
   135     widget{
   136         module{
   137             //define your widget modules here, for example Dojo or ExtJs
   138 //            included="dojo, extjs"
   139             included=""
   140         }
   141     }
   142 }