-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module type="JAVA_MODULE" version="4" /> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>com.zerobank</groupId> | ||
<artifactId>zerobank-automation</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
|
||
<properties> | ||
<maven.compiler.source>11</maven.compiler.source> | ||
<maven.compiler.target>11</maven.compiler.target> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.seleniumhq.selenium</groupId> | ||
<artifactId>selenium-java</artifactId> | ||
<version>4.0.0-alpha-7</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.github.bonigarcia</groupId> | ||
<artifactId>webdrivermanager</artifactId> | ||
<version>4.2.2</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.cucumber</groupId> | ||
<artifactId>cucumber-junit</artifactId> | ||
<version>6.9.1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.cucumber</groupId> | ||
<artifactId>cucumber-java</artifactId> | ||
<version>6.9.1</version> | ||
</dependency> | ||
</dependencies> | ||
</project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.zerobank.runners; | ||
|
||
|
||
import io.cucumber.junit.Cucumber; | ||
import io.cucumber.junit.CucumberOptions; | ||
import org.junit.runner.RunWith; | ||
|
||
@RunWith(Cucumber.class) | ||
@CucumberOptions( | ||
glue = "com/zerobank/step_definitions", | ||
features = "src/test/resources", | ||
dryRun = true | ||
|
||
) | ||
public class CukesRunner { | ||
|
||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.zerobank.step_definitions; | ||
|
||
import io.cucumber.java.en.Given; | ||
import io.cucumber.java.en.Then; | ||
import io.cucumber.java.en.When; | ||
|
||
public class LoginStepDefinitions { | ||
|
||
@Given("authorize user is on the login page") | ||
public void authorize_user_is_on_the_login_page() { | ||
|
||
} | ||
|
||
@When("user enters valid credentials") | ||
public void user_enters_valid_credentials() { | ||
|
||
|
||
} | ||
|
||
@Then("system displays the account summary page") | ||
public void system_displays_the_account_summary_page() { | ||
|
||
} | ||
|
||
|
||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.zerobank.utilities; | ||
|
||
public class BrowserUtils { | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.zerobank.utilities; | ||
|
||
public class ConfigurationReader { | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.zerobank.utilities; | ||
|
||
public class Driver { | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Only authorized users should be able to login to the application. | ||
|
||
# When user logs in with valid credentials, Account summary page should be displayed. | ||
|
||
|
||
# Users with wrong username or wrong password should not be able to login. | ||
# Users with blank username or password should also not be able to login. | ||
# When user tries to login with invalid information, | ||
# error message Login and/or password are wrong. should be displayed. | ||
Feature: Only authorized users should be able to login to the application | ||
|
||
|
||
|
||
Background: | ||
|
||
|
||
@positive | ||
Scenario: login with valid credentials | ||
Given authorize user is on the login page | ||
When user enters valid credentials | ||
Then system displays the account summary page | ||
|
||
|
||
|
||
|
||
Scenario: | ||
|
||
|
||
|
||
Scenario Outline: | ||
Examples: | ||
| | |