com.michelin.cio.hudson.plugins.qc.qtpaddins
Class QualityCenterQTPAddinsInstaller

java.lang.Object
  extended by hudson.tools.ToolInstaller
      extended by com.michelin.cio.hudson.plugins.qc.qtpaddins.QualityCenterQTPAddinsInstaller
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tools.ToolInstaller>

public class QualityCenterQTPAddinsInstaller
extends hudson.tools.ToolInstaller

This class represents the installer for QuickTest Professional Add-in.

We provide two ways to get the installer:

  1. The first one consists in downloading the right installer from HP Update Center, so an Internet connection is required (don't forget to set the proxy parameters in Hudson if applicable);
  2. The second one consists in getting the installer from a directory on the Hudson master node's filesystem.

Author:
Thomas Maurel

Nested Class Summary
static class QualityCenterQTPAddinsInstaller.DescriptorImpl
           
static class QualityCenterQTPAddinsInstaller.QTPVersion
          Currently supported versions of the QTP Addin.
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.tools.ToolInstaller
tool
 
Constructor Summary
QualityCenterQTPAddinsInstaller(java.lang.String version, java.lang.String localPathToQTPAddin, boolean acceptLicense)
           
 
Method Summary
 java.lang.String getLocalPathToQTPAddin()
           
 java.lang.String getVersion()
           
 void install(hudson.Launcher launcher, hudson.model.TaskListener log, java.lang.String expectedLocation, hudson.FilePath install)
           
 boolean isAcceptLicense()
           
 hudson.FilePath performInstallation(hudson.tools.ToolInstallation tool, hudson.model.Node node, hudson.model.TaskListener log)
           
 
Methods inherited from class hudson.tools.ToolInstaller
appliesTo, getDescriptor, getLabel, preferredLocation, setTool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QualityCenterQTPAddinsInstaller

@DataBoundConstructor
public QualityCenterQTPAddinsInstaller(java.lang.String version,
                                                            java.lang.String localPathToQTPAddin,
                                                            boolean acceptLicense)
Method Detail

isAcceptLicense

public boolean isAcceptLicense()

getLocalPathToQTPAddin

public java.lang.String getLocalPathToQTPAddin()

getVersion

public java.lang.String getVersion()

performInstallation

public hudson.FilePath performInstallation(hudson.tools.ToolInstallation tool,
                                           hudson.model.Node node,
                                           hudson.model.TaskListener log)
                                    throws java.lang.InterruptedException,
                                           hudson.AbortException,
                                           java.io.IOException
Specified by:
performInstallation in class hudson.tools.ToolInstaller
Throws:
java.lang.InterruptedException
hudson.AbortException
java.io.IOException

install

public void install(hudson.Launcher launcher,
                    hudson.model.TaskListener log,
                    java.lang.String expectedLocation,
                    hudson.FilePath install)
             throws java.io.IOException,
                    java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException


Copyright © 2010. All Rights Reserved.