Project Number Date
ApolloFullRunnerReport develop.286 30 sty 2021, 04:40

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 18s 170ms Failed
Feature Announcements
Given Login as "neuca-admin" and set token of apiUsername "super-admin-neuca" 1s 023ms
When Go to "ANNOUNCEMENTS_TAB" 092ms
And Go to manage announcements tab 052ms
And Go to add new announcement form 293ms
And Add new announcement with subject "Nowe ogłoszenie" and content "Treść" for roleGroups "ADMIN,LOGISTICIAN" 391ms
Then Verify that announcement with "Nowe ogłoszenie" is present in admin table 776ms
After Hooks.deleteAnnouncementAfterTest() 159ms
Given Login as "neuca-admin" and set token of apiUsername "super-admin-neuca" 3s 105ms
When Go to "ANNOUNCEMENTS_TAB" 071ms
And Go to manage announcements tab 054ms
And Go to add new announcement form 141ms
And Add new announcement with subject "Ogłoszenie dla ochrony" and content "Treść" for roleGroups "GUARD" 293ms
Then Login as "neuca-guard" 2s 706ms
And Verify that announcement with subject "Ogłoszenie dla ochrony" is visible 055ms
Then Login as "neuca-admin" 2s 588ms
And Verify that announcement with subject "Ogłoszenie dla ochrony" is not visible 15s 016ms
After Hooks.deleteAnnouncementAfterTest() 069ms
Given Login as "neuca-admin" and set token of apiUsername "super-admin-neuca" 2s 687ms
When Go to "ANNOUNCEMENTS_TAB" 087ms
And Go to manage announcements tab 055ms
And Go to add new announcement form 144ms
And Add new announcement with subject "Ogłoszenie dla obserwatora" and content "Treść" for roleGroups "OBSERVER" 290ms
Then Login as "neuca-observer" 2s 226ms
And Verify that announcement with subject "Ogłoszenie dla obserwatora" is visible 038ms
Then Login as "neuca-guard" 2s 082ms
And Verify that announcement with subject "Ogłoszenie dla obserwatora" is not visible 15s 010ms
After Hooks.deleteAnnouncementAfterTest() 225ms
Given Login as "neuca-admin" 1s 987ms
Then Verify that default startup tab is "ANNOUNCEMENTS_TAB" 019ms
Given Login as "hochland-admin" 1s 244ms
Then Verify that default startup tab is "TRANSPORT_TABLE" 022ms
Scenario Outline Check if it is possible to edit announcement
Steps
Given Set token of apiUsername "super-admin-neuca" 102ms
And Create announcement by JSON file "CREATE_ANNOUNCEMENT_FOR_WAREHOUSEMAN" as "super-admin-neuca" 135ms
Then Login as "neuca-warehouseman" 1s 744ms
And Verify that announcement tab is open 15s 018ms
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:135)
	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() 117ms
Scenario Outline Check if marking unread advertisements is working correctly
Steps
Given Set token of apiUsername "super-admin-neuca" 094ms
And Login as "neuca-admin" 1s 650ms
And Create announcement by JSON file "CREATE_ANNOUNCEMENT_FOR_WAREHOUSEMAN" as "super-admin-neuca" 128ms
Then Login as "neuca-warehouseman" 1s 730ms
And Verify by ID from API that announcement is visible 15s 053ms
org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//a[@href='#/announcements?max=100&page=1'] | //a[@href='/announcements?max=100&page=1']"}
  (Session info: headless chrome=88.0.4324.96)
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: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{networkConnectionEnabled=false, chrome={chromedriverVersion=88.0.4324.96 (68dba2d8a0b149a1d3afac56fa74648032bcf46b-refs/branch-heads/4324@{#1784}), userDataDir=/home/teamcity/build-agent-2/temp/buildTmp/.com.google.Chrome.m6z4WG}, timeouts={implicit=0, pageLoad=300000, script=30000}, pageLoadStrategy=normal, unhandledPromptBehavior=dismiss and notify, strictFileInteractability=false, platform=LINUX, proxy=Proxy(), goog:chromeOptions={debuggerAddress=localhost:9222}, acceptInsecureCerts=false, browserVersion=88.0.4324.96, browserName=chrome, javascriptEnabled=true, platformName=LINUX, setWindowRect=true, webauthn:extension:largeBlob=true, webauthn:virtualAuthenticators=true}]
Session ID: 7fd60090ea73b3423ee8e2059ffa63a8
*** Element info: {Using=xpath, value=//a[@href='#/announcements?max=100&page=1'] | //a[@href='/announcements?max=100&page=1']}
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:185)
	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:120)
	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)
	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:586)
	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:356)
	at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:458)
	at org.openqa.selenium.By$ByXPath.findElement(By.java:361)
	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:348)
	at org.openqa.selenium.support.pagefactory.DefaultElementLocator.findElement(DefaultElementLocator.java:69)
	at org.openqa.selenium.support.pagefactory.internal.LocatingElementHandler.invoke(LocatingElementHandler.java:38)
	at com.sun.proxy.$Proxy24.click(Unknown Source)
	at CucumberTests.Announcements.AnnouncementsTest.verifyByIDFromAPIThatAnnouncementIsVisible(AnnouncementsTest.java:129)
	at ✽.Verify by ID from API that announcement is visible(file:Features/Atom/Announcements/Announcements.feature:68)
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" 097ms
And Login as "neuca-warehouseman" 1s 576ms
Then Check counter of unread announcements 30s 072ms
And Create announcement by JSON file "CREATE_ANNOUNCEMENT_FOR_WAREHOUSEMAN" as "super-admin-neuca" 165ms
When Refresh page 3s 017ms
Then Verify that announcement tab is open 15s 019ms
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:135)
	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() 119ms