Skip to content
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

Properties "jira.url", "serenity.pulic.url" doesn't work with serenity.conf file #99

Open
Remneva opened this issue Sep 8, 2019 · 0 comments

Comments

@Remneva
Copy link

Remneva commented Sep 8, 2019

Hello, i have a problem with two-way Integration with Jira and serenity.conf file.

When I use serenity-jira-plugin with serenity.properties everything works as expected. But it doesn't work when i replace properties in serenity.conf file because jira.url, serenity.issue.tracker.url, serenity.requirement.types doesn't pars without double quotes. And when I include it in double quotes Integration with Jira doesn't work.

What can i do to solve this problem?

Error:
1) Error in custom provider, com.typesafe.config.ConfigException$Parse: src/test/resources/serenity.conf: 16: Expecting close brace } or a comma, got ':' (if you intended ':' to be part of a key or string value, try enclosing the key or value in double quotes, or you may be able to rename the file .properties rather than .conf)

Caused by: com.typesafe.config.ConfigException$Parse: src/test/resources/serenity.conf: 16: Expecting close brace } or a comma, got ':' (if you intended ':' to be part of a key or string value, try enclosing the key or value in double quotes, or you may be able to rename the file .properties rather than .conf)

My serenity.conf file:

environments {
		all {
feature.file.encoding="UTF-8"
serenity.report.encoding="UTF-8"
serenity.project.name="Service Platform"
serenity.maintain.session="true"
serenity.features.directory="features"
report.timeout="60"
jira.url=https://jira.******.ru/jira
jira.project=XXX
jira.username=yyy
jira.password=zzz
serenity.requirement.types=story, task, bug
serenity.jira.alwaysnewcomment=true
serenity.issue.tracker.url="https://jira.*****.ru/*****"
serenity.public.url=https://jenkins.sp.*****.ru/*****
serenity.jira.workflow.active=true
}
}

My dependencies:

<dependency>
	<groupId>net.serenity-bdd</groupId>
	<artifactId>serenity-jira-requirements-provider</artifactId>
	<version>1.12.0</version>
</dependency>
<dependency>
	<groupId>net.serenity-bdd</groupId>
	<artifactId>serenity-jira-plugin</artifactId>
	<version>1.12.0</version>
</dependency>
<serenity-core.version>2.0.70</serenity-core.version>
<serenity-maven-plugin.version>2.0.70</serenity-maven-plugin.version>

Any help appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant