JBehave parser for Bamboo and task to Bamboo to Parse JBehave results in JIRA. It create a test in Bamboo for each JBehave scenario. This task reads all XML files in Bamboo test plan working directory. You must enable XML format in your JBhehave project.
This task also links Bamboo test runs and run information to individual JIRA issues by finding issue ids in JBehave scenarios.
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/Atlassian%20Badge.png?version=1&modificationDate=1468667736779&cacheVersion=1&api=v2)
JBehave Integrate JBehave framework with Bamboo and JIRA ![JBehave integration with Bamboo and JIRA](http://www.autotestingtools.com/_/rsrc/1468864765135/jbehave-task-for-bamboo/banner.001.png) JBehave parser for Bamboo and task to Bamboo to Parse JBehave results in JIRA. It create a test in Bamboo for each JBehave scenario. This task reads all XML files in Bamboo test plan working directory. You must enable XML format in your JBhehave project. This task also links Bamboo test runs and run information to individual JIRA issues by finding issue ids in JBehave scenarios.
|
|
How to configure Bamboo plan?
Open Bamboo instance and log in.
1. Click on Create > Create a new plan
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/2.png?version=1&modificationDate=1468667486148&cacheVersion=1&api=v2&effects=drop-shadow)
2. Provide necessary information
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/3.png?version=1&modificationDate=1468667491882&cacheVersion=1&api=v2&effects=drop-shadow)
3. Select source repository of your test code and provide login details. Select your repository and click configure plan.
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/4.png?version=1&modificationDate=1468667498667&cacheVersion=1&api=v2&effects=drop-shadow)
This will add Source code checkout task.
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/5.png?version=1&modificationDate=1468667507123&cacheVersion=1&api=v2&effects=border-simple,blur-border)
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.
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/7.png?version=1&modificationDate=1468667523769&cacheVersion=1&api=v2&effects=drop-shadow)
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/8.png?version=1&modificationDate=1468667530959&cacheVersion=1&api=v2&effects=border-simple,blur-border)
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/9.png?version=1&modificationDate=1468667537765&cacheVersion=1&api=v2&effects=border-simple,blur-border)
5. Now add JBehave parser task to parse results generated by above task.
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/6.png?version=1&modificationDate=1468667515479&cacheVersion=1&api=v2&effects=drop-shadow)
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/12.png?version=1&modificationDate=1468667548823&cacheVersion=1&api=v2&effects=border-simple,blur-border)
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.
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/13.png?version=1&modificationDate=1468667554629&cacheVersion=1&api=v2&effects=border-simple,blur-border)
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/14.png?version=1&modificationDate=1468667562127&cacheVersion=1&api=v2&effects=border-simple,blur-border)
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/15.png?version=1&modificationDate=1468667571245&cacheVersion=1&api=v2&effects=drop-shadow)
7. Run plan
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/17.png?version=1&modificationDate=1468667579714&cacheVersion=1&api=v2&effects=border-simple,blur-border)
Build Result Summary:
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/18.png?version=1&modificationDate=1468667587553&cacheVersion=1&api=v2&effects=border-simple,blur-border)
JBehave Scenarios as Tests in Bamboo:
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/19.png?version=1&modificationDate=1468667597950&cacheVersion=1&api=v2&effects=border-simple,blur-border)
Logs in Bamboo:
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/20.png?version=1&modificationDate=1468667614759&cacheVersion=1&api=v2&effects=border-simple,blur-border)
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/21.png?version=1&modificationDate=1468667635772&cacheVersion=1&api=v2&effects=border-simple,blur-border)
Now, you may want to see JBehave html results attached to the build. This is quick and easy.
Click on configure plan.
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/22.png?version=1&modificationDate=1468667639530&cacheVersion=1&api=v2&effects=border-simple,blur-border)
How to add artifacts?
1. Click on the last job. in our example we have just one job ("Default Job").
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/23.png?version=1&modificationDate=1468667647746&cacheVersion=1&api=v2&effects=border-simple,blur-border)
2. Click on Artifacts tab.
3. Click on create definition
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/24.png?version=1&modificationDate=1468667654199&cacheVersion=1&api=v2&effects=border-simple,blur-border)
4. Give appropriate name
5. In copy pattern textbox enter **/target/jbehave/**
6. Click on save.
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/25.png?version=1&modificationDate=1468667660526&cacheVersion=1&api=v2&effects=drop-shadow)
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/26.png?version=1&modificationDate=1468667667321&cacheVersion=1&api=v2&effects=border-simple,blur-border)
7. Run the plan and you will see all the JBehave html reports attached to the build.
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/27.png?version=1&modificationDate=1468667675082&cacheVersion=1&api=v2&effects=border-simple,blur-border)
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/28.png?version=1&modificationDate=1468667677424&cacheVersion=1&api=v2&effects=border-simple,blur-border)
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/29.png?version=1&modificationDate=1468667680080&cacheVersion=1&api=v2&effects=border-simple,blur-border)
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/30.png?version=1&modificationDate=1468667684624&cacheVersion=1&api=v2&effects=border-simple,blur-border)
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/31.png?version=1&modificationDate=1468667690029&cacheVersion=1&api=v2&effects=border-simple,blur-border)
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/32.png?version=1&modificationDate=1468667694316&cacheVersion=1&api=v2&effects=border-simple,blur-border)
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.
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/33.png?version=1&modificationDate=1468667708056&cacheVersion=1&api=v2&effects=border-simple,blur-border)
Test run links
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/35.png?version=1&modificationDate=1468667718588&cacheVersion=1&api=v2&effects=border-simple,blur-border)
Labels in JIRA:
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/36.png?version=1&modificationDate=1468667725460&cacheVersion=1&api=v2&effects=border-simple,blur-border)
Comments in JIRA:
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/37.png?version=1&modificationDate=1468667734620&cacheVersion=1&api=v2&effects=border-simple,blur-border)
JBehave tab in Bamboo build result summary:
![](https://autotestingtools.atlassian.net/wiki/download/attachments/1441998/jbehave%20tab.png?version=1&modificationDate=1468667758193&cacheVersion=1&api=v2&effects=border-simple,blur-border)