Closed humphreyn closed 8 years ago
No, I need more details
Hi Damian,
My automation test framework is based on Cucumberjs along with protractor running on Node.js
Locally I use Bower with âFâ flag to force update to the latest version of your standalone version of the cucumber sandwich reporting tool, below is the bower json dependency file:
{ "name": "automation", "version": "0.0.0", "authors": [ "humphreyn neville.humphrey@rbi.co.uk" ], "description": "Test Automation", "dependencies": { "cucumber-sandwich": "https://github.com/damianszczepanik/cucumber-sandwich.git" } }
I then have a gulp task that runs maven to build the reporting tool and rename the jar file:
gulp.task('build:cucumber-sandwich', function (cb) { var dir = 'bower_components/cucumber-sandwich';
const mvn = require('maven').create({ cwd: dir, quiet: false, updateSnapshots: true });
mvn.execute(['clean', 'install'], { 'skipTests': false }) .then(() => { gulp.src( dir + '/target/cucumber-sandwich-*-SNAPSHOT-jar-with-dependencies.jar') .pipe(rename('cucumber-sandwich.jar')) .pipe(gulp.dest( dir + '/target')) .on('error', function(e) { cb(); throw e; }) .on('stop', function() { this.emit('end'); }) .on('end', function() { cb(); }); }); });
If I run the following test scenario which has a two data tables, one in the background and another in the scenario itself:
Background: A user with an organisation and business Given an organisation with the following "businesses": | Business name | Reference | Country | | Sutton Park Farm Ltd | SPF | United Kingdom |
Scenario: Verify field tab order on Equipment add drawer And I am on the "Equipment add" page Then the tab order should be as follows: | Equipment Name | | Type | | Reference | | Is Self Propelled | | Close | | Done |
The json output is fine and does contain the data table argument cells, see attached. But the html report does not, see screenshot below. Note I also have a Before and After step from Hooks.
[cid:image001.jpg@01D21430.EAC7E400] If you need anything more let me know.
Regards, Neville
From: Damian Szczepanik [mailto:notifications@github.com] Sent: 20 September 2016 22:46 To: damianszczepanik/cucumber-sandwich cucumber-sandwich@noreply.github.com Cc: Humphrey, Neville (RBI-UK) Neville.Humphrey@rbi.co.uk; Author author@noreply.github.com Subject: Re: [damianszczepanik/cucumber-sandwich] Data table's not in report (#27)
No, I need more details
â You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/damianszczepanik/cucumber-sandwich/issues/27#issuecomment-248444445, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJfRsolI39RwqxjaVOqWZGlP6YWYEKYlks5qsFP8gaJpZM4KCG6M.
DISCLAIMER: This message is intended only for the use of the person(s) ("Intended Recipient") to whom it is addressed. It may contain information which is privileged and confidential. Accordingly any dissemination, distribution, copying or other use of this message or any of its content by any person other than the Intended Recipient may constitute a breach of civil or criminal law and is strictly prohibited. If you are not the Intended Recipient, please contact the sender as soon as possible. Reed Business Information Limited. Registered Office: Quadrant House, The Quadrant, Sutton, Surrey, SM2 5AS, UK. Registered in England under Company No. 151537
Attach JSON file and list elements that are not present. Mind that this report is dedicated for Cucumber-JVM not Cucumber-JS implementation so some elements may not be supported.
I've just checked and the sample data https://github.com/damianszczepanik/cucumber-reporting/blob/master/src/test/resources/json/sample.json#L67-L103 is displayed properly. If you still have this problem raise the issue in main project https://github.com/damianszczepanik/cucumber-reporting
Hi Damian,
I recently upgraded to the latest version stand-alone cucumber report (2.8.0) and now the report does not display any test scenario data tables from my feature file. Is this a known issue/bug?