Project Number Date
ApolloFullRunnerReport apollo-test-2.107 05 sie 2021, 11:20

Tag Report

Steps Scenarios Features
Tag Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
@squareManagementModule 15 3 26 0 0 44 0 3 3 14s 232ms Failed
Scenario Outline Check if role can send SMS to all drivers from queue
Before Hooks.showScenarioName(Scenario) 001ms
Steps
Given Set token of apiUsername "super-admin-skd" 233ms
And Set basic authorities "ROLE_QUEUES_TAB" to user "swiss-krono-delivery-admin" 326ms
And Create transport "CREATE_DELIVERY" by JSON file as "super-admin-skd" 2s 846ms
When Confirm status "REPORTING" by Public API "v1" 527ms
And Confirm status "ARRIVAL" by Public API "v1" 788ms
And Assign Queue to classification resource: "super-admin-skd" "recykling" "CLASSIFICATION" 055ms
java.lang.AssertionError: Nie znaleziono szukanego zasobu w Apollo!
	at org.junit.Assert.fail(Assert.java:88)
	at Utils.JpaUtils.Apollo.SelectService.ApolloSelectDbService.getBigIntegerResult(ApolloSelectDbService.java:119)
	at Utils.JpaUtils.Apollo.SelectService.ApolloSelectDbService.getLongResult(ApolloSelectDbService.java:109)
	at Utils.JpaUtils.Apollo.SelectService.ApolloSelectDbService.findQueueId(ApolloSelectDbService.java:176)
	at CucumberTests.ClassificationResource.ClassificationResourceTest.prepareClassificationResourceJson(ClassificationResourceTest.java:64)
	at CucumberTests.ClassificationResource.ClassificationResourceTest.assignQueueToClassificationResource(ClassificationResourceTest.java:48)
	at ✽.Assign Queue to classification resource: "super-admin-skd" "recykling" "CLASSIFICATION"(file:Features/Atom/SMS/sms.feature:32)
And Login as "swiss-krono-delivery-admin" 000ms
And Go to transport details "DELIVERY" 000ms
And Set driver phone number "48" "789440109" 000ms
And Go to "QUEUES_TAB" 000ms
And Verify that classification resource is proper "Zrębki" and "recykling" in Queues Tab 000ms
Then Verify that classification resource buttons have proper color on "Zrębki" and "recykling" and "Rozładunek" - "UNLOAD" "DELIVERY" 000ms
And Choose place "Rozładunek" on "recykling" 000ms
And Wait "20" seconds 000ms
Then Check if sms was sent to driver after confirm status "logintegra-imperial-test" "Argetnigol.7890" "wzywany jest na rozładunek surowca" 000ms
After Hooks.deleteTransportAfterTest() 972ms
After Hooks.rollbackAddedAuthorities() 140ms
Scenario Outline Check if role can send SMS to all drivers from queue
Before Hooks.showScenarioName(Scenario) 003ms
Steps
Given Set token of apiUsername "super-admin-skd" 232ms
And Set basic authorities "ROLE_QUEUE_STATUS_TAB;ROLE_QUEUES_TAB;ROLE_CLASSIFICATION_TAB" to user "swiss-krono-delivery-admin" 481ms
And Create transport "CREATE_DELIVERY" by JSON file as "super-admin-skd" 2s 779ms
When Confirm status "REPORTING" by Public API "v1" 526ms
And Confirm status "ARRIVAL" by Public API "v1" 703ms
And Assign Queue to classification resource: "super-admin-skd" "recykling" "CLASSIFICATION" 041ms
java.lang.AssertionError: Nie znaleziono szukanego zasobu w Apollo!
	at org.junit.Assert.fail(Assert.java:88)
	at Utils.JpaUtils.Apollo.SelectService.ApolloSelectDbService.getBigIntegerResult(ApolloSelectDbService.java:119)
	at Utils.JpaUtils.Apollo.SelectService.ApolloSelectDbService.getLongResult(ApolloSelectDbService.java:109)
	at Utils.JpaUtils.Apollo.SelectService.ApolloSelectDbService.findQueueId(ApolloSelectDbService.java:176)
	at CucumberTests.ClassificationResource.ClassificationResourceTest.prepareClassificationResourceJson(ClassificationResourceTest.java:64)
	at CucumberTests.ClassificationResource.ClassificationResourceTest.assignQueueToClassificationResource(ClassificationResourceTest.java:48)
	at ✽.Assign Queue to classification resource: "super-admin-skd" "recykling" "CLASSIFICATION"(file:Features/Atom/SMS/sms.feature:54)
And Login as "swiss-krono-delivery-admin" 000ms
And Go to transport details "DELIVERY" 000ms
And Set driver phone number "48" "789440109" 000ms
And Go to "QUEUES_TAB" 000ms
And Go to square: "Zrębki" 000ms
And Choose place "Rozładunek" on "recykling" 000ms
Then Check if sms was sent to driver after confirm status "logintegra-imperial-test" "Argetnigol.7890" "wzywany jest na rozładunek surowca" 000ms
Hooks
After Hooks.deleteTransportAfterTest() 933ms
After Hooks.rollbackAddedAuthorities() 226ms
java.lang.AssertionError: 1 expectation failed.
Expected status code <200> but was <422>.

	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.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.GeneratedMethodAccessor87.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.GeneratedMethodAccessor86.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.delete(RequestSpecificationImpl.groovy:183)
	at io.restassured.internal.RequestSpecificationImpl.delete(RequestSpecificationImpl.groovy)
	at Utils.RestUtils.RestUtil.deleteResponse(RestUtil.java:301)
	at Utils.RestUtils.RestUtil.deleteFromApolloApi(RestUtil.java:173)
	at CucumberTests.Hooks.lambda$rollbackAddedAuthorities$6(Hooks.java:556)
	at java.util.ArrayList.forEach(ArrayList.java:1259)
	at CucumberTests.Hooks.rollbackAddedAuthorities(Hooks.java:554)
	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.JavaHookDefinition.execute(JavaHookDefinition.java:60)
	at cucumber.runner.HookDefinitionMatch.runStep(HookDefinitionMatch.java:16)
	at cucumber.runner.TestStep.executeStep(TestStep.java:63)
	at cucumber.runner.TestStep.run(TestStep.java:49)
	at cucumber.runner.TestCase.run(TestCase.java:49)
	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)
Scenario Outline Check if SMS was added to transport history after confirm status
Before Hooks.showScenarioName(Scenario) 001ms
Steps
Given Set token of apiUsername "super-admin-skd" 233ms
And Set basic authorities "ROLE_QUEUE_STATUS_TAB;ROLE_QUEUES_TAB;ROLE_CLASSIFICATION_TAB" to user "swiss-krono-delivery-admin" 439ms
And Create transport "CREATE_DELIVERY" by JSON file as "super-admin-skd" 2s 755ms
When Confirm status "REPORTING" by Public API "v1" 528ms
And Confirm status "ARRIVAL" by Public API "v1" 690ms
And Assign Queue to classification resource: "super-admin-skd" "recykling" "CLASSIFICATION" 041ms
java.lang.AssertionError: Nie znaleziono szukanego zasobu w Apollo!
	at org.junit.Assert.fail(Assert.java:88)
	at Utils.JpaUtils.Apollo.SelectService.ApolloSelectDbService.getBigIntegerResult(ApolloSelectDbService.java:119)
	at Utils.JpaUtils.Apollo.SelectService.ApolloSelectDbService.getLongResult(ApolloSelectDbService.java:109)
	at Utils.JpaUtils.Apollo.SelectService.ApolloSelectDbService.findQueueId(ApolloSelectDbService.java:176)
	at CucumberTests.ClassificationResource.ClassificationResourceTest.prepareClassificationResourceJson(ClassificationResourceTest.java:64)
	at CucumberTests.ClassificationResource.ClassificationResourceTest.assignQueueToClassificationResource(ClassificationResourceTest.java:48)
	at ✽.Assign Queue to classification resource: "super-admin-skd" "recykling" "CLASSIFICATION"(file:Features/Atom/SMS/sms.feature:74)
And Login as "swiss-krono-delivery-admin" 000ms
And Go to transport details "DELIVERY" 000ms
And Set driver phone number "48" "789440109" 000ms
And Go to "QUEUES_TAB" 000ms
And Go to square: "Zrębki" 000ms
And Choose place "Rozładunek" on "recykling" 000ms
And Go to "TRANSPORT_TABLE" 000ms
And Go to transport details "DELIVERY" 000ms
And Open section: "panel-title" 000ms
Then Check if information about sms was added to transport history 000ms
After Hooks.deleteTransportAfterTest() 911ms
After Hooks.rollbackAddedAuthorities() 148ms