Scenario Outline
Check if user has accepted invitation from principal after accepting invitation by another user from company
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Set token of apiUsername "super-admin-farmacol"
098ms
And
Prepare user "dnfa1-supplier" details with all notifications and "automaty314153@test.pl" by JSON file
392ms
And
Create invitation by JSON file "super-admin-farmacol" for "automaty314153@test.pl" "CREATE_SUPPLIER_INVITATION"
481ms
java.lang.AssertionError: Nieoczekiwany błąd podczas żądania POST pod adresem /invitations; status: 422, komunikat: [errors:[Użytkownik o podanym adresie e-mail już istnieje. Prosimy o kontakt z naszą obsługą klienta na support@support.xd.]]
at org.junit.Assert.fail(Assert.java:88)
at Utils.RestUtils.RestUtil.postObjectToApolloApi(RestUtil.java:86)
at CucumberTests.Invitation.RegistrationTest.createInvitationByJSONFile(RegistrationTest.java:64)
at ✽.Create invitation by JSON file "super-admin-farmacol" for "automaty314153@test.pl" "CREATE_SUPPLIER_INVITATION"(file:Features/Atom/Invitations/Invitation.feature:86)
And
Prepare user "dnfa1-supplier-2" details with all notifications and "automaty214152@test.pl" by JSON file
000ms
And
Create invitation by JSON file "super-admin-farmacol" for "automaty214152@test.pl" "CREATE_SUPPLIER_INVITATION"
000ms
When
Login as "dnfa1-supplier" and set token of apiUsername "super-admin-farmacol"
000ms
And
Go to "INVITATIONS_TAB"
000ms
And
Accept invitation
000ms
And
If user is login then logout
000ms
And
Login as "dnfa1-supplier-2" and set token of apiUsername "super-admin-farmacol"
000ms
And
Verify if user has visible "no waiting" invitation
000ms
And
Verify if user has visible "accepted" invitation
000ms
And
Verify if user can see "Farmacol" on principal switch dropdown
000ms
After
Hooks.cleanUserDetailsAfterTest()
195ms
Scenario Outline
Check if rejected invitation is visible in rejected tab
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Set token of apiUsername "super-admin-piast"
094ms
And
Delete invitations with email "automaty31415@test.pl"
005ms
And
Prepare user "piast-admin" details with all notifications and "automaty31415@test.pl" by JSON file
154ms
Then
Create invitation by JSON file "super-admin-alrec" for "automaty31415@test.pl" "CREATE_SUPPLIER_INVITATION"
131ms
java.lang.AssertionError: Nieoczekiwany błąd podczas żądania POST pod adresem /invitations; status: 422, komunikat: [errors:[Niezgodny numer NIP! W platformie istnieje już użytkownik z podanym adresem mailowym (loginem). Jest on przypisany do firmy Piast Cargo Transport Sp. z o.o., NIP: . Prosimy o poprawienie danych.]]
at org.junit.Assert.fail(Assert.java:88)
at Utils.RestUtils.RestUtil.postObjectToApolloApi(RestUtil.java:86)
at CucumberTests.Invitation.RegistrationTest.createInvitationByJSONFile(RegistrationTest.java:64)
at ✽.Create invitation by JSON file "super-admin-alrec" for "automaty31415@test.pl" "CREATE_SUPPLIER_INVITATION"(file:Features/Atom/Invitations/Invitation.feature:175)
When
Login as "piast-admin"
000ms
Then
Go to "INVITATIONS_TAB"
000ms
And
Go to invitation details
000ms
Then
Reject invitation by button as user
000ms
When
If user is login then logout
000ms
Then
Login as "super-admin-alrec" and set token of apiUsername "super-admin-alrec"
000ms
And
Go to "INVITATIONS_TAB"
000ms
And
Go to "REJECTED_TAB" invitation status tab
000ms
Then
Invitation is displayed on list "automaty31415@test.pl"
000ms
After
Hooks.deleteInvitationAfterTest()
000ms
java.lang.NullPointerException
at CucumberTests.Hooks.deleteInvitationAfterTest(Hooks.java:263)
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)
After
Hooks.cleanUserDetailsAfterTest()
154ms
Scenario Outline
Check if it is possible to invite existing user in order to associate him with principal company [A-7315]
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Set token of apiUsername "super-admin-alrec"
093ms
And
Prepare user "dha1-supplier-2@qa.qa-test" details with all notifications and "automatyy3333@test.pl" by JSON file
233ms
When
Login as "neuca-admin" and set token of apiUsername "super-admin-neuca"
915ms
And
Go to "INVITATIONS_TAB"
176ms
And
Create invitation for "existing" user "SUPPLIER" "SUPPLIER" "automatyy3333@test.pl" "PL"
1s 094ms
Then
Create invitation success alert is displayed
039ms
After
Hooks.deleteInvitationAfterTest()
007ms
After
Hooks.cleanUserDetailsAfterTest()
211ms
Scenario Outline
Check if mail was sent to creator after creating advice
Before
Hooks.showScenarioName(Scenario)
000ms
Given
Login as "adama-admin" and set token of apiUsername "super-admin-adama"
959ms
And
Prepare user "adama-admin" details with all notifications and "apolloautomattest@gmail.com" by JSON file
164ms
And
Create transport "CREATE_CONTAINER" by JSON file as "super-admin-adama"
1s 189ms
And
Get inputs from database "ADVICE_CONTAINER" "super-admin-adama"
040ms
And
Show all transport types
1s 041ms
And
Click button advice in transport table "CONTAINER"
104ms
And
Set advice window in schedule
2s 443ms
And
Fill advice form
16s 252ms
java.lang.NullPointerException
at CucumberTests.Transport.Transport.fillTextOrNumberInput(Transport.java:189)
at CucumberTests.Transport.Transport.fillForm(Transport.java:160)
at CucumberTests.Transport.AdviceTransport.fillAdviceForm(AdviceTransport.java:121)
at ✽.Fill advice form(file:Features/Atom/Mail/AdviceMail.feature:12)
And
Click advice save button and wait for advice form to disappear
000ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Zapisano awizację! | Advice has been saved!"
000ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
074ms
After
Hooks.cleanUserDetailsAfterTest()
170ms
Scenario Outline
Check if mail was sent to creator after creating advice
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "piast-admin" and set token of apiUsername "super-admin-piast"
1s 138ms
And
Prepare user "piast-admin" details with all notifications and "apolloautomattest@gmail.com" by JSON file
142ms
And
Create transport "CREATE_DELIVERY_FRONT" by JSON file as "super-admin-piast"
1s 202ms
And
Get inputs from database "ADVICE_DELIVERY" "super-admin-piast"
037ms
And
Show all transport types
1s 041ms
And
Click button advice in transport table "DELIVERY"
104ms
And
Set advice window in schedule
2s 594ms
And
Fill advice form
20s 361ms
java.lang.NullPointerException
at CucumberTests.Transport.Transport.fillTextOrNumberInput(Transport.java:189)
at CucumberTests.Transport.Transport.fillForm(Transport.java:160)
at CucumberTests.Transport.AdviceTransport.fillAdviceForm(AdviceTransport.java:121)
at ✽.Fill advice form(file:Features/Atom/Mail/AdviceMail.feature:12)
And
Click advice save button and wait for advice form to disappear
000ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Zapisano awizację! | Advice has been saved!"
000ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
078ms
After
Hooks.cleanUserDetailsAfterTest()
157ms
Scenario Outline
Check if mail was sent to creator after creating advice
Before
Hooks.showScenarioName(Scenario)
000ms
Given
Login as "keeeper-admin" and set token of apiUsername "super-admin-keeeper"
1s 079ms
And
Prepare user "keeeper-admin" details with all notifications and "apolloautomattest@gmail.com" by JSON file
261ms
And
Create transport "CREATE_LOAD" by JSON file as "super-admin-keeeper"
1s 200ms
And
Get inputs from database "ADVICE_LOAD" "super-admin-keeeper"
037ms
And
Show all transport types
1s 042ms
And
Click button advice in transport table "LOAD"
090ms
And
Set advice window in schedule
2s 438ms
And
Fill advice form
16s 305ms
java.lang.NullPointerException
at CucumberTests.Transport.Transport.fillTextOrNumberInput(Transport.java:189)
at CucumberTests.Transport.Transport.fillForm(Transport.java:160)
at CucumberTests.Transport.AdviceTransport.fillAdviceForm(AdviceTransport.java:121)
at ✽.Fill advice form(file:Features/Atom/Mail/AdviceMail.feature:12)
And
Click advice save button and wait for advice form to disappear
000ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Zapisano awizację! | Time window has been saved!"
000ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
075ms
After
Hooks.cleanUserDetailsAfterTest()
236ms
Scenario Outline
Check if mail was sent to creator after editing advice
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "adama-admin" and set token of apiUsername "super-admin-adama"
1s 451ms
And
Prepare user "adama-admin" details with all notifications and "apolloautomattest@gmail.com" by JSON file
217ms
And
Create transport "CREATE_CONTAINER" by JSON file as "super-admin-adama"
1s 202ms
And
Show all transport types
1s 040ms
And
Create advice "ADVICE_CONTAINER" "CONTAINER" "super-admin-adama"
18s 754ms
java.lang.NullPointerException
at CucumberTests.Transport.Transport.fillTextOrNumberInput(Transport.java:189)
at CucumberTests.Transport.Transport.fillForm(Transport.java:160)
at CucumberTests.Transport.AdviceTransport.fillAdviceForm(AdviceTransport.java:121)
at CucumberTests.Transport.AdviceTransport.createAdvice(AdviceTransport.java:67)
at ✽.Create advice "ADVICE_CONTAINER" "CONTAINER" "super-admin-adama"(file:Features/Atom/Mail/AdviceMail.feature:28)
And
Go to "TRANSPORT_TABLE"
000ms
And
Go to transport details "CONTAINER"
000ms
And
Get inputs from database "EDIT_CONTAINER" "super-admin-adama"
000ms
When
Go to transport details "CONTAINER"
000ms
And
Fill transport form
000ms
And
Get inputs from database "EDIT_ADVICE_CONTAINER" "super-admin-adama"
000ms
And
Expand advice panel
000ms
And
Edit advice in transport details
000ms
And
Click "save-transport-and-close" save button and wait for form to disappear
000ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Zmiana w awizacji numer"
000ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
062ms
After
Hooks.cleanUserDetailsAfterTest()
167ms
Scenario Outline
Check if mail was sent to creator after editing advice
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "piast-admin" and set token of apiUsername "super-admin-piast"
1s 492ms
And
Prepare user "piast-admin" details with all notifications and "apolloautomattest@gmail.com" by JSON file
173ms
And
Create transport "CREATE_DELIVERY_FRONT" by JSON file as "super-admin-piast"
1s 202ms
And
Show all transport types
1s 042ms
And
Create advice "ADVICE_DELIVERY" "DELIVERY" "super-admin-piast"
22s 985ms
java.lang.NullPointerException
at CucumberTests.Transport.Transport.fillTextOrNumberInput(Transport.java:189)
at CucumberTests.Transport.Transport.fillForm(Transport.java:160)
at CucumberTests.Transport.AdviceTransport.fillAdviceForm(AdviceTransport.java:121)
at CucumberTests.Transport.AdviceTransport.createAdvice(AdviceTransport.java:67)
at ✽.Create advice "ADVICE_DELIVERY" "DELIVERY" "super-admin-piast"(file:Features/Atom/Mail/AdviceMail.feature:28)
And
Go to "TRANSPORT_TABLE"
000ms
And
Go to transport details "DELIVERY"
000ms
And
Get inputs from database "EDIT_DELIVERY" "super-admin-piast"
000ms
When
Go to transport details "DELIVERY"
000ms
And
Fill transport form
000ms
And
Get inputs from database "EDIT_ADVICE_DELIVERY" "super-admin-piast"
000ms
And
Expand advice panel
000ms
And
Edit advice in transport details
000ms
And
Click "save-transport-and-close" save button and wait for form to disappear
000ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Zmiana w awizacji numer"
000ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
067ms
After
Hooks.cleanUserDetailsAfterTest()
150ms
Scenario Outline
Check if mail was sent to creator after editing advice
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "keeeper-admin" and set token of apiUsername "super-admin-keeeper"
1s 510ms
And
Prepare user "keeeper-admin" details with all notifications and "apolloautomattest@gmail.com" by JSON file
227ms
And
Create transport "CREATE_LOAD" by JSON file as "super-admin-keeeper"
1s 179ms
And
Show all transport types
1s 045ms
And
Create advice "ADVICE_LOAD" "LOAD" "super-admin-keeeper"
18s 789ms
java.lang.NullPointerException
at CucumberTests.Transport.Transport.fillTextOrNumberInput(Transport.java:189)
at CucumberTests.Transport.Transport.fillForm(Transport.java:160)
at CucumberTests.Transport.AdviceTransport.fillAdviceForm(AdviceTransport.java:121)
at CucumberTests.Transport.AdviceTransport.createAdvice(AdviceTransport.java:67)
at ✽.Create advice "ADVICE_LOAD" "LOAD" "super-admin-keeeper"(file:Features/Atom/Mail/AdviceMail.feature:28)
And
Go to "TRANSPORT_TABLE"
000ms
And
Go to transport details "LOAD"
000ms
And
Get inputs from database "EDIT_LOAD" "super-admin-keeeper"
000ms
When
Go to transport details "LOAD"
000ms
And
Fill transport form
000ms
And
Get inputs from database "EDIT_ADVICE_LOAD" "super-admin-keeeper"
000ms
And
Expand advice panel
000ms
And
Edit advice in transport details
000ms
And
Click "save-transport-and-close" save button and wait for form to disappear
000ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Zmiana w awizacji numer"
000ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
055ms
After
Hooks.cleanUserDetailsAfterTest()
200ms
Scenario Outline
Check if mail was sent to creator after status confirmation
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Set token of apiUsername "super-admin-skd"
091ms
And
Prepare user "swiss-krono-delivery-admin" details with all notifications and "apolloautomattest@gmail.com" by JSON file
146ms
And
Create transport "CREATE_DELIVERY" by JSON file as "super-admin-skd"
15s 278ms
And
Confirm status "ARRIVAL" by Public API "v1"
304ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Potwierdzono status Wjazd na teren zakładu"
5s 803ms
Then
Check if user got a mail
000ms
And
Confirm status "DEPARTURE" by Public API "v1"
252ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Potwierdzono status Wyjazd"
32s 015ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
156ms
After
Hooks.cleanUserDetailsAfterTest()
140ms
Scenario Outline
Check if verification mail was sent to transport creator
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Set token of apiUsername "super-admin-hochland"
094ms
And
Prepare company "Dostawca Hochland Automat 1" verification email setting "48h"
008ms
And
Prepare user "dha1-supplier-2@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
172ms
And
Login as "dha1-supplier-2@qa.qa-test" and set token of apiUsername "dha1-supplier-2@qa.qa-test"
2s 306ms
And
Create transport "CREATE_DELIVERY" by JSON file as "dha1-supplier-2@qa.qa-test"
15s 326ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Weryfikacja danych awizacji"
1m 25s 753ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
121ms
After
Hooks.cleanUserDetailsAfterTest()
262ms
After
Hooks.rollbackVerificationEmailSettingAfterTest()
006ms
Scenario Outline
Check mail after creating a new auction
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "adama-admin" and set token of apiUsername "super-admin-adama"
1s 442ms
And
Prepare user "paa1-carrier@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
236ms
And
Create transport "CREATE_TRANSPORT" by JSON file as "super-admin-adama"
1s 239ms
And
Set transport on auction with "500" and "20000" by JSON file as "super-admin-adama"
2s 522ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Nowa aukcja"
10s 626ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
150ms
After
Hooks.cleanUserDetailsAfterTest()
293ms
Scenario Outline
Check mail after loosing auction
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "adama-admin" and set token of apiUsername "super-admin-adama"
1s 054ms
And
Prepare user "paa1-carrier@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
296ms
And
Create transport "CREATE_TRANSPORT" by JSON file as "super-admin-adama"
1s 205ms
And
Set transport on auction with "500" and "1500" by JSON file as "super-admin-adama"
2s 128ms
And
Add a bid "1500" to an auction by JSON file as "paa1-carrier@qa.qa-test" for "super-admin-adama"
406ms
And
Add a bid "500" to an auction by JSON file as "paa2-carrier@qa.qa-test" for "super-admin-adama"
390ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Nie otrzymano zlecenia"
5s 307ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
076ms
After
Hooks.cleanUserDetailsAfterTest()
254ms
Scenario Outline
Check mail after bid has been added to auction
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "swisskrono-producer" and set token of apiUsername "super-admin-skz"
2s 506ms
And
Prepare user "swisskrono-producer" details with all notifications and "apolloautomattest@gmail.com" by JSON file
360ms
And
Create transport "CREATE_SMALLS_IMPORT" by JSON file as "super-admin-skz"
1s 239ms
And
Set transport on auction with "500" and "1500" by JSON file as "super-admin-skz"
2s 105ms
And
Add a bid "1500" to an auction by JSON file as "pskza1-carrier@qa.qa-test" for "pskza1-carrier@qa.qa-test"
195ms
And
Wait till auction end
1m 58s 019ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Dodano nową ofertę"
2m 41s 414ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
091ms
After
Hooks.cleanUserDetailsAfterTest()
322ms
Scenario Outline
Check mail after auction without bids
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "adama-admin" and set token of apiUsername "super-admin-adama"
1s 107ms
And
Prepare user "adama-admin" details with all notifications and "apolloautomattest@gmail.com" by JSON file
207ms
And
Create transport "CREATE_TRANSPORT" by JSON file as "super-admin-adama"
1s 236ms
And
Set transport on auction with "500" and "1500" by JSON file as "super-admin-adama"
2s 103ms
And
Wait till auction end
1m 58s 019ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Aukcja zakończona bez ofert"
5s 446ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
121ms
After
Hooks.cleanUserDetailsAfterTest()
207ms
Scenario Outline
Check mail after loosing first place in auction
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "adama-admin" and set token of apiUsername "super-admin-adama"
1s 534ms
And
Prepare user "paa1-carrier@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
317ms
And
Create transport "CREATE_TRANSPORT" by JSON file as "super-admin-adama"
1s 230ms
And
Set transport on auction with "500" and "1500" by JSON file as "super-admin-adama"
2s 133ms
And
Add a bid "1500" to an auction by JSON file as "paa1-carrier@qa.qa-test" for "super-admin-adama"
203ms
And
Add a bid "500" to an auction by JSON file as "paa2-carrier@qa.qa-test" for "super-admin-adama"
321ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Oferta przelicytowana"
15s 818ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
080ms
After
Hooks.cleanUserDetailsAfterTest()
288ms
Scenario Outline
Check mail after winning an auction
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "adama-admin" and set token of apiUsername "super-admin-adama"
1s 102ms
And
Prepare user "paa1-carrier@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
330ms
And
Create transport "CREATE_TRANSPORT" by JSON file as "super-admin-adama"
1s 218ms
And
Set transport on auction with "500" and "1500" by JSON file as "super-admin-adama"
2s 111ms
And
Add a bid "1500" to an auction by JSON file as "paa1-carrier@qa.qa-test" for "super-admin-adama"
193ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Otrzymano zlecenie"
2m 20s 023ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
083ms
After
Hooks.cleanUserDetailsAfterTest()
281ms
Scenario Outline
Check mail after accepting minimal price
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "adama-admin" and set token of apiUsername "super-admin-adama"
1s 115ms
And
Prepare user "paa1-carrier@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
310ms
And
Create transport "CREATE_TRANSPORT" by JSON file as "super-admin-adama"
1s 204ms
And
Set transport on auction with "500" and "1500" by JSON file as "super-admin-adama"
2s 113ms
And
Add a bid "500" to an auction by JSON file as "paa1-carrier@qa.qa-test" for "super-admin-adama"
304ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Otrzymano zlecenie"
5s 230ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
077ms
After
Hooks.cleanUserDetailsAfterTest()
266ms
Scenario Outline
Check mail two hours before auction ends
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "paa1-carrier@qa.qa-test" and set token of apiUsername "super-admin-adama"
1s 660ms
And
Prepare user "paa1-carrier@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
359ms
And
Create transport "CREATE_TRANSPORT" by JSON file as "super-admin-adama"
1s 250ms
And
Set transport on auction with "500" and "1500" by JSON file as "super-admin-adama" and finish of auction in "121" minutes
2s 145ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Zakończenie aukcji"
20s 695ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
085ms
After
Hooks.cleanUserDetailsAfterTest()
287ms
Scenario Outline
Check if mail was sent to after discrepancy report generation
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "hochland-admin" and set token of apiUsername "super-admin-hochland"
1s 320ms
And
Prepare user "hochland-admin" details with all notifications and "apolloautomattest@gmail.com" by JSON file
623ms
And
Create transport "CREATE_DELIVERY" by JSON file as "super-admin-hochland"
1s 483ms
And
Go to "TRANSPORT_TABLE"
142ms
And
Go to transport details "DELIVERY"
2s 709ms
And
Get inputs from database "EDIT_DELIVERY" "super-admin-hochland"
037ms
And
Fill transport form
38s 084ms
java.lang.NullPointerException
at CucumberTests.Transport.Transport.fillTextOrNumberInput(Transport.java:189)
at CucumberTests.Transport.Transport.fillForm(Transport.java:160)
at CucumberTests.Transport.CreateTransport.fillTransportForm(CreateTransport.java:184)
at ✽.Fill transport form(file:Features/Atom/Mail/DiscrepancyReportMail.feature:11)
And
Open section: "discrepancy-report-panel"
000ms
And
Fill discrepancy report section
000ms
And
Go to transport details "DELIVERY"
000ms
And
Change filled value in details "rodo-acceptance" "checkbox" "true" "0"
000ms
And
Generate discrepancy report
000ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Utworzono protokół niezgodności"
000ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
093ms
After
Hooks.cleanUserDetailsAfterTest()
387ms
Scenario Outline
Check if mail was sent after updating mode of transportation
Before
Hooks.showScenarioName(Scenario)
000ms
Given
Set token of apiUsername "super-admin-bausch"
091ms
And
Prepare user "super-admin-bausch" details with all notifications and "apolloautomattest@gmail.com" by JSON file
373ms
When
Create default mode of transportation by API with "pba1-carrier"
140ms
Then
Update mode of transportation by API with "pba1-carrier": "BBBB0000" "Model2" "Marka2" "CCCC0000"
080ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Środek transportu BBBB0000 został zaktualizowany"
5s 452ms
Then
Check if user got a mail
000ms
After
Hooks.cleanUserDetailsAfterTest()
305ms
After
Hooks.deleteModeOfTransportationAfterTest()
097ms
Scenario Outline
Check if mail was sent after creating mode of transportation
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Set token of apiUsername "super-admin-bausch"
099ms
And
Prepare user "super-admin-bausch" details with all notifications and "apolloautomattest@gmail.com" by JSON file
349ms
When
Create default mode of transportation by API with "pba1-carrier"
088ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Nowy środek transportu"
5s 184ms
Then
Check if user got a mail
000ms
After
Hooks.cleanUserDetailsAfterTest()
300ms
After
Hooks.deleteModeOfTransportationAfterTest()
059ms
Scenario Outline
Check if mail was sent to after transport delay
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "hochland-admin" and set token of apiUsername "super-admin-hochland"
2s 324ms
And
Prepare user "pha2-carrier@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
392ms
And
Set basic authorities "ROLE_CAN_PLAN_ADVICE_IN_THE_PAST" to user "hochland-admin"
028ms
And
Create transport "CREATE_DELIVERY" by JSON file as "super-admin-hochland"
1s 424ms
And
Go to "WAREHOUSE_TAB"
739ms
And
Select warehouse "Serownia"
1s 366ms
And
Set week view
1s 095ms
And
Show yesterday
1s 075ms
And
Move window into the past
315ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "spóźnił się na"
1m 2s 167ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
129ms
After
Hooks.cleanUserDetailsAfterTest()
342ms
After
Hooks.rollbackAddedAuthorities()
019ms
Scenario Outline
Check if mail was sent to after transport creation
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "swisskrono-admin" and set token of apiUsername "super-admin-skz"
2s 042ms
And
Prepare user "swisskrono-admin" details with all notifications and "apolloautomattest@gmail.com" by JSON file
362ms
And
Create transport "CREATE_SMALLS_IMPORT" by JSON file as "super-admin-skz"
1s 285ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Drobnica import"
1m 2s 625ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
078ms
After
Hooks.cleanUserDetailsAfterTest()
297ms
Scenario Outline
Check if mail was sent to after transport creation
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "swisskrono-admin" and set token of apiUsername "super-admin-skz"
1s 859ms
And
Prepare user "swisskrono-admin" details with all notifications and "apolloautomattest@gmail.com" by JSON file
337ms
And
Create transport "CREATE_SMALLS_EXPORT" by JSON file as "super-admin-skz"
1s 314ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Drobnica eksport"
1m 2s 528ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
083ms
After
Hooks.cleanUserDetailsAfterTest()
308ms
Scenario Outline
Check if mail was sent to carrier after transport transfer
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "adama-admin" and set token of apiUsername "super-admin-adama"
1s 115ms
And
Prepare user "paa1-carrier@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
345ms
And
Create transport "CREATE_TRANSPORT" by JSON file as "super-admin-adama"
1s 225ms
And
Transfer transport to carrier "Przewoźnik Adama Automat 1" with "true"
19s 163ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Zlecenie czeka na akceptację"
5s 193ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
098ms
After
Hooks.cleanUserDetailsAfterTest()
243ms
Scenario Outline
Check if mail was sent to carrier after transport transfer with no confirmation
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "adama-admin" and set token of apiUsername "super-admin-adama"
1s 083ms
And
Prepare user "paa1-carrier@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
303ms
And
Create transport "CREATE_TRANSPORT" by JSON file as "super-admin-adama"
1s 213ms
And
Transfer transport to carrier "Przewoźnik Adama Automat 1" with "false"
19s 213ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Zostało przekazane nowe zlecenie"
5s 185ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
076ms
After
Hooks.cleanUserDetailsAfterTest()
297ms
Scenario Outline
Check mail after loosing inquiry
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "swisskrono-admin" and set token of apiUsername "super-admin-skz"
1s 806ms
And
Prepare user "pskza1-carrier@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
417ms
And
Create transport "CREATE_SMALLS_IMPORT" by JSON file as "super-admin-skz"
1s 212ms
And
Set transport on auction with "500" and "1500" by JSON file as "super-admin-skz"
2s 159ms
And
Add a bid "1500" to an auction by JSON file as "pskza1-carrier@qa.qa-test" for "pskza1-carrier@qa.qa-test"
223ms
And
Add a bid "500" to an auction by JSON file as "pskza2-carrier-2@qa.qa-test" for "pskza2-carrier-2@qa.qa-test"
203ms
Then
If user is login then logout
245ms
And
Login as "swisskrono-admin"
977ms
And
Go to auction details
1s 190ms
And
Pass transport to carrier from auction details
1s 250ms
And
Get mail "apolloautomattest@gmail.com" message from mailgun with "Nie otrzymano zlecenia"
36s 279ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
116ms
After
Hooks.cleanUserDetailsAfterTest()
335ms
Scenario Outline
Check mail after creating new inquiry
Before
Hooks.showScenarioName(Scenario)
000ms
Given
Login as "swisskrono-admin" and set token of apiUsername "super-admin-skz"
1s 246ms
And
Prepare user "pskza1-carrier@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
439ms
And
Create transport "CREATE_SMALLS_IMPORT" by JSON file as "super-admin-skz"
1s 226ms
And
Set transport on auction with "500" and "1500" by JSON file as "super-admin-skz"
2s 118ms
And
Get mail "apolloautomattest@gmail.com" message from mailgun with "Nowe zapytanie ofertowe"
5s 191ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
085ms
After
Hooks.cleanUserDetailsAfterTest()
381ms
Scenario Outline
Check if remind password http status is ok
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Set token of apiUsername "super-admin-adama"
098ms
And
Prepare user "adama-admin" details with all notifications and "automaty10@o2.pl" by JSON file
238ms
Then
Send password remind email "automaty10@o2.pl" and check if status is ok
034ms
After
Hooks.cleanUserDetailsAfterTest()
191ms
Scenario Outline
Check if it possible to advice transport when transport is created by sk API
The scenario checks if you can correctly add an advice to the order. After correct creation of the advice, the validity of the advice data on the platform is checked.
Before
Hooks.showScenarioName(Scenario)
000ms
Given
Login as "swisskrono-admin" and set token of apiUsername "super-admin-skz"
1s 048ms
And
Prepare user "swisskrono-admin" details with all notifications and "" by JSON file
352ms
And
Get inputs from database "CREATE_CONTAINER" "super-admin-skz"
037ms
And
Add transport by SKApi in "MGW" assigned to ""
003ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
036ms
And
Check is transport "CONTAINER" created in transport table and set transport id
6s 301ms
When
Click button advice in transport table "CONTAINER"
089ms
And
Set advice window in schedule
2s 510ms
And
Fill advice form
17s 622ms
java.lang.NullPointerException
at CucumberTests.Transport.Transport.fillTextOrNumberInput(Transport.java:189)
at CucumberTests.Transport.Transport.fillForm(Transport.java:160)
at CucumberTests.Transport.AdviceTransport.fillAdviceForm(AdviceTransport.java:121)
at ✽.Fill advice form(file:Features/Atom/SK_API/SkApiTransportAdvice.feature:14)
And
Click advice save button and wait for advice form to disappear
000ms
And
Go to "TRANSPORT_TABLE"
000ms
And
Go to transport details "CONTAINER"
000ms
Then
Check are advice values equals
000ms
After
Hooks.deleteTransportAfterTest()
075ms
After
Hooks.cleanUserDetailsAfterTest()
258ms
Scenario Outline
Check if it possible to advice transport when transport is created by sk API
The scenario checks if you can correctly add an advice to the order. After correct creation of the advice, the validity of the advice data on the platform is checked.
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "swisskrono-admin" and set token of apiUsername "super-admin-skz"
1s 892ms
And
Prepare user "swisskrono-admin" details with all notifications and "" by JSON file
350ms
And
Get inputs from database "CREATE_OWN_COLLECTION" "super-admin-skz"
039ms
And
Add transport by SKApi in "MGW" assigned to ""
003ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
036ms
And
Check is transport "OWN_COLLECTION" created in transport table and set transport id
6s 382ms
When
Click button advice in transport table "OWN_COLLECTION"
097ms
And
Set advice window in schedule
2s 548ms
And
Fill advice form
17s 588ms
java.lang.NullPointerException
at CucumberTests.Transport.Transport.fillTextOrNumberInput(Transport.java:189)
at CucumberTests.Transport.Transport.fillForm(Transport.java:160)
at CucumberTests.Transport.AdviceTransport.fillAdviceForm(AdviceTransport.java:121)
at ✽.Fill advice form(file:Features/Atom/SK_API/SkApiTransportAdvice.feature:14)
And
Click advice save button and wait for advice form to disappear
000ms
And
Go to "TRANSPORT_TABLE"
000ms
And
Go to transport details "OWN_COLLECTION"
000ms
Then
Check are advice values equals
000ms
After
Hooks.deleteTransportAfterTest()
063ms
After
Hooks.cleanUserDetailsAfterTest()
277ms
Scenario Outline
Check if it possible to advice transport when transport is created by sk API
The scenario checks if you can correctly add an advice to the order. After correct creation of the advice, the validity of the advice data on the platform is checked.
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "swisskrono-admin" and set token of apiUsername "super-admin-skz"
1s 742ms
And
Prepare user "swisskrono-admin" details with all notifications and "" by JSON file
350ms
And
Get inputs from database "CREATE_TRANSPORT_ORDER" "super-admin-skz"
040ms
And
Add transport by SKApi in "MGW" assigned to ""
003ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
036ms
And
Check is transport "TRANSPORT_ORDER" created in transport table and set transport id
2s 776ms
When
Click button advice in transport table "TRANSPORT_ORDER"
090ms
And
Set advice window in schedule
2s 540ms
And
Fill advice form
17s 578ms
java.lang.NullPointerException
at CucumberTests.Transport.Transport.fillTextOrNumberInput(Transport.java:189)
at CucumberTests.Transport.Transport.fillForm(Transport.java:160)
at CucumberTests.Transport.AdviceTransport.fillAdviceForm(AdviceTransport.java:121)
at ✽.Fill advice form(file:Features/Atom/SK_API/SkApiTransportAdvice.feature:14)
And
Click advice save button and wait for advice form to disappear
000ms
And
Go to "TRANSPORT_TABLE"
000ms
And
Go to transport details "TRANSPORT_ORDER"
000ms
Then
Check are advice values equals
000ms
After
Hooks.deleteTransportAfterTest()
076ms
After
Hooks.cleanUserDetailsAfterTest()
263ms
Scenario Outline
Check if it possible to advice transport when transport is created by sk API
The scenario checks if you can correctly add an advice to the order. After correct creation of the advice, the validity of the advice data on the platform is checked.
Before
Hooks.showScenarioName(Scenario)
000ms
Given
Login as "pskza1-carrier@qa.qa-test" and set token of apiUsername "super-admin-skz"
1s 969ms
And
Prepare user "pskza1-carrier@qa.qa-test" details with all notifications and "" by JSON file
513ms
And
Get inputs from database "CREATE_TRANSPORT_ORDER" "super-admin-skz"
037ms
And
Add transport by SKApi in "MGW" assigned to ""
003ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
036ms
And
Check is transport "TRANSPORT_ORDER" created in transport table and set transport id
5s 759ms
When
Click button advice in transport table "TRANSPORT_ORDER"
093ms
And
Set advice window in schedule
2s 558ms
And
Fill advice form
17s 575ms
java.lang.NullPointerException
at CucumberTests.Transport.Transport.fillTextOrNumberInput(Transport.java:189)
at CucumberTests.Transport.Transport.fillForm(Transport.java:160)
at CucumberTests.Transport.AdviceTransport.fillAdviceForm(AdviceTransport.java:121)
at ✽.Fill advice form(file:Features/Atom/SK_API/SkApiTransportAdvice.feature:14)
And
Click advice save button and wait for advice form to disappear
000ms
And
Go to "TRANSPORT_TABLE"
000ms
And
Go to transport details "TRANSPORT_ORDER"
000ms
Then
Check are advice values equals
000ms
After
Hooks.deleteTransportAfterTest()
087ms
After
Hooks.cleanUserDetailsAfterTest()
346ms
Scenario Outline
Check if it possible to advice transport when transport is created by sk API
The scenario checks if you can correctly add an advice to the order. After correct creation of the advice, the validity of the advice data on the platform is checked.
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "swisskrono-tradesman@qa.qa-test" and set token of apiUsername "super-admin-skz"
1s 755ms
And
Prepare user "swisskrono-tradesman@qa.qa-test" details with all notifications and "automaty@test.pl" by JSON file
222ms
And
Get inputs from database "CREATE_TRANSPORT_ORDER" "super-admin-skz"
040ms
And
Add transport by SKApi in "MGW" assigned to "automaty@test.pl"
003ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
037ms
And
Check is transport "TRANSPORT_ORDER" created in transport table and set transport id
2s 926ms
When
Click button advice in transport table "TRANSPORT_ORDER"
080ms
And
Set advice window in schedule
30s 578ms
org.openqa.selenium.TimeoutException: Expected condition failed: waiting for visibility of element located by By.xpath: //div[contains(@class, 'success-alert')] (tried for 30 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.checkElementIsVisible(BasePage.java:177)
at CucumberTests.Transport.AdviceTransport.setAdviceWindowInSchedule(AdviceTransport.java:85)
at ✽.Set advice window in schedule(file:Features/Atom/SK_API/SkApiTransportAdvice.feature:13)
Caused by: org.openqa.selenium.NoSuchElementException: Cannot locate an element using By.xpath: //div[contains(@class, 'success-alert')]
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: 'apollo-test', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '5.8.0-63-generic', java.version: '1.8.0_292'
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.FluentWait.until(FluentWait.java:208)
at Pages.BasePage.checkElementIsVisible(BasePage.java:177)
at CucumberTests.Transport.AdviceTransport.setAdviceWindowInSchedule(AdviceTransport.java:85)
at sun.reflect.GeneratedMethodAccessor253.invoke(Unknown Source)
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)
And
Fill advice form
000ms
And
Click advice save button and wait for advice form to disappear
000ms
And
Go to "TRANSPORT_TABLE"
000ms
And
Go to transport details "TRANSPORT_ORDER"
000ms
Then
Check are advice values equals
000ms
After
Hooks.deleteTransportAfterTest()
078ms
After
Hooks.cleanUserDetailsAfterTest()
216ms
Scenario Outline
Verify that advice data are saved properly
The scenario checks if you can correctly add an advice to the order. After the correct addition of the advice on the platform, the correctness of the data that has been sent to the SK API microservice database is also verified.
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "swisskrono-admin" and set token of apiUsername "super-admin-skz"
1s 773ms
And
Prepare user "swisskrono-admin" details with all notifications and "" by JSON file
359ms
And
Get inputs from database "CREATE_OWN_COLLECTION" "super-admin-skz"
038ms
And
Add transport by SKApi in "MGW" assigned to ""
003ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
035ms
And
Check is transport "OWN_COLLECTION" created in transport table and set transport id
6s 364ms
When
Click button advice in transport table "OWN_COLLECTION"
100ms
And
Set advice window in schedule
2s 536ms
And
Fill advice form
17s 629ms
java.lang.NullPointerException
at CucumberTests.Transport.Transport.fillTextOrNumberInput(Transport.java:189)
at CucumberTests.Transport.Transport.fillForm(Transport.java:160)
at CucumberTests.Transport.AdviceTransport.fillAdviceForm(AdviceTransport.java:121)
at ✽.Fill advice form(file:Features/Atom/SK_API/SkApiTransportAdvice.feature:38)
And
Click advice save button and wait for advice form to disappear
000ms
And
Go to "TRANSPORT_TABLE"
000ms
Then
Check advice data in SK API database "OWN_COLLECTION"
000ms
After
Hooks.deleteTransportAfterTest()
100ms
After
Hooks.cleanUserDetailsAfterTest()
259ms
Scenario Outline
Verify that advice data are saved properly
The scenario checks if you can correctly add an advice to the order. After the correct addition of the advice on the platform, the correctness of the data that has been sent to the SK API microservice database is also verified.
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "swisskrono-admin" and set token of apiUsername "super-admin-skz"
1s 751ms
And
Prepare user "swisskrono-admin" details with all notifications and "" by JSON file
344ms
And
Get inputs from database "CREATE_CONTAINER" "super-admin-skz"
037ms
And
Add transport by SKApi in "MGW" assigned to ""
003ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
036ms
And
Check is transport "CONTAINER" created in transport table and set transport id
3s 317ms
When
Click button advice in transport table "CONTAINER"
086ms
And
Set advice window in schedule
2s 514ms
And
Fill advice form
17s 560ms
java.lang.NullPointerException
at CucumberTests.Transport.Transport.fillTextOrNumberInput(Transport.java:189)
at CucumberTests.Transport.Transport.fillForm(Transport.java:160)
at CucumberTests.Transport.AdviceTransport.fillAdviceForm(AdviceTransport.java:121)
at ✽.Fill advice form(file:Features/Atom/SK_API/SkApiTransportAdvice.feature:38)
And
Click advice save button and wait for advice form to disappear
000ms
And
Go to "TRANSPORT_TABLE"
000ms
Then
Check advice data in SK API database "CONTAINER"
000ms
After
Hooks.deleteTransportAfterTest()
073ms
After
Hooks.cleanUserDetailsAfterTest()
283ms
Scenario Outline
Verify that advice data are saved properly
The scenario checks if you can correctly add an advice to the order. After the correct addition of the advice on the platform, the correctness of the data that has been sent to the SK API microservice database is also verified.
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "swisskrono-admin" and set token of apiUsername "super-admin-skz"
1s 692ms
And
Prepare user "swisskrono-admin" details with all notifications and "" by JSON file
344ms
And
Get inputs from database "CREATE_TRANSPORT_ORDER" "super-admin-skz"
037ms
And
Add transport by SKApi in "MGW" assigned to ""
003ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
036ms
And
Check is transport "TRANSPORT_ORDER" created in transport table and set transport id
5s 802ms
When
Click button advice in transport table "TRANSPORT_ORDER"
095ms
And
Set advice window in schedule
2s 547ms
And
Fill advice form
17s 560ms
java.lang.NullPointerException
at CucumberTests.Transport.Transport.fillTextOrNumberInput(Transport.java:189)
at CucumberTests.Transport.Transport.fillForm(Transport.java:160)
at CucumberTests.Transport.AdviceTransport.fillAdviceForm(AdviceTransport.java:121)
at ✽.Fill advice form(file:Features/Atom/SK_API/SkApiTransportAdvice.feature:38)
And
Click advice save button and wait for advice form to disappear
000ms
And
Go to "TRANSPORT_TABLE"
000ms
Then
Check advice data in SK API database "TRANSPORT_ORDER"
000ms
After
Hooks.deleteTransportAfterTest()
079ms
After
Hooks.cleanUserDetailsAfterTest()
287ms
Scenario Outline
Verify that advice data are saved properly
The scenario checks if you can correctly add an advice to the order. After the correct addition of the advice on the platform, the correctness of the data that has been sent to the SK API microservice database is also verified.
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "pskza1-carrier@qa.qa-test" and set token of apiUsername "super-admin-skz"
1s 598ms
And
Prepare user "pskza1-carrier@qa.qa-test" details with all notifications and "" by JSON file
459ms
And
Get inputs from database "CREATE_TRANSPORT_ORDER" "super-admin-skz"
036ms
And
Add transport by SKApi in "MGW" assigned to ""
002ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
035ms
And
Check is transport "TRANSPORT_ORDER" created in transport table and set transport id
2s 814ms
When
Click button advice in transport table "TRANSPORT_ORDER"
076ms
And
Set advice window in schedule
2s 537ms
And
Fill advice form
17s 571ms
java.lang.NullPointerException
at CucumberTests.Transport.Transport.fillTextOrNumberInput(Transport.java:189)
at CucumberTests.Transport.Transport.fillForm(Transport.java:160)
at CucumberTests.Transport.AdviceTransport.fillAdviceForm(AdviceTransport.java:121)
at ✽.Fill advice form(file:Features/Atom/SK_API/SkApiTransportAdvice.feature:38)
And
Click advice save button and wait for advice form to disappear
000ms
And
Go to "TRANSPORT_TABLE"
000ms
Then
Check advice data in SK API database "TRANSPORT_ORDER"
000ms
After
Hooks.deleteTransportAfterTest()
082ms
After
Hooks.cleanUserDetailsAfterTest()
327ms
Scenario Outline
Verify that advice data are saved properly
The scenario checks if you can correctly add an advice to the order. After the correct addition of the advice on the platform, the correctness of the data that has been sent to the SK API microservice database is also verified.
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "swisskrono-tradesman@qa.qa-test" and set token of apiUsername "super-admin-skz"
1s 912ms
And
Prepare user "swisskrono-tradesman@qa.qa-test" details with all notifications and "automaty@test.pl" by JSON file
259ms
And
Get inputs from database "CREATE_TRANSPORT_ORDER" "super-admin-skz"
039ms
And
Add transport by SKApi in "MGW" assigned to "automaty@test.pl"
003ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
038ms
And
Check is transport "TRANSPORT_ORDER" created in transport table and set transport id
2s 897ms
When
Click button advice in transport table "TRANSPORT_ORDER"
087ms
And
Set advice window in schedule
2s 564ms
And
Fill advice form
17s 642ms
java.lang.NullPointerException
at CucumberTests.Transport.Transport.fillTextOrNumberInput(Transport.java:189)
at CucumberTests.Transport.Transport.fillForm(Transport.java:160)
at CucumberTests.Transport.AdviceTransport.fillAdviceForm(AdviceTransport.java:121)
at ✽.Fill advice form(file:Features/Atom/SK_API/SkApiTransportAdvice.feature:38)
And
Click advice save button and wait for advice form to disappear
000ms
And
Go to "TRANSPORT_TABLE"
000ms
Then
Check advice data in SK API database "TRANSPORT_ORDER"
000ms
After
Hooks.deleteTransportAfterTest()
067ms
After
Hooks.cleanUserDetailsAfterTest()
237ms
Scenario Outline
Check if it is possible to reject status by guard in transport table
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "lantmannen-admin" and set token of apiUsername "super-admin-lantmannen"
1s 344ms
And
Prepare user "lantmannen-guard" details with all notifications and "apolloautomattest@gmail.com" by JSON file
189ms
And
Prepare user "pla1-carrier" details with all notifications and "apolloautomattest@gmail.com" by JSON file
182ms
And
Add access to the warehouse "Magazyn - Nowa Sól" to the user "lantmannen-guard" by JSON file
112ms
And
Login as "lantmannen-guard" and set token of apiUsername "super-admin-lantmannen"
1s 175ms
And
Create transport "CREATE_LOAD" by JSON file as "super-admin-lantmannen"
1s 282ms
And
Check if reject date is not visible
15s 006ms
When
Reject status: Book of disinfection
071ms
And
Check if reject date is visible
260ms
Then
If user is login then logout
081ms
And
Login as "lantmannen-admin"
1s 122ms
And
Check if note was added to transport after status rejection
1s 241ms
And
Check if history note was added to transport after status rejection - "LOAD"
3s 507ms
And
Get mail "apolloautomattest@gmail.com" message from mailgun with "Nieaktualna księga mycia i dezynfekcji"
26s 383ms
And
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
099ms
After
Hooks.cleanUserDetailsAfterTest()
166ms
After
Hooks.rollbackWarehousesAccess()
115ms
Scenario Outline
Permission - Edit user main data [A-7965]
Before
Hooks.showScenarioName(Scenario)
000ms
Given
Set token of apiUsername "super-admin-adama"
088ms
And
Set basic authorities "ROLE_EDIT_USERS_MAIN_DATA" to user "oaa1-receiver-2@qa.qa-test"
027ms
When
Login as "oaa1-receiver-2@qa.qa-test"
1s 076ms
And
Go to user "oaa1-receiver@qa.qa-test" details edition
137ms
And
Change user details "email" to "newEmailAddress@newEmail.com"
15s 025ms
org.openqa.selenium.TimeoutException: Expected condition failed: waiting for element to be clickable: By.xpath: //button[@data-button-name='save'] (tried for 10 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.User.EditUserTest.changeUserEmailAddressByAccountDetails(EditUserTest.java:189)
at ✽.Change user details "email" to "newEmailAddress@newEmail.com"(file:Features/Atom/Users/UserAuthority.feature:9)
Caused by: org.openqa.selenium.NoSuchElementException: Cannot locate an element using By.xpath: //button[@data-button-name='save']
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: 'apollo-test', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '5.8.0-63-generic', java.version: '1.8.0_292'
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.User.EditUserTest.changeUserEmailAddressByAccountDetails(EditUserTest.java:189)
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)
And
Change user details "phone" to "123456789"
000ms
Then
Save user details
000ms
After
Hooks.cleanUserDetailsAfterTest()
000ms
java.lang.NullPointerException
at Utils.JsonApiUtil.editJsonTextNode(JsonApiUtil.java:158)
at CucumberTests.Hooks.cleanUserDetailsAfterTest(Hooks.java:335)
at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
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)
After
Hooks.rollbackAddedAuthorities()
027ms