Versions Compared

Key

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

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

    This task also links Bamboo test runs and run information to individual JIRA issues by finding issue ids in JBehave scenarios.

 

Image Removed

 

 

 

 

JBehave

 

 Integrate JBehave framework with Bamboo and JIRA
JBehave integration with Bamboo and JIRAImage Removed

...

 

...

    This task also links Bamboo test runs and run information to individual JIRA issues by finding issue ids in JBehave scenarios.
How to

...

  1. Log into your Bamboo instance as an admin.
  2. Click the admin dropdown and choose Atlassian Marketplace.The Manage add-ons screen loads.
  3. Click Find new add-ons from the left-hand side of the page.
  4. Locate JBehave for Bamboo via search.The appropriate add-on version appears in the search results.
  5. Click Try free to begin a new trial or Buy now to purchase a license for JBehave for Bamboo.You're prompted to log into MyAtlassian. JBehave for Bamboo begins to download.
  6. Enter your information and click Generate license when redirected to MyAtlassian.
  7. Click Apply license.If you're using an older version of UPM, you can copy and paste the license into your Bamboo instance.

To find older JBehave for Bamboo versions compatible with your instance, you can look through our version history page.

 

...

configure Bamboo plan?
   

...

 Open Bamboo instance and log in.
1. Click on Create > Create a new plan

 

Image RemovedImage Added

 


2. Provide necessary information

 

Image RemovedImage Added


 3. Select source repository of your test code and provide login details. Select your repository and click configure plan.

 

Image RemovedImage Added


  This will add Source code checkout task.

 

Image RemovedImage Added

 

 4.   Now add task Maven/Ant/Command to execute the source code. In this example i have added Maven and provided goal "integration-test" as defined in my JBehave project configuration. 

 

Image RemovedImage Added

 

 

Image RemovedImage Added

 

Image RemovedImage Added

 


5.  Now add JBehave parser task to parse results generated by above task.

 

Image RemovedImage Added

 

Image RemovedImage Added

 


 6.   If you want to integrate JBehave test results parsed in Bamboo to be integrated in JIRA as well so that JIRA users can see all information in issue itself, enable JIRA settings. Enable the actions you  want to be performed in JIRA issue.

 

Image RemovedImage Added

 

Image RemovedImage Added

 

Image RemovedImage Added

7. Run plan

 

Image RemovedImage Added

 

Build Result Summary:

 

Image RemovedImage Added

 

JBehave Scenarios as Tests in Bamboo:

 

Image RemovedImage Added

 


Logs in Bamboo:

 

Image Added

 Image Removed

Image Added

 

Enhanced JBehave Tab:


Image Added

 

 

Image Removed 

 

   Now, you may want to see JBehave html results attached to the build. This is quick and easy.
    Click on configure plan.

 

Image RemovedImage Added

 

How to add artifacts?
 1.   Click on the last job. in our example we have just  one job ("Default Job").

 

Image RemovedImage Added

 

 2.   Click on Artifacts tab.
 3.   Click on create definition

 

Image RemovedImage Added

 

 

 4.   Give appropriate name
 5.   In copy pattern textbox enter **/target/jbehave/**
 6.   Click on save.

 

Image RemovedImage Added

 

Image RemovedImage Added

 

 7.   Run the plan and you will see all the JBehave html reports attached to the build.

 

Image RemovedImage Added

 

Image RemovedImage Added

 

Image RemovedImage Added

 

 

 

Image RemovedImage Added

 

 

Image RemovedImage Added

 

 

Image RemovedImage Added

 

  If you have enabled JIRA options in JBehave parser task, you should see lot of information to JIRA issues.  This plugin find JIRA issue ids in scenario names.  Please have a look at story above. If scenario names does not contain JIRA issues id, the plugin will not update the issue id.

 

Image RemovedImage Added

 

Test run links

Image Added

 

 

Image RemovedLabels in JIRA:

Image Added

 

 


Image RemovedComments in JIRA:

Image Added

 

 Image Removed

  Image RemovedJBehave tab in Bamboo build result summary:


Image Added