Skip to content

Commit

Permalink
day01_initial_setup
Browse files Browse the repository at this point in the history
  • Loading branch information
cmert2017 committed Jan 13, 2021
0 parents commit c0eacb3
Show file tree
Hide file tree
Showing 16 changed files with 208 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/aws.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions ZeroBank.iml
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" />
Empty file added configuration.properties
Empty file.
38 changes: 38 additions & 0 deletions pom.xml
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>
18 changes: 18 additions & 0 deletions src/test/java/com/zerobank/runners/CukesRunner.java
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() {

}



}
4 changes: 4 additions & 0 deletions src/test/java/com/zerobank/utilities/BrowserUtils.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.zerobank.utilities;

public class BrowserUtils {
}
4 changes: 4 additions & 0 deletions src/test/java/com/zerobank/utilities/ConfigurationReader.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.zerobank.utilities;

public class ConfigurationReader {
}
4 changes: 4 additions & 0 deletions src/test/java/com/zerobank/utilities/Driver.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.zerobank.utilities;

public class Driver {
}
32 changes: 32 additions & 0 deletions src/test/resources/features/Login.feature
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:
| |

0 comments on commit c0eacb3

Please sign in to comment.