- thanvi123
- Posts : 4
Join date : 2013-02-10
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!!!!
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!!!!
- iosman
- Posts : 4
Join date : 2013-02-18
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
toptestlondon at googlemail dot com
- ccoxMaster
- Posts : 205
Join date : 2012-01-06
Age : 39
Location : Denver, CO
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.
- vikas.gandhi
- Posts : 5
Join date : 2012-03-20
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 -
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
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
Permissions in this forum:
You cannot reply to topics in this forum