Skip to main content

All Questions

0 votes
0 answers
12 views

Can we select specific scenarios to run in cucumber tests?

I want to choose which scenarios to run using testNG.xml file, like I need to add certain scenarios in specific suit and decide which suite to run; for example I need to make a regression suit that ...
Mohammed Abdelmaksoud MiddleEa's user avatar
0 votes
1 answer
46 views

Weird issues running tests parallely with Selenium, Java, TestNG

When i run my test (not parallel) everything works fine. But when i tried running same test twice there is alot of weird stuff going on. Either blank page or if one of them closes they both close and ...
dexter's user avatar
  • 3
0 votes
0 answers
54 views

Migrate thousands of test cases from TestNG framework to Cucumber(BDD)

I have requirement to migrate thousands of test cases from TestNG framework to cucumber. I tried searching and found a way to generate feature file and step definition files. Now looking for the ways ...
Sujitha's user avatar
0 votes
1 answer
22 views

How do I pass the correct driver of a failed (java) selenium test to a testng ITestListener, when running multiple tests?

I have a TestListener class, which implements ITestListener, which is responsible for taking pictures and saving the html if a selenium test fails. My selenium tests have a parent class BaseTest, ...
alabastor95's user avatar
0 votes
0 answers
46 views

TestNG. dependsOnGroups is not worked for different classes

14.05.2024 I have added group to tests and a dependency on this group in other tests from other classes. And it all worked both locally and in jenkins. But yesterday it stopped working and I get an ...
Vitaly Shipitsyn's user avatar
0 votes
1 answer
41 views

Setting global variables at runtime for TestNG Suite?

I have written a TestNG Suite in Java that will be ran on another system using a test account. The credentials for this account are stored in a password vault and are obtained through an API. Each of ...
Drew's user avatar
  • 13
0 votes
1 answer
87 views

How to disable TestNG console logging [main] INFO org.testng.internal.Utils -

I have an automation framework using Selenium, TestNG, and Log4j for logging. When running the tests, TestNG generates a specific log to the console that I'd like to suppress. The log message is: [...
Sim's user avatar
  • 1
0 votes
1 answer
44 views

Class extension don't work when I want to login

I have a problem when I want to extend the class and call the NewTest class with the login function URL open but after that nothing happens, the test does not continue with login, function is not ...
Stefan Jevtovic's user avatar
0 votes
0 answers
38 views

Reading an information from Excel Sheet instead of having it in the testConfig.properties

I'm building a suit automation test (Java, Selenium, TestNG, Apache POI). I have a configuration file .properties where I have the environment I use. Every time I comment one and use the other one, it ...
Raffaele Fiorillo's user avatar
0 votes
0 answers
47 views

How to rerun skipped test cases using TestNG?

I tried to re-run testng skipped test cases in the following way and I am getting 'Test ignored.' message. How to fix this issue using TestNG? I tried the solution mentioned in How to rerun skipped ...
Kaveesh Gamage's user avatar
3 votes
1 answer
152 views

Github Actions test run shows 0 tests, running locally all tests run properly

I've setup a repository for building/running selenium tests with TestNG and Maven. Running the tests locally on my machine the test run goes through with no issues, but after setting up Github actions ...
Eric Camescasse's user avatar
0 votes
0 answers
25 views

Delayed Validation of Testcase due to application batch job

I have a test where I have to wait for 5 whole minutes to validate a status change. But, It is not right to wait that long in an automation execution. I am thinking if there is a way where i can make ...
Priya's user avatar
  • 61
-1 votes
1 answer
2k views

Exception in thread "main" java.lang.NoSuchFieldError: port error getting while executing through testng

enter image description here Please help me how to reslove above error I am trying to launch chrome browser using testing frame work but getting above error message Scenario is just trying to automate ...
VINAY KUMAR BU's user avatar
0 votes
1 answer
74 views

Reddit.com NoSuchShadowRootException - But there is a shadow-root

I am testing functionality of Reddit using Java/Selenium/TestNG. I am having an awful time finding the Join button element on r/SoftwareEngineering. Earlier today, it seems like all of the element id'...
Jeremy's user avatar
  • 15
0 votes
1 answer
39 views

Use different @BeforeMethod methods in TestNG

I want to run different sets of steps for different tests in TestNG. Is this possible? Example: @BeforeMethod Method1{ Step 1 Step 2 } @BeforeMethod Method2{ Step 3 Step 4 } @Test Test1 { Run ...
Sameem's user avatar
  • 849

15 30 50 per page
1
2 3 4 5
237