Project Number Date
ApolloFullRunnerReport master.297 04 lut 2021, 18:12

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
Announcements 40 3 22 0 0 65 5 3 8 2m 17s 736ms Failed
Feature Announcements
Given Login as "neuca-admin" and set token of apiUsername "super-admin-neuca" 1s 035ms
When Go to "ANNOUNCEMENTS_TAB" 097ms
And Go to manage announcements tab 111ms
And Go to add new announcement form 417ms
And Add new announcement with subject "Nowe ogłoszenie" and content "Treść" for roleGroups "ADMIN,LOGISTICIAN" 370ms
Then Verify that announcement with "Nowe ogłoszenie" is present in admin table 845ms
After Hooks.deleteAnnouncementAfterTest() 163ms
Given Login as "neuca-admin" and set token of apiUsername "super-admin-neuca" 3s 042ms
When Go to "ANNOUNCEMENTS_TAB" 088ms
And Go to manage announcements tab 104ms
And Go to add new announcement form 164ms
And Add new announcement with subject "Ogłoszenie dla ochrony" and content "Treść" for roleGroups "GUARD" 321ms
Then Login as "neuca-guard" 2s 792ms
And Verify that announcement with subject "Ogłoszenie dla ochrony" is visible 039ms
Then Login as "neuca-admin" 2s 405ms
And Verify that announcement with subject "Ogłoszenie dla ochrony" is not visible 15s 004ms
After Hooks.deleteAnnouncementAfterTest() 065ms
Given Login as "neuca-admin" and set token of apiUsername "super-admin-neuca" 2s 625ms
When Go to "ANNOUNCEMENTS_TAB" 082ms
And Go to manage announcements tab 109ms
And Go to add new announcement form 169ms
And Add new announcement with subject "Ogłoszenie dla obserwatora" and content "Treść" for roleGroups "OBSERVER" 330ms
Then Login as "neuca-observer" 2s 252ms
And Verify that announcement with subject "Ogłoszenie dla obserwatora" is visible 036ms
Then Login as "neuca-guard" 1s 984ms
And Verify that announcement with subject "Ogłoszenie dla obserwatora" is not visible 15s 032ms
After Hooks.deleteAnnouncementAfterTest() 226ms
Given Login as "neuca-admin" 1s 847ms
Then Verify that default startup tab is "ANNOUNCEMENTS_TAB" 019ms
Given Login as "hochland-admin" 1s 177ms
Then Verify that default startup tab is "TRANSPORT_TABLE" 016ms
Scenario Outline Check if it is possible to edit announcement
Steps
Given Set token of apiUsername "super-admin-neuca" 090ms
And Create announcement by JSON file "CREATE_ANNOUNCEMENT_FOR_WAREHOUSEMAN" as "super-admin-neuca" 132ms
Then Login as "neuca-warehouseman" 1s 843ms
And Verify that announcement tab is open 15s 059ms
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:139)
	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
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
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() 104ms
Scenario Outline Check if marking unread advertisements is working correctly
Steps
Given Set token of apiUsername "super-admin-neuca" 095ms
And Login as "neuca-admin" 1s 904ms
And Create announcement by JSON file "CREATE_ANNOUNCEMENT_FOR_WAREHOUSEMAN" as "super-admin-neuca" 139ms
Then Login as "neuca-warehouseman" 1s 642ms
And Verify by ID from API that announcement is visible 15s 026ms
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:132)
	at ✽.Verify by ID from API that announcement is visible(file:Features/Atom/Announcements/Announcements.feature:68)
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-128-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:132)
	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)
Then Check if announcement is wrap 000ms
Then Check if announcement has a red mark "announcementOnTheTop" 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
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() 117ms
Scenario Outline Adding counter of unread announcements
Steps
Given Set token of apiUsername "super-admin-neuca" 095ms
And Login as "neuca-warehouseman" 1s 712ms
Then Check counter of unread announcements 30s 085ms
And Create announcement by JSON file "CREATE_ANNOUNCEMENT_FOR_WAREHOUSEMAN" as "super-admin-neuca" 180ms
When Refresh page 2s 154ms
Then Verify that announcement tab is open 15s 045ms
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:139)
	at ✽.Verify that announcement tab is open(file:Features/Atom/Announcements/Announcements.feature:88)
And Check if the number of unread announcement is higher by one 000ms
And Check if announcement is unwrapping correctly 000ms
When Refresh page 000ms
And Check if the number of unread announcements is the same as at the beginning 000ms
After Hooks.deleteAnnouncementAfterTest() 128ms