Selenium Video - Hashmap with TestNG Dataprovider for Data Driven Testing in Selenium WebDriver

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

Комментарии • 29

  • @sriramm1929
    @sriramm1929 6 лет назад +1

    Excellent video prakash. Thanks a lot for explaining the concept so clear. Appreciate your effort.

  • @jonnalagaddaksriganesh9727
    @jonnalagaddaksriganesh9727 3 года назад +1

    Great approach. It solved my problem.one question ..instead od object[rowcount][1], can we use list and return it from dataprovidet

  • @myyoutub2010
    @myyoutub2010 2 года назад

    why there are dislike to this Video.......Thanks for video and Appreciate your efforts.

  • @nagamanivajrala781
    @nagamanivajrala781 4 года назад

    Excellent video.Thank you!

  • @testinginsights-muktasharma
    @testinginsights-muktasharma 6 лет назад +1

    Very good video, Prakash! Great work! Can you please share your GIT repo code base URL? Thank you for explaining so clearly!

    • @AutomationTalks
      @AutomationTalks  6 лет назад +1

      HI Mukta
      Thanks for taking time to comment here.
      You can find the complete code at below URL on my blog -
      automationtalks.com/2017/10/27/data-driven-framework-selenium-webdriver/

    • @suryasuresh1958
      @suryasuresh1958 4 года назад

      Thanks sir...

  • @partheepbommina
    @partheepbommina Год назад

    Hi when I am calling mapreferance variable dot get(key) getting null

  • @ashokkumar-wo4nv
    @ashokkumar-wo4nv 3 года назад

    Brother can you kindly update the code on writing into excel file using hashmap. It will be really helpful

  • @ManiKandan-vo2qr
    @ManiKandan-vo2qr 3 года назад

    where did you create a mapdata object ? it is not present anywhere in this program ? you created datamap for reading excel value and storing thats fine. But while accessing them in the test method how suddenly you are using another map object ?

  • @tulasiramsunkara
    @tulasiramsunkara 3 года назад

    Hi prakash, what is the reason behind creating map object inside for loop... Is it by mistake or intentionally?.

    • @ashokkumar-wo4nv
      @ashokkumar-wo4nv 3 года назад

      It's because to get new key and values. Map creation outside for loop will give you only the latest key and value pair

  • @palashchatterjee1454
    @palashchatterjee1454 4 года назад

    Hello,
    If my Test method is in different class.
    How will the test class communicate with dataProvider.
    Please let me know.
    Thanks

  • @samarthjain2524
    @samarthjain2524 4 года назад

    Hi bro ,
    Can a Map datamap can hold array (obj) reference ??

    • @AutomationTalks
      @AutomationTalks  4 года назад

      Yes, It can. You need to make sure that when you define hashmap, it is of that respective type.
      For exmaple, for storing an int array in hashmap:
      HashMap h = new HashMap();

    • @samarthjain2524
      @samarthjain2524 4 года назад

      Thnaks bro

  • @sakthisakthi-wu4dt
    @sakthisakthi-wu4dt 4 года назад

    How to Pass number of test data into application used on excel data

  • @sakthisakthi-wu4dt
    @sakthisakthi-wu4dt 4 года назад

    How to pass into application use this code?

  • @RajasekharVenati
    @RajasekharVenati 4 года назад

    How can we pass excel data in sendkeys here, please explain

    • @AutomationTalks
      @AutomationTalks  4 года назад

      Read excel data using Apache POI in to any collection framework, then retrive the data from it and pass it to sendkeys.

  • @ashokkumar-wo4nv
    @ashokkumar-wo4nv 3 года назад

    You have not explained the logic behind using object[row][1]. Really confusing

  • @notafraid789
    @notafraid789 6 лет назад

    You did not explain how obj[i][0]=datamap is working here. Asking this question because map will never have 2 values with same key then how is return obj which is a single column array able to return all the key value pairs

    • @ChunduruDattaSai
      @ChunduruDattaSai 5 лет назад

      Even I had Same Quesiton and another thing is how data[0][i] is working I am not able to understand this also

    • @pramodkumarmohapatra9152
      @pramodkumarmohapatra9152 4 года назад

      Hey, here each cell in the 1-dimensional array stores a different map.
      Another thing here is that..he did not need to create a 2-d array. 1-d array was enough.

  • @amarnath1494
    @amarnath1494 3 года назад

    Very much confusing