P20 - Integration of Excel with Dataprovider | TestNG | Testing Framework |

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

КОМЕНТАРІ • 127

  • @HYRTutorials
    @HYRTutorials  3 роки тому +3

    ↔️ TestNG Playlist Link: bit.ly/3wXyuXB
    ✴ Checkout my other playlists: bit.ly/3gLIAVL
    ☕ Buy me a coffee: bit.ly/33ljBWc

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

      Bro report portal gurunchi explain chesthara?

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

      Em report portal buddy?

  • @Aryan-fk5iy
    @Aryan-fk5iy 2 роки тому +1

    Very much informtative......God bless u brother...Keep posting..

  • @prabasrini3099
    @prabasrini3099 9 місяців тому

    Your explanation is really awesome and we can compare it with real time scenario that not found in many other videos.. thank you so much

  • @radhesaran1761
    @radhesaran1761 Рік тому +2

    amazing way.....u have proper concept and very easy and understandable steps .heads of to u man.

  • @ramanimoharil7991
    @ramanimoharil7991 2 роки тому +4

    Just amazing explaination man... You told what is required ..long way to go..best luck for your career and lots of blessings

  • @TusharMohite-w9s
    @TusharMohite-w9s 3 місяці тому

    I watch all your videos helps me a lot thank you sir....

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

    Your videos are so informative----Your videos should have more views from aspirants like me!Thank You!I will share this video as much as I can.

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

    Crystal clear explanation, thanks for making this useful video, thank you❤❤🙏🙏

  • @Nagasai-ri9wk
    @Nagasai-ri9wk Рік тому

    Amazing explanation bro. Your playlist is enough to learn things in a easy way.

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

    Top Class explanation, I love your all videos 😍

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

    Excellent Explanation!!

  • @TusharMohite-w9s
    @TusharMohite-w9s 3 місяці тому

    thanx dude ...i got it now also clear my java concepts ......

  • @Sumedha_N_Bandara
    @Sumedha_N_Bandara 2 роки тому +2

    Very informative video. Learnt lot from this video. Thank you very much * wish you all the very best to make more leaning materials.

  • @BN-bn9fk
    @BN-bn9fk Рік тому

    Thank you buddy! Great approach!

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

    Excellent explanation sir, thank you so much for covering this concept

  • @nagasaimaddula56
    @nagasaimaddula56 7 місяців тому

    Amazing explanation bro. Thank you:)

  • @indiantourism975
    @indiantourism975 Рік тому +1

    excellent explanation bro

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

    Very Nice Explanation Bro..

  • @saurabhkumar5787
    @saurabhkumar5787 Рік тому +1

    Nice explanation

  • @bharathpybodi2842
    @bharathpybodi2842 4 місяці тому

    Amazing videos Bro

  • @padminivenkataram524
    @padminivenkataram524 Рік тому +1

    Hello, very nicely explained. Can we merge two data providers if we need to merge data from two excel files??

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

    You are just excellent sir ❤️

  • @DebunkSensibly
    @DebunkSensibly Рік тому +1

    Thank you so much!

  • @munindharr1039
    @munindharr1039 Рік тому +1

    super
    excellent

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

    Good Work Sir

  • @knjaswanthi9683
    @knjaswanthi9683 11 місяців тому

    Excellent sir

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

    Sir can we add parallel= true in dataprovider so all will run simultaneously.
    It is very nice video.you explained nicely. Thank you sir

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

      Yes buddy. I have explained that in P21 video buddy

  • @Bell4Fun
    @Bell4Fun 2 роки тому +2

    Bro ...you are doing great Job ...could you provide something on Design Patterns as this now trends during interview for SDET's 😉

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

      Thankyou buddy.
      Yes now a days it's being asked in many interviews even though some of them are not really used in the projects.
      I will make the videos on those.

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

      @@HYRTutorials waiting sir....

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

    @HYR Tutorials .
    Hi Reddy sir , It is very helpful video for me , can you tell me if we are using standalone Mobile apk and we are passing the credentials from the xl sheet , how we can implement quit method() , Because after running one time its not going for second iteration , I think you have missed this in this video

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

      usually every test should start the browser freshly and thats whyi have shown like this buddy. but if we wanted to keep the instance then we can call the quit method in aftersuite annotation

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

    Good work

  • @sasikalachekuri7335
    @sasikalachekuri7335 Рік тому +1

    Hello Mr. Reddy , I have been watching testNG series from past two days the way you are explaining is too good, I have a question on excel data provider, In this video you have hard coded the excel file name in excelDataSuplier class as static , but I want to pass the excel file name from the main test, Is it possible if yes ? How?

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

      That is little difficult, but you can identify which test method is calling that dataprovider and based on that you can decide which excel file you want to use.
      To achieve this you need to add one parameter called Method m to the data provider. this m variable will give you the information about the test method.

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

      @@HYRTutorials Thank you

  • @chaitanyamutluri7580
    @chaitanyamutluri7580 Рік тому +1

    hi bro,thanks for all of your viedos. Naku 1st set data print avtundhi, After that [ java.lang.NullPointerException: Cannot invoke "org.apache.poi.xssf.usermodel.XSSFCell.getStringCellValue()" because the return value of "org.apache.poi.xssf.usermodel.XSSFRow.getCell(int)" is null ] error vastundhi.

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

      Which means you are trying to access the empty row or empty cell

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

    Hi Bro Your teaching was very useful. Can you put one video for json integration with DataProvider?

  • @NamRaj2021
    @NamRaj2021 Рік тому +1

    I have small doubt ...bro you manually run the three test cases or they automatically done ???? Can we run 3 test cases by creating three methods and giving test method priority.

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

      Yes we can do that buddy.
      When u execute the TestNG class, it executes all the test methods present in it. But if you want to execute only few methods as part of one test and few other as part of another test then you can use TestNG xml file buddy

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

    agile, cucumber,apitesting,jira tool .... please explain all these

  • @mohitchawla3746
    @mohitchawla3746 2 місяці тому

    Awesome

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

    Hi sir have one query, suppose if you have two test cases one is login and one is log out before test I have initialized the url after test i have used driver.quit method iam running these cases through testng xml file ihave applied the data provider concept like you said how it will execute it's not going to second user

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

      Did you mention the data provider to the test method?

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

      @@HYRTutorials yes mentioned sir can you provide your mail id I'll send the code which I wrote

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

      @@srikanthreddy6690 send the code on hyadagirireddytutorials@gmail.com

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

    Can you please make it one video of how to read data from Json and yaml sir

  • @sonalishelar4242
    @sonalishelar4242 Рік тому +1

    Sir i am getting an error : java.lang.OutOfMemoryError: Java heap space. So can you please suggest me what i am doing wrong. the code is same .

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

      Try to increase the headspace of your eclipse buddy

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

    great sir

  • @ashishkumar-tm9cp
    @ashishkumar-tm9cp 2 роки тому +1

    can you make videos of maven with pom and log 4j ,jenkins,github please

  • @AnilKumar-sf4em
    @AnilKumar-sf4em 2 роки тому +1

    Hi Yadagiri,
    My requirement is, dataprovider having {1}{2}{3} data and I have 3 methods in a class, I want to pass {1} to first method and {2} to second method and {3} to third method,
    Is it possible, Plz provide the solution.
    Thanks
    kumar

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

      Thats not how you should be using the dataprovider buddy.
      But you can do that.
      Watch the indices concept in this playlist
      ua-cam.com/video/do0Bql_QVhg/v-deo.html
      Apply this concept on your test methods and you are good to go.

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

    Giri... Do u have videos on POM

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

      No, I haven't created them yet

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

      @@HYRTutorials please do it, when you have time.. that will be helpful to many people.. why I am asking you mean your way of explanation is clear to understand

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

      Sure buddy

  • @rupaliranotkar8744
    @rupaliranotkar8744 Рік тому +1

    I followed the same steps but getting an error that can't invoke the method due to class mismatch
    Can you reply it's very urgent

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

      Send me the screenshots on hyadagirireddytutorials@gmail.com

  • @PratikHood
    @PratikHood Рік тому +1

    Hello Sir,
    Can you create a video where we can fetch the data from excel using the test case name. My team is trying to lot to search such kind of tutorial but we are not getting it.
    Logic we are looking for : First it will search for the workbook then sheetName and then TestCaseName and the data which is inline with the test case, that will be fetch in the Test case.

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

      You can't find the videos as it is custom requirement buddy. But if you understand the excel reading concept, designing this requirement won't be that difficult.

  • @i_habeeb
    @i_habeeb 11 місяців тому

    If we want to write data to excel cell dynamically how to do it pls explain...

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

    can You do a video on passing data from a Pojo class of java which returns from a json file ?

  • @sudhakarthangavelu7164
    @sudhakarthangavelu7164 Рік тому +1

    How to pick data based on header name and store it in two dimensions array

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

      We need to implement that logic buddy.
      First you should know how to read data from excel then you can iterate the rows and store it into the object array

  • @chinni_channel.7587
    @chinni_channel.7587 2 роки тому +1

    Nice

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

    I have one doubt, this video is based upon 2-d array having multiple username and password only in Excel sheet. But can you tell me, what IF in Excel there are more than 5-10 columns...what will be the dimension of array object in data provider? Do I have to create object array with 5-10 [][][] brackets in data provider ? What is the approach we should use in this case?

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

      No even if we have 10 0r 20 columns in sheet, two-dimensional array will do the job for us, All we have to do is change the parameters type in method which is using data provider to array and use those variables in array in test method.

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

      Here it doesnt matter about the number of columns in the excel sheet buddy. Even if you have 1000 columns it is going be a two dimensional array only.

  • @archanaregu8920
    @archanaregu8920 2 місяці тому

    How to call a particular only string from Excel sheet using dataprovider in Test by passing row and column from Test method

  • @sajeerk5561
    @sajeerk5561 Рік тому +1

    How to handle the browser closing after the test fails?

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

      You can handle it in after test annotated method buddy. Just like how we capture screenshots on test failure.
      There is one video I have created on the screenshots capturing thing. That gives you the idea

  • @kishorebabu544
    @kishorebabu544 8 місяців тому

    hii i am work in intellij when i run this file it goes to the another file but current file is not running

  • @vanajachowdary3998
    @vanajachowdary3998 4 місяці тому

    please make tutorials on page object model framework, i found no relevant clear tutorials for this

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

    Hi sir
    Can you tell me plz
    I have the pivot table
    If I enter the values in the one column cell the some columns in same row was filling automatically because of formule.
    But while entering values into column through Java code it is not reflecting the formule just it is filling the particular column only.
    But manually formule is apply but for the same sheet .it is not working through Java code how can we do that can you plz any hint or any suggestions plz

  • @RamaKrishna-ng4of
    @RamaKrishna-ng4of 2 роки тому +1

    Sir ,when i try to run its showing Data Provider Mismatch error

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

      Did you provide the correct name buddy?

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

    Please tell me how to read it for multiple sheets

  • @moneyminded27
    @moneyminded27 10 місяців тому

    How to provide test data from excel to testcase using testng and pom

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

    Can you share code in description?

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

      Already the link is available in description buddy.
      Can u check

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

    Thank u

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

    Sir if I gave invalid username and password also it's showing test case pass

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

      Are you doing any assertion buddy?

  • @yay4meluigi
    @yay4meluigi 11 місяців тому

    DON’T DO IT! It is an absolute nightmare because Git cannot see XLSX files or handle merge conflicts. I’m forced to use a repo with this setup and we can’t see the xlsx updates in Pull Requests and data is always getting mistakenly deleted from the excel sheets when PRs are merged. 😢

  • @sowjanyachattu5625
    @sowjanyachattu5625 2 роки тому +2

    Hi sir, I'm getting this exception(Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/io/output/UnsynchronizedByteArrayOutputStream). could u please tell me the solution

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

      U might have missed some library, check once

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

      @@HYRTutorials ok sir, thanks for ur reply

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

    How can we contact you sir?

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

      You can check the about section in my youtube channel buddy

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

    Hii

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

    Getting exception as java.lang.NoClassDefFoundError

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

      Change the jre system library and restart the eclipse buddy

  • @kanaktandon1573
    @kanaktandon1573 Рік тому +1

    System.out.print(sheet.getPhysicalNumberOfRows());
    while executing this , i am getting ACCES IS DENIED Error

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

      Did you set any password or special permissions to your excel file buddy?
      Or close the excel file and try again