New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cucumber+Serenity BDD with JIRA Two way Integration #525
Comments
hi @Gurunathan5029 , I will take a look at your issue |
Hi Liviu, I have attached Groovy File Content as well for your reference. Any update on the issue resolution. Regards, |
Hi Guru, Please try with the attached pom.xml (or at least extract the significant serenity libraries |
Hi Cliviu, Thanks for the file. Now the JIRA issue comments are updating not the Status. And the Epic and Stories links in the Serenity report is not available now [Merging JIRA Issues with Serenity report is not working]. What might be went wrong , In am trying with different versions of serenity but could not able to achieve what I expect. Please help me out. Updating Comments: Regards, |
hi Guru, Regarding updating the issues, please be aware that the states from the groovy file are case-sensitive. The states from groovy file should correspond exactly with the ones defined in JIRA. |
Hi Cliviu, Thanks a lot for the POM File . Now I can able to see the Stories and Epic in the report. But the status in JIRA is still not changing. I don't know what I am doing wrong. JIRA Workflow Groovy File Content when 'IN PROGRESS', { when 'DONE', { Groovy Location \cucumber-webtests\src\test\resources Please correct me if anything is wrongly configured or done here. Regards, |
Hey Guru, everything looks good configured... please try small letters for 'success' , 'failure' |
Hi liviu, Nothing benefited by changing the workflow letters in groovy file to 'success' Now the comments are updated successfully without any error but WorkFlow is I am really struck up with this issue for last 5 days, I don't know how to Regards, On Thu, Sep 22, 2016 at 10:23 AM, Liviu Carausu notifications@github.com
|
hi guru, |
If you have problems to see the debug messages, add following dependencies to your pom.xml
and add the logback.xml in the same directory as your pom.xml |
Hi Liviu, I am not getting log file back . Where to find it out and what has to be Regards, On Fri, Sep 23, 2016 at 2:03 AM, Liviu Carausu notifications@github.com
|
Hi, normally it should be logged on CONSOLE. Just redirect the output to a file |
Yes Workflow Active is set as true and listener has the value : upadate, [INFO] serenity.browser,width=1200 [pool-1-thread-3] INFO net.serenitybdd.plugins.jira.JiraListener - Updating On Fri, Sep 23, 2016 at 4:50 PM, Liviu Carausu notifications@github.com
|
I still do not see the DEBUG channel ... is important to see this line DEBUG n.s.plugins.jira.JiraUpdater - WORKFLOW ACTIVE: |
Hi Liviu, I am not getting the debug logs for, DEBUG n.s.plugins.jira.JiraUpdater - WORKFLOW ACTIVE: Please find the below debug channel report I am receiving: [INFO] serenity.browser,width=1200 [INFO] serenity.dry.run=false [INFO] serenity.jira.workflow.active=true [INFO] serenity.project.name=XXX Automation [INFO] jira.project=XXX [INFO] serenity.project.key=XXX [INFO] serenity.browser,height=1200 [INFO] serenity.take.screenshots=AFTER_EACH_STEP [INFO] jira.password=Iceman1! [INFO] serenity.release.types=milestone, release, version [INFO] serenity.use.unique.browser=false [INFO] jira.url=http://localhost:8081 [INFO] serenity.public.url=http://localhost:8080/job/YYY-XXX/HTML_Report/ [INFO] webdriver.chrome.driver=C:\chromedriver.exe [INFO] jira.username=XXXXXXXXX [INFO] serenity.test.root=net.thucydides.showcase.cucumber.junit [INFO] webdriver.driver=chrome [INFO] webdriver.timeouts.implicitlywait=10000 [INFO] serenity.jira.workflow=jira-workflow.groovy [INFO] project.build.directory : [INFO] project.reporting.OutputDirectory : null [INFO] OutputDirectory : [INFO] current_project.base.dir: Generating HTML Story Reports from Generating HTML Story Reports to [INFO] LOADING LOCAL PROPERTIES FROM [INFO] LOADING LOCAL PROPERTIES FROM [INFO] LOADING LOCAL PROPERTIES FROM [DEBUG] JIRA URL: http://localhost:8081 [DEBUG] JIRA project: XXX [DEBUG] JIRA user: XXXXXXXXX [INFO] project.build.directory : [INFO] project.reporting.OutputDirectory : null [INFO] OutputDirectory : [DEBUG] Find parent requirement in JIRA for Login [DEBUG] Parent found: IssueSummary{key='XXX-2', summary='LoginXXX'} [DEBUG] Reading requirements from [DEBUG] Loading root requirements: issuetype = epic and project=XXX [DEBUG] Count by JQL for issuetype = epic and project=XXX [DEBUG] Loading root requirements done: 1 [DEBUG] Loading 1 requirements [DEBUG] Load children for requirement Create XXX XXXXYYYYs After Login [DEBUG] Loading child requirements for: Create XXX XXXXYYYYs After Login [DEBUG] Loading child requirements for Create XXX XXXXYYYYs After Login [DEBUG] 4 child requirements loaded in: 42 ms [DEBUG] Child requirements: [Requirement{name='Login using valid [DEBUG] Load children for requirement Create XXX XXXXYYYYs After Login done [DEBUG] 1 requirements loaded in 44 ms [DEBUG] Requirements: [Requirement{name='Create XXX XXXXYYYYs After Login', [DEBUG] Requirement ancestors for:Requirement{name='Create XXX XXXXYYYYs [DEBUG] Requirement ancestors for:Requirement{name='Login using valid [DEBUG] Requirement ancestors for:Requirement{name='XXXXYYYY Creation With [DEBUG] Requirement ancestors for:Requirement{name='XXXXYYYY Creation Form [DEBUG] Requirement ancestors for:Requirement{name='LoginXXX', type='Story' [DEBUG] Requirements found:[Requirement{name='Create XXX XXXXYYYYs After [DEBUG] Requirement found for test outcome Login-[XXX-2]: [DEBUG] Find parent requirement in JIRA for XXXXYYYY Creation Form [DEBUG] Parent found: IssueSummary{key='XXX-3', summary='XXXXYYYY Creation [DEBUG] Requirement found for test outcome XXXXYYYY Creation Form [DEBUG] Find parent requirement in JIRA for Login [DEBUG] Parent found: IssueSummary{key='XXX-2', summary='LoginXXX'} [DEBUG] Requirement found for test outcome Login-[XXX-2]: [DEBUG] Find parent requirement in JIRA for XXXXYYYY Creation With Valid [DEBUG] Parent found: IssueSummary{key='XXX-4', summary='XXXXYYYY Creation [DEBUG] Requirement found for test outcome XXXXYYYY Creation With Valid [DEBUG] Requirement found for test outcome Login-[XXX-2]: [DEBUG] Requirement found for test outcome XXXXYYYY Creation Form [DEBUG] Requirement found for test outcome Login-[XXX-2]: [DEBUG] Requirement found for test outcome XXXXYYYY Creation With Valid [DEBUG] Merging requirements = [Requirement{name='Create XXX XXXXYYYYs [DEBUG] Merged requirements set = [Requirement{name='Create XXX XXXXYYYYs [DEBUG] Shutting down Test outcome reports generation [DEBUG] Aggregate reports generated in 722 ms [DEBUG] Loaded Releases: [] [DEBUG] Requirement found for test outcome Login-[XXX-2]: [DEBUG] Requirement found for test outcome XXXXYYYY Creation Form [DEBUG] Requirement found for test outcome Login-[XXX-2]: [DEBUG] Requirement found for test outcome XXXXYYYY Creation With Valid [DEBUG] Test outcome reports generated in 1810 ms On Fri, Sep 23, 2016 at 9:33 PM, Liviu Carausu notifications@github.com
|
I'm really not sure what is wrong with the output.. Do you have the two dependencies in the pom.xml ? |
yes Liviu, I have in POM. com.googlecode.lambdaj lambdaj 2.3.3 net.serenity-bdd serenity-jira-plugin 1.1.2-rc.1 org.codehaus.groovy groovy-all 1.8.6 net.serenity-bdd serenity-jira-requirements-provider 1.1.3-rc.1 But I am not seeing what u said. Any other thing has to be corrected like version or some other dependencies.On Tue, Sep 27, 2016 at 4:11 AM, Liviu Carausu notifications@github.com
|
Hi, I mean the logback
In the first log that you have posted you have something like the log entry DEBUG n.s.plugins.jira.JiraUpdater - JIRA LISTENER STATUS should be actually visible always on DEBUG channel.. Please attach once more your pom, serenity.properties and complete log |
yes I have both the dependency in place [Core and Classic] On Tue, Sep 27, 2016 at 3:53 PM, Liviu Carausu notifications@github.com
|
Any finding on this issue, Liviu, Please have a look at the issue 543[New One] with respect to JIRA integration |
hi Guru, I think you should remove the slf4j-simple entry from your pom.xml. Please try again and tell me if you see the output with JIRA LISTENER STATUS |
Hi Liviu, Now I am getting following things, 16:51:38.785 [main] DEBUG n.s.plugins.jira.JiraListener - JIRA LISTENER 16:52:36.823 [main] DEBUG n.s.plugins.jira.JiraListener - WORKFLOW But still the Workflow is not updated. Thanks, On Fri, Sep 30, 2016 at 3:25 AM, Liviu Carausu notifications@github.com
|
Any update on this Liviu |
actually it should work, you should see some entry like this in your log file file :
Basically there are two conditions to activate the state workflow :
|
can you try to set also thucydides.public.url=http://localhost:8080/job/YYY-XXX/HTML_Report/ |
No , Nothing happening in favor Liviu |
Guru, the last chance is that I post a test project for you, please adjust the values in the serenity.properties and the issues in the cucumber features to your values, let me know if it helps.. |
I have referred the examples Cliviu but I am not seeing any update on the Wrokflows , Please see the logs I am getting
|
Is there any update on this issue |
Hi @Gurunathan5029 , with the sample project that I have attached for you you should see the "Updating status for issue" log entry |
Yes Liviu, I can see the "Updating Status" but why I am not getting that in
my project.
…On Sun, Dec 4, 2016 at 12:48 PM, Liviu Carausu ***@***.***> wrote:
Hi @Gurunathan5029 <https://github.com/Gurunathan5029> , with the sample
project that I have attached for you you should see the "Updating status
for issue" log entry
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#525 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AS_9HADebzXnfXZqxLOmyOAjg_oUhiO8ks5rEmlhgaJpZM4J7VjK>
.
|
Hi, It should be more than Updating Status ... . something like : can you please post more output containing the above mentioned lines ? |
Hi @cliviu , I have downloaded "jira-example-guru.zip" and it is working as expected while pulling the requirements from JIRA .I can see below log on the console while it is pulling the requirements . 15:25:37.923 [pool-2-thread-2] DEBUG n.s.p.j.r.JIRARequirementsProvider - Loading root requirements: issuetype = "User Story" and project="DEMO" Question : Is it possible to pass jql query/different serenity properties to retrieve specific requirements example to retrieve user stories which are part of DEMO1.0 release and user stories whihc are tagged as automation in JIRA issuetype = "User Story" and project="DEMO" and AND fixVersion = "DEMO1.0" AND labels in ("Automation") |
Hi Liviu Carausu,
I am currently developing my Framework by integrating serenity with my cucumber scenarios and its in enhancement stage. But I am really held back because of following issues.
Issue1:
I am using Serenity with Cucumber and I am successfully able to integrate with JIRA [One Way Integration]. But Two way integration is not working, requirements are getting merged but not updated in JIRA.
Please find the POM, Console log and Property file
Console log.txt
Property File.txt
pom.txt
Groovy File Content :
when 'TO DO', {
'success' should: 'In Progress'
}
when 'IN PROGRESS', {
'success' should: 'DONE'
}
when 'DONE', {
'failure' should: 'TO DO'
}
Feature File
@issue:AMS-2
Scenario: Login
Given I navigate to XXX Login Page
When I provide XXXXame and XXXXord
And I Click on Login button
Then Home Page should be Displayed
@issue:AMS-3
Scenario: XXXXee Creation Form Verification
Given I am in XXX Home Page
When I clcik on XXXXXXes button
And I click on XXXXXyee button
Then Add New XXXXyee form should be displayed
JIRA Configuration:
JIRA Project Name :XXX ,
Issue: XXX-2, XXX-3
Version: Release1
Issue2:
I have installed JIRA in my local with sample project, Report is correctly fetching the reuirements but it doesnt have Automated Test and coverage too. Please find that screen shot below
Thanks,
Guru
The text was updated successfully, but these errors were encountered: