Project Number Date
ApolloFullRunnerReport develop-kapibary.345 11 cze 2021, 03:12

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
Transport files 100 3 9 0 0 112 13 3 16 4m 35s 296ms Failed
Feature Transport files
Given Login as "piast-admin" and set token of apiUsername "super-admin-piast" 1s 177ms
And Create transport "CREATE_DELIVERY_FRONT" by JSON file as "super-admin-piast" 1s 214ms
When Go to "TRANSPORT_TABLE" 144ms
And Show all transport types 1s 044ms
And Verify that transport has "0" files 039ms
Then Add file to transport by API 918ms
And Verify that transport has "1" files 095ms
After Hooks.deleteTransportAfterTest() 093ms
Given Login as "piast-admin" and set token of apiUsername "super-admin-piast" 1s 065ms
And Create transport "CREATE_LOAD_FRONT" by JSON file as "super-admin-piast" 1s 231ms
When Go to "TRANSPORT_TABLE" 128ms
And Show all transport types 1s 045ms
And Verify that transport has "0" files 861ms
Then Add file to transport by API 242ms
And Verify that transport has "1" files 2s 778ms
After Hooks.deleteTransportAfterTest() 092ms
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 1s 298ms
And Create transport "CREATE_DELIVERY" by JSON file as "super-admin-hochland" 1s 404ms
When Go to "TRANSPORT_TABLE" 150ms
And Show all transport types 1s 033ms
And Verify that transport has "0" files 704ms
Then Add file to transport by API 275ms
And Verify that transport has "1" files 2s 726ms
After Hooks.deleteTransportAfterTest() 115ms
Given Login as "keeeper-admin" and set token of apiUsername "super-admin-keeeper" 988ms
And Create transport "CREATE_CONTAINER" by JSON file as "super-admin-keeeper" 1s 209ms
When Go to "TRANSPORT_TABLE" 132ms
And Show all transport types 1s 035ms
And Verify that transport has "0" files 038ms
Then Add file to transport by API 247ms
And Verify that transport has "1" files 960ms
After Hooks.deleteTransportAfterTest() 066ms
Given Login as "piast-admin" and set token of apiUsername "super-admin-piast" 1s 066ms
And Create transport "CREATE_DELIVERY_FRONT" by JSON file as "super-admin-piast" 1s 190ms
And Delete transport 17s 719ms
When Go to "ARCHIVE_TAB" 214ms
And Show "DELIVERY" 048ms
And Verify that transport has "0" files 1s 109ms
Then Add file to transport 165ms
And Verify that transport has "1" files 315ms
After Hooks.deleteTransportAfterTest() 048ms
Given Login as "piast-admin" and set token of apiUsername "super-admin-piast" 1s 143ms
And Create transport "CREATE_LOAD_FRONT" by JSON file as "super-admin-piast" 1s 194ms
And Delete transport 20s 131ms
When Go to "ARCHIVE_TAB" 243ms
And Show "LOAD" 320ms
And Verify that transport has "0" files 1s 457ms
Then Add file to transport 157ms
And Verify that transport has "1" files 321ms
After Hooks.deleteTransportAfterTest() 059ms
Scenario Outline Check if it possible to add file to transport in archive
Steps
Given Login as "hochland-admin" and set token of apiUsername "super-admin-hochland" 1s 352ms
And Create transport "CREATE_DELIVERY" by JSON file as "super-admin-hochland" 1s 397ms
And Delete transport 20s 050ms
When Go to "ARCHIVE_TAB" 209ms
And Show "DELIVERY" 066ms
And Verify that transport has "0" files 1s 176ms
Then Add file to transport 145ms
And Verify that transport has "1" files 15s 040ms
java.lang.AssertionError: Liczba plików w transporcie się nie zgadza!
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at CucumberTests.Transport.TransportFile.verifyThatTransportHasFiles(TransportFile.java:56)
	at ✽.Verify that transport has "1" files(file:Features/Atom/Transport/File.feature:28)
After Hooks.deleteTransportAfterTest() 087ms
Given Login as "keeeper-admin" and set token of apiUsername "super-admin-keeeper" 1s 144ms
And Create transport "CREATE_CONTAINER" by JSON file as "super-admin-keeeper" 1s 202ms
And Delete transport 17s 554ms
When Go to "ARCHIVE_TAB" 218ms
And Show "CONTAINER" 071ms
And Verify that transport has "0" files 1s 794ms
Then Add file to transport 147ms
And Verify that transport has "1" files 325ms
After Hooks.deleteTransportAfterTest() 053ms
Given Set token of apiUsername "super-admin-adama" 102ms
And Create transport "CREATE_TRANSPORT" by JSON file as "super-admin-adama" 15s 179ms
And Transfer transport to carrier by JSON file "super-admin-adama" "true" confirmation 144ms
And Accept transferred transport by Api 172ms
And Login as "paa1-carrier@qa.qa-test" 1s 268ms
Then Verify that "large_entrepreneur_declaration" document can be downloaded 16s 134ms
After Hooks.deleteTransportAfterTest() 051ms
Given Login as "paa1-carrier@qa.qa-test" and set token of apiUsername "super-admin-adama" 1s 285ms
And Create transport "CREATE_TRANSPORT" by JSON file as "super-admin-adama" 1s 175ms
And Transfer transport to carrier by JSON file "super-admin-adama" "false" confirmation 112ms
Then Verify that "large_entrepreneur_declaration" document can be downloaded 17s 862ms
After Hooks.deleteTransportAfterTest() 074ms
Given Set token of apiUsername "super-admin-adama" 100ms
And Create transport "CREATE_TRANSPORT" by JSON file as "super-admin-adama" 1s 197ms
And Set transport on auction with "500" and "1500" by JSON file as "super-admin-adama" 2s 153ms
And Add a bid "500" to an auction by JSON file as "paa1-carrier@qa.qa-test" for "super-admin-adama" 321ms
And Login as "paa1-carrier@qa.qa-test" 1s 243ms
Then Verify that "large_entrepreneur_declaration" document can be downloaded 16s 075ms
After Hooks.deleteTransportAfterTest() 067ms
Given Login as "alrec-admin" and set token of apiUsername "super-admin-alrec" 1s 131ms
And Create transport "CREATE_TRANSPORT" by JSON file as "super-admin-alrec" 1s 264ms
When Go to "TRANSPORT_TABLE" 131ms
And Show all transport "true" 070ms
Then Verify that transport has "1" CMR file 1s 171ms
After Hooks.deleteTransportAfterTest() 078ms
Given Login as "alrec-admin" and set token of apiUsername "super-admin-alrec" 1s 013ms
And Create transport "CREATE_TRANSPORT_TWO_UNLOAD_STEPS" by JSON file as "super-admin-alrec" 1s 248ms
When Go to "TRANSPORT_TABLE" 130ms
And Show all transport "true" 070ms
Then Verify that transport has "2" CMR file 1s 190ms
After Hooks.deleteTransportAfterTest() 106ms
Given Login as "alrec-admin" and set token of apiUsername "super-admin-alrec" 1s 009ms
And Create transport "CREATE_TRANSPORT_TWO_UNLOAD_STEPS" by JSON file as "super-admin-alrec" 1s 307ms
When Go to "TRANSPORT_TABLE" 110ms
And Show all transport "true" 058ms
Then Verify that "CMR" document can be downloaded 17s 554ms
After Hooks.deleteTransportAfterTest() 066ms
Scenario Outline Check if it CMR document can be downloaded in archive
Steps
Given Login as "alrec-admin" and set token of apiUsername "super-admin-alrec" 1s 133ms
And Create transport "CREATE_TRANSPORT_TWO_UNLOAD_STEPS" by JSON file as "super-admin-alrec" 1s 281ms
And Show all transport "true" 081ms
And Delete transport 17s 142ms
When Go to "ARCHIVE_TAB" 209ms
And Show "TRANSPORT_ORDER" 041ms
Then Verify that "CMR" document can be downloaded 16s 068ms
org.openqa.selenium.TimeoutException: Expected condition failed: waiting for element to be clickable: By.xpath: //div[contains(a, 'CMR')]/a (tried for 3 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:223)
	at CucumberTests.Transport.TransportFile.verifyThatDocumentCanBeDownloaded(TransportFile.java:81)
	at ✽.Verify that "CMR" document can be downloaded(file:Features/Atom/Transport/File.feature:101)
Caused by: org.openqa.selenium.NoSuchElementException: Cannot locate an element using By.xpath: //div[contains(a, 'CMR')]/a
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:223)
	at CucumberTests.Transport.TransportFile.verifyThatDocumentCanBeDownloaded(TransportFile.java:81)
	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)
After Hooks.deleteTransportAfterTest() 070ms
Scenario Outline The link to the delivery document appears after confirming the respective status [A-6905]
Steps
Given Login as "pba1-carrier" and set token of apiUsername "super-admin-bausch" 1s 892ms
And Create default accepted mode of transportation by API with "pba1-carrier" 401ms
And If user is login then logout 248ms
And Login as "bausch-admin" and set token of apiUsername "super-admin-bausch" 1s 814ms
And Create transport "CREATE_LOAD_PL" by JSON file as "super-admin-bausch" 098ms
java.lang.AssertionError: 1 expectation failed.
Expected status code <200> but was <422>.

	at sun.reflect.GeneratedConstructorAccessor205.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_LOAD_PL" by JSON file as "super-admin-bausch"(file:Features/Atom/Transport/File.feature:112)
And Transfer transport to carrier by JSON file "super-admin-bausch" "false" confirmation 000ms
And Set "advice" inputs from JSON file "ADVICE_LOAD" "super-admin-bausch" 000ms
And Click button advice in transport table "LOAD_PL" 000ms
And Set advice window in schedule 000ms
And Fill advice form 000ms
And Click advice save button and wait for advice form to disappear 000ms
And Find transport in table with status "advice-added" 000ms
When Confirm statuses until reach "on-the-way" 000ms
Then Verify that "delivery_document" document can be downloaded 000ms
After Hooks.deleteTransportAfterTest() 000ms
After Hooks.deleteModeOfTransportationAfterTest() 069ms