Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eshaagarwa/bdd-framework-testin_cucumberg
bdd framework for testing
https://github.com/eshaagarwa/bdd-framework-testin_cucumberg
postman-api selenium test-automation test-driven-development testfaremwork testreporting
Last synced: 17 days ago
JSON representation
bdd framework for testing
- Host: GitHub
- URL: https://github.com/eshaagarwa/bdd-framework-testin_cucumberg
- Owner: eshaagarwa
- Created: 2024-12-03T17:10:05.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-03T17:17:58.000Z (about 1 month ago)
- Last Synced: 2024-12-03T18:25:09.007Z (about 1 month ago)
- Topics: postman-api, selenium, test-automation, test-driven-development, testfaremwork, testreporting
- Language: HTML
- Homepage:
- Size: 63.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cucumber-BDD-Automation-Framework
Behavior Driven Development Cucumber - Selenium based automation framework including Allure reports
This framework contains sample code containing:
- 1 feature (feature file)
- 2 Scenarios
- Simple scenario login scenario and adding products to carts
- Advance scenario where parameterization has been used (Scenario Outline examples) to search different types of products and listing out them
Directory structure:
Steps to run at your system:
- Clone the repository using "git clone "
- Change "Username" and "Password" in both scenarios in feature file
- Run "mvn clean test"
- Run "mvn site"
Cucumber Reports: net.masterthought - This will generate two reports
- Cucumber Pretty (folder - "target\cucumber-reports\cucumber-pretty"), file - "index.html"
- Cucumber Advance (folder - "target\cucumber-reports\advanced-reports\cucumber-html-reports"), file - "overview-features.html"
Folders for these reports:
Snapshots - Cucumber - Pretty - Report: See here
Snapshots - Cucumber - Advanced - Report: See here
See configuration in "pom.xml" file
net.masterthought
maven-cucumber-reporting
3.8.0
execution
verify
generate
MyProjectName
target/cucumber-reports/advanced-reports
target/cucumber-reports/CucumberTestReport.json
1
false
false
true
Allure Report:
Allure reports will be generated based on the testcases json files when you'll run "mvn site".Add this Allure dependency in pom.xml:
ru.yandex.qatools.allure
allure-cucumber-jvm-adaptor
1.6.2
Add this under Maven Surefire plugin:
javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar" -Dcucumber.options="--plugin ru.yandex.qatools.allure.cucumberjvm.AllureReporter"
And this under "project xml" tag
true
ru.yandex.qatools.allure
allure-maven-plugin
2.5
You will be able to locate the report in folder : "target\site\allure-maven-plugin", the "Index.html" file.
You can either open it through Firefox or on a local server. I had used "Jetty server", using this command: "mvn jetty:run". And then open url in your any browser "http://localhost:8080" and there you go.
MVN Jetty configuration is to be done in pom.xml if want to use it:
org.eclipse.jetty
jetty-maven-plugin
9.2.10.v20150310
${project.build.directory}/site/allure-maven-plugin
stop
1234
Example snapshot of Allure report:
- allure-xunit view
- allure-xunit1 view
- allure-xunit2 view
- allure-behavior1 view
- allure-behavior2 view
- allure-graph view