From 2aa16e076a48aa80a6ebf5af92bec22a361cd259 Mon Sep 17 00:00:00 2001 From: Bernadett Fekete Date: Wed, 13 Jan 2021 00:00:25 +0200 Subject: [PATCH] Added ui+performance tests --- .classpath | 38 ++ .gitignore | 1 + .project | 23 + .settings/org.eclipse.jdt.core.prefs | 8 + SCRUM performance test.jmx | 522 ++++++++++++++++++ pom.xml | 57 +- .../test/SCRUMCommentStepDefinition.java | 116 ++++ .../test/SCRUMSprintUpdateStepDefinition.java | 20 +- .../test/SCRUMTitleStepDefinition.java | 26 +- ...SCRUMTitle.feature => 1SCRUMTitle.feature} | 4 +- ...ate.feature => 2SCRUMSprintUpdate.feature} | 2 +- .../SCRUMCommentAddValidation.feature | 11 + .../mesteri2015/SCRUMCommentCanceling.feature | 18 + .../mesteri2015/SCRUMCommentCycle.feature | 58 ++ .../mesteri2015/SCRUMEmptyCommentList.feature | 8 + target/classes/META-INF/MANIFEST.MF | 4 +- .../cucumberScumSapientia/pom.properties | 6 +- .../cucumberScumSapientia/pom.xml | 57 +- ...o.sapientia.mesteri2015.SCRUMTitleTest.xml | 50 +- ...o.sapientia.mesteri2015.SCRUMTitleTest.txt | 2 +- .../mesteri2015/SCRUMSprintUpdate.feature | 7 - .../sapientia/mesteri2015/SCRUMTitle.feature | 7 - 22 files changed, 927 insertions(+), 118 deletions(-) create mode 100644 .classpath create mode 100644 .project create mode 100644 .settings/org.eclipse.jdt.core.prefs create mode 100644 SCRUM performance test.jmx create mode 100644 src/test/java/ro/sapientia/mesteri2015/test/SCRUMCommentStepDefinition.java rename src/test/resources/ro/sapientia/mesteri2015/{SCRUMTitle.feature => 1SCRUMTitle.feature} (56%) rename src/test/resources/ro/sapientia/mesteri2015/{SCRUMSprintUpdate.feature => 2SCRUMSprintUpdate.feature} (99%) create mode 100644 src/test/resources/ro/sapientia/mesteri2015/SCRUMCommentAddValidation.feature create mode 100644 src/test/resources/ro/sapientia/mesteri2015/SCRUMCommentCanceling.feature create mode 100644 src/test/resources/ro/sapientia/mesteri2015/SCRUMCommentCycle.feature create mode 100644 src/test/resources/ro/sapientia/mesteri2015/SCRUMEmptyCommentList.feature delete mode 100644 target/test-classes/ro/sapientia/mesteri2015/SCRUMSprintUpdate.feature delete mode 100644 target/test-classes/ro/sapientia/mesteri2015/SCRUMTitle.feature diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..90f81ed --- /dev/null +++ b/.classpath @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.gitignore b/.gitignore index a1c2a23..c836fce 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* +/target/ diff --git a/.project b/.project new file mode 100644 index 0000000..883e16a --- /dev/null +++ b/.project @@ -0,0 +1,23 @@ + + + sapi2020test + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..5723a0f --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,8 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 +org.eclipse.jdt.core.compiler.compliance=1.5 +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore +org.eclipse.jdt.core.compiler.release=disabled +org.eclipse.jdt.core.compiler.source=1.5 diff --git a/SCRUM performance test.jmx b/SCRUM performance test.jmx new file mode 100644 index 0000000..f80480e --- /dev/null +++ b/SCRUM performance test.jmx @@ -0,0 +1,522 @@ + + + + + + false + true + false + + + + + + + + continue + + false + 100 + + 10 + 10 + false + + + true + + + + + + + localhost + 8080 + + + + GET + true + false + true + false + + + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + true + + + + + continue + + false + 100 + + 10 + 10 + false + + + true + + + + + + + localhost + 8080 + + + story/1 + GET + true + false + true + false + + + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + true + + + + + continue + + false + 100 + + 10 + 10 + false + + + true + + + + + + + localhost + 8080 + + + story/1/comments/add + GET + true + false + true + false + + + + + + + + 200 + + + Assertion.response_code + false + 8 + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + true + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + true + + + + + + + + diff --git a/pom.xml b/pom.xml index 0158847..ac58ffd 100644 --- a/pom.xml +++ b/pom.xml @@ -5,27 +5,38 @@ 0.0.1-SNAPSHOT - junit - junit - 4.11 - test - - - org.seleniumhq.selenium - selenium-java - 2.45.0 - - - info.cukes - cucumber-java - 1.1.2 - test - - - info.cukes - cucumber-junit - 1.1.2 - test - - + junit + junit + 4.11 + test + + + org.seleniumhq.selenium + selenium-java + 3.141.59 + + + info.cukes + cucumber-java + 1.2.5 + test + + + info.cukes + cucumber-junit + 1.2.5 + test + + + org.seleniumhq.selenium + selenium-firefox-driver + 3.141.59 + + + info.cukes + cucumber-picocontainer + 1.2.5 + test + + \ No newline at end of file diff --git a/src/test/java/ro/sapientia/mesteri2015/test/SCRUMCommentStepDefinition.java b/src/test/java/ro/sapientia/mesteri2015/test/SCRUMCommentStepDefinition.java new file mode 100644 index 0000000..0c6532a --- /dev/null +++ b/src/test/java/ro/sapientia/mesteri2015/test/SCRUMCommentStepDefinition.java @@ -0,0 +1,116 @@ +package ro.sapientia.mesteri2015.test; + +import java.util.List; +import java.util.concurrent.TimeUnit; + +import org.junit.Assert; +import org.openqa.selenium.By; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.firefox.FirefoxDriver; + +import cucumber.api.java.After; +import cucumber.api.java.Before; +import cucumber.api.java.en.Given; +import cucumber.api.java.en.Then; +import cucumber.api.java.en.When; + +public class SCRUMCommentStepDefinition { + + protected WebDriver driver; + + @Before + public void setup() { + driver = new FirefoxDriver(); + } + + @After + public void closeBrowser() { + driver.quit(); + } + + @When("^I click on \"([^\"]*)\" button$") + public void i_press_button(String buttonId) throws Throwable { + WebElement button = driver.findElement(By.id(buttonId)); + button.click(); + } + + @When("^I enter \"([^\"]*)\" in the \"([^\"]*)\" textbox$") + public void i_enter_in_the_textbox(String inputText, String textBoxId) throws Throwable { + WebElement textBox = driver.findElement(By.id(textBoxId)); + textBox.clear(); + textBox.sendKeys(inputText); + } + + @Then("^I should see (\\d+)x \"([^\"]*)\" in the story's comment list$") + public void i_should_see_x_in_the_story_s_comment_list(int expectedCount, String commentMessage) throws Throwable { + List comments = driver + .findElements(By.xpath("//p[@class='comment-message' and normalize-space()='" + commentMessage + "']")); + Assert.assertEquals(expectedCount, comments.size()); + } + + @Then("^I should see an error$") + public void i_should_see_an_error() throws Throwable { + WebElement error = driver.findElement(By.id("error-title")); + } + + @When("^I delete the comment with \"([^\"]*)\" message$") + public void i_delete_the_comment_with_message(String commentMessage) throws Throwable { + WebElement deleteButton = driver.findElement(By.xpath("//p[@class='comment-message' and normalize-space()='" + + commentMessage + "']//following::a[@id='delete-comment-link']")); + deleteButton.click(); + + WebElement confirmationDeleteButton = driver.findElement(By.id("delete-comment-button")); + confirmationDeleteButton.click(); + } + + @Then("^I see that comments sections states \"([^\"]*)\"$") + public void i_see_that_comments_sections_states(String expectedEmptyMessage) throws Throwable { + WebElement emptyMessage = driver + .findElement(By.xpath("//div[@id='comment-list']/p[normalize-space()='There are no comments yet.']")); + Assert.assertNotNull(emptyMessage); + } + + @Then("^comment list contains (\\d+)x comments$") + public void comment_list_contains_x_comments(int expectedCount) throws Throwable { + List comments = driver + .findElements(By.xpath("//div[@id='comment-list']/div[contains(@class, 'comment-item')]")); + Assert.assertEquals(expectedCount, comments.size()); + } + + @Given("^I am on the view page of a new story called \"([^\"]*)\" with (\\d+)x comment$") + public void i_am_on_the_view_page_of_a_new_story_called_with_x_comment(String storyName, int nrOfComments) + throws Throwable { + driver.get("http://localhost:8080/"); + + WebElement addLink = driver.findElement(By.id("add-button")); + addLink.click(); + + WebElement titleTextBox = driver.findElement(By.id("story-title")); + titleTextBox.clear(); + titleTextBox.sendKeys(storyName); + + WebElement addButton = driver.findElement(By.id("add-story-button")); + addButton.click(); + + for (int i = 1; i <= nrOfComments; i++) { + WebElement addCommentLink = driver.findElement(By.id("add-button")); + addCommentLink.click(); + + WebElement commentTextBox = driver.findElement(By.id("comment-message")); + commentTextBox.clear(); + commentTextBox.sendKeys(storyName + "Comment " + i); + + WebElement addCommentButton = driver.findElement(By.id("add-comment-button")); + addCommentButton.click(); + } + } + + @Then("^I should see \"([^\"]*)\" story's view page$") + public void i_should_see_story_s_view_page(String storyName) throws Throwable { + WebElement titleText = driver.findElement(By.id("story-title")); + String result = titleText.getText(); + + Assert.assertEquals(result, storyName); + } +} diff --git a/src/test/java/ro/sapientia/mesteri2015/test/SCRUMSprintUpdateStepDefinition.java b/src/test/java/ro/sapientia/mesteri2015/test/SCRUMSprintUpdateStepDefinition.java index 76e2033..0831057 100644 --- a/src/test/java/ro/sapientia/mesteri2015/test/SCRUMSprintUpdateStepDefinition.java +++ b/src/test/java/ro/sapientia/mesteri2015/test/SCRUMSprintUpdateStepDefinition.java @@ -5,6 +5,7 @@ import org.junit.Assert; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; +import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.Keys; import org.openqa.selenium.WebElement; import org.openqa.selenium.By; @@ -24,6 +25,12 @@ public void setup() { driver = new FirefoxDriver(); } + @After + public void closeBrowser() { + driver.quit(); + } + + @Given("^I edit the scrum list's first story$") public void I_edit_the_scrum_list_s_first_story() throws Throwable { // Express the Regexp above with the code you wish you had @@ -44,12 +51,12 @@ public void I_enter_in_the_title_textbox_and_I_push_the_update_button(String upd titleField.sendKeys(Keys.CONTROL + "a"); titleField.sendKeys(Keys.DELETE); titleField.sendKeys(updateTitle); - + WebElement updateStoryButton = driver.findElement(By.id("update-story-button")); updateStoryButton.click(); - + } - + @Then("^I should get result \"([^\"]*)\" in new stories list$") public void I_should_get_result_in_new_stories_list(String expectedResult) throws Throwable { // Express the Regexp above with the code you wish you had @@ -59,12 +66,5 @@ public void I_should_get_result_in_new_stories_list(String expectedResult) throw // Verify that result of 2+2 is 4 Assert.assertEquals(result, expectedResult); //Assert.assertNotSame(result, expectedResult); - driver.close(); } - - @After - public void closeBrowser() { - driver.quit(); - } - } diff --git a/src/test/java/ro/sapientia/mesteri2015/test/SCRUMTitleStepDefinition.java b/src/test/java/ro/sapientia/mesteri2015/test/SCRUMTitleStepDefinition.java index df5d926..7901cb1 100644 --- a/src/test/java/ro/sapientia/mesteri2015/test/SCRUMTitleStepDefinition.java +++ b/src/test/java/ro/sapientia/mesteri2015/test/SCRUMTitleStepDefinition.java @@ -5,7 +5,9 @@ import org.junit.Assert; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; +import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.WebElement; +import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.By; import cucumber.api.java.After; @@ -23,16 +25,20 @@ public void setup() { driver = new FirefoxDriver(); } - @Given("^I open the scrum tool add page$") - public void I_open_the_scrum_tool_add_page() throws Throwable { + @After + public void closeBrowser() { + driver.quit(); + } + + @Given("^I open the scrum tool$") + public void I_open_the_scrum_tool() throws Throwable { // Set implicit wait of 10 seconds and launch google driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS); driver.get("http://localhost:8080/"); } - @When("^I enter \"([^\"]*)\" in the title textbox and I push the add button$") - public void I_enter_in_the_title_textbox_and_I_push_the_add_button( - String additionTerms) throws Throwable { + @When("^I access the add story page and enter \"([^\"]*)\" in the title textbox and I push the add button$") + public void I_access_the_add_story_page_and_enter_in_the_title_textbox_and_i_push_the_add_button(String additionTerms) throws Throwable { WebElement addButton = driver.findElement(By.id("add-button")); addButton.click(); @@ -47,20 +53,12 @@ public void I_enter_in_the_title_textbox_and_I_push_the_add_button( } @Then("^I should get result \"([^\"]*)\" in stories list$") - public void I_should_get_result_in_stories_list(String expectedResult) - throws Throwable { + public void I_should_get_result_in_stories_list(String expectedResult) throws Throwable { WebElement calculatorTextBox = driver.findElement(By.id("story-title")); String result = calculatorTextBox.getText(); // Verify that result of 2+2 is 4 Assert.assertEquals(result, expectedResult); - driver.close(); } - - @After - public void closeBrowser() { - driver.quit(); - } - } diff --git a/src/test/resources/ro/sapientia/mesteri2015/SCRUMTitle.feature b/src/test/resources/ro/sapientia/mesteri2015/1SCRUMTitle.feature similarity index 56% rename from src/test/resources/ro/sapientia/mesteri2015/SCRUMTitle.feature rename to src/test/resources/ro/sapientia/mesteri2015/1SCRUMTitle.feature index 3e5cd5f..4c35948 100644 --- a/src/test/resources/ro/sapientia/mesteri2015/SCRUMTitle.feature +++ b/src/test/resources/ro/sapientia/mesteri2015/1SCRUMTitle.feature @@ -2,6 +2,6 @@ Feature: Check if the scrum story add As Sapientia scrum tool user I want to be able to add stories Scenario: Title1 - Given I open the scrum tool add page - When I enter "title1" in the title textbox and I push the add button + Given I open the scrum tool + When I access the add story page and enter "title1" in the title textbox and I push the add button Then I should get result "title1" in stories list \ No newline at end of file diff --git a/src/test/resources/ro/sapientia/mesteri2015/SCRUMSprintUpdate.feature b/src/test/resources/ro/sapientia/mesteri2015/2SCRUMSprintUpdate.feature similarity index 99% rename from src/test/resources/ro/sapientia/mesteri2015/SCRUMSprintUpdate.feature rename to src/test/resources/ro/sapientia/mesteri2015/2SCRUMSprintUpdate.feature index 8e565f1..5ace810 100644 --- a/src/test/resources/ro/sapientia/mesteri2015/SCRUMSprintUpdate.feature +++ b/src/test/resources/ro/sapientia/mesteri2015/2SCRUMSprintUpdate.feature @@ -4,4 +4,4 @@ Feature: Check if the scrum update works Scenario: UpdateFirst Given I edit the scrum list's first story When I enter "updatefirstnew" in the title textbox and I push the update button - Then I should get result "updatefirstnew" in new stories list \ No newline at end of file + Then I should get result "updatefirstnew" in new stories list diff --git a/src/test/resources/ro/sapientia/mesteri2015/SCRUMCommentAddValidation.feature b/src/test/resources/ro/sapientia/mesteri2015/SCRUMCommentAddValidation.feature new file mode 100644 index 0000000..888f373 --- /dev/null +++ b/src/test/resources/ro/sapientia/mesteri2015/SCRUMCommentAddValidation.feature @@ -0,0 +1,11 @@ +@Comment +Feature: Adding incorrect comments displays error + A sapientia scrum tool user wants to add comments safely, so input data is validated and a proper error is presented to the user. + + Scenario: Adding empty comments should show an error message + Given I am on the view page of a new story called "Adding empty comments" with 0x comment + When I click on "add-button" button + And I enter "" in the "comment-message" textbox + And I click on "add-comment-button" button + Then I should see an error + diff --git a/src/test/resources/ro/sapientia/mesteri2015/SCRUMCommentCanceling.feature b/src/test/resources/ro/sapientia/mesteri2015/SCRUMCommentCanceling.feature new file mode 100644 index 0000000..e8c7195 --- /dev/null +++ b/src/test/resources/ro/sapientia/mesteri2015/SCRUMCommentCanceling.feature @@ -0,0 +1,18 @@ +@Comment +Feature: Comment actions cancelling + A sapientia scrum tool user wants to be able to cancel initiated commenting actions and prevent any state change. + + Scenario: Cancel adding a new comment + Given I am on the view page of a new story called "Cancel adding a new comment" with 2x comment + When I click on "add-button" button + And I enter "This is a comment" in the "comment-message" textbox + And I click on "cancel-add-comment-button" button + Then I should see "Cancel adding a new comment" story's view page + And comment list contains 2x comments + + Scenario: Cancel deleting a comment + Given I am on the view page of a new story called "Cancel deleting a comment" with 2x comment + When I click on "delete-comment-link" button + And I click on "cancel-delete-comment-button" button + Then I should see "Cancel deleting a comment" story's view page + And comment list contains 2x comments diff --git a/src/test/resources/ro/sapientia/mesteri2015/SCRUMCommentCycle.feature b/src/test/resources/ro/sapientia/mesteri2015/SCRUMCommentCycle.feature new file mode 100644 index 0000000..6c3513e --- /dev/null +++ b/src/test/resources/ro/sapientia/mesteri2015/SCRUMCommentCycle.feature @@ -0,0 +1,58 @@ +#Author: your.email@your.domain.com +#Keywords Summary : +#Feature: List of scenarios. +#Scenario: Business rule through list of steps with arguments. +#Given: Some precondition step +#When: Some key actions +#Then: To observe outcomes or validation +#And,But: To enumerate more Given,When,Then steps +#Scenario Outline: List of steps for data-driven as an Examples and +#Examples: Container for s table +#Background: List of steps run before each of the scenarios +#""" (Doc Strings) +#| (Data Tables) +#@ (Tags/Labels):To group Scenarios +#<> (placeholder) +#"" +## (Comments) +#Sample Feature Definition Template + +@Comment +Feature: Comment basic lifecycle + A sapientia scrum tool user must be able to Create, Read and Delete comments on a story. + + Scenario: Do a comment create-read-delete cycle on first story item + Given I am on the view page of a new story called "Comment basic lifecycle" with 2x comment + + # Create the first comment + When I click on "add-button" button + And I enter "This is a comment" in the "comment-message" textbox + And I click on "add-comment-button" button + + # Check first comment is visible + Then I should see 1x "This is a comment" in the story's comment list + + # Create the second comment + When I click on "add-button" button + And I enter "This is a second comment" in the "comment-message" textbox + And I click on "add-comment-button" button + + # Check both comments are visible + Then I should see 1x "This is a comment" in the story's comment list + And I should see 1x "This is a second comment" in the story's comment list + + # Delete the first comment + When I delete the comment with "This is a comment" message + + # Check only second comment is visible + Then I should see 0x "This is a comment" in the story's comment list + And I should see 1x "This is a second comment" in the story's comment list + + # Delete the second comment + When I delete the comment with "This is a second comment" message + + # Check none of the comments is visible + Then I should see 0x "This is a comment" in the story's comment list + And I should see 0x "This is a second comment" in the story's comment list + + diff --git a/src/test/resources/ro/sapientia/mesteri2015/SCRUMEmptyCommentList.feature b/src/test/resources/ro/sapientia/mesteri2015/SCRUMEmptyCommentList.feature new file mode 100644 index 0000000..33f915d --- /dev/null +++ b/src/test/resources/ro/sapientia/mesteri2015/SCRUMEmptyCommentList.feature @@ -0,0 +1,8 @@ +@Comment +Feature: Empty commentlist + A sapientia scrum tool user wants to see a special message when on a story does not have any comments yet. + + Scenario: Validate the empty-message of a newly created story. + When I am on the view page of a new story called "Empty commentlist story" with 0x comment + Then I see that comments sections states "There are no comments yet." + And comment list contains 0x comments diff --git a/target/classes/META-INF/MANIFEST.MF b/target/classes/META-INF/MANIFEST.MF index 4172621..641c181 100644 --- a/target/classes/META-INF/MANIFEST.MF +++ b/target/classes/META-INF/MANIFEST.MF @@ -1,5 +1,5 @@ Manifest-Version: 1.0 -Built-By: sapi -Build-Jdk: 11.0.9 +Built-By: bernadett.fekete +Build-Jdk: 12.0.1 Created-By: Maven Integration for Eclipse diff --git a/target/classes/META-INF/maven/CucumberScrumSapientia/cucumberScumSapientia/pom.properties b/target/classes/META-INF/maven/CucumberScrumSapientia/cucumberScumSapientia/pom.properties index 585074e..0c604b1 100644 --- a/target/classes/META-INF/maven/CucumberScrumSapientia/cucumberScumSapientia/pom.properties +++ b/target/classes/META-INF/maven/CucumberScrumSapientia/cucumberScumSapientia/pom.properties @@ -1,7 +1,7 @@ #Generated by Maven Integration for Eclipse -#Thu Nov 12 19:29:30 EET 2020 -m2e.projectLocation=/home/sapi/git/sapi02 -m2e.projectName=SCRUMSeleniumCucumberTest +#Tue Jan 12 20:40:12 EET 2021 +m2e.projectLocation=C\:\\Users\\bernadett.fekete\\Documents\\GitHub\\sapi2020test +m2e.projectName=sapi2020test groupId=CucumberScrumSapientia artifactId=cucumberScumSapientia version=0.0.1-SNAPSHOT diff --git a/target/classes/META-INF/maven/CucumberScrumSapientia/cucumberScumSapientia/pom.xml b/target/classes/META-INF/maven/CucumberScrumSapientia/cucumberScumSapientia/pom.xml index 0158847..ac58ffd 100644 --- a/target/classes/META-INF/maven/CucumberScrumSapientia/cucumberScumSapientia/pom.xml +++ b/target/classes/META-INF/maven/CucumberScrumSapientia/cucumberScumSapientia/pom.xml @@ -5,27 +5,38 @@ 0.0.1-SNAPSHOT - junit - junit - 4.11 - test - - - org.seleniumhq.selenium - selenium-java - 2.45.0 - - - info.cukes - cucumber-java - 1.1.2 - test - - - info.cukes - cucumber-junit - 1.1.2 - test - - + junit + junit + 4.11 + test + + + org.seleniumhq.selenium + selenium-java + 3.141.59 + + + info.cukes + cucumber-java + 1.2.5 + test + + + info.cukes + cucumber-junit + 1.2.5 + test + + + org.seleniumhq.selenium + selenium-firefox-driver + 3.141.59 + + + info.cukes + cucumber-picocontainer + 1.2.5 + test + + \ No newline at end of file diff --git a/target/surefire-reports/TEST-ro.sapientia.mesteri2015.SCRUMTitleTest.xml b/target/surefire-reports/TEST-ro.sapientia.mesteri2015.SCRUMTitleTest.xml index 4b57c42..965d21d 100644 --- a/target/surefire-reports/TEST-ro.sapientia.mesteri2015.SCRUMTitleTest.xml +++ b/target/surefire-reports/TEST-ro.sapientia.mesteri2015.SCRUMTitleTest.xml @@ -1,10 +1,11 @@ - + - - + + + @@ -15,45 +16,44 @@ - - + + - + - + - - + + - + - - - + + + - - - + + - - + + - - - + + + - + @@ -61,12 +61,12 @@ - + - + - + \ No newline at end of file diff --git a/target/surefire-reports/ro.sapientia.mesteri2015.SCRUMTitleTest.txt b/target/surefire-reports/ro.sapientia.mesteri2015.SCRUMTitleTest.txt index 6de8460..9c7c93e 100644 --- a/target/surefire-reports/ro.sapientia.mesteri2015.SCRUMTitleTest.txt +++ b/target/surefire-reports/ro.sapientia.mesteri2015.SCRUMTitleTest.txt @@ -1,4 +1,4 @@ ------------------------------------------------------------------------------- Test set: ro.sapientia.mesteri2015.SCRUMTitleTest ------------------------------------------------------------------------------- -Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 78.047 sec +Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 30.385 sec diff --git a/target/test-classes/ro/sapientia/mesteri2015/SCRUMSprintUpdate.feature b/target/test-classes/ro/sapientia/mesteri2015/SCRUMSprintUpdate.feature deleted file mode 100644 index 8e565f1..0000000 --- a/target/test-classes/ro/sapientia/mesteri2015/SCRUMSprintUpdate.feature +++ /dev/null @@ -1,7 +0,0 @@ -Feature: Check if the scrum update works - As Sapientia scrum tool user I want to be able to update a story - - Scenario: UpdateFirst - Given I edit the scrum list's first story - When I enter "updatefirstnew" in the title textbox and I push the update button - Then I should get result "updatefirstnew" in new stories list \ No newline at end of file diff --git a/target/test-classes/ro/sapientia/mesteri2015/SCRUMTitle.feature b/target/test-classes/ro/sapientia/mesteri2015/SCRUMTitle.feature deleted file mode 100644 index 3e5cd5f..0000000 --- a/target/test-classes/ro/sapientia/mesteri2015/SCRUMTitle.feature +++ /dev/null @@ -1,7 +0,0 @@ -Feature: Check if the scrum story add - As Sapientia scrum tool user I want to be able to add stories - - Scenario: Title1 - Given I open the scrum tool add page - When I enter "title1" in the title textbox and I push the add button - Then I should get result "title1" in stories list \ No newline at end of file