Closed vinnus8660 closed 1 year ago
@vinnus8660 That's happens because you project refers old version of our client-java
library. Please study your dependency tree and remove or add exclusions on transitive dependency. You can do this with commands mvn dependency:tree
for Maven or gradle dependencies
for Gradle.
@HardNorth Thanks for responding! I have tried to fix it, but nothing worked so far, appreciate your further inputs.
I'm using the eclipse testng manual plugin downloaded from https://github.com/testng-team/testng-eclipse to run the tests, I have upgraded my project to use testng 7.8.0 and other dependencies latest versions as well.
My current dependencies in project are:
TestNG Eclipse Plugin 7.8.0 slf4j-api - 2.0.7 agent-java-testng - 5.3.1 logger-java-log4j - 5.1.8 selenium-server - 4.8.1
I'm not sure which of the above dependency is referring to the older older version of client-java.
I'm configuring the below listener in suite.xml file but still the same error.
<listener class-name="com.epam.reportportal.testng.ReportPortalTestNGListener" />
@vinnus8660 Sorry, I don't provide consultancy for apart of the area of Report Portal libraries. What I can say, this class is here: https://github.com/reportportal/client-java/blob/develop/src/main/java/com/epam/reportportal/utils/MemoizingSupplier.java
It is here for a long time, more than 3 years.
To fix your case you need to find out which library in your project overrides our client-java
library with a very old version.
Describe the bug Trying to integrate TestNG + Selenium framework with Report Portal, but getting error while running the tests after adding the report portal configurations, agent-java-testng and logger-java-log4j jars.
Steps to Reproduce Steps to reproduce the behavior:
Expected behavior The tests are working fine before passing the report portal integration with TestNG configuration mentioned in the readme at https://github.com/reportportal/agent-java-testNG.
Expecting it to work fine even with the plugin additions and configurations.
Actual behavior Getting below error after adding the report portal configuration.
Dependency versions TestNG Jar - 7.4.0 agent-java-testng - 5.3.1 logger-java-log4j - 5.1.8 selenium-server - 3.141.59 slf4j-api - 1.7.32 slf4j-log4j12 - 1.7.32 log4j - 1.2.17
Hi @DzmitryHumianiuk @HardNorth Can I request your insights on this issue.