Project Number Date
ApolloFullRunnerReport apollo-test-2.50 30 cze 2021, 09:31

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
Company 126 2 2 0 0 130 21 2 23 5m 53s 319ms Failed
Feature Company
Given Login as "swisskrono-admin" and set token of apiUsername "super-admin-skz" 9s 006ms
When Create company "Firma automaty" 6s 020ms
Then Company is successfully created 000ms
After Hooks.deleteCompanyAfterTest() 424ms
Given Login as "piast-admin" and set token of apiUsername "super-admin-piast" 2s 509ms
When Create company "Firma Piast" 5s 158ms
Then Company is successfully created 000ms
After Hooks.deleteCompanyAfterTest() 292ms
Given Login as "lantmannen-admin" and set token of apiUsername "super-admin-lantmannen" 2s 296ms
When Create company "Firma Lantmannen" 5s 409ms
Then Company is successfully created 000ms
After Hooks.deleteCompanyAfterTest() 291ms
Given Login as "keeeper-admin" and set token of apiUsername "super-admin-keeeper" 2s 350ms
When Create company "Firma Keeper" 5s 401ms
Then Company is successfully created 000ms
After Hooks.deleteCompanyAfterTest() 287ms
Given Login as "alrec-admin" and set token of apiUsername "super-admin-alrec" 2s 450ms
When Create company "Firma Alrec" 5s 555ms
Then Company is successfully created 000ms
After Hooks.deleteCompanyAfterTest() 304ms
Scenario Outline Check if it possible to edit company by super-admins [A-6812]
Steps
Given Login as "super-admin-piast" and set token of apiUsername "super-admin-piast" 2s 568ms
And Create company "Firma Piast" by JSON file as "super-admin-piast" 829ms
When Edit company "Firma Piast" 3s 189ms
And Wait "2" seconds 2s
Then Company is successfully edited 15s 030ms
org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//div[contains(@class, 'alert-success')]"}
  (Session info: headless chrome=91.0.4472.114)
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: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{networkConnectionEnabled=false, chrome={chromedriverVersion=91.0.4472.101 (af52a90bf87030dd1523486a1cd3ae25c5d76c9b-refs/branch-heads/4472@{#1462}), userDataDir=/home/teamcity/build-agent/temp/buildTmp/.com.google.Chrome.JMAmfP}, timeouts={implicit=0, pageLoad=300000, script=30000}, pageLoadStrategy=normal, unhandledPromptBehavior=dismiss and notify, strictFileInteractability=false, platform=LINUX, proxy=Proxy(), goog:chromeOptions={debuggerAddress=localhost:9222}, acceptInsecureCerts=false, browserVersion=91.0.4472.114, browserName=chrome, javascriptEnabled=true, platformName=LINUX, setWindowRect=true, webauthn:extension:largeBlob=true, webauthn:virtualAuthenticators=true}]
Session ID: 3595313b213fdae8380e63c3ae803684
*** Element info: {Using=xpath, value=//div[contains(@class, 'alert-success')]}
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:185)
	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:120)
	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)
	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:586)
	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:356)
	at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:458)
	at org.openqa.selenium.By$ByXPath.findElement(By.java:361)
	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:348)
	at Pages.BasePage.getWebElementByXpath(BasePage.java:323)
	at Pages.Company.CompanyDetailsPage.getAlertSuccess(CompanyDetailsPage.java:39)
	at CucumberTests.Company.EditCompanyTest.companyIsSuccessfullyEdited(EditCompanyTest.java:66)
	at ✽.Company is successfully edited(file:Features/Atom/Companies/Company.feature:22)
After Hooks.deleteCompanyAfterTest() 296ms
Given Login as "super-admin-lantmannen" and set token of apiUsername "super-admin-lantmannen" 5s 115ms
And Create company "Firma Lantmannen" by JSON file as "super-admin-lantmannen" 829ms
When Edit company "Firma Lantmannen" 3s 203ms
And Wait "2" seconds 2s
Then Company is successfully edited 107ms
After Hooks.deleteCompanyAfterTest() 316ms
Given Login as "super-admin-keeeper" and set token of apiUsername "super-admin-keeeper" 6s 331ms
And Create company "Firma Keeper" by JSON file as "super-admin-keeeper" 830ms
When Edit company "Firma Keeper" 2s 939ms
And Wait "2" seconds 2s
Then Company is successfully edited 113ms
After Hooks.deleteCompanyAfterTest() 297ms
Given Login as "super-admin-alrec" and set token of apiUsername "super-admin-alrec" 4s 963ms
And Create company "Firma Alrec" by JSON file as "super-admin-alrec" 835ms
When Edit company "Firma Alrec" 3s 076ms
And Wait "2" seconds 2s
Then Company is successfully edited 106ms
After Hooks.deleteCompanyAfterTest() 323ms
Given Login as "swisskrono-admin" and set token of apiUsername "super-admin-skz" 2s 484ms
And Create company "Firma automaty" by JSON file as "super-admin-skz" 839ms
When Go to "COMPANIES_TAB" 1s 187ms
And Go to company "Firma automaty" details 483ms
Then Check if edit company details is blocked 343ms
After Hooks.deleteCompanyAfterTest() 292ms
Given Login as "piast-admin" and set token of apiUsername "super-admin-piast" 2s 441ms
And Create company "Firma Piast" by JSON file as "super-admin-piast" 909ms
When Go to "COMPANIES_TAB" 1s 063ms
And Go to company "Firma Piast" details 429ms
Then Check if edit company details is blocked 399ms
After Hooks.deleteCompanyAfterTest() 279ms
Given Login as "lantmannen-admin" and set token of apiUsername "super-admin-lantmannen" 2s 315ms
And Create company "Firma Lantmannen" by JSON file as "super-admin-lantmannen" 876ms
When Go to "COMPANIES_TAB" 1s 047ms
And Go to company "Firma Lantmannen" details 491ms
Then Check if edit company details is blocked 320ms
After Hooks.deleteCompanyAfterTest() 310ms
Given Login as "keeeper-admin" and set token of apiUsername "super-admin-keeeper" 2s 405ms
And Create company "Firma Keeper" by JSON file as "super-admin-keeeper" 846ms
When Go to "COMPANIES_TAB" 1s 038ms
And Go to company "Firma Keeper" details 464ms
Then Check if edit company details is blocked 329ms
After Hooks.deleteCompanyAfterTest() 295ms
Given Login as "alrec-admin" and set token of apiUsername "super-admin-alrec" 2s 346ms
And Create company "Firma Alrec" by JSON file as "super-admin-alrec" 917ms
When Go to "COMPANIES_TAB" 1s 006ms
And Go to company "Firma Alrec" details 452ms
Then Check if edit company details is blocked 359ms
After Hooks.deleteCompanyAfterTest() 296ms
Given Set token of apiUsername "super-admin-pgf" 237ms
And Set basic authorities "ROLE_CREATE_COMPANY" to user "pgf-admin" 314ms
When Create company "Twój Opiekun PGF" "supplier" by JSON file as "super-admin-pgf" 860ms
And Login as "pgf-admin" 4s 458ms
And Go to "COMPANIES_TAB" 1s 886ms
And Go to company "Twój Opiekun PGF" details 514ms
And Select company patron "PGF SUPPLY EMPLOYEE" 7s 641ms
Then Verify if "PGF SUPPLY EMPLOYEE" data is successfully added 149ms
After Hooks.deleteCompanyAfterTest() 400ms
After Hooks.rollbackAddedAuthorities() 146ms
Given Login as "adama-admin" and set token of apiUsername "super-admin-adama" 2s 438ms
And Go to "COMPANIES_TAB" 1s 253ms
And Go to company "Dostawca Adama Automat 1" details 572ms
Then Verify that user has correct partnership management permissions "adama-admin" 466ms
And Set existing partnerships 15s 081ms
When Go to form for adding a new single partnership 232ms
Then Verify that partnership form is visible 117ms
And Verify that each company suggested in partnership form is "Przewoźnik" 1s 304ms
When Fill partnership form 1s 694ms
Then Check if "single" contractor is "visible" on partnership list "connectedCompany" 1s 637ms
When Go to "CARRIER_TAB" 952ms
And Go to details of company in partnership 710ms
Then Check if "single" contractor is "invisible" on partnership list "Dostawca Adama Automat 1" 30s 182ms
After Hooks.removeAllPartnership() 17s 894ms
Given Login as "neuca-admin" and set token of apiUsername "super-admin-neuca" 8s 173ms
And Go to "COMPANIES_TAB" 1s 805ms
And Go to company "Przewoźnik Neuca Automat 3" details 575ms
Then Verify that user has correct partnership management permissions "neuca-admin" 399ms
And Set existing partnerships 15s 106ms
When Go to form for adding a new single partnership 267ms
Then Verify that partnership form is visible 125ms
And Verify that each company suggested in partnership form is "Dostawca" 1s 351ms
When Fill partnership form 1s 662ms
Then Check if "single" contractor is "visible" on partnership list "connectedCompany" 1s 610ms
When Go to "COMPANIES_TAB" 1s 200ms
And Go to details of company in partnership 527ms
Then Check if "single" contractor is "visible" on partnership list "Przewoźnik Neuca Automat 3" 297ms
After Hooks.removeAllPartnership() 18s 112ms
Scenario Outline Check if only admins have the authority to manage partnerships in the contractor's details [A-7536]
Steps
Given Login as "dpa1-supplier-2" and set token of apiUsername "super-admin-piast" 32s 482ms
org.openqa.selenium.TimeoutException: Expected condition failed: Nie udalo sie poprawnie zalogowac dpa1-supplier-2 (tried for 20 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:183)
	at Pages.LoginPage.loginAs(LoginPage.java:38)
	at CucumberTests.BaseTest.loginAs(BaseTest.java:102)
	at CucumberTests.LoginTest.loginAsAndSetTokenOfApiUsername(LoginTest.java:78)
	at ✽.Login as "dpa1-supplier-2" and set token of apiUsername "super-admin-piast"(file:Features/Atom/Companies/Company.feature:93)
Caused by: org.openqa.selenium.NoSuchElementException: Cannot locate an element using By.xpath: //a[text()='Logout'] | //a[text()='Wyloguj']
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:183)
	at Pages.LoginPage.loginAs(LoginPage.java:38)
	at CucumberTests.BaseTest.loginAs(BaseTest.java:102)
	at CucumberTests.LoginTest.loginAsAndSetTokenOfApiUsername(LoginTest.java:78)
	at sun.reflect.GeneratedMethodAccessor218.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 Go to "OWN_COMPANY_TAB" 000ms
Then Verify that user has correct partnership management permissions "dpa1-supplier-2" 000ms
Given Login as "pna1-carrier" and set token of apiUsername "super-admin-neuca" 7s 174ms
And Go to "OWN_COMPANY_TAB" 755ms
Then Verify that user has correct partnership management permissions "pna1-carrier" 30s 194ms
Given Login as "neuca-admin" and set token of apiUsername "super-admin-neuca" 2s 533ms
And Go to "COMPANIES_TAB" 993ms
And Go to company "Przewoźnik Neuca Automat 1" details 579ms
Then Verify that user has correct partnership management permissions "neuca-admin" 469ms
Given Login as "super-admin-neuca" and set token of apiUsername "super-admin-neuca" 9s 462ms
And Go to "COMPANIES_TAB" 1s 033ms
And Go to company "Przewoźnik Neuca Automat 1" details 561ms
Then Verify that user has correct partnership management permissions "super-admin-neuca" 461ms
Given Login as "adama-admin" and set token of apiUsername "super-admin-adama" 2s 319ms
When Go to "COMPANIES_TAB" 913ms
And Go to company "Dostawca Adama Automat 2" details 542ms
Then Verify that user has correct partnership management permissions "adama-admin" 737ms
And Set existing partnerships 15s 121ms
When Add all partnership 1s 071ms
Then Check if "all" contractor is "visible" on partnership list "connectedCompany" 1s 081ms
And Set number of partnerships 031ms
And Check if only companies from principal are visible "Adama" 105ms
When Remove partnership 746ms
Then Check that partnership has been deleted 031ms
After Hooks.removeAllPartnership() 17s 899ms
Given Login as "neuca-admin" and set token of apiUsername "super-admin-neuca" 2s 589ms
When Go to "COMPANIES_TAB" 1s 002ms
And Go to company "Przewoźnik Neuca Automat 2" details 576ms
Then Verify that user has correct partnership management permissions "neuca-admin" 605ms
And Set existing partnerships 197ms
When Add all partnership 933ms
Then Check if "all" contractor is "visible" on partnership list "connectedCompany" 1s 215ms
And Set number of partnerships 034ms
And Check if only companies from principal are visible "Neuca" 143ms
When Remove partnership 738ms
Then Check that partnership has been deleted 035ms
After Hooks.removeAllPartnership() 2s 232ms