Project Number Date
ApolloFullRunnerReport kapibary.29 06 cze 2021, 06:06

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
Transport Form - Discrepancy Report scenarios 78 3 8 0 0 89 9 3 12 7m 31s 216ms Failed
Feature Transport Form - Discrepancy Report scenarios
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 3s 405ms
And Create transport "CREATE_DELIVERY" by JSON file as "super-admin-hochland" 2s 872ms
And Go to transport details "DELIVERY" 5s 028ms
When Open section: "discrepancy-report-panel" 1s 164ms
Then Verify that no discrepancies found label is visible in discrepancy report section 155ms
And Select "NIE" in the "insp.-accord.-with-ins." 2s 713ms
And Verify that discrepancy report custom fields are visible in discrepancy report section 279ms
After Hooks.deleteTransportAfterTest() 769ms
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 3s 044ms
And Get inputs from database "EDIT_DELIVERY" "super-admin-hochland" 033ms
And Create transport "CREATE_DELIVERY" by JSON file as "super-admin-hochland" 2s 870ms
And Go to transport details "DELIVERY" 4s 976ms
And Fill transport form 40s 926ms
And Click "save-transport-and-close" save button and wait for form to disappear 17s 465ms
When Go to transport details "DELIVERY" 4s 851ms
Then Select "NIE" in the "insp.-accord.-with-ins." 2s 699ms
And Click "save-transport" save button 904ms
And Wait "2" seconds 2s
And Verify that discrepancy report section is open 078ms
And Verify that discrepancy report section contains validation errors 069ms
After Hooks.deleteTransportAfterTest() 798ms
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 3s 148ms
And Create transport "CREATE_DELIVERY" by JSON file as "super-admin-hochland" 2s 873ms
When Go to transport details "DELIVERY" 4s 959ms
Then Verify that discrepancy report section is available 092ms
And Open section: "discrepancy-report-panel" 1s 152ms
And Verify that generate new discrepancy report button is visible 092ms
After Hooks.deleteTransportAfterTest() 760ms
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 2s 891ms
And Create transport "CREATE_OWN_COLLECTION" by JSON file as "super-admin-hochland" 2s 792ms
When Go to transport details "OWN_COLLECTION" 4s 977ms
Then Verify that discrepancy report section is available 090ms
And Open section: "discrepancy-report-panel" 1s 154ms
And Verify that generate new discrepancy report button is visible 073ms
After Hooks.deleteTransportAfterTest() 783ms
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 2s 803ms
And Create transport "CREATE_OWN_COLLECTION_POWDER_FACTORY" by JSON file as "super-admin-hochland" 2s 698ms
When Go to transport details "OWN_COLLECTION_POWDER_FACTORY" 5s 079ms
Then Verify that discrepancy report section is available 089ms
And Open section: "discrepancy-report-panel" 1s 145ms
And Verify that generate new discrepancy report button is visible 081ms
After Hooks.deleteTransportAfterTest() 784ms
Scenario Outline Check if discrepancy report section is available
Steps
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 2s 874ms
And Create transport "CREATE_EXPORT" by JSON file as "super-admin-hochland" 441ms
java.lang.AssertionError: 1 expectation failed.
Expected status code <200> but was <422>.

	at sun.reflect.GeneratedConstructorAccessor188.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.GeneratedMethodAccessor73.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.GeneratedMethodAccessor72.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_EXPORT" by JSON file as "super-admin-hochland"(file:Features/Atom/Transport/TransportForm/DiscrepancyReport.feature:37)
When Go to transport details "EXPORT" 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" 2s 978ms
And Create transport "CREATE_TRANSFER_BETWEEN_WAREHOUSES" by JSON file as "super-admin-hochland" 1s 943ms
When Go to transport details "TRANSFER_BETWEEN_WAREHOUSES" 4s 915ms
Then Verify that discrepancy report section is available 086ms
And Open section: "discrepancy-report-panel" 1s 148ms
And Verify that generate new discrepancy report button is visible 074ms
After Hooks.deleteTransportAfterTest() 475ms
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 2s 887ms
And Create transport "CREATE_CISTERN_DELIVERY" by JSON file as "super-admin-hochland" 2s 642ms
When Go to transport details "CISTERN_DELIVERY" 4s 969ms
Then Verify that discrepancy report section is not available 15s 042ms
After Hooks.deleteTransportAfterTest() 840ms
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 3s 009ms
And Create transport "CREATE_CISTERN_COLLECTION" by JSON file as "super-admin-hochland" 2s 574ms
When Go to transport details "CISTERN_COLLECTION" 4s 920ms
Then Verify that discrepancy report section is not available 15s 066ms
After Hooks.deleteTransportAfterTest() 720ms
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 2s 994ms
And Create transport "CREATE_WEIGHING" by JSON file as "super-admin-hochland" 2s 266ms
When Go to transport details "WEIGHING" 4s 812ms
Then Verify that discrepancy report section is not available 15s 091ms
After Hooks.deleteTransportAfterTest() 497ms
Scenario Outline Check if discrepancy report is properly generated
Steps
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 3s 016ms
And Create transport "CREATE_DELIVERY" by JSON file as "super-admin-hochland" 2s 862ms
When Go to "TRANSPORT_TABLE" 431ms
And Go to transport details "DELIVERY" 4s 915ms
And Change filled value in transport details "warehouseman" "select" "Dorosz Mieczysław" "0" 3s 884ms
And Change filled value in transport details "unloaded-stere" "text" "3" "0" 1s 511ms
And Open section: "discrepancy-report-panel" 1s 169ms
And Get inputs from database "EDIT_DELIVERY" "super-admin-hochland" 033ms
And Fill transport form 41s
And Fill discrepancy report section without closing the form 22s 570ms
And Generate discrepancy report 19s 887ms
And Download discrepancy report 359ms
Then Verify that discrepancy report file has correct values 15s 699ms
java.nio.file.NoSuchFileException: /home/teamcity/Downloads/77_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:76)
After Hooks.deleteTransportAfterTest() 917ms
Scenario Outline Check if edited discrepancy report is properly generated
Steps
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 3s 179ms
And Create transport "CREATE_DELIVERY" by JSON file as "super-admin-hochland" 2s 931ms
When Go to "TRANSPORT_TABLE" 430ms
And Go to transport details "DELIVERY" 4s 889ms
And Get inputs from database "EDIT_DELIVERY" "super-admin-hochland" 033ms
And Fill transport form 40s 811ms
And Open section: "discrepancy-report-panel" 1s 157ms
And Fill discrepancy report section without closing the form 22s 540ms
And Generate discrepancy report 19s 482ms
And Download discrepancy report 382ms
And Verify that discrepancy report file has correct values 15s 556ms
java.nio.file.NoSuchFileException: /home/teamcity/Downloads/78_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() 845ms