Questions tagged [testng-eclipse]

The TestNG Eclipse plug-in allows you to run your TestNG tests from Eclipse and easily monitor their execution and their output.

References:

345 questions
1
vote
1 answer

testng - Abstractmethod error

Im trying to create a testng class and run it in Eclipse but I get this below error - java.lang.AbstractMethodError:…
user1050619
  • 19,822
  • 85
  • 237
  • 413
1
vote
1 answer

TestNG - java.net.SocketException

My settings : TestNG 6.9.10 - Java 1.8 - Eclipse Mars.1 Release (4.5.1) Windows 10 Every time I run a TestNG test suite I have this error : java.net.SocketException: Software caused connection abort: socket write error at…
Neptune
  • 33
  • 2
  • 5
0
votes
0 answers

"TestNG Test" is not an option in "Run As" menu for a Maven project

I have created a maven project in Eclipse IDE using Java My file AppTest.java shows no error I m trying to execute this file using the "TestNG Test" option in the context menu of the "Run As" option But this option is not displayed in the context…
0
votes
0 answers

Getting error "java.lang.IllegalStateException" in Rest Assured Java API as content type "application/octet-stream" is not supported

I am trying to validate a webservice response whose content type is "application/octet-stream": Output: java.lang.IllegalStateException: Expected response body to be verified as JSON, HTML or XML but content-type 'application/octet-stream' is not…
0
votes
0 answers

I can't run Tests using TestNG in selenium using java for automation testing

I can't run tests in TestNG, I installed the NG Test eclipse, I added the necessary files and I get an error when I run any test, using TestNG . Can you tell me a solution to the problem, please? Thanks! I installed the necessary files for TestNg, I…
0
votes
0 answers

Even TestNG is installed in Eclipse, TestNG is not showing in eclipse run configurations

I have installed Testng in eclispe via eclipse install software option, but it not showing in the run configuration. I am not able to run my testng program as TestNg test Ubuntu version: 22.04.2, Java Jdk : 11.0.19, Eclipse : 2022-12…
0
votes
1 answer

Testng Report in selenium

How capture the testng report in runtime in eclipse, if it is possible then how..? Runtime Testng report need to capture In Testng supports runtime report capturing...? Please tell me the step how we can capture the report
Arun
  • 1
  • 2
0
votes
0 answers

the content of element type classes must match (class* parameter*)

I have following issue while creating testNG xml files i have test ng xml files having below lines.
0
votes
0 answers

Unable to see convert to testng in run configuration in eclipse unless I download its plugin

I already have testng dependency in my pom.xml and it is detecting my tests with @Test annotation. Issue is, it is not present in my run configurations like following: Run Configuration If I manually install testng plugin, then it appears but I was…
0
votes
0 answers

Parallel execution on Test in TestNG is opening separate browser for each class in the test, it is not executing one after another

Parallel execution on Test in TestNG is opening separate browser for each class in the test, it is not executing one after another.
Suhail Ahmed
  • 504
  • 1
  • 9
  • 19
0
votes
0 answers

Why isn't Eclipse-IDE console showing 'Pass: 2' in TestNG test output?

In my Eclipse-IDE console, after executing TestNG test, why I am not getting 'Pass: 2' result in below line in console. Total tests run: 5, Failures: 2, Skips: 1 Here is my output in console [RemoteTestNG] detected TestNG version…
0
votes
2 answers

Invalid session id when running selenium framework in parallel mode

I get the following when running my Selenium framework in parallel mode using TestNG. org.openqa.selenium.NoSuchSessionException: invalid session id The issue only happens in parallel mode and when it runs in serial mode I have no issues what so…
0
votes
0 answers

Convert powermockito testcase code into testng testcase

Here I am using whenNew method in powermockito. @Test public void test() { MsgTransmit msgtransmit= mockm(MsgTransmit.class); String userId= id101; Powermockito.whennew(msgtransmit…
0
votes
0 answers

Problem with solving @BeforeSuite logic to get desired parameters

in same class I have 10+ methods which represent test scenarios. So my testing starts with method Setup that basically gets parameters sent from testng.xml where I have defined them. Setup method all it does besides creating drivers etc. is to login…
0
votes
0 answers

The methods under @BeforeClass, @AfterClass, @BeforeMethod, @AfterMethod annotations are not working, only Suite annotations are working

package com.edureka.testng1; import org.testng.Reporter; import org.testng.annotations.*; public class AnnoitationsDemo { @BeforeSuite public void beforeSuiteMethod() { Reporter.log("Before suite Method",true); } …