Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

Eclipse is an open source community. A large and vibrant ecosystem of major technology vendors, innovative start-ups, universities, research institutions and individuals extend, complement and support the Eclipse platform.

Table of Contents

Excerpt

Table of Contents
absoluteUrl

...

true

...

Install

The update site for GreenPepperLivingDoc's Eclipse development tools plugin is located at: http://www.greenpeppersoftware.com/greenpepper-eclipse..novatec-gmbh.de/updatesite/testit/livingdoc/livingdoc-eclipse4/:

Warning
titleSupported Eclipse versions:

The plugin has been tested from version 4.3 to 4.45

Step 1 - Install New Software

In Eclipse, choose choose Help/Software Updates/Find and Install.

Step 2 - Add New Remote Site

Select Select Add... button  button to add a new remote site.

Step 3 - Add Repository

To update the plugin enter following link: http://www.novatec-gmbh.de/updatesite/testit/aqe

Step 4 - Select Package

In the tree of available updates select GreenPepper Development Tools and click Next testIT LivingDoc Eclipse Features and click Next >.

Image RemovedImage Added

Step 5 - Installation Wizard

Click Click Next > button  button in the Install Details window.

Image RemovedImage Added

Step 6 - Accept License Agreement

You have to accept the terms of the license agreement to be able to proceed with the installation. You are now ready for the installation, click click Finish.

Image RemovedImage Added

Step

...

7 - Installation Progress

Once the download manager has started downloading, you see the the Security Warning popup popup. The authenticity of software can not be established. You have to click Ok  OK to continue with the installation.

Image RemovedImage Added

 

Step

...

8 - Restart Eclipse

After the installation you must restart the Eclipse workbench, for the plugin to be available within the application.

Step 9 - Checking the installation

You should now see the GreenPepper menu the LivingDoc menu on the toolbar.

Image RemovedImage Added


Select Select Installation Details Details menu from Help from Help to check the correct installation of the plugin (Filter for "testIT" to find it faster).

Image RemovedImage Added

Step 10 - Updating

You can see the current installed version of the plugin and a link for checking for updates.

Image RemovedImage Added


Alternative: Select the first option in step 2.

...

Configure

Following steps are needed to configure the GreenPepper LivingDoc Eclipse plugin.
Before you begin, you must verify:

...

Workspace configuration

First, you have to configure where the plugin can find the GreenPepper LivingDoc Server.  This is done in in Window >> Preferences.


Enter the URL for the server :

  • For Confluence, it is the base url URL of Confluence (e.g. http: //domain:8080/confluence)

Enter the XML-RPC handler. (For now only greenpepper1 is livingdoc1 is available.)  You can test the connection by clicking on the the Test Connection button button.

Image RemovedImage Added

...

Project configuration

Enable GreenPepper LivingDoc on a project by selecting GreenPepperselecting LivingDoc/Project GreenPepperisedLivingDoc enabled.
You should see a check mark beside the menu option afterwards.

Info

Only Java projects can be GreenPepperised LivingDoc enabled.

Image RemovedImage Added


  Once your project has been GreenPepperised LivingDoc enabled, check its properties (right-click click Project/Properties).

Image RemovedImage Added


  You should now have a GreenPepper LivingDoc property page with two sub-pages.

  • Advanced settings
  • Local repositories

  In the GreenPepper LivingDoc page, you will identify your Eclipse project to a System Under Test (under development).
  By doing so, you will see all the associated specification repositories. You will be able to enter your own credentials
  for each of these repositories. Optional
  You will also need to configure your runner location.  Mandatory

Image RemovedImage Added


  The local repository page associates your project to local specification directories accessible with your computer.

Image RemovedImage Added


  The advanced settings let you override the SystemUnderDevelopment class that resolves the fixture and domain classes.
  Make sure your class is in a library that resides in your runner directory. The arguments are seperated separated by ";" and will be passed to
  the constructor. Please see the the command line options. 
  You will be able to add additional options to the command line and append additional JVM parameters (e.g. higher JVM space as demonstrated below).

Image RemovedImage Added


  You are now ready to execute specification documents on your development code.

...

Use

Running specifications

A GreenPepper LivingDoc project, inside Eclipse, is a JavaProjectJava Project. 
When you greenpepperised enabled LivingDoc in a Java project, you gain access to run fixtures inside your Eclipse IDE.

Prepare Confluence Page

Before using LivingDoc in Eclipse you have to specify your executable table and implement a suitable fixture. The guide about how to write your executable specification can found here.

Please make sure that your modified Confluence page is up-to-date. Click on Set as Implemented as shown below.

Image Added

Now your executable table can found inside your Eclipse IDE. For creating a new Fixture open the LivingDoc repository view by clicking "LivingDoc" > "Repository View".

Now you should see your Java-Project and the projekt-name in parentheses which you set in your Confluence configuration. If you expand all you should see something like this:


Image Added

With a right click on one your Confluence page (here e.g. "TestPage") you can generate your first fixture class. Click "Create Fixture", choose the Fixture Name you want to create and set the package for your fixture.

Image Added

After clicking "Finish" the Fixture template is generated. Now you have to implement your functionality.

Code Block
languagejava
titleCode for the hello world example
package info.novatec.fixture;

import info.novatec.testit.livingdoc.reflect.annotation.FixtureClass;

@FixtureClass({ "concatenate some words", "another alias" })
public class MyFirstHelloWorldExampleFixture {

	public String firstWord;
    public String secondWord;

	public String concatenateTwoWords() {
        return firstWord + " " + secondWord;
    }
}

You may have noticed the Annotation FixtureClass. This Annotation provides the opportunity to create executable specifications without importing packages of fixtures. Currently it works only in this direction. If you want to execute your specification inside your Confluence Space you have to import the packages where the fixture can found.
Furthermore you can specify aliases inside braces next to the FixtureClass-Annotation to improve readable specification-header. LivingDoc matches your table-names and these aliases. The screenshot below shows you three almost equal specifications. Have a look to the second cell in the first, grey rows. All these specifications uses the class MyFirstHelloWorldExampleFixture.

Image Added

Run Configuration

To validate that your project developement development code respect the example in the specifications, you create a new Run Configuration.

I. Run Configuration

The Debug configuration  configuration works the same way.  Then create a new GreenPepper new LivingDoc Specification

Image RemovedImage Added

...

Inputs

  1. Project
    Your eclipse project to launch the specification on.
  2. Repository UID
    The remote Repository UID (None if local)
  3. Document Repository base URL
    The Repository URL (Or directory path if local)
  4. Document Repository Class
    • com.greenpepperinfo.novatec.testit.livingdoc.repository.FileSystemRepository for files
    • com.greenpepperinfo.novatec.testit.livingdoc.runner.repository.AtlassianRepository for Jira/ Confluence
    • com.greenpepperinfo.novatec.testit.livingdoc.runner.repository.VFSRepository for zip ...
  5. Username
    If Authentication is need for the Repository access
  6. Password
    If Authentication is need for the Repository access
  7. Specification
    The Specification name (Document name)
  8. Current Version
    If versioning is handled, aim for the latest version of the document.

Image RemovedImage Added

...

Execute Document

Open the the Repository View and  and click right to execute a certain document to run the tests.

Image RemovedImage Added

...

Results

  Running the specification will give you a result like this one

Image RemovedImage Added
  Notice that the html result file was added to your project files.

...

Text Result

  If the window displayed shows html in a text format, check your your Open With setting  setting for the html file

Image RemovedImage Added


  You need the Browser support plugin to be able to see the html HTML page inside an Eclipse Editor.

Repository view

You can view all the specifications for your project using the repository view.

Show the repository view window

There is two ways to access the repository view.
1) From the GreenPepper LivingDoc menu

Image RemovedImage Added

2) From the eclipse standard view selection.
    First choose Show View-Other
    Then choose GreenPepper RepositoryViewImage RemovedLivingDoc Repository View

Image Added

The Repository View

  The Repository view is a JUnit like view.
  You will be able to launch executions, view documents and results and work on both Implemented and Working copies of the documents.
  Careful ! the Green bar might be addictive after a while ...

Image RemovedImage Added

 

 
project
Project
Image Removed
Image Added
GreenPepperised
LivingDoc enabled
 Repositories
Image Removed
A JIRA Repository
Image Modified
A Confluence Repository
Image Modified
A Remote File Repository
Image Modified
A Local directory
 Documents
Image Modified
Plain
Image Removed
Image Added
Executable
Image Removed
Image Added
Working differs from the Implemented copy
Image Removed
Image Added
Working copy
Image RemovedBroken Reference
 Actions
Image Modified
Will tell Eclipse to work on the Working copy of the Document(s)
Image Modified
Will tell Eclipse to work on the Implemented copy of the Document(s)
Image Modified
Will Ask the Repository to MERGE the Working copy with the
Implemented copy of the Document(s)
Image Removed
Image Added
Executes all the selected Documents
Image Removed
Image Added
Executes The selected Document
Image Removed
Image Added
Reloads The selected Document from the repository
Image Modified
Opens a Fixture class Creation Wizard to generate the Fixture and its needed components (v. BETA only)
Image Modified
Refreshes the Tree
Info
titleBy default Eclipse will work on the Implemented copy of the document.

 

Keyboard shortcuts

Image RemovedImage Added

...

FAQ

I cannot see the

...

LivingDoc property page for my project.

Make - Make sure your project has been GreenPepperized LivingDoc enabled using the option menu. Only projects with a GreenPepper LivingDoc nature have the GreenPepper LivingDoc property pages.
See See  Configure GreenPepper LivingDoc Eclipse plugin for  for more information.
- Currently the using of LivingDoc property page is not possible when using project explroer view. Please switch to package explorer view.

I cannot see my project in the projects combo when creating

...

Run Configuration.

Make sure your project has been GreenPepperized LivingDoc enabled using the option menu. Only projects with a GreenPepper LivingDoc nature can have a GreenPepper LivingDoc run configuration. See See Configure GreenPepper LivingDoc Eclipse plugin for  for more information.

Some of the pages I retrieved from Confluence have underlined macro errors.

To prevent deadlocks, we ask Confluence not to render the GreenPepper LivingDoc macros for third party applications witch result in an underlined error on the rendered page.

No "System under Test Name" available when opening LivingDoc property page

Make sure that version numbers of imported LivingDoc-Eclipse-Plugin and used LivingDoc-Version (dependencies in pom.xml) matches.