Open source web testing tool
The future of automated web testing is open source

API Guide - Configuration

Courses in c#, ruby, shell scripting, Software testing courses and more

See a video tour
Thwameva technologies offers a state of the art advanced training using multimedia video mentoring , practical oriented training and experts as mentors(*). Thwameva offers software testing courses, courses in WET, ruby, C#, shell scripting and more...
The unique combination of video mentoring by experts and mentor assisted training programs are applicable only for software training courses in Thwameva's Bangalore office.

Thwameva technologies is the primary sponsor for the WET project
 
Main       Web Objects       Win Objects       Test Mgmt       Others      

Singleton class to retreive global configuration for all test runs. The configuration properties from this class are global to all tests, whereas the configuration properties from the test.defs is used to set parameters for individual parameters

The global configurations are loaded from the file: %QWT_HOME%tcglobal-config.cfg

Where %QWT_HOME% is the value of the environment variable that you setup during installation

The configuration file, global-config.cfg is a file with name-value pair set of configuration parameters. An example is:

    [Include]
    path=./includes
    pattern=*.{rb,qws}

    [Script]
    #None supported

    [Results]
    file=eval 070618_0216_results.html

    [Log]
    level=DEBUG

Note that the value for each parameter can either be a literal string or a string representing a command to be evaluated. If the value is a command string as in the case of Results.file, then it is evaluated as though it were an actual ruby command. For example, in case of Results.file, the actual value may look like 050909_results.html.

Methods

Included Modules

Singleton

Attributes

checkpoint_num_separator  [R] 

Public Class methods

Create the singleton instance of the global configuration. Since the idea is that this class is used to represent a global configuration, it should only be instantiated once.

NOTE : None of the methods in this class should be invoked directly. Various other classes / methods in the WET framework invoke the methods of this class.

Public Instance methods

Get the common precondition to be executed for all tests This is usually very handy in case of exception handing. For example a common exception handler is to check if the required page is open. If not, close all open browsers and open the required page.

Retreive the include files to be used. Returns an array of paths indicating the files to be included for all tests. This path is processed by the Main runner which automatically includes these paths. Typically this is a set of library utilities specific to your test environment

What is the default timeout for which WET should wait before giving up as ‘object cannot be found’. This method is used to find that. This method returns the value defined in the parameter:

[Common] load.timeout = 20

If this value is not set, then Wet defaults it to ‘20’

Retrieve the global reporter object to be used

Get the object repository. This method is called by the test definition to retreive the repository object.

Get the name of the results file name that is to be used for the generated HTML results file. This method returns the value defined in : [Results] file = MyResults.html

If not set, this value defaults to ’${testname}.html’, where ${testname} is the name of the test as specified in the test definitions

 

WET is a opensource automated web testing tool which uses Watir as the library to drive web pages. WET drives an IE Browser directly and so the automated testing done using WET is equivalent to how a user would drive the web pages. WET extends the scripting abilities of Watir and also offers the convenience of recorders. It is licensed under LGPL and BSD style open source licenses.

WWW wet.qantom.org
Search powered by Google