Project Number Date
ApolloFullRunnerReport develop.361 28 mar 2021, 06:40

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
Transport Form - Discrepancy Report scenarios 67 4 18 0 0 89 8 4 12 4m 26s 989ms Failed
Feature Transport Form - Discrepancy Report scenarios
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 1s 392ms
And Create transport "CREATE_DELIVERY" by JSON file as "super-admin-hochland" 1s 497ms
And Go to transport details "DELIVERY" 4s 761ms
When Open section: "discrepancy-report-panel" 1s 069ms
Then Verify that no discrepancies found label is visible in discrepancy report section 061ms
And Select "NIE" in the "insp.-accord.-with-ins." 2s 434ms
And Verify that discrepancy report custom fields are visible in discrepancy report section 105ms
After Hooks.deleteTransportAfterTest() 110ms
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 1s 324ms
And Get inputs from database "EDIT_DELIVERY" "super-admin-hochland" 002ms
And Create transport "CREATE_DELIVERY" by JSON file as "super-admin-hochland" 1s 363ms
And Go to transport details "DELIVERY" 4s 715ms
And Fill transport form 35s 955ms
And Click "save-transport-and-close" save button and wait for form to disappear 16s 123ms
When Go to transport details "DELIVERY" 4s 462ms
Then Select "NIE" in the "insp.-accord.-with-ins." 2s 443ms
And Click "save-transport" save button 731ms
And Wait "2" seconds 2s
And Verify that discrepancy report section is open 031ms
And Verify that discrepancy report section contains validation errors 019ms
After Hooks.deleteTransportAfterTest() 215ms
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 1s 423ms
And Create transport "CREATE_DELIVERY" by JSON file as "super-admin-hochland" 1s 347ms
When Go to transport details "DELIVERY" 4s 702ms
Then Verify that discrepancy report section is available 037ms
And Open section: "discrepancy-report-panel" 1s 062ms
And Verify that generate new discrepancy report button is visible 039ms
After Hooks.deleteTransportAfterTest() 107ms
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 1s 341ms
And Create transport "CREATE_OWN_COLLECTION" by JSON file as "super-admin-hochland" 1s 255ms
When Go to transport details "OWN_COLLECTION" 4s 640ms
Then Verify that discrepancy report section is available 046ms
And Open section: "discrepancy-report-panel" 1s 058ms
And Verify that generate new discrepancy report button is visible 033ms
After Hooks.deleteTransportAfterTest() 101ms
Scenario Outline Check if discrepancy report section is available
Steps
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 1s 348ms
And Create transport "CREATE_OWN_COLLECTION_POWDER_FACTORY" by JSON file as "super-admin-hochland" 099ms
java.lang.AssertionError: 1 expectation failed.
Expected status code <200> but was <422>.

	at sun.reflect.GeneratedConstructorAccessor215.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
	at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:77)
	at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:250)
	at io.restassured.internal.ResponseSpecificationImpl$HamcrestAssertionClosure.validate(ResponseSpecificationImpl.groovy:494)
	at io.restassured.internal.ResponseSpecificationImpl$HamcrestAssertionClosure$validate$1.call(Unknown Source)
	at io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1750)
	at sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1225)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:822)
	at io.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)
	at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:47)
	at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:57)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:185)
	at io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1755)
	at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1225)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:822)
	at io.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)
	at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:47)
	at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:57)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:185)
	at io.restassured.internal.RequestSpecificationImpl.post(RequestSpecificationImpl.groovy:175)
	at io.restassured.internal.RequestSpecificationImpl.post(RequestSpecificationImpl.groovy)
	at Utils.RestUtils.RestUtil.postObjectToApolloApi(RestUtil.java:64)
	at CucumberTests.Transport.CreateTransport.createByJSONFileAs(CreateTransport.java:76)
	at ✽.Create transport "CREATE_OWN_COLLECTION_POWDER_FACTORY" by JSON file as "super-admin-hochland"(file:Features/Atom/Transport/TransportForm/DiscrepancyReport.feature:37)
When Go to transport details "OWN_COLLECTION_POWDER_FACTORY" 000ms
Then Verify that discrepancy report section is available 000ms
And Open section: "discrepancy-report-panel" 000ms
And Verify that generate new discrepancy report button is visible 000ms
After Hooks.deleteTransportAfterTest() 000ms
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 1s 213ms
And Create transport "CREATE_EXPORT" by JSON file as "super-admin-hochland" 1s 382ms
When Go to transport details "EXPORT" 5s 612ms
Then Verify that discrepancy report section is available 035ms
And Open section: "discrepancy-report-panel" 1s 082ms
And Verify that generate new discrepancy report button is visible 035ms
After Hooks.deleteTransportAfterTest() 134ms
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 1s 342ms
And Create transport "CREATE_TRANSFER_BETWEEN_WAREHOUSES" by JSON file as "super-admin-hochland" 1s 180ms
When Go to transport details "TRANSFER_BETWEEN_WAREHOUSES" 4s 650ms
Then Verify that discrepancy report section is available 031ms
And Open section: "discrepancy-report-panel" 1s 063ms
And Verify that generate new discrepancy report button is visible 037ms
After Hooks.deleteTransportAfterTest() 056ms
Scenario Outline Check if discrepancy report section is not available
Steps
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 1s 281ms
And Create transport "CREATE_CISTERN_DELIVERY" by JSON file as "super-admin-hochland" 084ms
java.lang.AssertionError: 1 expectation failed.
Expected status code <200> but was <422>.

	at sun.reflect.GeneratedConstructorAccessor215.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
	at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:77)
	at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:250)
	at io.restassured.internal.ResponseSpecificationImpl$HamcrestAssertionClosure.validate(ResponseSpecificationImpl.groovy:494)
	at io.restassured.internal.ResponseSpecificationImpl$HamcrestAssertionClosure$validate$1.call(Unknown Source)
	at io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1750)
	at sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1225)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:822)
	at io.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)
	at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:47)
	at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:57)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:185)
	at io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1755)
	at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1225)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:822)
	at io.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)
	at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:47)
	at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:57)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:185)
	at io.restassured.internal.RequestSpecificationImpl.post(RequestSpecificationImpl.groovy:175)
	at io.restassured.internal.RequestSpecificationImpl.post(RequestSpecificationImpl.groovy)
	at Utils.RestUtils.RestUtil.postObjectToApolloApi(RestUtil.java:64)
	at CucumberTests.Transport.CreateTransport.createByJSONFileAs(CreateTransport.java:76)
	at ✽.Create transport "CREATE_CISTERN_DELIVERY" by JSON file as "super-admin-hochland"(file:Features/Atom/Transport/TransportForm/DiscrepancyReport.feature:53)
When Go to transport details "CISTERN_DELIVERY" 000ms
Then Verify that discrepancy report section is not available 000ms
After Hooks.deleteTransportAfterTest() 000ms
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 1s 410ms
And Create transport "CREATE_CISTERN_COLLECTION" by JSON file as "super-admin-hochland" 1s 308ms
When Go to transport details "CISTERN_COLLECTION" 4s 432ms
Then Verify that discrepancy report section is not available 15s 016ms
After Hooks.deleteTransportAfterTest() 142ms
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 1s 515ms
And Create transport "CREATE_WEIGHING" by JSON file as "super-admin-hochland" 1s 223ms
When Go to transport details "WEIGHING" 4s 339ms
Then Verify that discrepancy report section is not available 15s 045ms
After Hooks.deleteTransportAfterTest() 091ms
Scenario Outline Check if discrepancy report is properly generated
Steps
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 1s 367ms
And Create transport "CREATE_DELIVERY" by JSON file as "super-admin-hochland" 1s 367ms
When Go to "TRANSPORT_TABLE" 124ms
And Go to transport details "DELIVERY" 4s 726ms
And Change filled value in transport details "warehouseman" "select" "Błajet" "0" 16s 234ms
org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//li//span[text()='Błajet'] | //li[text()='Błajet' and @role='option']"}
  (Session info: headless chrome=89.0.4389.90)
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: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{networkConnectionEnabled=false, chrome={chromedriverVersion=89.0.4389.23 (61b08ee2c50024bab004e48d2b1b083cdbdac579-refs/branch-heads/4389@{#294}), userDataDir=/home/teamcity/build-agent-2/temp/buildTmp/.com.google.Chrome.NcN8X9}, 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=89.0.4389.90, browserName=chrome, javascriptEnabled=true, platformName=LINUX, setWindowRect=true, webauthn:extension:largeBlob=true, webauthn:virtualAuthenticators=true}]
Session ID: 8364b788ceca43c3b8d49cb081b5b200
*** Element info: {Using=xpath, value=//li//span[text()='Błajet'] | //li[text()='Błajet' and @role='option']}
	at sun.reflect.GeneratedConstructorAccessor199.newInstance(Unknown Source)
	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 CucumberTests.Transport.Transport.selectValue(Transport.java:229)
	at CucumberTests.Transport.Transport.fillSelectInput(Transport.java:214)
	at CucumberTests.Transport.Transport.fillForm(Transport.java:166)
	at CucumberTests.Transport.TransportFormTest.changeFilledValueInTransportDetails(TransportFormTest.java:274)
	at ✽.Change filled value in transport details "warehouseman" "select" "Błajet" "0"(file:Features/Atom/Transport/TransportForm/DiscrepancyReport.feature:68)
And Change filled value in transport details "unloaded-stere" "text" "3" "0" 000ms
And Open section: "discrepancy-report-panel" 000ms
And Get inputs from database "EDIT_DELIVERY" "super-admin-hochland" 000ms
And Fill transport form 000ms
And Fill discrepancy report section without closing the form 000ms
And Generate discrepancy report 000ms
And Download discrepancy report 000ms
Then Verify that discrepancy report file has correct values 000ms
After Hooks.deleteTransportAfterTest() 117ms
Scenario Outline Check if edited discrepancy report is properly generated
Steps
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 1s 433ms
And Create transport "CREATE_DELIVERY" by JSON file as "super-admin-hochland" 1s 333ms
When Go to "TRANSPORT_TABLE" 130ms
And Go to transport details "DELIVERY" 4s 720ms
And Get inputs from database "EDIT_DELIVERY" "super-admin-hochland" 002ms
And Fill transport form 36s 058ms
And Open section: "discrepancy-report-panel" 1s 076ms
And Fill discrepancy report section without closing the form 19s 672ms
And Generate discrepancy report 1s 208ms
And Download discrepancy report 142ms
And Verify that discrepancy report file has correct values 15s 131ms
java.nio.file.NoSuchFileException: /home/teamcity/Downloads/38_2021_1.pdf
	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
	at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
	at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)
	at java.nio.file.Files.newOutputStream(Files.java:216)
	at java.nio.file.Files.copy(Files.java:3016)
	at Utils.FileUtil.checkIfFileExist(FileUtil.java:45)
	at Utils.FileUtil.getPdfFileText(FileUtil.java:28)
	at CucumberTests.Transport.TransportFormTest.verifyThatDiscrepancyReportFileHasCorrectValues(TransportFormTest.java:250)
	at ✽.Verify that discrepancy report file has correct values(file:Features/Atom/Transport/TransportForm/DiscrepancyReport.feature:93)
And Fill edited discrepancy report section 000ms
And Generate edited discrepancy report 000ms
And Download discrepancy report 000ms
Then Verify that discrepancy report file has correct values 000ms
After Hooks.deleteTransportAfterTest() 124ms