Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara

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 : 32
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


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