Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

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 Today at 5:48 pm


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