Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
thanvi123
Posts : 4
Join date : 2013-02-10

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

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!!!!
avatar
iosman
Posts : 4
Join date : 2013-02-18

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

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
avatar
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 38
Location : Denver, CO

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

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.
avatar
vikas.gandhi
Posts : 5
Join date : 2012-03-20

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

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
Sponsored content

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

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