You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,8 @@ import * as assertThat from '@assertthat/assertthat-bdd'
57
57
58
58
* For downloading feature files:
59
59
60
+
Using Basic auth
61
+
60
62
```js
61
63
constassertThat=require('assertthat-bdd');
62
64
@@ -70,11 +72,26 @@ assertThat.downloadFeatures({
70
72
});
71
73
```
72
74
75
+
Using Jira API token (more info can be found here [Using personal access tokens](https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html))
76
+
77
+
```js
78
+
constassertThat=require('assertthat-bdd');
79
+
80
+
assertThat.downloadFeatures({
81
+
"projectId":PROJECT_ID,
82
+
"token":"ASSERTTHAT_API_TOKEN",
83
+
"jiraServerUrl":"Jira server URL."//Omit if using Jira Cloud
-t, --token [ASSERTTHAT_API_TOKEN] Jira API token (Server and DC only)
78
95
-u, --jiraServerUrl [URL] Jira server URL e.g https://mycompanyjira.com
79
96
-i, --projectId <ID> Jira project id
80
97
-m, --mode <mode> Features to download (default: "automated")
@@ -87,6 +104,8 @@ Available parameters:
87
104
88
105
* For uploading reports:
89
106
107
+
Using Basic auth
108
+
90
109
```js
91
110
constassertThat=require('assertthat-bdd');
92
111
@@ -100,11 +119,26 @@ assertThat.uploadReports({
100
119
});
101
120
```
102
121
122
+
Using Jira API token (more info can be found here [Using personal access tokens](https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html))
123
+
124
+
```js
125
+
constassertThat=require('assertthat-bdd');
126
+
127
+
assertThat.uploadReports({
128
+
"projectId":PROJECT_ID,
129
+
"token":"ASSERTTHAT_API_TOKEN",
130
+
"jiraServerUrl":"Jira server URL."//Omit if using Jira Cloud
0 commit comments