murrog
(Murray)
June 5, 2022, 9:41am
1
Hi all,
I’ve run newman-reporter-confluence and got output ok.
Now I am using the confluence options specified in
Not so much luck. I can’t find a working example of what I should be putting in:
--reporter-confluence-baseUrl <string>
--reporter-confluence-spaceId <string>
--reporter-confluence-parentId <string>
All the combinations I have tried so far are giving me:
The page you were trying to reach could not be found. This could be because:
\n\t\t
\n\t\t The page does not exist. \n\t\t The page exists, but you do not have permission to view it.
I did have authentication issues, seem to be beyond that now.
Does anyone use this?
If so can you give me pointers/an example as to what these strings should be?
Thanks
w4dd325
(w4dd325)
June 5, 2022, 7:11pm
2
Hi @murrog
I’ve not used it before but this is now something Im very interested in trying…
Have you read the notes on the GitHub readme? They may help …
# newman-reporter-confluence
[![Build Status](https://travis-ci.com/OmbraDiFenice/newman-reporter-confluence.svg?branch=master)](https://travis-ci.com/OmbraDiFenice/newman-reporter-confluence)
Confluence reporter for [Newman](https://github.com/postmanlabs/newman) that uploads newman report on a Confluence page.
This needs to be used in [conjunction with Newman](https://github.com/postmanlabs/newman#external-reporters) so that it can recognize the reporting options.
> The code gathering the run information is based on [neman-reporter-htmlfull](https://github.com/martijnvandervlag/newman-reporter-htmlfull), so the data included in the report are not aggregated; each execution is reported independently.
> The code also incorporates the latest (at the time of forking) test scripts and repository configuration as [newman-reporter-html](https://github.com/postmanlabs/newman-reporter-html), with some minor changes.
## Install
> The installation should be global if newman is installed globally, local otherwise. (Replace -g from the command below with -S for a local installation)
```console
$ npm install -g newman-reporter-confluence
```
## Usage
In order to enable this reporter, specify `confluence` in Newman's `-r` or `--reporters` option.
This file has been truncated. show original
murrog
(Murray)
June 9, 2022, 7:48am
3
Ok, I managed to get this working.
2 things:
The online instructions for authentication are deprecated. This now needs to use a token, so the newman script will include --reporter-confluence-password “{token here}” --reporter-confluence-user “[email protected] :{token here}” --reporter-confluence-username “[email protected] ” - not sure if all those are needed, worked that way. 2. The --reporter-confluence-baseUrl <string>
(for me) needed to be in the format: https://{yourserver} /wiki/rest/api.
--reporter-confluence-spaceId <string>
has to come from an API call GET to https://{myserver}.atlassian.net/wiki/rest/api/space/{Myspace} This brings back “id”: #####,
“key”: “MYSPACE”, and it was key that worked here, not id.
--reporter-confluence-parentId <string>
was what you would expect.
1 Like
system
(system)
Closed
December 12, 2024, 12:55pm
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.