Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Regarding Alert Interface
Fri Feb 24, 2017 2:00 pm by karthikeyakumar

» Geting issues in identifying the elsements in webdriver
Fri Feb 17, 2017 4:41 pm by janbaskt

» WebDriver - why not to use a singlton for it?
Fri Feb 17, 2017 4:40 pm by janbaskt

» WebDriver session when using testng annotation to invoke driver instance
Fri Feb 17, 2017 4:39 pm by janbaskt

» Selenium fails to launch Chrome
Fri Feb 17, 2017 4:39 pm by janbaskt

» why do i get this error
Fri Feb 17, 2017 4:38 pm by janbaskt

» Selenium Tutorial
Thu Feb 16, 2017 5:21 pm by Rahul

» When to use Selenium IDE, RC and WebDriver
Mon Feb 13, 2017 2:35 pm by azharuddin

» How to integrate selenium with ZAPI-Zephyr
Sat Feb 11, 2017 2:25 am by gseera002c

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

How do we run 10 cases out of 100 in TestNG frame work

View previous topic View next topic Go down

How do we run 10 cases out of 100 in TestNG frame work

Post by thanvi123 on Mon Feb 18, 2013 11:15 pm

how do we run 10 testcases out of 100 in regression

Note:

I have attended one interview,Interviewer asked me that which method do u follow to execute few testcases out of 100 and also he asked me are you not using Test_results.xml file to run the few case.

can any one help me how to do as above with help of Test_results.xml file in TestNG.

Advanced Thanks!!!!

thanvi123

Posts : 4
Join date : 2013-02-10

Back to top Go down

Re: How do we run 10 cases out of 100 in TestNG frame work

Post by iosman on Tue Feb 19, 2013 4:33 am

'm looking for an automation tester (Selenium Web Driver) with solid experience in Java. Please contact me if you are interested.
toptestlondon at googlemail dot com

iosman

Posts : 4
Join date : 2013-02-18

Back to top Go down

Re: How do we run 10 cases out of 100 in TestNG frame work

Post by ccox on Tue Feb 19, 2013 4:39 am

iosman wrote:'m looking for an automation tester (Selenium Web Driver) with solid experience in Java. Please contact me if you are interested.
toptestlondon at googlemail dot com

Seriously dude, quit thread jacking and post in the section related to open positions.

ccox
Master
Master

Posts : 205
Join date : 2012-01-06
Age : 31
Location : Denver, CO

Back to top Go down

Re: How do we run 10 cases out of 100 in TestNG frame work

Post by vikas.gandhi on Mon Feb 25, 2013 4:14 pm

Hi Thanvi,
You can create a test suite for executing 10 test cases out of 100. I am assuming that you are using eclipse for wrinting test cases. You need to create a xml file. Let's say "test.xml" and add all the test cases (classes) in to it.
For example -
Code:
<!DOCTYPE suite SYSTEM "[url=http://testng.org/testng-1.0.dtd]http://testng.org/testng-1.0.dtd[/url]">
<suite
name="TestSuite">
<test verbose="2" name="com.companyname.sanitysuite"
annotations="JDK">
<classes>
<class
name="com.companyname.sanitysuite.SearchProduct"/>
<class
name="com.companyname.sanitysuite.EditProduct"/>
<class
name="com.companyname.sanitysuite.AddSupplier"/>
</classes>
</test>
</suite>

Once you will add your test cases in to it. click right mouse on file -> Run as -> Test Ng.
Hope this will help.
Thanks,
Vikas Gandhi

vikas.gandhi

Posts : 5
Join date : 2012-03-20

Back to top Go down

Re: How do we run 10 cases out of 100 in TestNG frame work

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum