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
ZAHIR HUSSAIN
Posts : 1
Join date : 2015-05-24

Run Test cases with different browser on same system Empty Run Test cases with different browser on same system

Mon Jun 08, 2015 10:40 pm
Hello All,

I have set of test cases the first set of TC's should run in IE browser after next set of TC's should run in firefox in same system.
Both browsers installed in the same system , How I can achieve above run.

Please let me know.

Regards,
-Zahir Hussain
avatar
vgandra
Posts : 1
Join date : 2015-06-21
Age : 33
Location : Hyderabad

Run Test cases with different browser on same system Empty Run Test cases with different browser on same system

Wed Jun 24, 2015 1:32 am
Hi Zahir,

You can run rest cases with different browsers on same system using TestNG.

Modify the your script so that it will run using testng.xml file. You can get the all information from TestNG website or some other online tutorials

Now group your test cases using TestNG annotations and create two XML files let say testngff.xml and testngie.xml.
Follow the below steps:
Step1:

open workspace folder->create new folder with name as "lib"->paste all jars used in project classes including selenium-server-standalone jar, testng jar, and etc.
Step 2:
open cmd->change directory to workspace folder of above project-> then execute below command "set classpath=path of workspace/bin;path of workspace/lib/*;"  Now run below command
"java org.testng.TestNG testng.xml"  - Test cases mentioned in the testng.xml will executed
Step 3:
Now create two testng.xml file one for IE and another for FF. open two command prompts and repeat STEP 2.

That's it. If you have any problem send me reply Very Happy

~Regards,
Vijay
Back to top
Permissions in this forum:
You cannot reply to topics in this forum