From dc960eb556f05f0d112ce5931a2491c6e254f120 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Sat, 14 Nov 2015 21:33:06 +0100 Subject: [PATCH] [FEATURE] Add tests for local sonar * In order to show some interaction in browser, test login with sonar. --- .../local-sonar/available.feature | 12 +++++++++++ .../daniel-siepmann/local-sonar/login.feature | 20 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 features/simple-examples/daniel-siepmann/local-sonar/available.feature create mode 100644 features/simple-examples/daniel-siepmann/local-sonar/login.feature diff --git a/features/simple-examples/daniel-siepmann/local-sonar/available.feature b/features/simple-examples/daniel-siepmann/local-sonar/available.feature new file mode 100644 index 0000000..914d5da --- /dev/null +++ b/features/simple-examples/daniel-siepmann/local-sonar/available.feature @@ -0,0 +1,12 @@ +Feature: Sonarqube server is available + To reduce technical debts + Developers + Should be able to inspect there debts + + Scenario: Website is delivered + Given I am on "http://localhost:9898/" + Then the response status code should be 200 + + Scenario: Website delivers Projects + Given I am on "http://localhost:9898" + Then I should see "T3-EXTENSIONS news" diff --git a/features/simple-examples/daniel-siepmann/local-sonar/login.feature b/features/simple-examples/daniel-siepmann/local-sonar/login.feature new file mode 100644 index 0000000..00065d8 --- /dev/null +++ b/features/simple-examples/daniel-siepmann/local-sonar/login.feature @@ -0,0 +1,20 @@ +Feature: Sonarqube provides a login + To enable further features + A user + Should be able to login + + Scenario: Authentication failed + Given I am on "http://localhost:9898/" + Then I follow "Log in" + And I fill in "login" with "test" + And I fill in "password" with "test" + And I press "Log in" + Then I should see "Authentication failed." + + Scenario: Authentication successfully + Given I am on "http://localhost:9898/" + Then I follow "Log in" + And I fill in "login" with "admin" + And I fill in "password" with "admin" + And I press "Log in" + Then I should see "Administrator"