An open API service indexing awesome lists of open source software.

https://github.com/routhkiranbabu/bdd-cucumber-eclipse-ide-for-java-developers

Created a Project where Story telling on interaction with web application converts to reality. Makes Bridge between technical and non-technical members of the team converting feature requirements into executable scripts. Feel free to dive in😊.
https://github.com/routhkiranbabu/bdd-cucumber-eclipse-ide-for-java-developers

bdd cucumber eclipse-ide java manual-testing scenarios

Last synced: 2 months ago
JSON representation

Created a Project where Story telling on interaction with web application converts to reality. Makes Bridge between technical and non-technical members of the team converting feature requirements into executable scripts. Feel free to dive in😊.

Awesome Lists containing this project

README

          

# πŸ§ͺ Test Execution

# πŸͺœ Guide
## Create the maven Project and Guide:
- File -> New -> Others -> Maven(Folder) -> Maven Project -> Next -> Next -> In the New Maven Project -> Select Catalog as Internal -> next -> provide same name of the Project in the Group id and Artifact id -> Finish
- Wait for some time for download progress. Enter Y then Press enter key.
- Delete the Packages present in the src/main/java and src/test/java, Which is created by default
- Dependencies need to add:
- Cucumber-core
- Cucumber-html
- cobertura code coverage
- Cucumber-java
- Cucumber-junit
- Cucumber-jvm-deps
- Cucumber-reporting
- Hamcrest-core
- Gherkin
- Junit
- Selenium-java
- com.sun tools
- Create Folder Structure:

Project Name

|-> Features(Folder of mavenProject)

|-> pageObjects(Package of src/test/java)

|-> stepDefinitions(Package of src/test/java)

|-> testRunner(Package of src/test/java)

|-> Utilities(Package of src/test/java)

|-> Drivers(Folder of mavenProject)

|-> target(for Reports already present)

|-> pom.xml

- In the Drivers folder -> add the necessary drivers.
Link for Drivers -> https://github.com/RouthKiranBabu/Masai-School-Journey/tree/main/Lectures/Selenium/Cucumber/Drivers
- Right Click -> Features Folder -> New -> File -> Name: Login.feature -> Finish -> Write in [Login.feature](https://github.com/RouthKiranBabu/BDD-Cucumber-Eclipse-IDE-for-Java-Developers/blob/main/maven_project_groid/Features/simple_form_Login.feature).
- In the pageObjects package -> Create class -> Name: LoginPage -> Finish -> Write in [LoginPage.java](https://github.com/RouthKiranBabu/BDD-Cucumber-Eclipse-IDE-for-Java-Developers/blob/main/maven_project_groid/src/test/java/pageObjects/formPage_setup.java)
- Right click -> stepDefinitions -> New -> Class -> Name -> Steps -> Finish
- Right Click -> MavenProject -> Maven -> Update Project -> OK
- Login.feature -> Run as -> Cucumber Feature
- Right Click -> mavenProject -> Run as -> Run Configurations
- Name Correct -> Project Name
- Enter the correct Feature Path if needed -> Apply -> Run
- In the Login.feature -> Right click -> Run as -> Cucumber Feature
- Copy the methods shown at Console -> Paste in the [Steps.java](https://github.com/RouthKiranBabu/BDD-Cucumber-Eclipse-IDE-for-Java-Developers/blob/main/maven_project_groid/src/test/java/stepDefinitions/Steps.java)
- Then remove the following from the Steps.java:
```
// Write code here that turns the phrase above into concrete actions
throw new io.cucumber.java.PendingException();```
- Write -> in -> Steps.java
- Inside the testRunner -> Create Class -> TestRun.java
- Write -> in -> [TestRun.java](https://github.com/RouthKiranBabu/BDD-Cucumber-Eclipse-IDE-for-Java-Developers/blob/main/maven_project_groid/src/test/java/testRunner/Test_run.java)

> [!WARNING]
> If you face error line over '@RunWith(Cucumber.class)' Hover over it and select first option.

- refresh the project -> In the target Folder -> Open the htmlreport.html -> Open with System Editor
- In the Login.feature -> add the Scenario Outline and examples in the Testrun.java -> make dryRun = true -> run the TestRun.java -> Junit Test watch the output
- In the Login.feature -> make dryRun = false -> run the TestRun.java -> Junit Test watch the output

# πŸ“ƒ Previous Assignments
- [1. BDD Cucumber with POM(Page Object Models)](https://github.com/RouthKiranBabu/Masai-School-Journey/tree/main/Assignment/Cucumber/CCP_Block3_S4%20%20Page%20Object%20Model%20%26%20Implementation/Group_artifact_id)
- [2. Click here](https://github.com/RouthKiranBabu/Masai-School-Journey/tree/main/Lectures/Selenium/Cucumber)