P8 - Parameters in TestNG | TestNG | Testing Framework |

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.พ. 2025
  • In this video, I have explained about "Parameters in TestNG".
    1. What is the use of TestNG parameters?
    2. How to use the TestNG parameters?
    =======================================
    ▶️ Next Video Link: • P9 - Optional Paramete...
    ◀️ Previous Video Link: • P7 - TestNG annotation...
    ↔️ TestNG Playlist Link: bit.ly/3wXyuXB
    🔗 Code used in this video: www.hyrtutoria...
    ✴ Checkout my other playlists: bit.ly/3gLIAVL
    ☕ Buy me a coffee: bit.ly/33ljBWc
    👑 Join my youtube channel to get access to perks:👇
    / @hyrtutorials
    ========================================
    ========================================
    Connect me @
    🔗 Website - www.hyrtutoria...
    🔗 Telegram - t.me/hyrtutorials
    🔗 Facebook - / hyrtutorials
    🔗 LinkedIn - / hyrtutorials
    🔗 Twitter - / hyrtutorials
    🔗 Instagram - / hyrtutorials
    ========================================
    ========================================
    🙏 Please Subscribe🔔 to start learning for FREE now, Also help your friends in learning the best by suggesting this channel.
    #hyrtutorials #selenium #testng
    TestNG by Yadagiri Reddy

ความคิดเห็น • 105

  • @HYRTutorials
    @HYRTutorials  3 ปีที่แล้ว +4

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

  • @annamdeepu2610
    @annamdeepu2610 5 หลายเดือนก่อน +1

    00:01 TestNG parameters are used to pass information to test methods.
    01:41 TestNG parameters are used to pass information like browser name and URL to test methods.
    04:53 Using parameters inside the test
    06:32 Adding parameters for browser name and URL
    10:15 Handling input for browser name and URL
    12:08 Verifying welcome text and login in TestNG
    15:54 Using parameters in TestNG
    18:00 Setting browser parameters at test level in TestNG
    21:18 Reading parameters in string format and specifying the type of value
    23:26 TestNG parameters allow direct reading of values in long format, avoiding unnecessary conversions.

  • @twistedstyles
    @twistedstyles 2 ปีที่แล้ว +1

    love your way of teaching, makes a dumb person like me understand it. you are top notch for sure! thanks.

  • @pareshmkulkarni
    @pareshmkulkarni 2 ปีที่แล้ว +5

    Great Tutorial Mr. Reddy. You have explained it in detail. Appreciate your knowledge sharing skills. Thank you.

    • @HYRTutorials
      @HYRTutorials  2 ปีที่แล้ว +1

      Thankyou buddy

    • @jallapremsai9040
      @jallapremsai9040 10 หลายเดือนก่อน

      @@HYRTutorials page object model and page object factory explain

  • @yadrajshinde6613
    @yadrajshinde6613 หลายเดือนก่อน

    Very informative video and clear explanation Thank you!

  • @santhoshkumar991
    @santhoshkumar991 หลายเดือนก่อน

    Nice teaching skills bro. Keep it up.🎉

  • @tani-cw6sz
    @tani-cw6sz 11 หลายเดือนก่อน

    your every lecture is excellent. thank you very much.

  • @Shivanibbbbb
    @Shivanibbbbb 2 ปีที่แล้ว +1

    all videos are excellent .
    appreciated.

  • @pradeepg7507
    @pradeepg7507 2 ปีที่แล้ว +1

    Owesome tutorial following all videos 👍 thank you Sir

  • @bharathpybodi2842
    @bharathpybodi2842 7 หลายเดือนก่อน

    Your Overal course is excellent Bro

  • @ashwajitthukral9101
    @ashwajitthukral9101 3 ปีที่แล้ว +1

    you explained it beautifully, thanks to you mate!

  • @dhananjaybathe8483
    @dhananjaybathe8483 3 ปีที่แล้ว +1

    I really enjoy learning watching your videos. Very useful and fruitful. thanks a lot..

    • @HYRTutorials
      @HYRTutorials  3 ปีที่แล้ว

      Thankyou for liking 😊

  • @gaddipatiprabhakar2889
    @gaddipatiprabhakar2889 3 ปีที่แล้ว +1

    Another.... Good Video on TestNG Series... Thank you Bro

    • @HYRTutorials
      @HYRTutorials  3 ปีที่แล้ว

      Thankyou brother 😊
      Hope you are practicing as well

  • @ihtishaamUlHassan
    @ihtishaamUlHassan ปีที่แล้ว

    Thanks a lot sir for this great tutorial, I did have to slow down the speed since you are talking a bit fast but that's fine. This video was really helpful thank you

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

    Hi sir. Actually I have joined in inistitute. But I have learned more from ur channel. Superb explanation. Thank u

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

      Ohh that's great to hear 😊

  • @munindharr1039
    @munindharr1039 ปีที่แล้ว +1

    well explanined
    thanks

  • @Targetgroups123
    @Targetgroups123 3 ปีที่แล้ว +1

    Super sir💐💐👍🏻👍🏻

  • @Yogeshnaik-z9h
    @Yogeshnaik-z9h 2 ปีที่แล้ว +1

    super explanation brother super

  • @yaswanthtirupathi6551
    @yaswanthtirupathi6551 2 ปีที่แล้ว +1

    Thank you so much bro

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

      Happy learning buddy 😊

  • @IndianCultureNaveen
    @IndianCultureNaveen 2 ปีที่แล้ว +1

    Nice explanation

  • @chitrabhange5996
    @chitrabhange5996 ปีที่แล้ว

    Hello, sir I'm watching your series, and your explanation is excellent. However, if you type

  • @kranthikumar7443
    @kranthikumar7443 3 ปีที่แล้ว +1

    Good one bro

  • @shaikzakeer8146
    @shaikzakeer8146 2 ปีที่แล้ว +1

    Hi Reddy, you have explained it in detail. I follow all your videos. I am getting this exception how do I solve "java.net.SocketException: Connection reset" please help me out.thanks

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

      Send me the code and error screenshot on hyadagirireddytutorials@gmail.com

  • @srinivas4449
    @srinivas4449 3 ปีที่แล้ว +1

    Good video bro

  • @jhansimaddikunta1080
    @jhansimaddikunta1080 ปีที่แล้ว

    you are awesome

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

    you r great sir !!!
    pls make a video on wrapper class

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

      Thanks buddy
      What wrapper class?

    • @amu4560
      @amu4560 2 ปีที่แล้ว +1

      @@HYRTutorials Integer int like that java concepts

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

      @@amu4560 ok buddy

  • @riyababy2018
    @riyababy2018 3 ปีที่แล้ว +1

    Thank you @yadagiri

  • @techicalkunal3683
    @techicalkunal3683 3 ปีที่แล้ว +2

    1 doubt sir how to use different argument on same method i am trying by creating another test but it is showing error

    • @HYRTutorials
      @HYRTutorials  3 ปีที่แล้ว

      What error it is showing?
      Can u send the screenshot on hyadagirireddytutorials@gmail.com

  • @pjswathi
    @pjswathi 3 ปีที่แล้ว +1

    Hi Yadagiri garu,
    Parameters in testNG looks like Properties file which we configure. Can i know the difference?

    • @HYRTutorials
      @HYRTutorials  3 ปีที่แล้ว

      Properties file is accessible in all the classes given you write the code to access it.
      but where as parameters can be controlled at the suite level and at the test level. which means those can be accessed only inside that test.

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

    Is it possible to perform testng xml parameterization & testng assertion in same test case??

    • @HYRTutorials
      @HYRTutorials  2 ปีที่แล้ว +2

      They both are different things and dependent on any other.
      You can do them together buddy

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

      @@HYRTutorials thank you 😊

  • @harisake6068
    @harisake6068 3 ปีที่แล้ว +2

    Ele execute chestunnaru annintitho meru ?....................... nenu edge or firefox change chesina but only chrome lo matrame execute avutunnayi ela chesaru meru cheppara pls

    • @HYRTutorials
      @HYRTutorials  3 ปีที่แล้ว

      Video lo ade explain chesanu bro
      Video motham chusesthe ardam ipoddi easy ga

    • @harisake6068
      @harisake6068 3 ปีที่แล้ว

      @@HYRTutorials na question meku artham kaledu anukunta ayithey

    • @harisake6068
      @harisake6068 3 ปีที่แล้ว

      @@HYRTutorials 5 times chusanu anna

    • @HYRTutorials
      @HYRTutorials  3 ปีที่แล้ว +1

      @@harisake6068 ohh what is you question?
      Firefox and edge browsers open avvadam ledu ha?

    • @harisake6068
      @harisake6068 3 ปีที่แล้ว +1

      @@HYRTutorials yes........nenu firefox , edge emi echina ...chrome matrame open avutondi

  • @birajupatel4540
    @birajupatel4540 2 ปีที่แล้ว +1

    Sir how to declare more than 1 parameters in optional such username and password

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

      Somehow missed tour comment buddy.
      you can pass n number of optional parameters.
      Try something like this:
      @Parameters({"browserName","version"})
      @BeforeTest
      public void InitialiseBrowser(@Optional("chrome") String browserName, @Optional("95") String version) { }

  • @arjunp9334
    @arjunp9334 2 ปีที่แล้ว +1

    Hi, how can we give multiple values for the same parameter... Like giving examples in cucumber?

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

      That is not possible buddy.
      You have to trick it by providing multiple values with semicolon or colon or comma.
      And after reading you have split that by the seperator you have used

  • @kadaripattabhi
    @kadaripattabhi ปีที่แล้ว +1

    hi when iam trying to excute the code iam getting the error( Unable to find an exact match for CDP version 114, so returning the closest version found: 113) .can u pls resolve this issue

    • @HYRTutorials
      @HYRTutorials  ปีที่แล้ว

      That's just a warning buddy. You can ignore that

  • @jasminemerchant3167
    @jasminemerchant3167 2 ปีที่แล้ว +1

    Hello sir, I am getting strange error, it says
    Multiple markers at this line
    - The annotation @Parameters is disallowed for this location
    - The attribute value is undefined for the annotation type Parameters.
    Can u suggest what I can do

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

      Send me the screenshot on hyadagirireddytutorials@gmail.com
      After looking at the screenshot i can suggest you in a better way buddy

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

      @@HYRTutorials screenshot sent

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

      Replied buddy

  • @Summa_Suthuvom
    @Summa_Suthuvom 2 ปีที่แล้ว +1

    After watching the videos I feel like "ate an unlimited biriyani"

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

      Haha thankyou buddy 😊

  • @Dinesh-zs8yk
    @Dinesh-zs8yk 3 ปีที่แล้ว +1

    Firefox browser launch avvatledu bro webdriver manager tho chrome and edge drivers work avutunnai but Firefox work avvatledu, webdriver version I'm using is 5.0.3

    • @HYRTutorials
      @HYRTutorials  3 ปีที่แล้ว

      Once check your firefox version also

  • @prashantchidurala6506
    @prashantchidurala6506 11 หลายเดือนก่อน

    Hi anna can you please create this course in Telugu

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

    Parameters: as a user if you want pass the any information to the method we need to use the Parameters. similarly as a user if you want pass the any information to the TestNG Method we need to use the Parameters. Those are called TestNG Parameters.

  • @manjupingili8510
    @manjupingili8510 3 ปีที่แล้ว +1

    You were speaking very fast.but explained well.

    • @HYRTutorials
      @HYRTutorials  3 ปีที่แล้ว

      Thankyou 😊
      Yeah I tried to slow down but I guess that is still not sufficient so will try to slow down a bit more.

  • @karimullamohammed6314
    @karimullamohammed6314 3 ปีที่แล้ว +1

    sir, there is no error in my code but when I run XML. code is not working no tests are running

  • @andavaraputejeswararao1772
    @andavaraputejeswararao1772 2 ปีที่แล้ว +1

    can i get ur codes from any?

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

      Check the description buddy

  • @tejanellore6024
    @tejanellore6024 2 ปีที่แล้ว +1

    I am getting error while executing browser is not getting initiated can you help me

    • @tejanellore6024
      @tejanellore6024 2 ปีที่แล้ว +1

      How can I send you my code snippet so that you can help me find the error.

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

      You can paste your snippet here or send me on hyadagirireddytutorials@gmail.com

  • @surukartheek1717
    @surukartheek1717 2 ปีที่แล้ว +1

    hlo bro test ng kuda telugu lo cheyandi bro

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

      Daaniki konchm time paduthundi buddy.

  • @surukartheek2614
    @surukartheek2614 2 ปีที่แล้ว +1

    testng kuda telugu lo petandi bro

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

    Love ur way of teaching but be slow

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

    Sir plzz provide source code also.

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

      Check the description box buddy

  • @vishalpatnala3138
    @vishalpatnala3138 3 ปีที่แล้ว +1

    [1641740592.690][WARNING]: This version of ChromeDriver has not been tested with Chrome version 97.
    INFO: Found CDP implementation for version 97 of 96
    I am getting this error as my chrome version is Version 97.0.4692.71 how to upgrade it please i couldn't find any solution

    • @HYRTutorials
      @HYRTutorials  3 ปีที่แล้ว

      Seems like the driver version that u r using is bit old so try downloading the new chromedriver

    • @vishalpatnala3138
      @vishalpatnala3138 3 ปีที่แล้ว +1

      @@HYRTutorials I updated it to new version 97. When I am performing testng the error occurring I have added all the dependencies also nothing working out please tell me I have interview tomorrow

    • @HYRTutorials
      @HYRTutorials  3 ปีที่แล้ว

      Send me screenshots on my email or instagram or telegram.
      will take a look and advice you based on the error.