Cross Browser Testing In Selenium Webdriver Using TestNG Parameters

Поділитися
Вставка
  • Опубліковано 6 січ 2025

КОМЕНТАРІ •

  • @horaciodelatorre4965
    @horaciodelatorre4965 4 роки тому +11

    you are my hero bro !!, unemployed facing the Covid19 apocalipse with diabetes and potential corpse, but improving my skills

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому +4

      Nobody can stop you until you do.

  • @narasimhanms8822
    @narasimhanms8822 7 років тому +9

    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 !

    • @Mukeshotwani
      @Mukeshotwani  7 років тому +3

      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/

  • @sarithat864
    @sarithat864 3 роки тому +2

    Thank you, today I have solved my cross browser testing by seeing ur code. Thank you one more time

  • @snehalpatil7036
    @snehalpatil7036 7 років тому +2

    Yours explanation on nay modules is just amazing!!! Thanks for making such wonderful videos for learners

    • @Mukeshotwani
      @Mukeshotwani  7 років тому +1

      Thanks Snehal I am glad you liked it. Keep learning.

  • @asadyousuf5131
    @asadyousuf5131 7 років тому +3

    You have made cross-browser testing very simple and easy...Thanks a lot :)

    • @Mukeshotwani
      @Mukeshotwani  7 років тому

      Thanks Asad :) I am glad you liked it.

  • @chennamyugasrinivaskumar1708
    @chennamyugasrinivaskumar1708 6 років тому +1

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

    • @Mukeshotwani
      @Mukeshotwani  6 років тому

      Hi Chennam Thanks for such a nice feedback :) Keep learning.

  • @Bell4Fun
    @Bell4Fun 6 років тому

    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 ......

  • @SristyBaranwal
    @SristyBaranwal 5 років тому +1

    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.

    • @Mukeshotwani
      @Mukeshotwani  5 років тому

      Thanks Sristy :) I am glad it helped you.

  • @ashokjagapathi
    @ashokjagapathi 7 років тому +1

    Excellent Tutoring Mukesh ....next level awesomeness!!!

  • @gopikrishnan8182
    @gopikrishnan8182 9 років тому +1

    Very nice explanation. This video helped me to understand the functionality easily. Thank you Mukesh

  • @khuongtran4343
    @khuongtran4343 8 років тому

    I have found this issue a long time and now, I find it.deeply thank you so much!!

    • @Mukeshotwani
      @Mukeshotwani  8 років тому

      Hi Tran I am glad to know that you find the solution. Cheers

  • @777aksmon
    @777aksmon 7 років тому

    Thanks Mukesh. This video solved several issues for which I was using quite complicated solutions.

  • @neeru123456789
    @neeru123456789 9 років тому +1

    Nicely covered the topic. Very good approach towards reducing the complexity.
    This video helped me to understand this functionality easily. :) :)

  • @MrSpidy123
    @MrSpidy123 8 років тому

    Thank you Mukesh. Your videos are simple and understandable. Keep up the good work.

    • @Mukeshotwani
      @Mukeshotwani  8 років тому

      +abhi keerthan Thanks Abhi keep visiting :)

  • @Drippy-yummy-cupcake
    @Drippy-yummy-cupcake 5 років тому +1

    Thank you Mukish for fantastic explanation.

  • @heenavasdani3271
    @heenavasdani3271 Рік тому

    Hi Mukesh, driver.quit() is not working in parallel test execution, can you please make a video for resolving such issue?

  • @knowbyme621
    @knowbyme621 6 років тому

    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.

  • @yourshow3634
    @yourshow3634 4 роки тому +1

    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

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому +1

      Yes it same in xml file and same key I have used in class too ua-cam.com/video/z3Ruc2bKnqI/v-deo.html

    • @yourshow3634
      @yourshow3634 4 роки тому

      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

  • @kirantherise1
    @kirantherise1 8 років тому

    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.

    • @Mukeshotwani
      @Mukeshotwani  8 років тому

      Welcome Kiran :) best of luck for future interviews too.

  • @j7samsung301
    @j7samsung301 5 років тому +1

    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

    • @Mukeshotwani
      @Mukeshotwani  5 років тому

      HI Mate seems you have not giving path of files.

    • @j7samsung301
      @j7samsung301 5 років тому

      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

  • @waheedahmed6524
    @waheedahmed6524 8 років тому +2

    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?

    • @Mukeshotwani
      @Mukeshotwani  8 років тому +1

      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.

    • @waheedahmed6524
      @waheedahmed6524 8 років тому

      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 ?

  • @laxmi5639
    @laxmi5639 4 роки тому +1

    Thanks Mukesh for your videos, its superb. Just one feedback the voice in videos is too low even in highest volume setting. Thanks again :)

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому

      Thank you laxmi, I had this issue earlier but fixed in recent videos. Thank you for providing honest feedback, really appreciated.

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому

      Hi Mate, new videos dont have this issue. I will record these videos again.

  • @sahanahv4071
    @sahanahv4071 2 роки тому +1

    Thank you soo much ❤️❤️
    It's really helpful

    • @Mukeshotwani
      @Mukeshotwani  2 роки тому

      I am glad it helped 😊 Thanks Sahana

  • @shwethasharma2002
    @shwethasharma2002 4 роки тому +1

    Hi Mukesh, Please tell me the steps how to do for multiple suites using TesntNG

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому

      Hi Shwetha if you want to have single xml then below is the syntax






      If you have multiple xml already then follow below syntax

  • @neelamchakraborty9062
    @neelamchakraborty9062 7 років тому

    you made selenium so easy thank you so much Mukesh

    • @Mukeshotwani
      @Mukeshotwani  7 років тому

      +Neelam Chakraborty thanks Neelam. I am glad to know that you are enjoying while learning Selenium.

    • @neelamchakraborty9062
      @neelamchakraborty9062 7 років тому +1

      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.

    • @Mukeshotwani
      @Mukeshotwani  7 років тому

      Sure Neelam I will make videos on this soon.

  • @krupamaraka2064
    @krupamaraka2064 7 років тому +1

    Thank you! the right place to learn and improve the skills.

  • @pankajkaushik4637
    @pankajkaushik4637 9 років тому

    Well done Mukesh!!
    I have seen your others videos too and all are good.

  • @siddharthbhardwaj8563
    @siddharthbhardwaj8563 5 років тому

    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?

  • @arifeens
    @arifeens 9 років тому +1

    Excellent video bruh, please make a similar tutorial about automating ios apps using appium. Thanks and keep doing the great job!

    • @Mukeshotwani
      @Mukeshotwani  9 років тому

      +arifeen Thanks Arifeen I do not have mac machine so IOS not possible but will update surely later.

  • @smileysnehali
    @smileysnehali 7 років тому

    Nice, simple , easy and detailed explaination !! Thanks a lot ! :)

  • @PraveenKumar-pw3dj
    @PraveenKumar-pw3dj 6 років тому +1

    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

    • @Mukeshotwani
      @Mukeshotwani  6 років тому

      Can you share Praveen your browser factory or common utilities where you are passing parameters?

  • @hemsundergoud
    @hemsundergoud 7 років тому +1

    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?

    • @Mukeshotwani
      @Mukeshotwani  7 років тому

      Hi Sunder, for title in IE you can use wait. For killing the browser (IE) you can use WindowsUtils.KillByName method.

  • @debashishmohapatra5080
    @debashishmohapatra5080 7 років тому

    Nicely explained...Thank you so much for this video Mukesh

  • @shankar0cr
    @shankar0cr 8 років тому

    Very nice and clear video Mukesh. Thank you very much. :)

  • @Believer1995ofGod
    @Believer1995ofGod 4 роки тому

    Bro, great explanation! cant thank you enough for all your helpful videos.

  • @manalibhuyar1750
    @manalibhuyar1750 6 років тому

    @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.

  • @kaushikmishra2167
    @kaushikmishra2167 7 років тому

    Abhinandan, behtareen video. :)

  • @prateekjain2473
    @prateekjain2473 4 роки тому +1

    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.

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому

      Prateek bhai IE will be deprecated soon try Edge browser and if you still want to use IE then try with 3.141.59

  • @shrinivaspandhare9330
    @shrinivaspandhare9330 8 років тому +1

    This super...! fantastic...! very easy to understand video..!!! great job!!!

    • @Mukeshotwani
      @Mukeshotwani  8 років тому

      +Shrini Pandhare Hi Shrini glad you liked it. Keep visiting.

  • @AnirudhGarg1123
    @AnirudhGarg1123 4 роки тому +1

    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!

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому +1

      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.

  • @prabhsingh7686
    @prabhsingh7686 5 років тому

    Mukesh , How 'browser' in @paramneter and 'browsername' in verifymethod will relate to each other? both are not same?

  • @rupjitdas8509
    @rupjitdas8509 8 років тому

    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??

  • @anjur7020
    @anjur7020 4 роки тому +1

    quite useful session..thank you

  • @jilaniguddad3932
    @jilaniguddad3932 8 років тому

    Hi Mukesh....thanks.. great video it helps me lot.

  • @moadhamouch5332
    @moadhamouch5332 5 років тому +1

    how to run parrallel multiple web driver in multiple tabs in one chrome window? please help

    • @Mukeshotwani
      @Mukeshotwani  5 років тому +1

      Hi Moad, When you run test in parallel it will start new chrome window not tab.

    • @moadhamouch5332
      @moadhamouch5332 5 років тому

      ​@@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

  • @parulisha
    @parulisha 6 років тому

    Hi , Pls share the link to Mobile Based Testing/ Performance Testing (Loadrunner) Videos, if it is in your Video Collections?

  • @binaykumarsarangi7996
    @binaykumarsarangi7996 7 років тому +1

    Hi Mukesh,
    for cross browser testing any 3rd party tool available or not .( except selenium provided IE ,chrome ,Opera 3 rd party tool {seleniumhq} ).

    • @Mukeshotwani
      @Mukeshotwani  7 років тому

      Sorry Binay I am not sure. I use TestNG only for cross browser testing.

  • @dheerajsingh6568
    @dheerajsingh6568 4 роки тому +1

    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

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому +1

      Hi Dheeraj, Thank you. Using thread-count you achieve how many threads you want to invoke.

  • @sanjibsarkar9565
    @sanjibsarkar9565 2 роки тому

    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?

  • @sowjanyapativada1766
    @sowjanyapativada1766 7 років тому

    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!

  • @kushanchoudhury1942
    @kushanchoudhury1942 7 років тому

    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"

  • @abinashbaug6981
    @abinashbaug6981 7 років тому

    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...

  • @preetimule4016
    @preetimule4016 4 роки тому +1

    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.

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому

      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.

  • @BB_KA-MAN
    @BB_KA-MAN 7 років тому

    On same machine installed win 7 (chrome) and another one installed using virtual machine,o/s is Linux(Firefox)can i test cross browser

  • @rocku20081
    @rocku20081 6 років тому

    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.

  • @vishnuvardhan5096
    @vishnuvardhan5096 8 років тому

    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

  • @sangeetakumari-mp5sk
    @sangeetakumari-mp5sk 7 років тому

    Hi
    mukesh your videos relay wonderful videos .

  • @sennetwork
    @sennetwork 9 років тому +1

    Hi Mukesh... Nice work... It was very useful.

    • @Mukeshotwani
      @Mukeshotwani  9 років тому

      +SenthilKumar Lakshmanan Thanx :)

  • @PriyankaSharma-dy8dg
    @PriyankaSharma-dy8dg 7 років тому

    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

  • @EjazAhmed-qn5uw
    @EjazAhmed-qn5uw 7 років тому +1

    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.

    • @Mukeshotwani
      @Mukeshotwani  7 років тому

      Hi Ahmed, What was the exception can you please let me know?

    • @EjazAhmed-qn5uw
      @EjazAhmed-qn5uw 7 років тому

      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)

  • @PankajKUMAR-ri9mw
    @PankajKUMAR-ri9mw 6 років тому +1

    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

    • @Mukeshotwani
      @Mukeshotwani  6 років тому

      Hi Pankaj,
      You can set parallel attribute and thread count to run the test in parallel.

  • @kartikpanda8075
    @kartikpanda8075 6 років тому

    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

  • @DileepKumar143
    @DileepKumar143 6 років тому

    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.

  • @ANANDKUMAR-os2xt
    @ANANDKUMAR-os2xt 6 років тому

    what is limit of testng thread-count and how execute 100 test case parallelly

  • @murtazamansoor6440
    @murtazamansoor6440 9 років тому

    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

  • @biswadeepak1
    @biswadeepak1 7 років тому +1

    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

    • @Mukeshotwani
      @Mukeshotwani  7 років тому

      Hi Biswa,
      You can pass n number of parameter using this approach only.

    • @PraveenTata16
      @PraveenTata16 7 років тому

      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/

  • @satyanarayanpanigrahi3386
    @satyanarayanpanigrahi3386 Рік тому

    @How to use cross browser testing with cucumber testng and selenium. Can we execute same feature file with multiple browser simultaneously

  • @MyJourney279
    @MyJourney279 8 років тому

    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.

    • @Mukeshotwani
      @Mukeshotwani  8 років тому

      Hey Nireesha, can u share code then i can suggest.

  • @jayakumarnachimuthu6224
    @jayakumarnachimuthu6224 6 років тому

    Awesome presentation.. Excellent Video..

  • @TravelExplorerNX
    @TravelExplorerNX 3 роки тому

    Hi Mukesh can you please make a video on cross browser testing with the multiple data

  • @baddelajyotheswara2718
    @baddelajyotheswara2718 4 роки тому +1

    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

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому

      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.

  • @ravishsingh6274
    @ravishsingh6274 4 роки тому

    Hi Mukhesh,
    How can I create library to use in my multiple test class? Can you plz upload a video for this?

  • @KuldeepKumar-wu7xx
    @KuldeepKumar-wu7xx 8 років тому

    Very good videos, clear and precise..!!

  • @samirthakare4915
    @samirthakare4915 7 років тому

    Mukesh sir, how to do Cross Browser Testing with the help of passing through multiple parameter...?

  • @alishanali7320
    @alishanali7320 9 років тому +1

    THANK YOU FOR THIS MAN!

  • @waniya-huzzu
    @waniya-huzzu 7 років тому

    how to use extent report in parallel execution?

  • @wellingtonnz7123
    @wellingtonnz7123 9 років тому

    Hi Mukesh...thanks for the great work. Do you have the video for passing multiple parameters in TestNG? Thanks.

    • @Mukeshotwani
      @Mukeshotwani  9 років тому

      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

    • @nirajgahukar7665
      @nirajgahukar7665 7 років тому

      I am getting the same error. Got any solution?

  • @ranjithrun314
    @ranjithrun314 9 років тому +1

    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 ??

    • @Mukeshotwani
      @Mukeshotwani  9 років тому

      +sudha rani Thanks Sudha rani. Please share your email i will send you details
      my email- mukeshotwani@learn-automation.com

  • @tapaskhandai
    @tapaskhandai 6 років тому

    Dear Mukesh..requesting u to zoom the editor so that it can clearly visible

  • @jimbradley7058
    @jimbradley7058 4 роки тому +1

    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?

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому

      Hi Jim, I know I am very late but still want to answer this question. You can keep browser setup, report setup in BaseClass.

  • @sandeeppuppala4026
    @sandeeppuppala4026 6 років тому +1

    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 ?

    • @Mukeshotwani
      @Mukeshotwani  6 років тому

      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

  • @Fahimkhan-by1qk
    @Fahimkhan-by1qk 3 роки тому +1

    Hello Mukesh,
    Hope you are doing well. Not sure why I am getting error in last line( ) . Please see my crossbrowser.xml file.

    • @Mukeshotwani
      @Mukeshotwani  3 роки тому +1

      Suite tag is missing which is mandatory.

    • @Fahimkhan-by1qk
      @Fahimkhan-by1qk 3 роки тому +1

      @@Mukeshotwani Corrected and working fine. Thanks!

  • @pradnyasamant8169
    @pradnyasamant8169 9 років тому +1

    Real useful. Any content which states the Extensive usage of TestNG.xml?

    • @Mukeshotwani
      @Mukeshotwani  9 років тому

      +pradnya samant will upload soon

  • @ravikumarshallagi9755
    @ravikumarshallagi9755 6 років тому

    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.

  • @lakshminaresh
    @lakshminaresh 8 років тому

    superb video and got clear idea.... thnq bro

  • @neelimapatnaik4327
    @neelimapatnaik4327 8 років тому

    Hi, For firefox and chrome its woriking with same xpath but for IE its giving failure.

    • @Mukeshotwani
      @Mukeshotwani  8 років тому

      Hey Neelu, yes in this case you can switch to CSS locator. Css works same in all browser

  • @saranyasanapala1049
    @saranyasanapala1049 6 років тому +1

    Hi Mukesh same program I executed in my laptop I got org.testng.testng exception for parameters

    • @Mukeshotwani
      @Mukeshotwani  6 років тому

      Hi Saranya you have to add testng,jar or testng maven dependency in order to run this.

    • @saranyasanapala1049
      @saranyasanapala1049 6 років тому

      @@Mukeshotwani thnks a lot Mukesh,u are very good at explination

  • @myWayIn619
    @myWayIn619 4 роки тому +1

    Thank you!!! for the help in FB!

  • @MrGagangambhir
    @MrGagangambhir 7 років тому

    Hi Mukesh,
    Thanks a lot for the tutorial.
    Just one query, can we integrate Cucumber with TestNG for BDD?

  • @AbhijeetKumar-ej6ri
    @AbhijeetKumar-ej6ri 6 років тому

    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

    • @Mukeshotwani
      @Mukeshotwani  6 років тому

      Hi Abhijeet please use new chrome driver 2.41

  • @govindgupta9515
    @govindgupta9515 7 років тому +1

    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.

    • @Mukeshotwani
      @Mukeshotwani  7 років тому

      This is not error this is warning log.

  • @dhartiwarhekar7956
    @dhartiwarhekar7956 7 років тому +1

    My firefox is not working properly for cross browser testing,it getting close instantly.

    • @Mukeshotwani
      @Mukeshotwani  7 років тому

      Hi Dharati Please use Gecko Driver now to fix this issue. learn-automation.com/use-firefox-selenium-using-geckodriver-selenium-3/

  • @munirajraj594
    @munirajraj594 2 роки тому +1

    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

    • @Mukeshotwani
      @Mukeshotwani  2 роки тому

      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.

  • @bishnudas1920
    @bishnudas1920 9 років тому +1

    Very nice explaination, but one doubt ,that is how can we perform operation on safari browser??

    • @Mukeshotwani
      @Mukeshotwani  9 років тому

      +Bishnu Das are u working on MAC?

  • @chandanmahato4841
    @chandanmahato4841 8 років тому

    mukesh, In parallel execution is it possible to execute our test cases in multiple browser at same time...? if yes then how..?

    • @Mukeshotwani
      @Mukeshotwani  8 років тому +1

      set Parallel="Classes" it will run test cases in parallel mode.or else use Selenium Grid

    • @chandanmahato4841
      @chandanmahato4841 8 років тому

      ok i will try... And Thank you... mukesh please upload a video for grid..?

  • @shilpamittal996
    @shilpamittal996 6 років тому

    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.

  • @HowTo-lc2rp
    @HowTo-lc2rp 3 роки тому

    How can we fit this code while following POM design patter?? , anybody can help

  • @maheshwarreddydodla6427
    @maheshwarreddydodla6427 6 років тому +1

    hai,how to execute multiple suites in TestNG ,

    • @Mukeshotwani
      @Mukeshotwani  6 років тому

      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

    • @maheshwarreddydodla6427
      @maheshwarreddydodla6427 6 років тому

      Thank you very much

  • @aksluva8
    @aksluva8 8 років тому

    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.

    • @Mukeshotwani
      @Mukeshotwani  8 років тому

      Hi Akshay, You have to use below plugin to work with TestNG learn-automation.com/how-to-install-testng-in-eclipse/

    • @aksluva8
      @aksluva8 8 років тому +1

      Yes done that.. Thanks

    • @Mukeshotwani
      @Mukeshotwani  8 років тому

      Great

  • @mariyaqubra986
    @mariyaqubra986 3 роки тому

    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.