Hi Mukesh, Excellent presentation, crisp and precise. I have seen several of your video's. You rarely get stuck, which means you are well prepared and know the content well. Please do not stop making such video's, Selenium, JMeter, SOAPUI,,,you can go on and on. Knowledge sharing is a rare gift and you have it !
Hey Narasimhan thank you so much for nice feedback. Keep visiting and let me know if any help from my site. Kindly Like Share and Support. Check out my blog for more details. learn-automation.com/
hi Mukesh, I have been following your videos on selenium and they are really helpful. content of videos and ur way of explanation is really awsme!!!! u r helping many of beginners like me.Thank you so much :)
Thumps up .....without even going through full vdo ....Good Job.....thats the trust I have on your content---One suggestion please increase the font size ......
Hi Mukesh,I have a senario in which one method should execute in chrome,and another method should switch to firefox and again switch to chrome. Please let me know how to do that.
Hi, I do have a question I did not understand how the value of the (“browser ‘’) have been transferred to (string browserName) they should have the same name I do know if they have the the same name it will work but in your case I just don’t see it please explain this please
Mukesh otwani thank for your answer but I know that you used the same key in classe and xml but you did not in the methode public void verifpagetitle (string browsername) you used browsername instead of browser that is my question thank you for response
Thank you so much Mukesh...I liked this video so much its help me to figure out the question asked in my interview about cross browser testing.. once again thanks.
hi Mukesh, I am using selenium 3.141 and firefox 67.0, I am not getting any error in code but at the time of run I am getting the error :- Cannot find class in classpath: Crossbrowser.CrossBrowser
Hello Mukesh, My previous problem has been resolved I just used Maven project instead of java project, but facing new issue - 1. firefox is not launching where as I provide the path also System.setProperty("webdriver.firefox.driver","E:\\firfox\\firefoxdriver.exe"); still firefox is not launching . 2. Also getting the wrong web page tittle(always get webDriver) in case of IE browser. Please help
Mukesh if we have multiple test cases and not all of them i would like to run in multiple browser can we do that? in this example we just have one test case with tag @Test lets say we have two test cases one I want to run in all three browser IE,FireFox and Chrome other I just want to run in Chrome can that be done if so how?
Mukesh otwani well all the test cases have same tags @Test whereas in testng.xml .. or you mean let's say I have public void test12 () and public void test13 () so if I want test12 to run in all browsers whereas test13 only in chrome in that case in testng.xml for test12 I will have to write test block 3 times with each time with different value whereas for test13 I will have to write one with value = chrome correct ?
can you make one video on selenium interview, Now a days they ask from java collections to webdriver and TestNg and to write a program. so what sort of program and all kinda thing. can you please do a video on the same. i have learned all selenium from your videos only. Thanks for your videos.
Hi Mukesh, My Requirement is execute one test case in multiple browsers and only one extent report should generate. I am using cucumber,selenium, junit,jenkin and saucelab. can u guide me please?
Hi Mukesh, I am trying to cross browser test . In my case I have specified the browsers in browser factory.class file and kept in common utilities package and call them in my test case . Where should I specify the @parameter tag .? In test case or in browser factory... I tried multiple times but not able to run cross browser test
Hi Mukesh.. I have executed the same script in my laptop. But when I see the console result, title of the page for chrome is showing correct like "The title of the page is gmail" but for IE it is showing like "The title of the page is WebDriver"..also driver.quit is working for chrome but not for IE. Im confusing. Could you please tell me why im getting like this?
@Mukesh very good lecture, precise, hit the correct thing. One question like you got error on xml parameter test name so you closed classes. But for me am getting error on suite paramtere how can i get over it.
Sir, I am getting an error in IE browser. Browser is opening but url is not loading. Can you please help me here...i am getting WebDriverException: Unable to parse remote response.
Hi Mukesh, is it feasible to work on 2 browsers simultaneously in single test case? I have a scenario where I have to login with user 1 and in parallel with user 2 and then work on both sessions in parallel. Thanks!
Hey Anirudh, well in this case you need to run 2 xml which will run in parallel. Currently if you use @DataProvider of testng then it will take record one by one and use in test.
Thanks for the tutorial but after watching this i had a doubt when do we use selenium grid because you did it without using grid. Using grid we can execute the tests in different machines which u have done in same machine, is that the only difference??
@@Mukeshotwani yes maybe it's not the right expression, but what I need to know is shown in this video, if you have any idea how they did it. ua-cam.com/video/KEKGPrnpxPE/v-deo.html&t=417 thank you
Best one mukesh ...and u have missed "thread-cout" while doing parallel test :) ...anyway I have one Q ..why we need Thread-count in automation ?? Please let me know ....thanks
Hi Mukesh, Just one query can I use multiple parameter values for a single parameter? If I don't want to use TestNG dataproviders, Can I achieve the same using declaring multiple values of a single parameter in TestNG XML?
Hi Mukesh, Your video was really helpful. But my code structure is more customised that it generates the testng xmls automatically. Editing those XMLS in the explained way is not running the tests in parallel. Please help in finding a solution for this. I can provide you more details if needed on the same. Thanks!
Hi Mukesh, The Ffox browser worked fine, but the Chrome and IE browsers opened but they didnt fetch the URL which i passed.Please help me out here.Getting the below message in console:- "Starting ChromeDriver 2.32.498550 (9dec58e66c31bcc53a9ce3c7226f0c1c5810906a) on port 4059 Only local connections are allowed. Started InternetExplorerDriver server (32-bit) 3.6.0.0 Listening on port 22200 Only local connections are allowed"
hello sir, your all videos are very nice and helpfull,i have a question in this video that in class u havent written a System.setProperty for FirefoxDriver like other next drivers eventhough it is running,is it possible.
Hi Mukesh! I really liked your video on it. Could you please also upload cross browser testing with multiple parameters like: url, username ,password,browser etc.
Thank you so much for the share Mukesh, how can we use the same concept for multiple testcases, can you please share how can we use this logic to run for multiple test cases
Hi Mukesh, My firefox browser is not launching but when i checked in the results below it has been passed with a time of 2s and i am not getting any error. working fine for other browsers I m so confused..plzz help
Thanks for nice presentation. I have tried your code and found working in IE browser but failed in Chrome and Firefox. Would you please help me in this regard.
bro, I have to do two test cases in the same browser. one is my main test case and another one to monitor whether the main test case page is going properly without crashing. if it crashes, we have to relaunch the same browser again. is it possible?? Help me, bro.
Hi Mukesh, I see that in this video you've used the @Parameter annotation to get data from XML. I'm using Dataprovider in my test as well. Can you tell me how can I use @Parameter in a test that uses DataProvider as well? Thanks
HI Mukesh !! This Video is too good ... As you told in next video you will discuss "How to pass multiple parameters" Can you share the Link of that Video ?? Thanx
I found this link which explains passing multiple parameters to the same method: howtodoinjava.com/testng/testng-test-parameters-through-testng-xml-and-parameters-annotation/
Hi, In my class, there are 8 tests with priority (1...8). When I run initially the wensite link opens in all browsers, after that next tests run only run Firefox not in other browsers. Can u suggest something... I will be so thankful to u.
Hi Mukesh, I have 10 classes in one package . Now i want execute at a time all classes , But here condition is executing one class it will complete after second class will be start like this. if any possible tell me how to follow this scenario ,Thanks in Advance
Hi Baddela, in TestNG you can provide dependency between methods and group but not between the classes. Still if you want to do this then you have to do via Jenkins Pipeline.
Wellington Nz Hi Wellington nopes I have not created yet, but approach will be same. We can pass multiple parameter and receive the same in program like url,uname,password etc. Please try and let me know
Hi Mukesh. Thanks for your videos; they're really helpful. I am getting confused on something though. Does this need to be done in addition to putting the browser setup in the Base Class? Or, are they two alternative approaches?
Hi Mukesh... Your videos are very much helpful. I have one query like how and where do we put the annotation @Parameters in the java code when we have defined a method for browser selection in a different class ?
Hi Sandeep, @Parameter should come where you want to accept the parameter. It can be in same class or in a different class as well. Please check video as well ua-cam.com/video/nJfGMjYjD58/v-deo.html
Hello, Thanks for sharing your knowledge...!! I wanted to execute the the parallel tests using the same driver with multiple instances. How can we achieve this without declaring the another webdriver instance? Background to this question. I have multiple data sets (~50 user accounts) and I wanted to execute one test for all these accounts. Please note that I am reading the test data from the Excel using dataprovider. I think this can be achieved by copying the tests and renaming it with new driver instance variable. But I want it to be the one single method without duplicating the driver instance or tests. Because, my test data (count of user accounts ) in the Excel file may vary time to time. OR Any dynamic approach. Thanks Please help. I appreciate it.
Hi Mukesh, after running the Testsuite, I am getting the below error message as: [RemoteTestNG] detected TestNG version 6.13.0 Starting ChromeDriver 2.24.417431 (9aea000394714d2fbb20850021f6204f2256b9cf) on port 5342 Only local connections are allowed. Sep 01, 2018 12:30:53 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: OSS hello world =============================================== Suite1 Total tests run: 1, Failures: 1, Skips: 0
Hi Mukesh, Very Good tutorial give clear understanding. I have one query Mukesh How we manage the cross browser testing when we have multiple Test case or we need to provide duplicate entries? In one of my interview this question was ask.
Hi Maheshwar there are multiple ways to do that one is using TestNG class and another way using maven build learn-automation.com/selenium-maven-build-and-usage/ While using Maven you can keep multiple xml like below xml1 xml2 xml3
you are my hero bro !!, unemployed facing the Covid19 apocalipse with diabetes and potential corpse, but improving my skills
Nobody can stop you until you do.
Hi Mukesh, Excellent presentation, crisp and precise. I have seen several of your video's. You rarely get stuck, which means you are well prepared and know the content well. Please do not stop making such video's, Selenium, JMeter, SOAPUI,,,you can go on and on. Knowledge sharing is a rare gift and you have it !
Hey Narasimhan thank you so much for nice feedback. Keep visiting and let me know if any help from my site.
Kindly Like Share and Support.
Check out my blog for more details.
learn-automation.com/
Thank you, today I have solved my cross browser testing by seeing ur code. Thank you one more time
You are most welcome Saritha.
Yours explanation on nay modules is just amazing!!! Thanks for making such wonderful videos for learners
Thanks Snehal I am glad you liked it. Keep learning.
You have made cross-browser testing very simple and easy...Thanks a lot :)
Thanks Asad :) I am glad you liked it.
hi Mukesh, I have been following your videos on selenium and they are really helpful. content of videos and ur way of explanation is really awsme!!!! u r helping many of beginners like me.Thank you so much :)
Hi Chennam Thanks for such a nice feedback :) Keep learning.
Thumps up .....without even going through full vdo ....Good Job.....thats the trust I have on your content---One suggestion please increase the font size ......
Hi Mukesh, It's really helpful. It cleared all my doubts and I learnt few more things.. Thank you so much and keep posting these helpful videos.
Thanks Sristy :) I am glad it helped you.
Excellent Tutoring Mukesh ....next level awesomeness!!!
Thanks Ashok
Very nice explanation. This video helped me to understand the functionality easily. Thank you Mukesh
+gopi krishnan Thanks Gopi
I have found this issue a long time and now, I find it.deeply thank you so much!!
Hi Tran I am glad to know that you find the solution. Cheers
Thanks Mukesh. This video solved several issues for which I was using quite complicated solutions.
Nicely covered the topic. Very good approach towards reducing the complexity.
This video helped me to understand this functionality easily. :) :)
+neeraj sharma Thanks Neeraj
Thank you Mukesh. Your videos are simple and understandable. Keep up the good work.
+abhi keerthan Thanks Abhi keep visiting :)
Thank you Mukish for fantastic explanation.
Thanks Mina :)
Hi Mukesh, driver.quit() is not working in parallel test execution, can you please make a video for resolving such issue?
Hi Mukesh,I have a senario in which one method should execute in chrome,and another method should switch to firefox and again switch to chrome. Please let me know how to do that.
Hi, I do have a question I did not understand how the value of the (“browser ‘’) have been transferred to (string browserName) they should have the same name I do know if they have the the same name it will work but in your case I just don’t see it please explain this please
Yes it same in xml file and same key I have used in class too ua-cam.com/video/z3Ruc2bKnqI/v-deo.html
Mukesh otwani thank for your answer but I know that you used the same key in classe and xml but you did not in the methode public void verifpagetitle (string browsername) you used browsername instead of browser that is my question thank you for response
Thank you so much Mukesh...I liked this video so much its help me to figure out the question asked in my interview about cross browser testing.. once again thanks.
Welcome Kiran :) best of luck for future interviews too.
hi Mukesh, I am using selenium 3.141 and firefox 67.0, I am not getting any error in code but at the time of run I am getting the error :- Cannot find class in classpath: Crossbrowser.CrossBrowser
HI Mate seems you have not giving path of files.
Hello Mukesh,
My previous problem has been resolved I just used Maven project instead of java project, but facing new issue -
1. firefox is not launching where as I provide the path also System.setProperty("webdriver.firefox.driver","E:\\firfox\\firefoxdriver.exe");
still firefox is not launching .
2. Also getting the wrong web page tittle(always get webDriver) in case of IE browser. Please help
Mukesh if we have multiple test cases and not all of them i would like to run in multiple browser can we do that? in this example we just have one test case with tag @Test lets say we have two test cases one I want to run in all three browser IE,FireFox and Chrome other I just want to run in Chrome can that be done if so how?
Hi Ahmed nice question :) in this case you can use only specific test in test suite which you want to run and pass parameter to that suite.
Mukesh otwani well all the test cases have same tags @Test whereas in testng.xml .. or you mean let's say I have public void test12 () and public void test13 () so if I want test12 to run in all browsers whereas test13 only in chrome in that case in testng.xml for test12 I will have to write test block 3 times with each time with different value whereas for test13 I will have to write one with value = chrome correct ?
Thanks Mukesh for your videos, its superb. Just one feedback the voice in videos is too low even in highest volume setting. Thanks again :)
Thank you laxmi, I had this issue earlier but fixed in recent videos. Thank you for providing honest feedback, really appreciated.
Hi Mate, new videos dont have this issue. I will record these videos again.
Thank you soo much ❤️❤️
It's really helpful
I am glad it helped 😊 Thanks Sahana
Hi Mukesh, Please tell me the steps how to do for multiple suites using TesntNG
Hi Shwetha if you want to have single xml then below is the syntax
If you have multiple xml already then follow below syntax
you made selenium so easy thank you so much Mukesh
+Neelam Chakraborty thanks Neelam. I am glad to know that you are enjoying while learning Selenium.
can you make one video on selenium interview, Now a days they ask from java collections to webdriver and TestNg and to write a program. so what sort of program and all kinda thing. can you please do a video on the same. i have learned all selenium from your videos only. Thanks for your videos.
Sure Neelam I will make videos on this soon.
Thank you! the right place to learn and improve the skills.
Well done Mukesh!!
I have seen your others videos too and all are good.
thanks Pankaj
Hi Mukesh, My Requirement is execute one test case in multiple browsers and only one extent report should generate.
I am using cucumber,selenium, junit,jenkin and saucelab.
can u guide me please?
Excellent video bruh, please make a similar tutorial about automating ios apps using appium. Thanks and keep doing the great job!
+arifeen Thanks Arifeen I do not have mac machine so IOS not possible but will update surely later.
Nice, simple , easy and detailed explaination !! Thanks a lot ! :)
Hi Mukesh, I am trying to cross browser test . In my case I have specified the browsers in browser factory.class file and kept in common utilities package and call them in my test case . Where should I specify the @parameter tag .? In test case or in browser factory... I tried multiple times but not able to run cross browser test
Can you share Praveen your browser factory or common utilities where you are passing parameters?
Hi Mukesh.. I have executed the same script in my laptop. But when I see the console result, title of the page for chrome is showing correct like "The title of the page is gmail" but for IE it is showing like "The title of the page is WebDriver"..also driver.quit is working for chrome but not for IE. Im confusing. Could you please tell me why im getting like this?
Hi Sunder, for title in IE you can use wait. For killing the browser (IE) you can use WindowsUtils.KillByName method.
Nicely explained...Thank you so much for this video Mukesh
Very nice and clear video Mukesh. Thank you very much. :)
your most welcome Shankar :)
Bro, great explanation! cant thank you enough for all your helpful videos.
@Mukesh very good lecture, precise, hit the correct thing. One question like you got error on xml parameter test name so you closed classes. But for me am getting error on suite paramtere how can i get over it.
Abhinandan, behtareen video. :)
Sir, I am getting an error in IE browser. Browser is opening but url is not loading. Can you please help me here...i am getting WebDriverException: Unable to parse remote response.
Prateek bhai IE will be deprecated soon try Edge browser and if you still want to use IE then try with 3.141.59
This super...! fantastic...! very easy to understand video..!!! great job!!!
+Shrini Pandhare Hi Shrini glad you liked it. Keep visiting.
Hi Mukesh, is it feasible to work on 2 browsers simultaneously in single test case? I have a scenario where I have to login with user 1 and in parallel with user 2 and then work on both sessions in parallel. Thanks!
Hey Anirudh, well in this case you need to run 2 xml which will run in parallel. Currently if you use @DataProvider of testng then it will take record one by one and use in test.
Mukesh , How 'browser' in @paramneter and 'browsername' in verifymethod will relate to each other? both are not same?
Thanks for the tutorial but after watching this i had a doubt when do we use selenium grid because you did it without using grid. Using grid we can execute the tests in different machines which u have done in same machine, is that the only difference??
quite useful session..thank you
Most welcome! Anju
Hi Mukesh....thanks.. great video it helps me lot.
Hi Jilani Welcome :) and keep visiting.
Ya sure...
how to run parrallel multiple web driver in multiple tabs in one chrome window? please help
Hi Moad, When you run test in parallel it will start new chrome window not tab.
@@Mukeshotwani yes maybe it's not the right expression, but what I need to know is shown in this video, if you have any idea how they did it.
ua-cam.com/video/KEKGPrnpxPE/v-deo.html&t=417
thank you
Hi , Pls share the link to Mobile Based Testing/ Performance Testing (Loadrunner) Videos, if it is in your Video Collections?
Hi Mukesh,
for cross browser testing any 3rd party tool available or not .( except selenium provided IE ,chrome ,Opera 3 rd party tool {seleniumhq} ).
Sorry Binay I am not sure. I use TestNG only for cross browser testing.
Best one mukesh ...and u have missed "thread-cout" while doing parallel test :) ...anyway I have one Q ..why we need Thread-count in automation ?? Please let me know ....thanks
Hi Dheeraj, Thank you. Using thread-count you achieve how many threads you want to invoke.
Hi Mukesh, Just one query can I use multiple parameter values for a single parameter? If I don't want to use TestNG dataproviders, Can I achieve the same using declaring multiple values of a single parameter in TestNG XML?
Hi Mukesh,
Your video was really helpful. But my code structure is more customised that it generates the testng xmls automatically. Editing those XMLS in the explained way is not running the tests in parallel. Please help in finding a solution for this. I can provide you more details if needed on the same. Thanks!
Hi Mukesh,
The Ffox browser worked fine, but the Chrome and IE browsers opened but they didnt fetch the URL which i passed.Please help me out here.Getting the below message in console:-
"Starting ChromeDriver 2.32.498550 (9dec58e66c31bcc53a9ce3c7226f0c1c5810906a) on port 4059
Only local connections are allowed.
Started InternetExplorerDriver server (32-bit)
3.6.0.0
Listening on port 22200
Only local connections are allowed"
hello sir have u uploaded any video on svn and maven if yes can u share the link plz.. i am not able to find it...
hello sir, your all videos are very nice and helpfull,i have a question in this video that in class u havent written a System.setProperty for FirefoxDriver like other next drivers eventhough it is running,is it possible.
Hi Preeti, this video is little old, in old day we did not had any drivers for FF but for every browser we have drivers.
On same machine installed win 7 (chrome) and another one installed using virtual machine,o/s is Linux(Firefox)can i test cross browser
Hi Mukesh! I really liked your video on it. Could you please also upload cross browser testing with multiple parameters like: url, username ,password,browser etc.
Thank you so much for the share Mukesh, how can we use the same concept for multiple testcases, can you please share how can we use this logic to run for multiple test cases
Hi
mukesh your videos relay wonderful videos .
Hi Mukesh... Nice work... It was very useful.
+SenthilKumar Lakshmanan Thanx :)
Hi Mukesh, My firefox browser is not launching but when i checked in the results below it has been passed with a time of 2s and i am not getting any error.
working fine for other browsers
I m so confused..plzz help
Thanks for nice presentation. I have tried your code and found working in IE browser but failed in Chrome and Firefox. Would you please help me in this regard.
Hi Ahmed, What was the exception can you please let me know?
Thanks for prompt reply, I got the following exception :
3.4.0.0
Listening on port 35895
Only local connections are allowed
WebDriver
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"userPermissions":null}
1499850889691 DeferredSave.extensions.json DEBUG Save changes
1499850889691 addons.xpi DEBUG Updating database with changes to installed add-ons
1499850889691 addons.xpi-utils DEBUG Updating add-on states
1499850889693 addons.xpi-utils DEBUG Writing add-ons list
1499850889708 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\aushelper@mozilla.org.xpi
1499850889709 addons.xpi DEBUG Loading bootstrap scope from C:\Program Files (x86)\Mozilla Firefox\browser\features\aushelper@mozilla.org.xpi
1499850889716 addons.xpi DEBUG Calling bootstrap method startup on aushelper@mozilla.org version 2.0
1499850889717 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\e10srollout@mozilla.org.xpi
1499850889718 addons.xpi DEBUG Loading bootstrap scope from C:\Program Files (x86)\Mozilla Firefox\browser\features\e10srollout@mozilla.org.xpi
1499850889722 addons.xpi DEBUG Calling bootstrap method startup on e10srollout@mozilla.org version 1.50
1499850889723 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\firefox@getpocket.com.xpi
1499850889724 addons.xpi DEBUG Loading bootstrap scope from C:\Program Files (x86)\Mozilla Firefox\browser\features\firefox@getpocket.com.xpi
1499850889728 addons.xpi DEBUG Calling bootstrap method startup on firefox@getpocket.com version 1.0.5
1499850889729 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\screenshots@mozilla.org.xpi
1499850889729 addons.xpi DEBUG Loading bootstrap scope from C:\Program Files (x86)\Mozilla Firefox\browser\features\screenshots@mozilla.org.xpi
1499850889734 addons.xpi DEBUG Calling bootstrap method startup on screenshots@mozilla.org version 6.6.0
1499850889734 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\webcompat@mozilla.org.xpi
1499850889734 addons.xpi DEBUG Loading bootstrap scope from C:\Program Files (x86)\Mozilla Firefox\browser\features\webcompat@mozilla.org.xpi
1499850889737 addons.xpi DEBUG Calling bootstrap method startup on webcompat@mozilla.org version 1.1
1499850889741 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1499850889741 addons.manager DEBUG Provider finished startup: XPIProvider
1499850889741 addons.manager DEBUG Starting provider: LightweightThemeManager
1499850889742 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1499850889742 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1499850889743 addons.manager DEBUG Starting provider: GMPProvider
1499850889750 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1499850889750 addons.manager DEBUG Provider finished startup: GMPProvider
1499850889750 addons.manager DEBUG Starting provider: PluginProvider
1499850889750 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1499850889750 addons.manager DEBUG Provider finished startup: PluginProvider
1499850889751 addons.manager DEBUG Completed startup sequence
1499850890138 addons.manager DEBUG Starting provider:
1499850890139 addons.manager DEBUG Registering shutdown blocker for
1499850890139 addons.manager DEBUG Provider finished startup:
1499850890245 DeferredSave.extensions.json DEBUG Write succeeded
1499850890245 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 19
1499850890245 DeferredSave.extensions.json DEBUG Starting timer
1499850890288 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1499850890288 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1499850890288 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
1499850890292 DeferredSave.extensions.json DEBUG Starting write
1499850890351 DeferredSave.extensions.json DEBUG Write succeeded
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:114)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:193)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:186)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:182)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:99)
at crossBrowser.verifyTitle.verifypageTitle(verifyTitle.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.access$000(SuiteRunner.java:37)
at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:368)
at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Hi Mukesh, I have 4 tests and i want to run all in different chrome instance at same. can you help how we can do it
Hi Pankaj,
You can set parallel attribute and thread count to run the test in parallel.
This is suitable for little example but for big frame work like hibrid frame work how is it possible pls tell as in real time
bro, I have to do two test cases in the same browser. one is my main test case and another one to monitor whether the main test case page is going properly without crashing. if it crashes, we have to relaunch the same browser again. is it possible?? Help me, bro.
what is limit of testng thread-count and how execute 100 test case parallelly
Hi Mukesh,
I see that in this video you've used the @Parameter annotation to get data from XML.
I'm using Dataprovider in my test as well.
Can you tell me how can I use @Parameter in a test that uses DataProvider as well?
Thanks
+Murtaza Mansoor No Mansoor :)
HI Mukesh !! This Video is too good ... As you told in next video you will discuss "How to pass multiple parameters" Can you share the Link of that Video ?? Thanx
Hi Biswa,
You can pass n number of parameter using this approach only.
I found this link which explains passing multiple parameters to the same method:
howtodoinjava.com/testng/testng-test-parameters-through-testng-xml-and-parameters-annotation/
@How to use cross browser testing with cucumber testng and selenium. Can we execute same feature file with multiple browser simultaneously
Hi,
In my class, there are 8 tests with priority (1...8). When I run initially the wensite link opens in all browsers, after that next tests run only run Firefox not in other browsers. Can u suggest something... I will be so thankful to u.
Hey Nireesha, can u share code then i can suggest.
Awesome presentation.. Excellent Video..
Hi Mukesh can you please make a video on cross browser testing with the multiple data
Hi Mukesh, I have 10 classes in one package . Now i want execute at a time all classes , But here condition is executing one class it will complete after second class will be start like this. if any possible tell me how to follow this scenario ,Thanks in Advance
Hi Baddela, in TestNG you can provide dependency between methods and group but not between the classes.
Still if you want to do this then you have to do via Jenkins Pipeline.
Hi Mukhesh,
How can I create library to use in my multiple test class? Can you plz upload a video for this?
Very good videos, clear and precise..!!
Mukesh sir, how to do Cross Browser Testing with the help of passing through multiple parameter...?
THANK YOU FOR THIS MAN!
+Alishan Ali thnx Ali
how to use extent report in parallel execution?
Hi Mukesh...thanks for the great work. Do you have the video for passing multiple parameters in TestNG? Thanks.
Wellington Nz Hi Wellington nopes I have not created yet, but approach will be same. We can pass multiple parameter and receive the same in program like url,uname,password etc.
Please try and let me know
I am getting the same error. Got any solution?
Hi Mukesh, i have seen most of your selenium videos they are awesome.... do you take any online classes if you have please tell me ??
+sudha rani Thanks Sudha rani. Please share your email i will send you details
my email- mukeshotwani@learn-automation.com
Dear Mukesh..requesting u to zoom the editor so that it can clearly visible
Hi Mukesh. Thanks for your videos; they're really helpful. I am getting confused on something though. Does this need to be done in addition to putting the browser setup in the Base Class? Or, are they two alternative approaches?
Hi Jim, I know I am very late but still want to answer this question. You can keep browser setup, report setup in BaseClass.
Hi Mukesh... Your videos are very much helpful.
I have one query like how and where do we put the annotation @Parameters in the java code when we have defined a method for browser selection in a different class ?
Hi Sandeep,
@Parameter should come where you want to accept the parameter. It can be in same class or in a different class as well.
Please check video as well
ua-cam.com/video/nJfGMjYjD58/v-deo.html
Hello Mukesh,
Hope you are doing well. Not sure why I am getting error in last line( ) . Please see my crossbrowser.xml file.
Suite tag is missing which is mandatory.
@@Mukeshotwani Corrected and working fine. Thanks!
Real useful. Any content which states the Extensive usage of TestNG.xml?
+pradnya samant will upload soon
Hello,
Thanks for sharing your knowledge...!!
I wanted to execute the the parallel tests using the same driver with multiple instances. How can we achieve this without declaring the another webdriver instance?
Background to this question.
I have multiple data sets (~50 user accounts) and I wanted to execute one test for all these accounts. Please note that I am reading the test data from the Excel using dataprovider.
I think this can be achieved by copying the tests and renaming it with new driver instance variable. But I want it to be the one single method without duplicating the driver instance or tests. Because, my test data (count of user accounts ) in the Excel file may vary time to time.
OR Any dynamic approach. Thanks
Please help. I appreciate it.
superb video and got clear idea.... thnq bro
Cheers Lakshmi Keep learning.
Hi, For firefox and chrome its woriking with same xpath but for IE its giving failure.
Hey Neelu, yes in this case you can switch to CSS locator. Css works same in all browser
Hi Mukesh same program I executed in my laptop I got org.testng.testng exception for parameters
Hi Saranya you have to add testng,jar or testng maven dependency in order to run this.
@@Mukeshotwani thnks a lot Mukesh,u are very good at explination
Thank you!!! for the help in FB!
anytime Frank 😊
Hi Mukesh,
Thanks a lot for the tutorial.
Just one query, can we integrate Cucumber with TestNG for BDD?
Hi Mukesh, after running the Testsuite, I am getting the below error message as:
[RemoteTestNG] detected TestNG version 6.13.0
Starting ChromeDriver 2.24.417431 (9aea000394714d2fbb20850021f6204f2256b9cf) on port 5342
Only local connections are allowed.
Sep 01, 2018 12:30:53 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
hello world
===============================================
Suite1
Total tests run: 1, Failures: 1, Skips: 0
Hi Abhijeet please use new chrome driver 2.41
Hi mukesh i am getting Error like:
Started InternetExplorerDriver server (64-bit)
3.7.0.0
Listening on port 7281
Only local connections are allowed.
This is not error this is warning log.
My firefox is not working properly for cross browser testing,it getting close instantly.
Hi Dharati Please use Gecko Driver now to fix this issue. learn-automation.com/use-firefox-selenium-using-geckodriver-selenium-3/
Hi Mukesh,
It would be better if your voice is little louder. it's not audible clearly. Hope in further videos we won't face it
Hi Muniraj, Yes I agree. I made this video 7 year back so audio was not good. Now I have upgraded to new mic and it sounds good now.
Very nice explaination, but one doubt ,that is how can we perform operation on safari browser??
+Bishnu Das are u working on MAC?
mukesh, In parallel execution is it possible to execute our test cases in multiple browser at same time...? if yes then how..?
set Parallel="Classes" it will run test cases in parallel mode.or else use Selenium Grid
ok i will try... And Thank you... mukesh please upload a video for grid..?
Hi Mukesh, Very Good tutorial give clear understanding. I have one query Mukesh How we manage the cross browser testing when we have multiple Test case or we need to provide duplicate entries? In one of my interview this question was ask.
How can we fit this code while following POM design patter?? , anybody can help
hai,how to execute multiple suites in TestNG ,
Hi Maheshwar there are multiple ways to do that one is using TestNG class and another way using maven build
learn-automation.com/selenium-maven-build-and-usage/
While using Maven you can keep multiple xml like below
xml1
xml2
xml3
Thank you very much
Great video sir ... getting some error with TestNG .. do I need to add any external jar for TestNG. Annotations from TestNG package are not displayed.
Hi Akshay, You have to use below plugin to work with TestNG learn-automation.com/how-to-install-testng-in-eclipse/
Yes done that.. Thanks
Great
Hi Sir..I want to learn automation testing selenium, in person from you as I am willing for job switch.Please can you suggest me.