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
Status rejection 29 1 5 0 0 35 3 1 4 2m 30s 867ms Failed
Feature Status rejection
Given Login as "lantmannen-admin" and set token of apiUsername "super-admin-lantmannen" 1s 482ms
And Prepare user "pla1-carrier" details with all notifications and "apolloautomattest@gmail.com" by JSON file 306ms
And Login as "lantmannen-guard" and set token of apiUsername "super-admin-lantmannen" 1s 406ms
And Create transport "CREATE_LOAD" by JSON file as "super-admin-lantmannen" 1s 284ms
And Check if reject date is not visible 15s 058ms
When Reject status: Book of disinfection 074ms
And Check if reject date is visible 250ms
Then If user is login then logout 069ms
And Login as "lantmannen-admin" 1s 297ms
And Check if note was added to transport after status rejection 1s 239ms
And Check if history note was added to transport after status rejection - "LOAD" 5s 561ms
And Get mail "apolloautomattest@gmail.com" message from mail account with "Nieaktualna księga mycia i dezynfekcji" 19s 631ms
And Check if user got a mail 000ms
After Hooks.deleteTransportAfterTest() 092ms
After Hooks.cleanUserDetailsAfterTest() 139ms
Given Login as "lantmannen-guard-3" and set token of apiUsername "super-admin-lantmannen" 1s 410ms
And Create transport "CREATE_LOAD_NIEPORET_WAREHOUSE" by JSON file as "super-admin-lantmannen" 1s 337ms
And Check if reject date is not visible 15s 014ms
When Reject status: Book of disinfection 085ms
And Check if reject date is visible 150ms
And Get rejection date 028ms
And Wait "60" seconds 1m
And Reject status: Book of disinfection 065ms
Then Check if reject date has changed 1s 077ms
After Hooks.deleteTransportAfterTest() 103ms
Given Login as "lantmannen-admin" and set token of apiUsername "super-admin-lantmannen" 2s 104ms
And Create transport "CREATE_LOAD" by JSON file as "super-admin-lantmannen" 1s 333ms
And Go to transport details "LOAD" 4s 278ms
And Check if reject date is not visible 15s 026ms
When Reject status: Book of disinfection 079ms
Then Check if reject date is visible 091ms
After Hooks.deleteTransportAfterTest() 084ms
Scenario Outline Check if it is possible to reject status by admin in statuses popup
Steps
Given Login as "lantmannen-admin" and set token of apiUsername "super-admin-lantmannen" 1s 042ms
And Create transport "CREATE_LOAD" by JSON file as "super-admin-lantmannen" 079ms
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" by JSON file as "super-admin-lantmannen"(file:Features/Atom/Statuses/RejectStatuses.feature:53)
And Open statuses popup 000ms
And Check if reject date is not visible 000ms
When Reject status: Book of disinfection 000ms
Then Open statuses popup 000ms
And Check if reject date is visible 000ms
After Hooks.deleteTransportAfterTest() 001ms