Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 15 23:30
    BaCaRoZzo edited #177
  • May 13 11:59
    BaCaRoZzo opened #180
  • May 12 17:13
    BaCaRoZzo opened #179
  • May 12 16:25
    BaCaRoZzo opened #178
  • May 12 15:56
    BaCaRoZzo commented #141
  • May 12 15:53
    BaCaRoZzo commented #177
  • May 12 15:52
    BaCaRoZzo synchronize #177
  • May 12 12:53
    BaCaRoZzo opened #177
  • May 12 08:46
    BaCaRoZzo commented #176
  • May 07 12:03
    wswebcreation closed #150
  • May 07 12:03
    wswebcreation commented #150
  • May 07 12:03
    wswebcreation commented #46
  • May 07 11:59
    wswebcreation commented #176
  • May 07 11:53
    wswebcreation closed #175
  • May 07 11:53
    wswebcreation commented #175
  • May 05 12:53
    BaCaRoZzo commented #150
  • May 02 19:22
    stale[bot] closed #145
  • May 02 14:32
    BaCaRoZzo commented #175
  • May 02 13:21
    BaCaRoZzo commented #176
  • May 02 13:19
    BaCaRoZzo opened #176
Wim Selles
@wswebcreation
So your framework should do this
Federico Francia
@federico.francia:matrix.org
[m]
Hi Wim, we use your package multiple cucumber html reporter, the option "openReportInBrowser" works in MAC clients but doesn't work in Windows clients, so in windows client we need to open the html file manually, maybe this issue is related to win32 path "\" instead of "\", do you know there is a way to make it work?
@wswebcreation: ^
Wim Selles
@wswebcreation
Please file a ticket on the project. I need to check when I have time, holidays are coming and I’m off for almost 2 weeks
Federico Francia
@federico.francia:matrix.org
[m]
ok, as a workaround i am trying to use open package npm to open the report html file
krarpitgupta
@krarpitgupta
Hi All Is there a way to display text in BOLD using cucumberJson.attach method ?
krarpitgupta
@krarpitgupta
@wswebcreation Any input on above request please ?
krarpitgupta
@krarpitgupta
Hi Guys Anyone knows Is there a possibility to take screenshot along with URL address bar using this reporter ?
Wim Selles
@wswebcreation

Hi @krarpitgupta

This reporter doesn’t do any actions during the tests, only translating data

and if you provide it, it will show it :wink:
Ai No
@ainomc_gitlab
Hey folks!
Could you explain, please, how to have tagged scenarios displayed on the report page?
So far I have only Pass and Failed, but not @skipped or anything else.
I've added those tags in a Feature file, made some changes in cucumberOpts>tagExpression, so can run only tagged features/scenarios/steps, but I can't see the results in charts on the index.html page.
@wswebcreation
Wim Selles
@wswebcreation
Do you have an example?
2 replies
Ai No
@ainomc_gitlab
image.png
image.png
the report
@wswebcreation do you need any files with settings?
here it the html report generation step
image.png
Ai No
@ainomc_gitlab
json report has it's tag
image.png
Wim Selles
@wswebcreation
which framework are you using?
Ai No
@ainomc_gitlab
@wswebcreation
Webdriver io + cucumber
Wim Selles
@wswebcreation

@ainomc_gitlab

to be honest, I’m not 100% sure what you want. Tags are being shown in the reporter, can you explain a bit better what you want?

Ai No
@ainomc_gitlab
image.png
@wswebcreation I want to have the displaying of test statuses as it here
Wim Selles
@wswebcreation

AFAIK this is not possible in WDIO + CucumberJS

You provide a tag expression with tags that need to match/not match and WDIO only runs the tests that match the tag expression. You can skip tests with this https://webdriver.io/docs/frameworks/#skipping-tests-in-cucumber
But then those tests are not reported in WDIO, only the tests that match.

More info can also be found in this thread webdriverio/webdriverio#7327

hope this helps
Rahul Shekhawat
@rsshekhawat
Hi @wswebcreation , I have 3 json files for 3 different browsers. And in the report and I want to show metadata for these 3 different browsers. How can I do so ? So far only 1 metadata is showing for all three browsers.
Wim Selles
@wswebcreation

Hi @rsshekhawat

This is not possible with the reporter itself, because it doesn’t have the context of the execution itself. This means that the runner that you use needs to add this information to the JSON files and then the reporter can show that info

Rahul Shekhawat
@rsshekhawat
@wswebcreation what information do I need to add in json files for that and by json files, you mean cucumner json files. Right ?
Rahul Shekhawat
@rsshekhawat
I mean how can I add metadata to cucumber json files
Wim Selles
@wswebcreation
Yes, the cucumber JSON files.
It all depends on your framework, you can add it after the session is done.
Or maybe even during, this all depends on the framework you use
Rahul Shekhawat
@rsshekhawat
That I will take care. I am asking where in json file, I will add the metadata ?
Rahul Shekhawat
@rsshekhawat
Thank you @wswebcreation
Wim Selles
@wswebcreation
But just on the root level of the feature
Rahul Shekhawat
@rsshekhawat
Ok got it
Rahul Shekhawat
@rsshekhawat
Can anyone tell how we can execute this plugin using maven ?
Wim Selles
@wswebcreation
You need NodeJS installed
The rest of the steps are in the docs
Rahul Shekhawat
@rsshekhawat
I had created a index.js and ran it using 'node index.js' command and it's working perfectly. Thanks to you for this amazing plugin. Now how can we run it via maven that is what I am looking for ?
Rahul Shekhawat
@rsshekhawat
Nevermind, I have figured out the same.
Wim Selles
@wswebcreation
:+1:
Rahul Shekhawat
@rsshekhawat
HI @wswebcreation , there is older version of dependency "uuid": "^3.4.0" in your library. It needs to be updated.
Rahul Shekhawat
@rsshekhawat
Also @wswebcreation , just like custom css style, is there option for custom js script as I want to change the dougnout colors in charts.
Sam
@ssteezens
Hello, I'm new to this package. I noticed that metadata set in an individual report json overrides the default metadata specified when calling report.generate. I was wondering if it was also possible to do this with custom metadata?
Sam
@ssteezens

i.e if I generate a report like so with the custom metadata properties "app" and "type" like so

report.generate({
         jsonDir: cucumberJsonDir,
         reportPath: htmlReportDir,
         displayDuration: true,
         useCDN: true,
         pageTitle: 'Hello World E2E',
         reportName: `Hello World E2E - ${new Date().toLocaleString()}`,
         customMetadata: true,
         metadata: [
            {name: 'app', value: 'Hello World'},
            {name: 'type', value: 'Test type v1'},
         ],
         customData: {
            title: 'Run info',
            data: [
               { label: 'Project', value: 'Study Builder E2E' },
               { label: 'Release', value: '1' },
               {
                  label: 'Execution Start Time',
                  value: `${new Date().toLocaleString()}`
               },
               {
                  label: 'Execution End Time',
                  value: `${new Date().toLocaleString()}`
               }
            ]
         }
      });

could I overwrite the "app" and "type" metadata properties for the individual report in it's json like so

[
  {
    "keyword": "Feature",
    "name": "Hello-Integration",
    "line": 1,
    "id": "hello-integration",
    "tags": [],
    "uri": "hello-integration.feature",
    "metadata": {
      "app" : "Hello world",
      "type": "Test type v2"
   },
    "elements": [
     ...
1 reply
Ai No
@ainomc_gitlab
@wswebcreation btw, do you have any plans to integrate the reporter with Azure devops?