!!

Welcome to Selenium Webdriver Forum

As a web user you can read and search through forum content. Once you have registered and signed you can post topics, post replies, set up watch lists, modify forum settings, and use private messaging.

Author Topic: Is there any way to get all failed cases once Selenium RC testNG Eclipse  (Read 444 times)

pradeep kattekola

  • Web User
If i runs the TestNG Code in eclipse , I need to run a test case and
 when a step fails selenium RC gets stops and i need to change
 something manually and then have it run again. I can do each step one
 by one after the failed step or run the test case all over again but I
 need it to continue on going through the remaining steps
 automatically.
 I need all fail cases once only.
 Is there is any way ,,,,,
 
please share with me...........
 
Regards,
 Prathip

pradeep kattekola

  • Web User
can pls any one help me out... i stuct to this one...

jeevan

  • Web User
TestNG produces results in the following formats:
 
testng-failed.xml
 testng-results.xml
 
In the first xml file it contains all the failed testcases. For this to
 produce you need to add listeners to the testNG.xml file like below:
 
<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
 <suite name="Test">
   <listeners>
     <listener class-name="org.uncommons.reportng.HTMLReporter"/>
     <listener class-name="org.uncommons.reportng.JUnitXMLReporter"/>
   </listeners>
   <test name="Thomson" preserve-order="false">
     <classes>
       <class name="classname">
         <methods>
           <include name="test"/>
         </methods>
       </class>
     </classes>
   </test>
 </suite>
 Download the reportNG jars and include the same to your project and refer
 the same in the <listener class-name> tag
 
Once you run this it will create a folder called test-output which contains
 all the test results.
 
Thanks,
 Jeevan
 On Thu, Mar 29, 2012 at 11:04 AM, pradeep kattekola <
 

- Show quoted text -

Selenium Webdriver


 

Related Topics

  Subject / Started by Replies Last post
6 Replies
700 Views
Last post February 22, 2012, 06:12:11 PM
by amit rawat
3 Replies
476 Views
Last post April 01, 2012, 07:02:21 PM
by Marco Buschini
1 Replies
392 Views
Last post April 03, 2012, 02:32:21 PM
by Tarun Bhadauria
2 Replies
748 Views
Last post April 15, 2012, 05:56:36 PM
by selenium_freak
15 Replies
930 Views
Last post May 01, 2012, 09:35:55 PM
by Sasi kumar
4 Replies
653 Views
Last post May 01, 2012, 09:53:16 PM
by heera singh
3 Replies
548 Views
Last post July 24, 2012, 09:52:06 PM
by golden_rex

Review www.seleniumwebdriver.com on alexa.com