selenium-cucumber-java | repository contains a collection of sample | Functional Testing library
kandi X-RAY | selenium-cucumber-java Summary
kandi X-RAY | selenium-cucumber-java Summary
This repository contains a collection of sample selenium-cucumber-java projects and libraries that demonstrate how to use the tool and develop automation script using the Cucumber (v 3.0.0) BDD framework with Java as programming language.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of selenium-cucumber-java
selenium-cucumber-java Key Features
selenium-cucumber-java Examples and Code Snippets
Community Discussions
Trending Discussions on selenium-cucumber-java
QUESTION
Background: In our project[selenium-cucumber-java-Mvn based] we have test execution reporting done through- master thoughts Cucumber report (mvn dependency). This Report get generated in the test>target directory and we are sharing this folders Link embed in an email to everyone automatically for reporting. Here recipient has to open this link to see the status. Link looks like- http://localhost:63342/Automation/TestExecutionReports/02-08-2018/Run-1/cucumber-html-reports/overview-features.html
Question: Now we have a need to send Execution summary also in the email so that one can see high level status without even drilling through Link. So we need to insert a Tabular format- with columns -TC Name, Status, Execution Time, Overall Count etc. in email body itself in addition to the above Link. Can someone plz help me doing this?
Other info: I don't know much how internally master though works, but it gathers the execution data via a JSON file. And we are generating this report in the onExecutionfinish method of TestNGExecutionListener. our current report looks like an attached snap. Our json is contains the following info-
...ANSWER
Answered 2018-Aug-06 at 15:17I dont have code but I think a probable approach can be like below- First write some code to generate Table Template with its Header, Main Table, Rows and Columns and Footer. Then insert the Data into this table by reading it from the features.html page you have (as mentioned in url ). You should be able to read data for pass, fail or whatever needed from this html web page through standard methods [like- getText()] of Selenium . In the end get this whole table appended to a StringBuilder and send in email message as bu using setting content of thmlSourceEmbed as text/html..hope this help
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install selenium-cucumber-java
Maven (make sure .m2 class path is set)
Eclipse
Eclipse Plugins for Maven Cucumber
Browser driver (make sure you have your desired browser driver and class path is set)
Fork / Clone repository from here or download zip and set it up in your local workspace.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page