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

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ม.ค. 2025

ความคิดเห็น • 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

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว

      Most welcome

  • @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/

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

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

  • @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/

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

  • @Deniz-ss1sv
    @Deniz-ss1sv 3 ปีที่แล้ว

    :)

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