Data Driven Framework Excel Based Part 2 Selenium Webdriver

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 354

  • @chmounika2888
    @chmounika2888 5 років тому +2

    I have to say Thank you. I successfully learnt Data driven Framework because of you. Thank you so much.

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

      Welcome Mounika I am glad my video helped you. Keep learning. Let me know if any help from my side.

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

    Thank you Sir I have seen around 3-4 different video but I had not understood but after seeing your video I have successfully made excel dataprovider code in my project.Really helpful for me Thank You so much.God bless you.

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

    Hi Mukesh, I always refer your videos for selenium. Thanks for uploading such videos.Thanks a lot.

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

      So nice of you Mili. Thank you and let me know know if you need any help from my end.

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

    Thanks a lot bro..u rockz..i searched whole day and getting fed up..and then i see ur 2-3 videos about read the data from excel and I have clear all the concept..keep sharing..

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

      Cheers Prateek :) Keep learning new concepts.
      Join FB Group too.
      facebook.com/groups/256655817858291/

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

      Mukesh otwani I am facing sone problem when I read the numeric value from excel..then in console error shows me..can't convert the numeric value to string value..plz suggest me what I will do..

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

    I have visited so many channel for this but I couldn't get any thing finally referred ur video and I got everything.. Thnx mukesh ur explained it very well.

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

      Thanks Mate :) good to know you finally understand DDF. Keep learning.

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

    your videos are helping me to brushup my coding and debugging skills

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

    You are truly blessed, your videos are helping a lot. Though i took training for Selenium, your tutorials are much more easier to understand and detail oriented. Wish you success and good luck.

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

      +Sowmya Poddaturi Thanks Sowmya thanks a ton. Please let me know if any help required from my side.

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

    Thanks Mukesh, searching for this video since long time.

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

    Thank you mukesh waiting for part 3

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

    Thanks for Uploading and explaining the POM in easily understandable way. Looking for more Information in Future...
    All the Best

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

      +AKBAR HUSSAIN Thanks Akbar :) Many videos in queue will upload soon.,

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

    Thanks a lot. Finally understood data driven framework and could do it as well.

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

      Thanks Shwetali and I am happy to hear from you.

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

    Woow beautiful explanation bro 💥 I tried and got the output ❤️ thank you so much bro I was struggling alot with different codes finally I wrote my own to read the excel file its just because of you thank you so much ❤️

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

    Wonderfully explain....you have unique skill to make things easier for other...

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

      +nikunj bambhroliya HI Nikunj thanks a ton :)

  • @khansohel-Irshad
    @khansohel-Irshad 5 років тому

    Nice explanation to understand...thanks a lot.

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

    Hi Mukesh , Your video is truly amazing... You have explained the whole concept in a very simple manner , this topic DDT now looks so much easy to do. once again sincere thanks to you ....

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

      Thanks a ton Gaurav 🙏 Keep learning and let me know if any help required from my side.

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

    Finally I have found one video with clear description what I was looking for. Thanks a lot Mukhesh. Looking forward to learn more from you.

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

      +israt khan Thanks Israt will upload part 3 soon which will update the status in excel :)

  • @Rahul-rt9nq
    @Rahul-rt9nq 7 років тому +1

    you are really great mukesh we help to others

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

    Thanks for this awesome explanation. I tried the same and it is running fine. The only problem I see in my code is, for all three inputs, the test shows pass. Its not failing for the wrong password input data.

  • @Alex-bs1mo
    @Alex-bs1mo 8 років тому

    Thanks a lot for explanation of DDF approach. Waiting for Part 3 .. :)

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

      +Alexander Svyatenko Hi Alex will upload soon :) thank you

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

    Hi Mukesh, Can't thank you enough :) I was so confused in reading and writing excel sheets but your videos are really awesome and easy to understand. Keep going!!

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

      Thanks Priyanka :) keep learning and let me know if any help from my side.

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

    Thank you Mukesh, waiting for part 3

  • @razdanmegha
    @razdanmegha 6 місяців тому

    @Mukeshotwani
    is there any place you have mentioned all the code in one placed which can copied or collected?

  • @niwruttiahire-patil4554
    @niwruttiahire-patil4554 7 років тому

    Good Mukesh,
    Keep it up, You are growing our scripting knowledge. Now I am using this for my project and working good...

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

      Thanks Niwrutti I am glad it is helping.

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

    Thanks a lot Mukesh - do we have a video for reading data in more than 2 excel columns? (like by using Hashmap/set collection etc.)

  • @lifestyle.guru007
    @lifestyle.guru007 8 років тому +2

    Good Bro ,
    Nice Explanation..Thanks for Sharing the Knowledge.

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

      Thanks I am glad you liked it. Keep visiting.

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

    Great Videos!! Thanks for doing this! Please do DDF part3!

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

    Excellent Work. It helps a lot for Beginners. please upload Part 3 of DDF.

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

      +M V REDDY yes will upload soon

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

      +Mukesh otwani plz upload DDT Part-3 soon Sir ,i am waiting for that video from last 3 months Sir ,So plz upload ASAP Sir

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

      Hi M V Reddy
      Once I will get time I will upload part 3 and will let u know

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

    These videos are really good. I could not find part 3 of Data Driven framework.

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

    Hi bro thanq so much for uploading these videos and nice explanation i think this much is enough for beginners also.

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

    Hi Mukesh
    Could you please make a video while executing the selenium scripts I wanted to get all the 6 rows data like(Invoice) from the excel sheet to be executed within a single browser

  • @raviteja-ot3ug
    @raviteja-ot3ug 3 роки тому

    Thank you so much mukesh , here i want to read numeric value from same excel sheet and as well after execution of my script i want to write data in same excel sheet , could please give me some clues.

  • @DiptiJoshi2415rjdj
    @DiptiJoshi2415rjdj 6 років тому +2

    Hi Mukesh if we want to loop through so many coloums then, do we need to manually update it.??

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

      Hi Deepti no you can also get all columns using getPhysicalNumberOfCells and then run for loop.

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

      @Mukesh otwani Can u help us in looping columns too

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

    Hi Mukesh, Thanks for this video its very simple and easy to understand but it works only for string values but when it comes to int or any other data type its failing. Do you have any video that covers at least integer also

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

    Very nice Tutorial.. Thank you Mukesh..

  • @manjunathb.n7465
    @manjunathb.n7465 9 років тому +1

    Excellent Work. It helps a lot for Beginners. please upload Part 3 of DDF. Please try to upload POM and Page Navigation if possible

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

      +Manjunath B.N Thanks Manjunath I will upload by this weekend.. :)

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

    Hi Mukesh,
    Completely impressed with the way how you are teaching.
    Suppose if i want to use the excel data in multiple classes present in different packages.
    Will you please let me know the generic code, how can i do that ?

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

    Hi Mukesh,
    Before practicing DDT part1 and part2 do we need to do any set up in my project.if yes pls share that link for set up in my project

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

    Hi Mukesh, Thanks for your amazing explanation on DataDriven Framework. I got closer to the concept and like rows can you please explain how to include column number in the loop as well? will help when I have more than 10 column values to be read from excel.

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

      Hi Raja, in order to read column as well you need to use another loop as well.

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

    Thank you so much for this excellent tutorial...

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

      Thanks Sadhanana :) Happy weekend.

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

    Hi, very nice and elaborate video. But how do you get the folder for default reporting?

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

      Hi Pratilipi,
      You can refresh the page. It comes by default.
      You can check my TestNG video on this
      ua-cam.com/video/OTtFSnZY4f8/v-deo.html

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

    Hello Mukesh sir its very useful video for me and than you

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

      Thank you Punam keep learning 😊

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

    Thanks mukesh... Video is very helpful for us... Could you please upload Data Driven Framework Excel Based Part 3 video.

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

    Thank you so much Mukesh for this video tutorial. It's really very helpful...:-)

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

    Hi Mukesh, you have explained all the things very nicely and its really helpful in understanding the flow. One doubt is don't we have any main method when we are running our script using TestNG?

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

      Hi Shweta I am glad you like it. You can use main method of Java or @Test of Testng framework. In above video I have used @DataProvider of TestNG framework.
      You can get full info about TestNG from below video.
      ua-cam.com/video/OTtFSnZY4f8/v-deo.html

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

    Hi Mukesh, its really good and you have explained in details. Thanks
    waiting for part 3 :)

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

    thanks Mukesh for this helpful tutorial, plz upload part 3 of Data Driven Framework tutorial

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

      +Sumit Kumar Hi Sumit coming soon.

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

    Great video sir, it helped me lot. Please teach us how to mail the testng report to the desired recepients. Thanks again

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

      Here is the detailed article ua-cam.com/video/qGq9K85mGyA/v-deo.html

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

    Hi Mukesh ,
    I have a doubt here , please clarify
    In WordPressLoginExcel class we are using the ExcelDataConfig lib to access the inputdata xl file
    My question is why we are agian giving the xl file path in WordPressLogin class ?
    Thanks in advance

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

    I would suggest using *.csv instead of *.xls and especially *.xlsx.
    You can still use MS Excell to open *.csv files, but you can also use even simple notepad.
    Much more easier to access data file from anywhere, even from phone

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

    Hi Mukesh, your videos are good and useful. I am gaining good knowledge with that. Thanks a lot. Could you please post some videos on Keyword driven framework in Selenium

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

    Hi Mukesh, I wish you can create a data driven frame work using POM design/framework.
    Thank you. We're excited on the part 3 of the Data Driven and I hope it is designed as POM
    Thank you so much

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

      Hey Aldrin Part 3 will be Data driven with Page Object model

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

    hi mukesh ...i could not find 3rd part of data driven framework with reporting that you were talking about in part 2(this).

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

      Hi Sumit You can try part 3 as part of assignment.

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

    Simply Superb.

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

      +GAJANAN PATIL I m glad it helped u

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

    Thank you so much.. excellent video , I have implemented and work nicely...

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

    Hi Mukesh,
    Thanks for the clear explanation about DD framework. Can you please explain how to use column count in for loop without hard coding.

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

      Hi Dwaraka you can use getPhysicalNumberOfCells(); for column count

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

    hii mukesh, from these videos i understand about how to get values from xcel sheet its great. one dout if we have more no of columns like 50 then how can we write the column related code without using hardcode???????

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

      Hi Keerthi, yes you can run a for loop as well for columns..

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

      yes i tried but its not working just skipping and getting a failure,here is the code i tried
      package pack01;
      //import org.junit.Test;
      import org.openqa.selenium.By;
      import org.openqa.selenium.WebDriver;
      import org.openqa.selenium.firefox.FirefoxDriver;
      import org.testng.annotations.AfterMethod;
      import org.testng.annotations.DataProvider;
      import org.testng.annotations.Test;
      import lib.xcel02;
      public class class01 {
      WebDriver driver;

      @Test(dataProvider="fb")
      public void loginToFb(String username,String password)
      {
      driver=new FirefoxDriver();
      driver.manage().window().maximize();
      driver.get("facebook.com/");
      driver.findElement(By.id("email")).sendKeys(username);
      driver.findElement(By.id("pass")).sendKeys(password);
      driver.findElement(By.id("u_0_2")).click();
      driver.close();
      }
      @DataProvider(name="fb")
      public Object[][] passData()
      {
      xcel02 xcel=new xcel02("C:\\projects\
      ew_project\\src\\lib\\TestData\\InputData.xlsx");
      int rows=xcel.getRowCount(0);
      int columns = xcel.getColumnCount(0);
      System.out.println(columns);
      Object[][] data=new Object[rows][columns];
      for(int i=0;i

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

    Thank you Mukesh ji, I see only videos in your website, how to get this code to analyze in your website.

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

      Hi Mate,
      Code I have to modify. I would you to write from scratch which will add more value.

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

      @@Mukeshotwani cannot agree more. I am keen to join to learn java, classes, adv reporting and creating test cases, suites ..i received email that you are starting on Oct 19..I am waiting confirmation mate

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

      Hi Anand, I sent email regarding same, please check. Date and Time is confirmed.

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

    I am new to selenium. Want to know how we can implement positive and negative scenario test cases.please, make one video on that.thanks.

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

      Hey Deepak, yes we can do that.. Like manual testing we have multiple test for positive and negative. Likewise you have to create multiple scripts in Selenium as well.

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

      Thank you Mukesh.

  • @yojana1000
    @yojana1000 5 років тому +2

    Hi Mukesh,
    Huge thanks for uploading this video. However, I am getting "Cannot get a STRING value from a NUMERIC cell" error message when i try to execute the script. Can you please help me?

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

      Hi Yojana I have explained the same in below post
      learn-automation.com/read-numeric-data-excel-using-apache-poi-selenium-webdriver/

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

    Hi Mukesh ,
    I would like to know what are the different ways we can use to fetch the data by using @dataprovider & @Test in TestNG Framework.
    As we know for upload or download files with TestNG we can use Robot Class or Auto IT etc. Thanks

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

      Hi Rupa,
      Let me explain this
      @DataProvider works like Data Source for our test so we can feed the data from excel, csv, database, json, xml or many more.
      In my example I have used Excel but you can use any data source but make sure we pass the data in 2D array.

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

    Hi Mukesh,
    Need your help to read data from two sheets, like from first sheet take some data and proceed to further page and take some data from second sheet(first sheet and 2nd sheet data has dependency).
    How shall i implement this using Dataprovider

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

      Hi Reshma DataProvider takes same set of data and then pass the test.
      If you have such dynamic scenario then better to get direct values from excel and use in test cases.

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

    Hi Mukesh, First of all, thanks a lot. Your videos are really very helpful to understand Selenium. I have covered Data Driven Framework, both parts. Now I am looking for Keyword Driven Framework, but not able to find it. Could you plz share the link.

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

      Hi Swati, for Keyword driven framework I will upload soon.

  • @Manojkumar-yi5cs
    @Manojkumar-yi5cs 8 років тому

    Hi Mukesh, Thank you so much for the excellent video, When the 3rd part will be available?.

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

      Hi Manoj hope so soon will upload.

    • @HK-tp9ic
      @HK-tp9ic 8 років тому

      Hi Mukesh,
      Excellent video!! Please confirm if Part 3 is uploaded?

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

      Part 3 you can try with Page Object Model

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

    Hi Mukesh, I could not find it in your blog, can you please send me the link if possible?

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

    Hi Mukesh, Thank you so much for your effort made to teach Selenium to the folks like me..
    I am trying to find Part 3 of this DDF, that you mentioned at the end of the Part 2 video.. But i am unable to find. Pls assist me to find..

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

      Hi Priya, I will try to publish soon.

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

    Hi Mukesh,
    Object[][] data = new Object[rows[[2]; Here columns is hard coded. Can you reply how to write optimized code for that?

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

    Mukesh thanks good explanantion. Few things I heard was we should not give any hard coded values like path etc. How can we do that?

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

      Hey Nikhil you can use map or POI methods for dynamic.

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

    Hi...Mukesh. You have made very nice tutorial. Thanks a lot. As you mentioned, there will be part 3 of DDT framework, I am not able to find it. Would you please share the link.

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

      +Abhishek Agrawal Hi Abhishek I still have not updated will upload soon.

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

    When we use dataProvider and try to do cross-browser testing in parallel from the TestNG XML file, it doesn't behave right. provide one data for each browser, when I remove parallel execution and let it run sequential, works fine. Any solution

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

      Hi Vida Waran, it depends on how your driver instance is invoked. If driver is static then it wont run in parallel.
      In order to run @DataProvider in parallel, please make below changes in your test.
      1- Make sure driver is not static
      2- @DataProvider(name="dataprovidername",parallel=true)
      Hope it will help.

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

      @@Mukeshotwani thank you very much, yes my browser was static when I changed it worked, I didn't give @DataProvider(name="dataprovidername",parallel=true)
      . once I changed the browser it worked

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

      @@Mukeshotwani Also can you update video lecture for attaching file in selenium webdriver, I know its simple when we have input tag, just in case if we dont have input tag

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

      @@Mukeshotwani Thank you very much for the answer it worked

  • @RanjitSingh-wp2sn
    @RanjitSingh-wp2sn 7 років тому

    Hi Mukesh, how can dataProvider will handle if we need 5 values from excel for one test? How can we handle that? Thanks in advance

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

    Hi Mukesh,can you add TestNG framework with read data from excel??

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

    Hello Mukesh.
    I have followed your both lectures on Data driven framework excel based. And done the same as shown in the video.
    But while executing I'm getting this error. Can you help me with this?
    SKIPPED: Login
    java.lang.RuntimeException: java.lang.IllegalStateException: Cannot get a STRING value from a NUMERIC cell

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

      Hi Harshith
      Reason is you are trying to read numreric value. Kindly follow below post to fix issue.
      learn-automation.com/read-numeric-data-excel-using-apache-poi-selenium-webdriver/

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

    Hello Mukesh, good video. do you have github account? and can you share you excel utils class where you keep all your methods which can be useful ?

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

      Hi Mate I will upload soon

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

      For the time being you can use below github.com/saikrishna321/Page-Object-Pattern-with-WebDriver-and-TestNG/blob/master/src/main/java/org/sayem/util/Xls_Reader.java

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

    Instead of hard coding column number, can we just count the column and iterate according to the column index no?

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

      Hi Swapna, you can use sh.getRow(0).getPhysicalNumberOfCells();

    • @kamnaa.pandey1699
      @kamnaa.pandey1699 4 роки тому

      @@Mukeshotwani can you please explain where should I use the function mentioned y you in your comment

  • @sk-creativemind7805
    @sk-creativemind7805 4 роки тому +1

    Hi Mukesh,
    Thanks for the wonderful session on data driven concept. Very helpful to me. Can you please help me to handle multiple sheet data.
    Regards,
    Sayed

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

      Hey Sayed, you can for loop for handling multiple sheet and then iterate row and column.

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

    Hi Mukesh i have a question that, while execution can i run the code without closing the sheet from where i am providing the data or do i need to close the sheet every time i run the script??

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

      yes, you can, because in current code, you are just performing the read operation... you will need to close the data sheet, when you will be performing the write operation

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

    Again, this is super awesome video. Explained in great detail. I tried it on the website that I am trying to automate and it worked really well. I, however stumbled onto issues with the Testng annotations. My script does the same thing, test login first. However, there was another script that I wanted to execute once the login is successful. However, when I run that script, it started failing (my login script previously has the annotation @BeforeMethod which we changed to @Test(dataProvider = "logindata")
    Any suggestions here.

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

      This may be too much of an ask to have you help us solve our problems. But your videos are good detailed and are turning new comers into good automation test engineers.
      I am completely glued to these tutorials.

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

      Hi Pankaj, @Test method will run multiple times based on number of rows so make sure @BefireMethod has only browser related details. @Test should have actual test.

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

    Sir , their is one problem. U had start the excel sheet from 1st row and if I want to use it from 2nd row by making int i=1.It shows null pointer exception.Please guide me

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

      Hi Suraj, make sure you add NA or change your utility method which can handle null values.

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

    Hi Mukesh,
    What if i have more than 30 columns in the table and i have to pass through from dataprovider to test method, I struck here, any supported examples would help me to resolve this kinda of issues.

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

    Thank you mukesh , in the same code plz help me how to write data in excel sheet

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

    hi mukesh
    suppose if i want to add only numbers means.. what should i do? ..suppose if there is phone number field in application means what should i do..where to change the code? .i am getting an error like cannot get a string value from numeric cell.

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

    Thank you Mukesh for the awesome video.
    Could you please let me know how to take screenshot for multiple test cases with different names. How will I have to pass the screenshot name argument here ?

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

      Hi Shreesahaya this would help ua-cam.com/video/4ldt-KIgPUQ/v-deo.html

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

      Thanks a lot for replying !!
      Yes I already went through that video.
      But there u are hard coading the screenshot name..
      But is there any way where we can pass the screenshot name as parameter?

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

      Ya I got the solution. I passed username parameter as screenshot name. So it stored all the separate screenshot with username.
      Thank you.

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

    Hi Mukesh, can you let us know how to write to the Excel file using the case you use here? Thank you.

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

      +Hugo van den Berg Hi Hugo thanks yes planning for this sunday will upload and let you know

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

    Hi Mukesh, i have 4 rows in my excel and in for loop, i started with i=1. but while running, the script is running 4 times with first data set as null,null. im not sure why the script is picking the first set as null,null
    Can you advice on this?

  • @PankajTiwari-cy2km
    @PankajTiwari-cy2km 7 років тому +1

    Hi Mukesh,
    I have a small doubt, whenever in the for loop I change i=1 for reading through the excel, it passes null as username and password. Rest of the code I'm using the same as above. Can you please help in this regards.

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

    Hi Mukesh,
    Nice explanation.
    I have used your code but i am getting error "" Cannot get a STRING value from a NUMERIC cell" , so could you please tell me what's the solution to fix this error.

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

    Mukesh,
    Please help us with an entire Hybrid Driven Framework creation from the scratch so that it can be helpful for us in projects.

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

    Hi Mukesh,
    I'm new to selenium, but your videos are too helpful. Still I'm not able to find Data driven framework excel based part 3 Selenium Webdriver..

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

      Thanks Omkar, DDF3 you can explore from your side. I will try to publish soon.

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

    Hi Mukesh , Nice Explanation , will you please come up with keyword or Hybrid framwork

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

    Hi sir, your tutorials are very nice...I hv one question You told while explaining DDF part 1 that if you don't know how configure means go through my previous video right..??
    which video I shud go through m not getting please provide me URL of that video...

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

      +roopa patil I mean reading excel sheet

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

    for those who worked in advance selenuim project, What is the difference between storing test dsta in yml file vs excel, when do we need to store data in sql DB?

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

    Thanks a lot Mukesh, really it very useful video for beginners ... I really appreciate to keep posting this kind of video....I hope soon we will get part 3.
    can you tell me what is annotation ? how to use annotation and where ?

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

      +Saravana Sakthi Hi Saravana yes will upload soon. Annotation in java is just the seperate class which perform the perticular task. We have different annotations based on requirement. TestNg and Java itself have plenty of annotation. Can you please specify the annotation which you want to know.

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

    Can I try storing all the values of id,xpath,classname,in excel file and then try to call them in through data driven concept.

  • @SauravKumar-xj4lm
    @SauravKumar-xj4lm 8 років тому

    Hello Mukesh, your video is really nice but where we are passing excel sheet path (test data) .As we need to pass the path.

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

      Hi Saurav in my previous videos I have shown how to create library to read data so I have used the same lib.

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

    Hi Mukesh, your tutorials are really great help. Thank you so much
    Just one question, why did you put the FileInputStream inside the ExcelDataConfigConstructor? Is it possible to put it in an ordinary method?

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

      Yes you can use ordinary method as well

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

    can you tell how to read write locators from selenium java without looping?

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

      Hi Areeba, you can use Page Object Model which is common/ standard for writing automated test cases.

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

      Hi Areeba here is the link of Page Object Model ua-cam.com/video/w_iPCT1ETO4/v-deo.html

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

    appreciate ur help....

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

    Hi Mukesh, you are the best. Can you please provide us the videos on Keyword Driven Framework also?

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

      Thanks Shravani for KDF I have course for the same learn-automation.usefedora.com/p/selenium-frameworks-and-selenium-question-answers

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

      Thank you.

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

    Hi Mukesh,Pls share Part 3 Video...

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

    Hi Mukesh, where is the part 3 ? unable to find it.