Hi all,
I am doing the performance testing in Jira Datacenter by using the Jira Performance Testing Document.
jira-performance-tests/examples/btf-test/src/test/java/com/atlassian/performance/tools/btftest/MyJiraOnPremiseIT.java
final URI myJira = new URI("http://localhost:8080/");
jiraOnPremiseTest.setAdminLogin("admin");
jiraOnPremiseTest.setAdminPassword("XXXXXX");And then Under jira-performance-tests/examples/btf-test run:
./mvnw verify
Got these errors:
[user@ip-Ipadress btf-test]$ ./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 /home/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
Date time,466 main ERROR Attempted to append to non-started appender file
Date time,473 main ERROR Attempted to append to non-started appender file
Date time,473 main ERROR Attempted to append to non-started appender file
Date time,473 main ERROR Attempted to append to non-started appender file
Starting ChromeDriver 2.43.600233 (523efee95e3d68b8719b3a1c83051aa63aa6b10d) on port 23597
Only local connections are allowed.
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 20.911 s <<< FAILURE! - in com.atlassian.performance.tools.btftest.MyJiraOnPremiseIT
[ERROR] testMyJira(com.atlassian.performance.tools.btftest.MyJiraOnPremiseIT) Time elapsed: 20.901 s <<< ERROR!
java.lang.Exception: Failed to run with [--jira-address, http://localhost:8080/jira/, --login, xxxxxxx@xxxxxxxx.com, --password, xxxxxxxxx, --virtual-users, 4, --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, 1391048564144607369, --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 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 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: org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:26:55.152Z'
System info: host: '', ip: 'Ipaddress', os.name: 'Linux', os.arch: 'amd64', os.version: '4.14.114-105.126.amzn2.x86_64', java.version: '1.8.0_222'
Driver info: driver.version: ChromeDriver
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:192)
at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:178)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:79)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:545)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:209)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:132)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168)
at com.atlassian.performance.tools.virtualusers.api.browsers.GoogleChrome.start(GoogleChrome.kt:33)
at com.atlassian.performance.tools.virtualusers.LoadTest.setUpJira(LoadTest.kt:92)
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: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:23597/status] to be available after 20000 ms
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100)
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:187)
... 41 more
Caused by: java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(FutureTask.java:205)
at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:148)
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75)
... 42 more
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] MyJiraOnPremiseIT.testMyJira:55 » Failed to run with [--jira-address, http://...
[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: 22.785 s
[INFO] Finished at: 2020-01-07T05:22:37Z
[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 /home/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
Please do check and let me know for updates.
Thanks in advance.
Mone Dileep Kumar