Given
Login as "neuca-admin" and set token of apiUsername "super-admin-neuca"
4s 435ms
And
Set access to periodic advice by API for company "SET_PERIODIC_TRANSPORT" as "super-admin-neuca"
3s 381ms
java.lang.AssertionError: 1 expectation failed.
Expected status code <200> but was <500>.
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.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.put(RequestSpecificationImpl.groovy:179)
at io.restassured.internal.RequestSpecificationImpl.put(RequestSpecificationImpl.groovy)
at Utils.RestUtils.RestUtil.putObjectToApolloApi(RestUtil.java:92)
at CucumberTests.Transport.PeriodicTransportTest.editAccessToPeriodicByJsonFileAs(PeriodicTransportTest.java:60)
at CucumberTests.Transport.PeriodicTransportTest.setAccessToPeriodicAdviceByAPIForCompany(PeriodicTransportTest.java:51)
at ✽.Set access to periodic advice by API for company "SET_PERIODIC_TRANSPORT" as "super-admin-neuca"(file:Features/Atom/Transport/PeriodicTransport/PeriodicTransport.feature:45)
And
Create periodic transport "CREATE_PERIODIC_TR" by JSON file as "super-admin-neuca"
000ms
When
Go to "WAREHOUSE_TAB"
000ms
And
Select warehouse "Katowice"
000ms
And
Open the middle periodic transport form from the schedule view
000ms
Then
Check if designation of periodic transport in transport form is correct
000ms
And
Close transport details
000ms
When
Go to "TRANSPORT_TABLE"
000ms
And
Wait until all periodic transports will be visible in transport table
000ms
Then
Check if designation of periodic transport in transport table is correct
000ms