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"
2s 798ms
And
Prepare user "swisskrono-admin" details with all notifications and "" by JSON file
2s 477ms
And
Get inputs from database "CREATE_CONTAINER" "super-admin-skz"
023ms
And
Add transport by SKApi in "MGW" assigned to ""
019ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
017ms
And
Check is transport "CONTAINER" created in transport table and set transport id
6s 863ms
When
Click button advice in transport table "CONTAINER"
215ms
And
Set advice window in schedule
3s 274ms
And
Fill advice form
18s 735ms
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()
538ms
After
Hooks.cleanUserDetailsAfterTest()
2s 012ms
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"
7s 336ms
And
Prepare user "swisskrono-admin" details with all notifications and "" by JSON file
2s 327ms
And
Get inputs from database "CREATE_OWN_COLLECTION" "super-admin-skz"
024ms
And
Add transport by SKApi in "MGW" assigned to ""
018ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
017ms
And
Check is transport "OWN_COLLECTION" created in transport table and set transport id
4s 265ms
When
Click button advice in transport table "OWN_COLLECTION"
259ms
And
Set advice window in schedule
3s 499ms
And
Fill advice form
18s 652ms
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()
549ms
After
Hooks.cleanUserDetailsAfterTest()
2s 256ms
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"
7s 701ms
And
Prepare user "swisskrono-admin" details with all notifications and "" by JSON file
2s 323ms
And
Get inputs from database "CREATE_TRANSPORT_ORDER" "super-admin-skz"
023ms
And
Add transport by SKApi in "MGW" assigned to ""
020ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
016ms
And
Check is transport "TRANSPORT_ORDER" created in transport table and set transport id
4s 285ms
When
Click button advice in transport table "TRANSPORT_ORDER"
214ms
And
Set advice window in schedule
3s 315ms
And
Fill advice form
18s 594ms
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()
594ms
After
Hooks.cleanUserDetailsAfterTest()
2s 066ms
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"
8s 126ms
And
Prepare user "pskza1-carrier@qa.qa-test" details with all notifications and "" by JSON file
3s 460ms
And
Get inputs from database "CREATE_TRANSPORT_ORDER" "super-admin-skz"
020ms
And
Add transport by SKApi in "MGW" assigned to ""
017ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
018ms
And
Check is transport "TRANSPORT_ORDER" created in transport table and set transport id
3s 876ms
When
Click button advice in transport table "TRANSPORT_ORDER"
235ms
And
Set advice window in schedule
3s 308ms
And
Fill advice form
18s 644ms
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()
565ms
After
Hooks.cleanUserDetailsAfterTest()
2s 694ms
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"
7s 236ms
And
Prepare user "swisskrono-tradesman@qa.qa-test" details with all notifications and "automaty@test.pl" by JSON file
1s 744ms
And
Get inputs from database "CREATE_TRANSPORT_ORDER" "super-admin-skz"
022ms
And
Add transport by SKApi in "MGW" assigned to "automaty@test.pl"
021ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
016ms
And
Check is transport "TRANSPORT_ORDER" created in transport table and set transport id
4s 483ms
When
Click button advice in transport table "TRANSPORT_ORDER"
206ms
And
Set advice window in schedule
30s 641ms
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-2', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '5.8.0-50-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()
532ms
After
Hooks.cleanUserDetailsAfterTest()
1s 829ms
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"
7s 437ms
And
Prepare user "swisskrono-admin" details with all notifications and "" by JSON file
2s 436ms
And
Get inputs from database "CREATE_OWN_COLLECTION" "super-admin-skz"
023ms
And
Add transport by SKApi in "MGW" assigned to ""
021ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
018ms
And
Check is transport "OWN_COLLECTION" created in transport table and set transport id
7s 167ms
When
Click button advice in transport table "OWN_COLLECTION"
216ms
And
Set advice window in schedule
3s 336ms
And
Fill advice form
18s 643ms
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()
596ms
After
Hooks.cleanUserDetailsAfterTest()
2s 035ms
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"
7s 284ms
And
Prepare user "swisskrono-admin" details with all notifications and "" by JSON file
2s 321ms
And
Get inputs from database "CREATE_CONTAINER" "super-admin-skz"
020ms
And
Add transport by SKApi in "MGW" assigned to ""
021ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
017ms
And
Check is transport "CONTAINER" created in transport table and set transport id
6s 967ms
When
Click button advice in transport table "CONTAINER"
240ms
And
Set advice window in schedule
3s 321ms
And
Fill advice form
18s 628ms
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()
582ms
After
Hooks.cleanUserDetailsAfterTest()
2s 053ms
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)
000ms
Given
Login as "swisskrono-admin" and set token of apiUsername "super-admin-skz"
7s 267ms
And
Prepare user "swisskrono-admin" details with all notifications and "" by JSON file
2s 330ms
And
Get inputs from database "CREATE_TRANSPORT_ORDER" "super-admin-skz"
022ms
And
Add transport by SKApi in "MGW" assigned to ""
018ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
017ms
And
Check is transport "TRANSPORT_ORDER" created in transport table and set transport id
4s 316ms
When
Click button advice in transport table "TRANSPORT_ORDER"
194ms
And
Set advice window in schedule
3s 301ms
And
Fill advice form
18s 602ms
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()
640ms
After
Hooks.cleanUserDetailsAfterTest()
2s 285ms
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"
6s 521ms
And
Prepare user "pskza1-carrier@qa.qa-test" details with all notifications and "" by JSON file
3s 533ms
And
Get inputs from database "CREATE_TRANSPORT_ORDER" "super-admin-skz"
021ms
And
Add transport by SKApi in "MGW" assigned to ""
021ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
016ms
And
Check is transport "TRANSPORT_ORDER" created in transport table and set transport id
4s 712ms
When
Click button advice in transport table "TRANSPORT_ORDER"
220ms
And
Set advice window in schedule
3s 357ms
And
Fill advice form
18s 600ms
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()
539ms
After
Hooks.cleanUserDetailsAfterTest()
2s 639ms
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"
8s 500ms
And
Prepare user "swisskrono-tradesman@qa.qa-test" details with all notifications and "automaty@test.pl" by JSON file
1s 866ms
And
Get inputs from database "CREATE_TRANSPORT_ORDER" "super-admin-skz"
020ms
And
Add transport by SKApi in "MGW" assigned to "automaty@test.pl"
019ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
015ms
And
Check is transport "TRANSPORT_ORDER" created in transport table and set transport id
4s 491ms
When
Click button advice in transport table "TRANSPORT_ORDER"
230ms
And
Set advice window in schedule
3s 338ms
And
Fill advice form
18s 621ms
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()
623ms
After
Hooks.cleanUserDetailsAfterTest()
1s 667ms
Scenario Outline
Check if not possible to advice transport in the past when advice is created from transports table and transport is created by sk API
Before
Hooks.showScenarioName(Scenario)
001ms
Given
Login as "swisskrono-admin" and set token of apiUsername "super-admin-skz"
7s 320ms
And
Get inputs from database "CREATE_CONTAINER" "super-admin-skz"
022ms
And
Add transport by SKApi in "MGW" assigned to ""
023ms
And
Get inputs from database "CREATE_ADVICE" "super-admin-skz"
017ms
And
Check is transport "CONTAINER" created in transport table and set transport id
3s 959ms
When
Click button advice in transport table "CONTAINER"
223ms
And
Set advice window in schedule in the past
3s 339ms
And
Fill advice form
18s 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:59)
And
Click advice save button to check error message
000ms
Then
Check if possible advice alert is displayed
000ms
After
Hooks.deleteTransportAfterTest()
605ms
Scenario Outline
Check if advice data saved in SK API database after edition
The scenario checks if you can correctly edit an advice. After that 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"
2s 704ms
And
Get inputs from database "CREATE_OWN_COLLECTION" "super-admin-skz"
022ms
And
Add transport by SKApi in "MGW" assigned to ""
023ms
And
Get inputs from database "EDIT_ADVICE" "super-admin-skz"
017ms
And
Check is transport "OWN_COLLECTION" created in transport table and set transport id
4s 154ms
And
Create advice "CREATE_ADVICE" "OWN_COLLECTION" "super-admin-skz"
22s 268ms
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 "CREATE_ADVICE" "OWN_COLLECTION" "super-admin-skz"(file:Features/Atom/SK_API/SkApiTransportAdvice.feature:74)
And
Go to "TRANSPORT_TABLE"
000ms
When
Go to transport details "OWN_COLLECTION"
000ms
And
Expand advice panel
000ms
And
Edit advice in transport details
000ms
And
Fill arrival date field
000ms
And
Click "save-transport-and-close" save button and wait for form to disappear
000ms
Then
Check advice data in database after edition "OWN_COLLECTION"
000ms
After
Hooks.deleteTransportAfterTest()
618ms
Scenario Outline
Check if advice data saved in SK API database after edition
The scenario checks if you can correctly edit an advice. After that the correctness of the data that has been sent to the SK API microservice database is also verified.
Before
Hooks.showScenarioName(Scenario)
000ms
Given
Login as "swisskrono-admin" and set token of apiUsername "super-admin-skz"
2s 618ms
And
Get inputs from database "CREATE_CONTAINER" "super-admin-skz"
018ms
And
Add transport by SKApi in "MGW" assigned to ""
022ms
And
Get inputs from database "EDIT_ADVICE" "super-admin-skz"
017ms
And
Check is transport "CONTAINER" created in transport table and set transport id
3s 956ms
And
Create advice "CREATE_ADVICE" "CONTAINER" "super-admin-skz"
22s 154ms
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 "CREATE_ADVICE" "CONTAINER" "super-admin-skz"(file:Features/Atom/SK_API/SkApiTransportAdvice.feature:74)
And
Go to "TRANSPORT_TABLE"
000ms
When
Go to transport details "CONTAINER"
000ms
And
Expand advice panel
000ms
And
Edit advice in transport details
000ms
And
Fill arrival date field
000ms
And
Click "save-transport-and-close" save button and wait for form to disappear
000ms
Then
Check advice data in database after edition "CONTAINER"
000ms
After
Hooks.deleteTransportAfterTest()
551ms
Scenario Outline
Check if advice data saved in SK API database after edition
The scenario checks if you can correctly edit an advice. After that 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"
2s 686ms
And
Get inputs from database "CREATE_TRANSPORT_ORDER" "super-admin-skz"
020ms
And
Add transport by SKApi in "MGW" assigned to ""
018ms
And
Get inputs from database "EDIT_ADVICE" "super-admin-skz"
014ms
And
Check is transport "TRANSPORT_ORDER" created in transport table and set transport id
3s 696ms
And
Create advice "CREATE_ADVICE" "TRANSPORT_ORDER" "super-admin-skz"
22s 250ms
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 "CREATE_ADVICE" "TRANSPORT_ORDER" "super-admin-skz"(file:Features/Atom/SK_API/SkApiTransportAdvice.feature:74)
And
Go to "TRANSPORT_TABLE"
000ms
When
Go to transport details "TRANSPORT_ORDER"
000ms
And
Expand advice panel
000ms
And
Edit advice in transport details
000ms
And
Fill arrival date field
000ms
And
Click "save-transport-and-close" save button and wait for form to disappear
000ms
Then
Check advice data in database after edition "TRANSPORT_ORDER"
000ms
After
Hooks.deleteTransportAfterTest()
590ms