8,442 questions
0
votes
0
answers
11
views
org.testng.TestNGException: Create breakpoint java.net.UnknownHostException: testng.org - when running test framework quit unexpectedly
I'm using JDK 17 and TestNG 6.14.3. Chrome driver version 135.0.7049.114. Previously, it built successfully, but after the JDK cutover to 11 to 17 it doesn't;t work
org.testng.TestNGException: java....
0
votes
0
answers
17
views
excludedGroups stopped excluding TestNG tests
For a few years now, we've been using Maven projects to test our API. Tests would be marked with different groups, for example:
@Test(groups = {"priority_very_high", "test_ignored"}...
1
vote
0
answers
121
views
Spring Boot tests don't work on Jenkins but work on local since Spring Boot 3.4.0
Current Spring Boot version: 3.4.2 TestNG version: 7.10.2 Spring test: 6.2.2 (from parent spring depedency)
After Spring Boot 3.2.0, we were getting warning that @MockBean and @SpyBean were deprecated,...
0
votes
1
answer
85
views
Report Portal is not publishing the reports when using with TestNG project
I am trying to use Report Portal for my current TestNG framework but, it is not attaching the logs to the report. I have followed all the required steps to be done as per this document agent-java-...
0
votes
0
answers
14
views
Not able to access Spring Component from inside of a TestNG ITestListener
When I try to access my component testDataOperationsProcessor like this:
@Component
class TestStateListener : ITestListener {
private lateinit var testDataOperationsProcessor: ...
0
votes
1
answer
57
views
How to configure parallel test execution in jenkins for large java application?
I have a java application I manage that's getting larger. When I had one test suite I had an easy configuration like so
<suite name="suite1" parallel="suites" thread-count="...
2
votes
1
answer
95
views
Web driver and Fluent Wait is null between methods in TestNG
I am relatively new to Selenium web driver and TestNG, I am coding a project where two java classes are running concurrently.. The issue is , is that the webdriver and fluent wait set up for each of ...
0
votes
0
answers
24
views
Allure report: attach log file if test has been failed(Java + TestNG)
I need to attach log-file to Allure-report if test was failed.
I made some setting and now every log-file has the same name as test uuid.
But first of all I can't attach it to Allure, because log-file ...
0
votes
1
answer
30
views
How to use lambdas for TestNG failed assertion messages?
JUnit 5 introduced lambdas for messages of failed assertions. So the message is only evaluated after a failed assertion.
For example, if I have this in TestNG:
Optional<Data> data = ...;
...
2
votes
0
answers
17
views
thread per tag with cucumber tests
Is there any way to split tests with different cucmber tags by threads? Let's say I have @tag1 and @tag2 and I want to execute all tests with @tag1 in one thread sequentially and all tests with @tag2 ...
0
votes
1
answer
32
views
testng parallel execution unique object creation
I have class
public class BaseTest {
public WebDriver driver;
@BeforeMethod
public void setup(
driver = new FireFoxDriver();
}
@AfterMethod
public void teardown() {
driver.quit();
}
}
tests ...
1
vote
0
answers
27
views
Getting error java: package org.testng.annotation does not exist while executing the first java with maven program to launch the chrome browser
I am new to java with maven program and is executing the login with orange hrm website I am using java 8 version and in the pom.xml file the selenium is
with lower verion of selenium i.e 4.11 and ...
0
votes
1
answer
35
views
How do I pass information to TestNG IAnnotationTrasformer?
I just discovered that the implementation of listener with IAnnotationTransformer annotation is executed as soon as the tests are launched even before the very first test is executed.
Background: I ...
0
votes
1
answer
21
views
Unable to execute Maven project
`Getting NoClassDefFoundError Caused by: java.lang.ClassNotFoundException while trying to execute maven project. Created TestNG file and added classes.
Do we need to add configurations? The same code ...
0
votes
1
answer
24
views
How to get TestNG Method Invocation Arguments
I know it's possible to get a TestNG method's parameters as described here: https://testng.org/parameters.html
However, I need to get the TestNG method's arguments. Is this possible to get?
For ...