Selenium tests fail to run due to TestNG errors

98 views
Skip to first unread message

nestorova...@gmail.com

unread,
Apr 29, 2019, 6:54:20 AM4/29/19
to Selenium Users

🐛 Bug Report - 

A clear and concise description of what the bug is.

After Selenium upgrade to version 3.141.59, the tests fail to run with TestNG 16.4.3 on Jenkins v2.138.3 errors like:
TestNGClassFinder: Warning: Can't link and determine methods of class....
TestNGClassFinder: Unable to read methods on class ... -unable to resolve class reference org/apache/http/HttpRequest
Eclipse : when trying to run the tests from Eclipse 2019-03 , I get a message that either TestNG cannot find class in classpath or that No tests were found and nothing was run

To Reproduce

check screenshots

Detailed steps to reproduce the behavior:

Expected behavior

After Selenium upgrade to version 3.141.59, the tests are successfully run from Jenkins v2.138.3 as they used to run with lower Selenium version

Test script or set of commands reproducing this issue

check screenshots

Environment

OS: Windows 7
Browser: Internet Explorer, Chrome
Browser version: Internet Explorer 11.0.9600.19002, Chrome 74.0.3729.108
Browser Driver version: IEWebDriver 3.14 for 32 bit Windows IE, ChromeDriver 74.0.3729.6
Language Bindings version: Java 11.0.2
Selenium Grid version (if applicable): 3.141.59

error_forwarding.PNG
Jenkins_error.PNG
Java_class.PNG
TestNG_error.PNG

Joe Ward

unread,
Apr 29, 2019, 8:26:18 AM4/29/19
to seleniu...@googlegroups.com
Saying "check screenshots" is not really what I would call detailed steps to reproduce.

That being said: same error from the command line or just the IDE? What's the run configuration? Some plugin error perhaps?

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/f1351f13-42dc-4e6b-8de7-e302e6429e43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

nestorova...@gmail.com

unread,
Apr 30, 2019, 5:29:56 PM4/30/19
to Selenium Users
the screenshots contain a Java class and a TestNG xml that can be used to reproduce the test case and its set up - hence,the check screenshots text. In abug report ihave written what happens when I run the test from Eclipse.

nestorova...@gmail.com

unread,
May 2, 2019, 1:42:47 AM5/2/19
to Selenium Users
Hi,

Its not a classpath issue - the tests with the same classpaths run suceessfully with a lower selenium version. Pls check the bug report for what i get when i run the tests from eclipse again only with tje newer selenium version


On Monday, April 29, 2019 at 1:54:20 PM UTC+3, nestorov...@gmail.com wrote:

Hristina Nestorova

unread,
May 2, 2019, 1:45:10 AM5/2/19
to Selenium Users
last comment was for the same discussion but in a different group

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
Message has been deleted

That Guy

unread,
May 2, 2019, 2:36:26 AM5/2/19
to Selenium Users
The point is, I'm unable to reproduce your issue using screenshots. I can't copy and paste text from them. Do you see what I mean? I think you're going to have a challenge getting any good advice on this one.

The bug happening when you run from Eclipse suggests it's a problem with your run configuration or the plugin you're using as I suggested in the other part of my previous comment.
Reply all
Reply to author
Forward
0 new messages