Selenium Framework for Beginners 24 | TestNG How to use Parameters | in Selenium

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

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

  • @VijayKumar-qd7ej
    @VijayKumar-qd7ej 3 года назад +2

    Hey Raghav, your videos are much better then many paid courses...

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

      Thanks for the kind words Vijay

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

    You are the best teacher in Automation I felt...awesome lecturing as well very useful information..thank you raghav for this video...🙂

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

      So nice of you Bindu

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

    Thanks

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

    Hey Raghav,
    I really appreciate your efforts to make such a nice videos and thanks for your time. I’m not clear yet on what’s the purpose of using parameters. Aren’t they same as arguments we pass to any regular functions?
    Thank you

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

      Hi Ishita, TestNG Parameters are the arguments that we pass to the test methods.. Parameters allow to run the same test over and over again using different values.

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

    Hello Sir,
    Can you please explain how to automate webtables which does not have table tr td tag.
    Thanks in advance

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

      I will plan a session Simran

  • @harshachandnani9595
    @harshachandnani9595 5 лет назад +1

    Hello Raghav, i have a use case wherein i have multiple parameters to pass to method with @beforeMethod annotation. How can i do that without the use of @parameter annotation. I thought of doing it with @DataProvider, however testng doesnt support dataProvider with @BeforeMethod annotation.

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

      Hi Harsha, you should be able to use this. Pls check here
      stackoverflow.com/questions/35893294/dataprovider-with-before-testng
      examples.javacodegeeks.com/enterprise-java/testng/testng-beforemethod-example/

  • @KiranKumar-ne1zy
    @KiranKumar-ne1zy 5 лет назад

    Hello raghav will executing parameters annotation it execute only testing.XML file other than we can execute test class also

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

      Hi Kiran, yes you can execute classes as well. You can provide the details in testng.xml file accordingly. Check other videos on this playlist automationstepbystep.com/online-courses/

  • @Deniz-ss1sv
    @Deniz-ss1sv 3 года назад

    :)

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

    Hi Raghav, I am getting this error:org.testng.TestNGException: Cannot find class in classpath.How can I solve it?

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

      Hi Neha, it must be some particular class. See if this helps - stackoverflow.com/questions/25543910/error-org-testng-testngexception-cannot-find-class-in-classpath-empclass

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

    hello Raghav ji i have one doubt, in this script we will pass only one parameter at time ?
    i am trying to pass more then one parameters it throws an errors...
    can you try to help me ?

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

      Hi Krishna, will need to see your error and your code and setup

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

      @@RaghavPal how can I share am code

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

      You can copy the code showing error here and also the logs showing the caused by section

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

      @@RaghavPal raghav ji can u give suggestion to record my actions in desktop like apps or softweres.
      just now i hava full clarity about parameters how to use, passing more then one parameter and java,xml as well...
      IN JAVA
      @Test
      @Parameters({"sub1","sub2"})
      public void test1(String name1,String name2)
      {
      System.out.println("first Name is :"+name1+" second name"+name2);
      }
      in XML

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

      Hi for desktop apps you will need to try AutoIT for winnium. Selenium will not work on desktop

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

    how to pass more than one parameter ? Pls tell

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

      Hi Priyanka, can check this stackoverflow.com/questions/45160355/multiple-values-for-parameters-in-testng-xml-without-using-dataprovider

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

    I have error org test.tesng

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

      will need more details Raja

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

      Send it your whatsapp number i send the photos I don't know how to tell