You are here: eggIntegration > eggPlant Functional Plugin for IBM UrbanCode Deploy

eggPlant Functional Plugin for IBM UrbanCode Deploy

About the eggPlant Functional Plugin for UrbanCode

The eggPlant plugin for IBM UrbanCode Deploy enables you to call eggPlant Functional scripts or commands as steps in a IBM UrbanCode Deploy Process. This can be used for:

  • Running complete test suites to validate a new build or deployment.
  • Running a simple “smoke test” to check the success of a previous deployment step.
  • Running configuration or administration tasks that require automated GUI actions. Sometimes known as “Synthetic Transactions”.
  • Deciding on the next step to take in the process as determined by a test requiring a GUI automation.

The plugin contains two steps:

  1. Run eggPlant Scripts

    A step for running one or more eggPlant Functional test scripts or a suite of tests by command line execution of the eggPlant Functional tool. Click here to read about running from the command line.

  2. Run eggPlant Commands

    A step for running a sequence of eggPlant Functional commands by sending them over the XML-RPC protocol to a remote eggPlant Functional instance using the eggDrive mechanism. Click here for details of eggDrive.

Pre-requisites

  • eggPlant Functional version 14.11 or later must be installed and licensed, To run the step Run eggPlant Commands that uses eggDrive, you must also have a Drive license.
  • If using the step Run eggPlant Script, eggPlant Functional and the IBM UrbanCode Deploy Agent must be installed on the same machine.
  • For using the step Run eggPlant Commands, eggPlant Functional can be running on any machine that the agent can connect to using the hostname or IP address and TCP port used when starting eggPlant Functional in Drive mode.
  • The "Run eggPlant Commands" step has a dependency on the groovy-xmlrpc library and the agent will attempt to download this from org.codehaus.groovy if it is not available. If the agent cannot succeed then you will need to install this manually. See http://groovy.codehaus.org/XMLRPC and http://groovy.codehaus.org/Grapes+and+grab()

You should always fully test and debug your scripts or commands by executing them in eggPlant Functional before attempting to run them using the plugin steps. For the Run eggPlant Scripts step you should first test command line execution using the eggPlant Functional runscript command with the required command line arguments and parameters. You can then copy the arguments into the the Step Properties dialogs, including any quote characters.

Platform Support

For the step Run eggPlant Commands, the plugin will run on any platform that supports the IBM UrbanCode Deploy Agent.

For the step, Run eggPlant Script, the platform must also support eggPlant Functional. This includes Microsoft Windows, Apple Mac and Linux platforms. For details see the product release notes available from the TestPlant downloads page.

Step by Step: Installation and Configuration

  1. Login as an administrator on the IBM UrbanCode Deploy web pages. Select the Settings Page, Automation Plugins, Load Plugin.

  2. Browse for the eggPlant.zip file and click the submit button. The plugin TestPlant eggPlant Functional will appear in the list of Plugins.

    LoadPlugin.png

  3. In the Design for a process, from the Available Plugin Steps tree, select Functional Tests, then eggPlant Functional.

    AvailablePluginSteps.png

  4. Configure Properties

    On dragging a step into your design you are presented with the Edit Properties dialog for the step.

    Step: Run eggPlant FunctionalScripts

    RuneggPlantScriptsProperties.png

    Click the ? icon for help on each field. The following is additional information about eggPlant specific fields. Other fields are explained in the IBM UrbanCode documentation.

    eggPlant Functional Installation Directory

    On Microsoft Windows the plugin code will look for the environment variables "ProgramFiles(x86)" and then "ProgramFiles" to find the eggPlant Functional installation folder and the file runscript.bat. If your installation is not under one of these locations you must enter the full path to the folder that contains the runscript.bat file.

    Runscript command line arguments

    The complete set of parameters and options for the eggPlant Functional runscript command. Quote characters should be included around path names that include spaces. You can use newlines or spaces between arguments; newlines characters will be converted to spaces on execution.

    Step: Run eggPlant Commands

    RuneggPlantCommandsProperties.png

    Click the ? icon for help on each field. The following is additional information about eggPlant specific fields. Other fields are explained in the IBM UrbanCode documentation.

    SenseTalk script lines

    Each line is sent to eggPlant Functional as an eggDrive execute("command") statement. You must first check that the lines operate correctly in eggPlant Functional.

  5. Output on running the step

    The eggPlant Functional output is displayed in the Output Log of the step execution. The Error Log does not display any output from eggPlant Functional.

Troubleshooting

  • Steps do not run as expected

    Ensure your scripts or commands work correctly using eggPlant Functional and from command line execution if using the step Run eggPlant Functional Scripts.

  • Timeout error and "Connection Failed" error in the output Log on step: Run eggPlant Functional Commands.

    The IBM UrbanCode Agent requires internet access to org.codehaus.groovy in order to install the library groovy-xmlrpc. Note that it only needs to install this once, so temporary access to the internet will be sufficient. If this is not possible you will need to install this manually. See http://groovy.codehaus.org/XMLRPCand http://groovy.codehaus.org/Grapes+and+grab().

  • “XMLRPCServerProxy error” in the output Log on step: Run eggPlant Commands.

    • Check that eggPlant Functional is running with the correct argument and port. For example, runscript –driveMode 5400.

    • Check the IBM UrbanCode Agent has access to the host or IP address of the machine where eggPlant Functional is running.

    • Check there is no firewall blocking the connection on or between the IBM UrbanCode Agent and eggPlant Functional machines.

 

This topic was last updated on January 04, 2016, at 12:16:09 PM.

Copyright © 2016 TestPlant, Inc.