Hey team,
I'm trying to run JPT against an existing Jira instance but it's timing out while waiting for page-type-dashboard and CheckIFrame to be true.
Here's the part of the error I'm focused on, I'll post the whole run at the end of my question:
Caused by: org.openqa.selenium.TimeoutException: Expected condition failed: waiting for at least one condition to be valid: all conditions to be valid: presence of element located by: By.className: page-type-dashboard && com.atlassian.performance.tools.jiraactions.api.page.DashboardPage$CheckIFrame@15a6a91f || Sometimes: at least one condition to be valid: presence of element located by: By.cssSelector: section div.aui-message.error || presence of element located by: By.id: errorPageContainer || presence of element located by: By.cssSelector: div.form-body div.error (tried for 60 second(s) with 100 milliseconds interval)
I think it might be related to the issue noted here, but I could be totally off so let me know if I'm focused on the wrong part of the error: https://ecosystem.atlassian.net/browse/JPERF-514?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
The screenshot saved at the time of error shows that the virtual user has logged in and is sitting at the default system dashboard. I'm trying to run JPT from a Mac pointed at a publicly available Jira Data Center cluster hosted by a cloud provider. I've tried searching for an existing dashboard gadget that uses an iframe to try to satisfy that check but my Google-fu came up short.
Any help making sense of this error output and getting JPT to run would be greatly appreciated!
Full output:
[USER]:btf-test [PATH]$ ./mvnw verify
[INFO] Scanning for projects...
[INFO]
[INFO] ----------< com.atlassian.performance.tools.btftest:btf-test >----------
[INFO] Building btf-test 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ btf-test ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/[USER]/Documents/jira-performance-tests/examples/btf-test/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ btf-test ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ btf-test ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ btf-test ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ btf-test ---
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ btf-test ---
[INFO] Skipping packaging of the test-jar
[INFO]
[INFO] --- maven-failsafe-plugin:2.22.0:integration-test (default) @ btf-test ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.atlassian.performance.tools.btftest.MyJiraOnPremiseIT
2020-08-20 16:39:26,149 main ERROR Attempted to append to non-started appender file
2020-08-20 16:39:26,163 main ERROR Attempted to append to non-started appender file
2020-08-20 16:39:26,164 main ERROR Attempted to append to non-started appender file
2020-08-20 16:39:26,166 main ERROR Attempted to append to non-started appender file
Starting ChromeDriver 84.0.4147.30 (48b3e868b4cc0aa7e8149519690b6f6949e110a8-refs/branch-heads/4147@{#310}) on port 18637
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Aug 20, 2020 4:39:26 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 69.983 s <<< FAILURE! - in com.atlassian.performance.tools.btftest.MyJiraOnPremiseIT
[ERROR] testMyJira(com.atlassian.performance.tools.btftest.MyJiraOnPremiseIT) Time elapsed: 69.967 s <<< ERROR!
java.lang.Exception: Failed to run with [--jira-address, https://[BASE URL]/jira/, --login, [LOGIN], --password, [PASSWORD], --virtual-users, 1, --logging, com.atlassian.performance.tools.virtualusers.logs.LogConfiguration, --hold, PT0S, --ramp, PT15S, --flat, PT5M, --max-overall-load, 10.0/PT1S, --scenario, com.atlassian.performance.tools.btftest.MyCustomScenario, --diagnostics-limit, 64, --seed, -4640817832639099550, --browser, com.atlassian.performance.tools.btftest.MyCustomBrowser, --user-generator, com.atlassian.performance.tools.virtualusers.api.users.SuppliedUserGenerator]
at com.atlassian.performance.tools.virtualusers.api.Application.tryRunning(EntryPoint.kt:31)
at com.atlassian.performance.tools.virtualusers.api.EntryPointKt.main(EntryPoint.kt:18)
at com.atlassian.performance.tools.infrastructure.api.virtualusers.LocalVirtualUsers.applyLoad(LocalVirtualUsers.kt:21)
at com.atlassian.performance.tools.jiraperformancetests.api.OnPremisePerformanceTest.run(OnPremisePerformanceTest.kt:62)
at com.atlassian.performance.tools.btftest.MyJiraOnPremiseIT.testMyJira(MyJiraOnPremiseIT.java:55)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
Caused by: java.lang.Exception: Failed to run com.atlassian.performance.tools.jiraactions.api.action.LogInAction@5965844d
at com.atlassian.performance.tools.virtualusers.ExploratoryVirtualUser.runWithDiagnostics(ExploratoryVirtualUser.kt:83)
at com.atlassian.performance.tools.virtualusers.ExploratoryVirtualUser.setUpJira(ExploratoryVirtualUser.kt:32)
at com.atlassian.performance.tools.virtualusers.LoadTest.setUpJira(LoadTest.kt:103)
at com.atlassian.performance.tools.virtualusers.LoadTest.run(LoadTest.kt:64)
at com.atlassian.performance.tools.virtualusers.api.Application.run(EntryPoint.kt:44)
at com.atlassian.performance.tools.virtualusers.api.Application.tryRunning(EntryPoint.kt:27)
... 29 more
Caused by: java.lang.Exception: Action 'Log In' ERROR
at com.atlassian.performance.tools.jiraactions.api.measure.ActionMeter.measure(ActionMeter.kt:134)
at com.atlassian.performance.tools.jiraactions.api.measure.ActionMeter.measure(ActionMeter.kt:84)
at com.atlassian.performance.tools.jiraactions.api.action.LogInAction.run(LogInAction.kt:15)
at com.atlassian.performance.tools.virtualusers.ExploratoryVirtualUser.runWithDiagnostics(ExploratoryVirtualUser.kt:80)
... 34 more
Caused by: org.openqa.selenium.TimeoutException: Expected condition failed: waiting for at least one condition to be valid: all conditions to be valid: presence of element located by: By.className: page-type-dashboard && com.atlassian.performance.tools.jiraactions.api.page.DashboardPage$CheckIFrame@15a6a91f || Sometimes: at least one condition to be valid: presence of element located by: By.cssSelector: section div.aui-message.error || presence of element located by: By.id: errorPageContainer || presence of element located by: By.cssSelector: div.form-body div.error (tried for 60 second(s) with 100 milliseconds interval)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: '[HOST].local', ip: 'fe80:0:0:0:71:5467:d253:7b1f%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.6', java.version: '11.0.8'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 84.0.4147.135, chrome: {chromedriverVersion: 84.0.4147.30 (48b3e868b4cc0..., userDataDir: /var/folders/sd/bpxqgjcs211...}, goog:chromeOptions: {debuggerAddress: localhost:49552}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: MAC, platformName: MAC, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:virtualAuthenticators: true}
Session ID: 86f1ed862f35842ea4b5e680f72b4a0d
at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:95)
at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:272)
at com.atlassian.performance.tools.jiraactions.api.page.WebDriverUtils.wait(WebDriverExtension.kt:27)
at com.atlassian.performance.tools.jiraactions.api.page.WebDriverUtils.wait$default(WebDriverExtension.kt:21)
at com.atlassian.performance.tools.jiraactions.api.page.DashboardPage.waitForDashboard(DashboardPage.kt:26)
at com.atlassian.performance.tools.jiraactions.api.action.LogInAction$run$1.invoke(LogInAction.kt:17)
at com.atlassian.performance.tools.jiraactions.api.action.LogInAction$run$1.invoke(LogInAction.kt:8)
at com.atlassian.performance.tools.jiraactions.api.measure.ActionMeter.measure(ActionMeter.kt:107)
... 37 more
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] MyJiraOnPremiseIT.testMyJira:55 » Failed to run with [--jira-address, https:/...
[INFO]
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO]
[INFO]
[INFO] --- maven-failsafe-plugin:2.22.0:verify (default) @ btf-test ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:12 min
[INFO] Finished at: 2020-08-20T16:40:36-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.22.0:verify (default) on project btf-test: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/[USER]/Documents/jira-performance-tests/examples/btf-test/target/failsafe-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Hey Austin,
I am just a JPT user like yourself, not an expert on JPT, but I remember having this sort of issue myself some time back. What I did in the end is I have changed the dataset I used for testing so that the user has a certain type of gadget on the default system dashboard. I think Activity Steam gadget should do the trick. That is assuming you have the same issue as I did.
If this doesn't help or is not acceptable, feel free to reply here.
Cheers,
Bart
Thank you @Bartosz Ornatowski, this was exactly what my test setup needed!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bartosz and Luke
Can you point me on how to update such as dataset?
"What I did in the end is I have changed the dataset I used for testing"
Thank you
Nelson
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.