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"
094ms
And
Prepare user "dnfa1-supplier" details with all notifications and "automaty314153@test.pl" by JSON file
419ms
And
Create invitation by JSON file "super-admin-farmacol" for "automaty314153@test.pl" "CREATE_SUPPLIER_INVITATION"
464ms
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()
202ms
Scenario Outline
Check if rejected invitation is visible in rejected tab
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Set token of apiUsername "super-admin-piast"
088ms
And
Delete invitations with email "automaty31415@test.pl"
003ms
And
Prepare user "piast-admin" details with all notifications and "automaty31415@test.pl" by JSON file
176ms
Then
Create invitation by JSON file "super-admin-alrec" for "automaty31415@test.pl" "CREATE_SUPPLIER_INVITATION"
130ms
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()
144ms
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"
092ms
And
Prepare user "dha1-supplier-2@qa.qa-test" details with all notifications and "automatyy3333@test.pl" by JSON file
238ms
When
Login as "neuca-admin" and set token of apiUsername "super-admin-neuca"
895ms
And
Go to "INVITATIONS_TAB"
170ms
And
Create invitation for "existing" user "SUPPLIER" "SUPPLIER" "automatyy3333@test.pl" "PL"
1s 080ms
Then
Create invitation success alert is displayed
040ms
After
Hooks.deleteInvitationAfterTest()
007ms
After
Hooks.cleanUserDetailsAfterTest()
224ms
Scenario Outline
Check if mail was sent to creator after creating advice
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "adama-admin" and set token of apiUsername "super-admin-adama"
947ms
And
Prepare user "adama-admin" details with all notifications and "apolloautomattest@gmail.com" by JSON file
277ms
And
Create transport "CREATE_CONTAINER" by JSON file as "super-admin-adama"
1s 214ms
And
Get inputs from database "ADVICE_CONTAINER" "super-admin-adama"
037ms
And
Show all transport types
1s 036ms
And
Click button advice in transport table "CONTAINER"
108ms
And
Set advice window in schedule
2s 416ms
And
Fill advice form
16s 265ms
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()
065ms
After
Hooks.cleanUserDetailsAfterTest()
179ms
Scenario Outline
Check if mail was sent to creator after creating advice
Before
Hooks.showScenarioName(Scenario)
000ms
Given
Login as "piast-admin" and set token of apiUsername "super-admin-piast"
1s 103ms
And
Prepare user "piast-admin" details with all notifications and "apolloautomattest@gmail.com" by JSON file
153ms
And
Create transport "CREATE_DELIVERY_FRONT" by JSON file as "super-admin-piast"
1s 222ms
And
Get inputs from database "ADVICE_DELIVERY" "super-admin-piast"
038ms
And
Show all transport types
1s 040ms
And
Click button advice in transport table "DELIVERY"
088ms
And
Set advice window in schedule
2s 588ms
And
Fill advice form
20s 283ms
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()
093ms
After
Hooks.cleanUserDetailsAfterTest()
187ms
Scenario Outline
Check if mail was sent to creator after creating advice
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "keeeper-admin" and set token of apiUsername "super-admin-keeeper"
1s 072ms
And
Prepare user "keeeper-admin" details with all notifications and "apolloautomattest@gmail.com" by JSON file
282ms
And
Create transport "CREATE_LOAD" by JSON file as "super-admin-keeeper"
1s 232ms
And
Get inputs from database "ADVICE_LOAD" "super-admin-keeeper"
037ms
And
Show all transport types
1s 040ms
And
Click button advice in transport table "LOAD"
089ms
And
Set advice window in schedule
2s 439ms
And
Fill advice form
16s 220ms
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()
070ms
After
Hooks.cleanUserDetailsAfterTest()
181ms
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 435ms
And
Prepare user "adama-admin" details with all notifications and "apolloautomattest@gmail.com" by JSON file
206ms
And
Create transport "CREATE_CONTAINER" by JSON file as "super-admin-adama"
1s 201ms
And
Show all transport types
1s 044ms
And
Create advice "ADVICE_CONTAINER" "CONTAINER" "super-admin-adama"
18s 728ms
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()
064ms
After
Hooks.cleanUserDetailsAfterTest()
204ms
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 447ms
And
Prepare user "piast-admin" details with all notifications and "apolloautomattest@gmail.com" by JSON file
166ms
And
Create transport "CREATE_DELIVERY_FRONT" by JSON file as "super-admin-piast"
1s 244ms
And
Show all transport types
1s 044ms
And
Create advice "ADVICE_DELIVERY" "DELIVERY" "super-admin-piast"
22s 903ms
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()
083ms
After
Hooks.cleanUserDetailsAfterTest()
135ms
Scenario Outline
Check if mail was sent to creator after editing advice
Before
Hooks.showScenarioName(Scenario)
000ms
Given
Login as "keeeper-admin" and set token of apiUsername "super-admin-keeeper"
1s 530ms
And
Prepare user "keeeper-admin" details with all notifications and "apolloautomattest@gmail.com" by JSON file
239ms
And
Create transport "CREATE_LOAD" by JSON file as "super-admin-keeeper"
1s 211ms
And
Show all transport types
1s 043ms
And
Create advice "ADVICE_LOAD" "LOAD" "super-admin-keeeper"
18s 785ms
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()
065ms
After
Hooks.cleanUserDetailsAfterTest()
220ms
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"
092ms
And
Prepare user "swiss-krono-delivery-admin" details with all notifications and "apolloautomattest@gmail.com" by JSON file
151ms
And
Create transport "CREATE_DELIVERY" by JSON file as "super-admin-skd"
15s 281ms
And
Confirm status "ARRIVAL" by Public API "v1"
335ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Potwierdzono status Wjazd na teren zakładu"
31s 585ms
Then
Check if user got a mail
000ms
And
Confirm status "DEPARTURE" by Public API "v1"
220ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Potwierdzono status Wyjazd"
31s 368ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
116ms
After
Hooks.cleanUserDetailsAfterTest()
154ms
Scenario Outline
Check if verification mail was sent to transport creator
Before
Hooks.showScenarioName(Scenario)
000ms
Given
Set token of apiUsername "super-admin-hochland"
090ms
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
177ms
And
Login as "dha1-supplier-2@qa.qa-test" and set token of apiUsername "dha1-supplier-2@qa.qa-test"
2s 343ms
And
Create transport "CREATE_DELIVERY" by JSON file as "dha1-supplier-2@qa.qa-test"
15s 345ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Weryfikacja danych awizacji"
1m 18s 754ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
106ms
After
Hooks.cleanUserDetailsAfterTest()
248ms
After
Hooks.rollbackVerificationEmailSettingAfterTest()
010ms
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 405ms
And
Prepare user "paa1-carrier@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
213ms
And
Create transport "CREATE_TRANSPORT" by JSON file as "super-admin-adama"
1s 219ms
And
Set transport on auction with "500" and "20000" by JSON file as "super-admin-adama"
2s 525ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Nowa aukcja"
10s 656ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
073ms
After
Hooks.cleanUserDetailsAfterTest()
245ms
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"
997ms
And
Prepare user "paa1-carrier@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
342ms
And
Create transport "CREATE_TRANSPORT" by JSON file as "super-admin-adama"
1s 211ms
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"
469ms
And
Add a bid "500" to an auction by JSON file as "paa2-carrier@qa.qa-test" for "super-admin-adama"
346ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Nie otrzymano zlecenia"
10s 362ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
080ms
After
Hooks.cleanUserDetailsAfterTest()
261ms
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 523ms
And
Prepare user "swisskrono-producer" details with all notifications and "apolloautomattest@gmail.com" by JSON file
399ms
And
Create transport "CREATE_SMALLS_IMPORT" by JSON file as "super-admin-skz"
1s 251ms
And
Set transport on auction with "500" and "1500" by JSON file as "super-admin-skz"
2s 107ms
And
Add a bid "1500" to an auction by JSON file as "pskza1-carrier@qa.qa-test" for "pskza1-carrier@qa.qa-test"
185ms
And
Wait till auction end
1m 58s 018ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Dodano nową ofertę"
2m 42s 761ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
105ms
After
Hooks.cleanUserDetailsAfterTest()
317ms
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 098ms
And
Prepare user "adama-admin" details with all notifications and "apolloautomattest@gmail.com" by JSON file
232ms
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"
2s 150ms
And
Wait till auction end
1m 58s 018ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Aukcja zakończona bez ofert"
5s 795ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
100ms
After
Hooks.cleanUserDetailsAfterTest()
183ms
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 479ms
And
Prepare user "paa1-carrier@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
297ms
And
Create transport "CREATE_TRANSPORT" by JSON file as "super-admin-adama"
1s 209ms
And
Set transport on auction with "500" and "1500" by JSON file as "super-admin-adama"
2s 139ms
And
Add a bid "1500" to an auction by JSON file as "paa1-carrier@qa.qa-test" for "super-admin-adama"
206ms
And
Add a bid "500" to an auction by JSON file as "paa2-carrier@qa.qa-test" for "super-admin-adama"
326ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Oferta przelicytowana"
10s 801ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
085ms
After
Hooks.cleanUserDetailsAfterTest()
255ms
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 116ms
And
Prepare user "paa1-carrier@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
319ms
And
Create transport "CREATE_TRANSPORT" by JSON file as "super-admin-adama"
1s 234ms
And
Set transport on auction with "500" and "1500" by JSON file as "super-admin-adama"
2s 112ms
And
Add a bid "1500" to an auction by JSON file as "paa1-carrier@qa.qa-test" for "super-admin-adama"
175ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Otrzymano zlecenie"
1m 31s 537ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
077ms
After
Hooks.cleanUserDetailsAfterTest()
286ms
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 017ms
And
Prepare user "paa1-carrier@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
349ms
And
Create transport "CREATE_TRANSPORT" by JSON file as "super-admin-adama"
1s 189ms
And
Set transport on auction with "500" and "1500" by JSON file as "super-admin-adama"
2s 125ms
And
Add a bid "500" to an auction by JSON file as "paa1-carrier@qa.qa-test" for "super-admin-adama"
310ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Otrzymano zlecenie"
5s 406ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
085ms
After
Hooks.cleanUserDetailsAfterTest()
324ms
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 697ms
And
Prepare user "paa1-carrier@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
377ms
And
Create transport "CREATE_TRANSPORT" by JSON file as "super-admin-adama"
1s 246ms
And
Set transport on auction with "500" and "1500" by JSON file as "super-admin-adama" and finish of auction in "121" minutes
2s 163ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Zakończenie aukcji"
16s 600ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
081ms
After
Hooks.cleanUserDetailsAfterTest()
268ms
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 419ms
And
Prepare user "hochland-admin" details with all notifications and "apolloautomattest@gmail.com" by JSON file
575ms
And
Create transport "CREATE_DELIVERY" by JSON file as "super-admin-hochland"
1s 446ms
And
Go to "TRANSPORT_TABLE"
129ms
And
Go to transport details "DELIVERY"
2s 723ms
And
Get inputs from database "EDIT_DELIVERY" "super-admin-hochland"
036ms
And
Fill transport form
38s 113ms
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()
106ms
After
Hooks.cleanUserDetailsAfterTest()
392ms
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"
089ms
And
Prepare user "super-admin-bausch" details with all notifications and "apolloautomattest@gmail.com" by JSON file
393ms
When
Create default mode of transportation by API with "pba1-carrier"
141ms
Then
Update mode of transportation by API with "pba1-carrier": "BBBB0000" "Model2" "Marka2" "CCCC0000"
082ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Środek transportu BBBB0000 został zaktualizowany"
10s 822ms
Then
Check if user got a mail
000ms
After
Hooks.cleanUserDetailsAfterTest()
323ms
After
Hooks.deleteModeOfTransportationAfterTest()
112ms
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"
088ms
And
Prepare user "super-admin-bausch" details with all notifications and "apolloautomattest@gmail.com" by JSON file
395ms
When
Create default mode of transportation by API with "pba1-carrier"
071ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Nowy środek transportu"
5s 251ms
Then
Check if user got a mail
000ms
After
Hooks.cleanUserDetailsAfterTest()
297ms
After
Hooks.deleteModeOfTransportationAfterTest()
061ms
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 398ms
And
Prepare user "pha2-carrier@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
389ms
And
Set basic authorities "ROLE_CAN_PLAN_ADVICE_IN_THE_PAST" to user "hochland-admin"
027ms
And
Create transport "CREATE_DELIVERY" by JSON file as "super-admin-hochland"
1s 441ms
And
Go to "WAREHOUSE_TAB"
720ms
And
Select warehouse "Serownia"
1s 366ms
And
Set week view
1s 094ms
And
Show yesterday
1s 077ms
And
Move window into the past
290ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "spóźnił się na"
52s 560ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
108ms
After
Hooks.cleanUserDetailsAfterTest()
345ms
After
Hooks.rollbackAddedAuthorities()
021ms
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 170ms
And
Prepare user "swisskrono-admin" details with all notifications and "apolloautomattest@gmail.com" by JSON file
351ms
And
Create transport "CREATE_SMALLS_IMPORT" by JSON file as "super-admin-skz"
1s 269ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Drobnica import"
52s 505ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
068ms
After
Hooks.cleanUserDetailsAfterTest()
290ms
Scenario Outline
Check if mail was sent to after transport creation
Before
Hooks.showScenarioName(Scenario)
000ms
Given
Login as "swisskrono-admin" and set token of apiUsername "super-admin-skz"
1s 846ms
And
Prepare user "swisskrono-admin" details with all notifications and "apolloautomattest@gmail.com" by JSON file
305ms
And
Create transport "CREATE_SMALLS_EXPORT" by JSON file as "super-admin-skz"
1s 282ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Drobnica eksport"
10s 769ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
098ms
After
Hooks.cleanUserDetailsAfterTest()
343ms
Scenario Outline
Check if mail was sent to carrier after transport transfer
Before
Hooks.showScenarioName(Scenario)
000ms
Given
Login as "adama-admin" and set token of apiUsername "super-admin-adama"
1s 114ms
And
Prepare user "paa1-carrier@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
343ms
And
Create transport "CREATE_TRANSPORT" by JSON file as "super-admin-adama"
1s 228ms
And
Transfer transport to carrier "Przewoźnik Adama Automat 1" with "true"
19s 177ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Zlecenie czeka na akceptację"
5s 232ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
131ms
After
Hooks.cleanUserDetailsAfterTest()
281ms
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 092ms
And
Prepare user "paa1-carrier@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
325ms
And
Create transport "CREATE_TRANSPORT" by JSON file as "super-admin-adama"
1s 208ms
And
Transfer transport to carrier "Przewoźnik Adama Automat 1" with "false"
19s 210ms
When
Get mail "apolloautomattest@gmail.com" message from mailgun with "Zostało przekazane nowe zlecenie"
5s 219ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
095ms
After
Hooks.cleanUserDetailsAfterTest()
244ms
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 813ms
And
Prepare user "pskza1-carrier@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
412ms
And
Create transport "CREATE_SMALLS_IMPORT" by JSON file as "super-admin-skz"
1s 241ms
And
Set transport on auction with "500" and "1500" by JSON file as "super-admin-skz"
2s 134ms
And
Add a bid "1500" to an auction by JSON file as "pskza1-carrier@qa.qa-test" for "pskza1-carrier@qa.qa-test"
201ms
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"
200ms
Then
If user is login then logout
288ms
And
Login as "swisskrono-admin"
915ms
And
Go to auction details
1s 176ms
And
Pass transport to carrier from auction details
1s 149ms
And
Get mail "apolloautomattest@gmail.com" message from mailgun with "Nie otrzymano zlecenia"
31s 379ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
104ms
After
Hooks.cleanUserDetailsAfterTest()
319ms
Scenario Outline
Check mail after creating new inquiry
Before
Hooks.showScenarioName(Scenario)
002ms
Given
Login as "swisskrono-admin" and set token of apiUsername "super-admin-skz"
1s 210ms
And
Prepare user "pskza1-carrier@qa.qa-test" details with all notifications and "apolloautomattest@gmail.com" by JSON file
451ms
And
Create transport "CREATE_SMALLS_IMPORT" by JSON file as "super-admin-skz"
1s 244ms
And
Set transport on auction with "500" and "1500" by JSON file as "super-admin-skz"
2s 135ms
And
Get mail "apolloautomattest@gmail.com" message from mailgun with "Nowe zapytanie ofertowe"
5s 198ms
Then
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
080ms
After
Hooks.cleanUserDetailsAfterTest()
349ms
Scenario Outline
Check if remind password http status is ok
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Set token of apiUsername "super-admin-adama"
095ms
And
Prepare user "adama-admin" details with all notifications and "automaty10@o2.pl" by JSON file
231ms
Then
Send password remind email "automaty10@o2.pl" and check if status is ok
084ms
After
Hooks.cleanUserDetailsAfterTest()
177ms
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 064ms
And
Prepare user "swisskrono-admin" details with all notifications and "" by JSON file
374ms
And
Get inputs from database "CREATE_CONTAINER" "super-admin-skz"
038ms
And
Add transport by SKApi in "MGW" assigned to ""
003ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
033ms
And
Check is transport "CONTAINER" created in transport table and set transport id
6s 318ms
When
Click button advice in transport table "CONTAINER"
089ms
And
Set advice window in schedule
2s 528ms
And
Fill advice form
17s 543ms
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()
070ms
After
Hooks.cleanUserDetailsAfterTest()
250ms
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 769ms
And
Prepare user "swisskrono-admin" details with all notifications and "" by JSON file
341ms
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"
033ms
And
Check is transport "OWN_COLLECTION" created in transport table and set transport id
3s 339ms
When
Click button advice in transport table "OWN_COLLECTION"
091ms
And
Set advice window in schedule
2s 543ms
And
Fill advice form
17s 587ms
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()
079ms
After
Hooks.cleanUserDetailsAfterTest()
284ms
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 794ms
And
Prepare user "swisskrono-admin" details with all notifications and "" by JSON file
341ms
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"
033ms
And
Check is transport "TRANSPORT_ORDER" created in transport table and set transport id
5s 814ms
When
Click button advice in transport table "TRANSPORT_ORDER"
099ms
And
Set advice window in schedule
2s 526ms
And
Fill advice form
17s 573ms
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()
089ms
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)
000ms
Given
Login as "pskza1-carrier@qa.qa-test" and set token of apiUsername "super-admin-skz"
1s 991ms
And
Prepare user "pskza1-carrier@qa.qa-test" details with all notifications and "" by JSON file
442ms
And
Get inputs from database "CREATE_TRANSPORT_ORDER" "super-admin-skz"
038ms
And
Add transport by SKApi in "MGW" assigned to ""
003ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
034ms
And
Check is transport "TRANSPORT_ORDER" created in transport table and set transport id
1s 141ms
When
Click button advice in transport table "TRANSPORT_ORDER"
090ms
And
Set advice window in schedule
2s 535ms
And
Fill advice form
17s 584ms
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()
103ms
After
Hooks.cleanUserDetailsAfterTest()
358ms
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 712ms
And
Prepare user "swisskrono-tradesman@qa.qa-test" details with all notifications and "automaty@test.pl" by JSON file
265ms
And
Get inputs from database "CREATE_TRANSPORT_ORDER" "super-admin-skz"
036ms
And
Add transport by SKApi in "MGW" assigned to "automaty@test.pl"
003ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
033ms
And
Check is transport "TRANSPORT_ORDER" created in transport table and set transport id
2s 886ms
When
Click button advice in transport table "TRANSPORT_ORDER"
098ms
And
Set advice window in schedule
30s 545ms
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()
061ms
After
Hooks.cleanUserDetailsAfterTest()
238ms
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 753ms
And
Prepare user "swisskrono-admin" details with all notifications and "" by JSON file
342ms
And
Get inputs from database "CREATE_OWN_COLLECTION" "super-admin-skz"
037ms
And
Add transport by SKApi in "MGW" assigned to ""
003ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
033ms
And
Check is transport "OWN_COLLECTION" created in transport table and set transport id
3s 351ms
When
Click button advice in transport table "OWN_COLLECTION"
095ms
And
Set advice window in schedule
2s 535ms
And
Fill advice form
17s 611ms
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()
072ms
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 747ms
And
Prepare user "swisskrono-admin" details with all notifications and "" by JSON file
347ms
And
Get inputs from database "CREATE_CONTAINER" "super-admin-skz"
037ms
And
Add transport by SKApi in "MGW" assigned to ""
004ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
034ms
And
Check is transport "CONTAINER" created in transport table and set transport id
6s 319ms
When
Click button advice in transport table "CONTAINER"
086ms
And
Set advice window in schedule
2s 519ms
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: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()
088ms
After
Hooks.cleanUserDetailsAfterTest()
249ms
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 809ms
And
Prepare user "swisskrono-admin" details with all notifications and "" by JSON file
331ms
And
Get inputs from database "CREATE_TRANSPORT_ORDER" "super-admin-skz"
038ms
And
Add transport by SKApi in "MGW" assigned to ""
003ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
033ms
And
Check is transport "TRANSPORT_ORDER" created in transport table and set transport id
1s 142ms
When
Click button advice in transport table "TRANSPORT_ORDER"
094ms
And
Set advice window in schedule
2s 532ms
And
Fill advice form
17s 562ms
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()
093ms
After
Hooks.cleanUserDetailsAfterTest()
307ms
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 654ms
And
Prepare user "pskza1-carrier@qa.qa-test" details with all notifications and "" by JSON file
468ms
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"
033ms
And
Check is transport "TRANSPORT_ORDER" created in transport table and set transport id
2s 725ms
When
Click button advice in transport table "TRANSPORT_ORDER"
089ms
And
Set advice window in schedule
2s 552ms
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: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()
089ms
After
Hooks.cleanUserDetailsAfterTest()
329ms
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 873ms
And
Prepare user "swisskrono-tradesman@qa.qa-test" details with all notifications and "automaty@test.pl" by JSON file
271ms
And
Get inputs from database "CREATE_TRANSPORT_ORDER" "super-admin-skz"
103ms
And
Add transport by SKApi in "MGW" assigned to "automaty@test.pl"
003ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
034ms
And
Check is transport "TRANSPORT_ORDER" created in transport table and set transport id
2s 830ms
When
Click button advice in transport table "TRANSPORT_ORDER"
089ms
And
Set advice window in schedule
2s 517ms
And
Fill advice form
17s 625ms
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()
074ms
After
Hooks.cleanUserDetailsAfterTest()
234ms
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 383ms
And
Prepare user "lantmannen-guard" details with all notifications and "apolloautomattest@gmail.com" by JSON file
229ms
And
Prepare user "pla1-carrier" details with all notifications and "apolloautomattest@gmail.com" by JSON file
163ms
And
Add access to the warehouse "Magazyn - Nowa Sól" to the user "lantmannen-guard" by JSON file
127ms
And
Login as "lantmannen-guard" and set token of apiUsername "super-admin-lantmannen"
1s 112ms
And
Create transport "CREATE_LOAD" by JSON file as "super-admin-lantmannen"
1s 319ms
And
Check if reject date is not visible
15s 029ms
When
Reject status: Book of disinfection
070ms
And
Check if reject date is visible
327ms
Then
If user is login then logout
309ms
And
Login as "lantmannen-admin"
878ms
And
Check if note was added to transport after status rejection
1s 236ms
And
Check if history note was added to transport after status rejection - "LOAD"
3s 519ms
And
Get mail "apolloautomattest@gmail.com" message from mailgun with "Nieaktualna księga mycia i dezynfekcji"
5s 616ms
And
Check if user got a mail
000ms
After
Hooks.deleteTransportAfterTest()
080ms
After
Hooks.cleanUserDetailsAfterTest()
171ms
After
Hooks.rollbackWarehousesAccess()
113ms
Scenario Outline
Permission - Edit user main data [A-7965]
Before
Hooks.showScenarioName(Scenario)
001ms
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"
038ms
When
Login as "oaa1-receiver-2@qa.qa-test"
1s 119ms
And
Go to user "oaa1-receiver@qa.qa-test" details edition
059ms
And
Change user details "email" to "newEmailAddress@newEmail.com"
15s 023ms
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()
057ms