Project Number Date
ApolloFullRunnerReport develop.343 17 mar 2021, 05:04

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
Announcements 39 3 24 0 0 66 5 3 8 1m 42s 550ms Failed
Feature Announcements
Given Login as "neuca-admin" and set token of apiUsername "super-admin-neuca" 1s 032ms
When Go to "ANNOUNCEMENTS_TAB" 111ms
And Go to manage announcements tab 093ms
And Go to add new announcement form 199ms
And Add new announcement with subject "Nowe ogłoszenie" and content "Treść" for roleGroups "ADMIN,LOGISTICIAN" 338ms
Then Verify that announcement with "Nowe ogłoszenie" is present in admin table 808ms
After Hooks.deleteAnnouncementAfterTest() 162ms
Given Login as "neuca-admin" and set token of apiUsername "super-admin-neuca" 2s 661ms
When Go to "ANNOUNCEMENTS_TAB" 103ms
And Go to manage announcements tab 080ms
And Go to add new announcement form 130ms
And Add new announcement with subject "Ogłoszenie dla ochrony" and content "Treść" for roleGroups "GUARD" 268ms
Then Login as "neuca-guard" 2s 528ms
And Verify that announcement with subject "Ogłoszenie dla ochrony" is visible 047ms
Then Login as "neuca-admin" 2s 326ms
And Verify that announcement with subject "Ogłoszenie dla ochrony" is not visible 15s 034ms
After Hooks.deleteAnnouncementAfterTest() 051ms
Given Login as "neuca-admin" and set token of apiUsername "super-admin-neuca" 2s 131ms
When Go to "ANNOUNCEMENTS_TAB" 128ms
And Go to manage announcements tab 098ms
And Go to add new announcement form 149ms
And Add new announcement with subject "Ogłoszenie dla obserwatora" and content "Treść" for roleGroups "OBSERVER" 297ms
Then Login as "neuca-observer" 2s 127ms
And Verify that announcement with subject "Ogłoszenie dla obserwatora" is visible 041ms
Then Login as "neuca-guard" 1s 731ms
And Verify that announcement with subject "Ogłoszenie dla obserwatora" is not visible 15s 049ms
After Hooks.deleteAnnouncementAfterTest() 167ms
Given Login as "neuca-admin" 1s 654ms
Then Verify that default startup tab is "ANNOUNCEMENTS_TAB" 017ms
Given Login as "hochland-admin" 1s 202ms
Then Verify that default startup tab is "TRANSPORT_TABLE" 014ms
Scenario Outline Check if it is possible to edit announcement
Steps
Given Set token of apiUsername "super-admin-neuca" 094ms
And Create announcement by JSON file "CREATE_ANNOUNCEMENT_FOR_WAREHOUSEMAN" as "super-admin-neuca" 120ms
Then Login as "neuca-warehouseman" 1s 626ms
And Verify that announcement tab is open 15s 011ms
java.lang.AssertionError: Nagłówek "Ogłoszenia" nie jest widoczny
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at CucumberTests.Announcements.AnnouncementsTest.verifyThatAnnouncementTabIsOpen(AnnouncementsTest.java:145)
	at ✽.Verify that announcement tab is open(file:Features/Atom/Announcements/Announcements.feature:45)
And Verify by ID from API that announcement is visible 000ms
And Unwrap announcement 000ms
Then Check if announcement is unwrapping correctly 000ms
And Check if announcement content "Podwyżki dla wszystkich! ąśćżń" and subject "Ogłoszonko dla Magazyniera" is correctly 000ms
Given Login as "neuca-admin" 000ms
And Go to manage announcements tab 000ms
And Edit announcement and change content to "*jednak podwyżek nie będzie - hue hue" 000ms
Then Login as "neuca-warehouseman" 000ms
And Verify by ID from API that announcement is visible 000ms
And Unwrap announcement 000ms
Then Check if announcement is unwrapping correctly 000ms
And Check that announcement has an edit author 000ms
And Check if announcement content is edit correctly "*jednak podwyżek nie będzie - hue hue" 000ms
After Hooks.deleteAnnouncementAfterTest() 098ms
Scenario Outline Check if marking unread advertisements is working correctly
Steps
Given Set token of apiUsername "super-admin-neuca" 091ms
And Login as "neuca-admin" 1s 553ms
And Create announcement by JSON file "CREATE_ANNOUNCEMENT_FOR_WAREHOUSEMAN" as "super-admin-neuca" 116ms
Then Login as "neuca-warehouseman" 1s 594ms
And Verify by ID from API that announcement is visible 15s 035ms
org.openqa.selenium.TimeoutException: Expected condition failed: waiting for element to be clickable: By.xpath: //a[@href='#/announcements?max=100&page=1'] | //a[@href='/announcements?max=100&page=1'] (tried for 10 second(s) with 500 MILLISECONDS interval)
	at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:82)
	at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:231)
	at Pages.BasePage.waitUntilElementClickable(BasePage.java:205)
	at CucumberTests.Announcements.AnnouncementsTest.verifyByIDFromAPIThatAnnouncementIsVisible(AnnouncementsTest.java:138)
	at ✽.Verify by ID from API that announcement is visible(file:Features/Atom/Announcements/Announcements.feature:70)
Caused by: org.openqa.selenium.NoSuchElementException: Cannot locate an element using By.xpath: //a[@href='#/announcements?max=100&page=1'] | //a[@href='/announcements?max=100&page=1']
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T15:28:36.4Z'
System info: host: 'ns3112421', ip: '94.23.29.183', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-136-generic', java.version: '1.8.0_201'
Driver info: driver.version: unknown
	at org.openqa.selenium.support.ui.ExpectedConditions.lambda$findElement$0(ExpectedConditions.java:882)
	at java.util.Optional.orElseThrow(Optional.java:290)
	at org.openqa.selenium.support.ui.ExpectedConditions.findElement(ExpectedConditions.java:881)
	at org.openqa.selenium.support.ui.ExpectedConditions.access$000(ExpectedConditions.java:43)
	at org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:205)
	at org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:201)
	at org.openqa.selenium.support.ui.ExpectedConditions$22.apply(ExpectedConditions.java:643)
	at org.openqa.selenium.support.ui.ExpectedConditions$22.apply(ExpectedConditions.java:640)
	at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:208)
	at Pages.BasePage.waitUntilElementClickable(BasePage.java:205)
	at CucumberTests.Announcements.AnnouncementsTest.verifyByIDFromAPIThatAnnouncementIsVisible(AnnouncementsTest.java:138)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at cucumber.runtime.Utils$1.call(Utils.java:26)
	at cucumber.runtime.Timeout.timeout(Timeout.java:16)
	at cucumber.runtime.Utils.invoke(Utils.java:20)
	at cucumber.runtime.java.JavaStepDefinition.execute(JavaStepDefinition.java:57)
	at cucumber.runner.PickleStepDefinitionMatch.runStep(PickleStepDefinitionMatch.java:50)
	at cucumber.runner.TestStep.executeStep(TestStep.java:63)
	at cucumber.runner.TestStep.run(TestStep.java:49)
	at cucumber.runner.PickleStepTestStep.run(PickleStepTestStep.java:43)
	at cucumber.runner.TestCase.run(TestCase.java:45)
	at cucumber.runner.Runner.runPickle(Runner.java:40)
	at cucumber.runtime.junit.PickleRunners$WithStepDescriptions.run(PickleRunners.java:97)
	at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:68)
	at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:23)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:73)
	at cucumber.api.junit.Cucumber.runChild(Cucumber.java:122)
	at cucumber.api.junit.Cucumber.runChild(Cucumber.java:64)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at cucumber.api.junit.Cucumber$1.evaluate(Cucumber.java:131)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
And Check if announcement is wrap 000ms
And Check if announcement has a red mark "announcementOnTheTop" 000ms
And Unwrap announcement 000ms
And Check if announcement is unwrapping correctly 000ms
And Check if announcement content "Podwyżki dla wszystkich! ąśćżń" and subject "Ogłoszonko dla Magazyniera" is correctly 000ms
And Check if text bold and red exclamation mark disappear after reading announcement "announcementOnTheTop" 000ms
Then Refresh page 000ms
And Check if text bold and red exclamation mark disappear after reading announcement "announcementAtTheBottom" 000ms
After Hooks.deleteAnnouncementAfterTest() 103ms
Scenario Outline Check if announcements counter changes after adding new and reading existing announcement by user
Steps
Given Set token of apiUsername "super-admin-neuca" 096ms
And Create announcement by JSON file "CREATE_ANNOUNCEMENT_FOR_WAREHOUSEMAN" as "super-admin-neuca" 122ms
And Login as "neuca-warehouseman" 1s 571ms
And Check if announcements counter equals "1" 054ms
Then Verify that announcement tab is open 15s 051ms
java.lang.AssertionError: Nagłówek "Ogłoszenia" nie jest widoczny
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at CucumberTests.Announcements.AnnouncementsTest.verifyThatAnnouncementTabIsOpen(AnnouncementsTest.java:145)
	at ✽.Verify that announcement tab is open(file:Features/Atom/Announcements/Announcements.feature:90)
And Unwrap announcement 000ms
And Check if announcement is unwrapping correctly 000ms
And Check if announcements counter equals "" 000ms
After Hooks.deleteAnnouncementAfterTest() 093ms