Skip to content

Commit

Permalink
fixed jir env var names
Browse files Browse the repository at this point in the history
  • Loading branch information
jbadeau committed Dec 27, 2020
1 parent 25bfb54 commit d9f3087
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@
hs_err_pid*

.idea
*.iml
target
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ jira_authentication = cookie/basic
The following env variables are optional, and allow to configure a specific testExecutionId and summary:

```properties
jira_testExecutionId = JIRA_ID
jira_testExecutionSummary = Expected JIRA issue summary
jira_test_execution_id = JIRA_ID
jira_test_execution_summary = Expected JIRA issue summary
```

#### Add **TestCaseId:\<XrayTestKey>** tag to scenarios
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/gauge/xray/Reporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public static void main(String[] args) {
if (message.getMessageType() == Message.MessageType.SuiteExecutionResult) {
SuiteExecutionResult result = message.getSuiteExecutionResult();

String jiraTestExecutionId = getProperty("jira_testExecutionId");
String jiraTestExecutionSummary = getProperty("jira_testExecutionSummary");
String jiraTestExecutionId = getProperty("jira_test_execution_d");
String jiraTestExecutionSummary = getProperty("jira_test_execution_summary");

List<Report> reports = ReportGenerator.generate(result, jiraTestExecutionId, jiraTestExecutionSummary);
Gson gson = new GsonBuilder()
Expand Down

0 comments on commit d9f3087

Please sign in to comment.