org.codehaus.mojo.selenium
Class XvfbMojo

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by org.codehaus.gmaven.mojo.GroovyMojo
          extended by org.codehaus.mojo.selenium.XvfbMojo
All Implemented Interfaces:
groovy.lang.GroovyObject, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class XvfbMojo
extends org.codehaus.gmaven.mojo.GroovyMojo
implements groovy.lang.GroovyObject

Starts an Xvfb instance suitable for handling X11 displays for headless systems. Use this in combonation with the start-server goal to allow browsers to be launched on headless unix systems.

Optionally uses 'xauth' to setup authentication for the Xvfb instance to allow running tests using the frame buffer server when another X server is already running.

Since:
1.0-beta-2
Version:
$Id: XvfbMojo.groovy 12871 2010-10-13 20:18:25Z olamy $
Author:
Jason Dillon

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
XvfbMojo()
           
 
Method Summary
 void execute()
           
 File getAuthenticationFile()
           
 boolean getBackground()
           
static int getDEFAULT_DISPLAY_NUMBER()
           
static String getDISPLAY_FILE_PROP()
           
 String getDisplay()
           
 File getDisplayPropertiesFile()
           
 File getLogFile()
           
 boolean getLogOutput()
           
 groovy.lang.MetaClass getMetaClass()
           
 String[] getOptions()
           
 Object getProperty(String name)
           
 boolean getReuse()
           
 boolean getSkip()
           
 boolean getXauthEnabled()
           
 String getXauthExecutable()
           
 String getXauthProtocol()
           
 String getXvfbExecutable()
           
 Object invokeMethod(String name, Object args)
           
 boolean isBackground()
           
 boolean isLogOutput()
           
 boolean isReuse()
           
 boolean isSkip()
           
 boolean isXauthEnabled()
           
 void setAuthenticationFile(File value)
           
 void setBackground(boolean value)
           
 void setDisplay(String value)
           
 void setDisplayPropertiesFile(File value)
           
 void setLogFile(File value)
           
 void setLogOutput(boolean value)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setOptions(String[] value)
           
 void setProperty(String name, Object value)
           
 void setReuse(boolean value)
           
 void setSkip(boolean value)
           
 void setXauthEnabled(boolean value)
           
 void setXauthExecutable(String value)
           
 void setXauthProtocol(String value)
           
 void setXvfbExecutable(String value)
           
 
Methods inherited from class org.codehaus.gmaven.mojo.GroovyMojo
fail, fail, getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XvfbMojo

public XvfbMojo()
Method Detail

getXvfbExecutable

public String getXvfbExecutable()

setXvfbExecutable

public void setXvfbExecutable(String value)

getXauthEnabled

public boolean getXauthEnabled()

isXauthEnabled

public boolean isXauthEnabled()

setXauthEnabled

public void setXauthEnabled(boolean value)

getXauthExecutable

public String getXauthExecutable()

setXauthExecutable

public void setXauthExecutable(String value)

getXauthProtocol

public String getXauthProtocol()

setXauthProtocol

public void setXauthProtocol(String value)

getAuthenticationFile

public File getAuthenticationFile()

setAuthenticationFile

public void setAuthenticationFile(File value)

getDEFAULT_DISPLAY_NUMBER

public static final int getDEFAULT_DISPLAY_NUMBER()

getDisplay

public String getDisplay()

setDisplay

public void setDisplay(String value)

getOptions

public String[] getOptions()

setOptions

public void setOptions(String[] value)

getDisplayPropertiesFile

public File getDisplayPropertiesFile()

setDisplayPropertiesFile

public void setDisplayPropertiesFile(File value)

getLogOutput

public boolean getLogOutput()

isLogOutput

public boolean isLogOutput()

setLogOutput

public void setLogOutput(boolean value)

getLogFile

public File getLogFile()

setLogFile

public void setLogFile(File value)

getBackground

public boolean getBackground()

isBackground

public boolean isBackground()

setBackground

public void setBackground(boolean value)

getSkip

public boolean getSkip()

isSkip

public boolean isSkip()

setSkip

public void setSkip(boolean value)

getReuse

public boolean getReuse()

isReuse

public boolean isReuse()

setReuse

public void setReuse(boolean value)

getDISPLAY_FILE_PROP

public static final String getDISPLAY_FILE_PROP()

execute

public void execute()
Specified by:
execute in interface org.apache.maven.plugin.Mojo

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject
Overrides:
getMetaClass in class groovy.lang.GroovyObjectSupport

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject
Overrides:
setMetaClass in class groovy.lang.GroovyObjectSupport

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject
Overrides:
invokeMethod in class groovy.lang.GroovyObjectSupport

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class org.codehaus.gmaven.mojo.GroovyMojo

setProperty

public void setProperty(String name,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject
Overrides:
setProperty in class groovy.lang.GroovyObjectSupport


Copyright © 2006-2010 Codehaus. All Rights Reserved.