P2 - Installation of TestNG | TestNG | Testing Framework |
ฝัง
- เผยแพร่เมื่อ 21 ก.ค. 2021
- In this video, I have explained about "Installation of TestNG".
Installation of TestNG
1) Install the plugin for IDE(Eclipse/IntelliJ/Netbeans) (Can be installed in 4 ways for eclipse IDE)
-- From within the eclipse IDE (2 ways)
-- Help - Marketplace
-- Help - Install New Software
-- From outside eclipse
-- Drag install button available in eclipse plugin github repo
-- Drag install button available in eclipse marketplace
2) Install the TestNG libraries inside the project
-- Maven Project
-- Normal Java Project
=======================================
▶️ Next Video Link: • P3 - Create and run yo...
◀️ Previous Video Link: • P1 - Introduction to T...
↔️ TestNG Playlist Link: bit.ly/3wXyuXB
✴ 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.hyrtutorials.com
🔗 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
↔️ TestNG Playlist Link: bit.ly/3wXyuXB
✴ Checkout my other playlists: bit.ly/3gLIAVL
☕ Buy me a coffee: bit.ly/33ljBWc
Please share your connect number
bro, explanation is good, but i feel you are running very fast
It's very clean and most importantly fast.....explaining without dragging helps a lot of people like me...very gud job bro...All the best 👍
Thankyou 😊
Hope you feel the same for rest of the videos as well.
Very nicely and precisely explained. Most importantly it's consuming less time to learn
Thankyou buddy 😊
@HYRtutorials i had installed test NG dependences and it is showing in maven dependencies but error is coming as main method is not there and TestNG is not installed
Crystal clear explanation Mr. Reddy
Thankyou Mounika 😊
Superb Explained.. ❤️ Non It Students can easily get understood
Thanks buddy 😊
Very simple explanation. Thank You for your effort
Thanks buddy 😊
Your teaching skills are superb....
Thanks buddy 😊
amazing content and precise information thank you
Hi Sir, As per the video i installed eclipse but i am getting so many errors while running the code, so could u plz help me
nice explanasion bro... clean and clear way ur explanasion .. keep going. waiting for another concepts... t
Thankyou 😊
Hi brother,
Am facing Error: A JNI error has occurred, please check your installation and try again pop up message
And in console it showing unsupported class version (class file version 55.0)it runtime only recognises upto have 52.0
Please help
Clear cut explanation without any unnecessary things , liked it , do u provide classes also
Thanks buddy 😊
No buddy I'm not providing any trainings currently
Thank you very much, you do an excellent job!!!
Glad to help!
Hi sir, am getting " A jni error has occurred, please check your installation and try again". And in console java.lang.NoClassDeffoundError showing... can you please help me
Launching class has encountered a problem
Invalid project
Show error type kindly give the solution
Good explanation....very useful❤
Thanks buddy 😊
Still after completing all steps.....testng option on right click(run as testng) not coming
explanation was clear and good easily understand
Thankyou buddy 😊
Sir i have Installed the TestNg Successfully But Maven Folder is not created sir even i am refresh my project
thank very good excellent explanation achive your goal
Thanks buddy 😊
After adding testng dependency, the the testng jar file was added , but when i tried to run test class , run as testng option not showing, why?
You have installed the testng in the project but u need to install the testng in the eclipse as well.
If you watch the full video you can find the part where I explained about installation of testng in eclipse as well.
Good Explanation... Thank you.
Thankyou 😊
Hey bro when i done installation and added maven repository but after creating class when i add @test and use ctrl+space it shows no annotations please help me
Expand the maven dependencies in your project and verify whether it has the testng libraries in it.
Excellent video very helpful
Thankyou buddy 😊
Very....
Clear Explanation..
Thank you so much 🙂
Nice explanation bro. Requesting you that start videos on Hybrid Framework bro beside TestNG series. Please consider our request bro. We are waiting for Hybrid Framework series from so many days. Thank you bro...
Thankyou 😊
Will do after this series.
@@HYRTutorials IS Hybrid framework covered after these,i cant playlist about it.
by the way ur explanations is amazing.
As I installed it via eclipse marketplace,
I did not get
Run All
Run | Debug
Options After restarting the IDE
Its not because of that buddy.
You might have written the code in src/main/java.
Instead, you should write it in src/test/java
thanks for the video series on this
Keep learning and keep supporting buddy
Hi Bro, MY IDE has selenium software also. still TestNG cal install into IDE or needs to open new IDE for TESTNG?
How selenium is already installed in ide buddy?
U mean in project?
For TestNG, we need to install another Eclipse IDE, while install the TestNG from this vedio create project is there.but I am not getting that, could you guide me bro?
Install the TestNG as shown in the video buddy
Hi Reddy garu, I have installed TESTNG from help from eclips, but it does not show in run button
You might be creating the java files in src main folder buddy.
Create it under src test folder buddy
Sir ipudu Testng install chesaka Eclipse IDE ni restart now ane adugutundi kadaaa
Restart chesaka by any chance previous programs delete avavuga restart cheste?
If any unsaved changed are there, then they might go but programs will not be deleted buddy
Excellent
Very good explanation sir
Thankyou buddy 😊
why Run | debug not showing in when create Script in "class in src/main/java" but showing in "src/test folder. "
Yeah , src/main is dedicated for framework related files.
src/test is dedicated for test related files.
So by default testng identifies that and shows like that.
Sir it was showing cannot perform operation.computing alternate solutions,may take a while:2/15,will it work or not I am using 4.5.2 version
Why u r using very old version of TestNG buddy?
hi , I have some error like "a java exception has occurred". what we have to do for this error ,Its error occurred in execution of testng programs.
Send me the screenshots on hyadagirireddytutorials@gmail.com
Sir ,I have a doubt. Right now am using maven project in eclipse. Can I create a separate Maven project for TestNG or install TestNG in which I have used maven project.
You can install TestNG in the same maven project buddy
@@HYRTutorials thank u sir
i am installed eclipseide java developer but not created new package,class and i want to write any program not displayed
Send me problem and screenshots on hyadagirireddytutorials@gmail.com
Nice explanation,👍
Thanks buddy 😊
I'm working on a java project and I have done the same as you mentioned in the video. But still its not showing TestNG option in 'RunAs'. Can you please help me out on this.
After the installation of eclipse plugin,you should restart the eclipse
@@HYRTutorials yeah.., I have done each and every step shown in the video and cross checked it multiple times to see if I missed anything. I didn't miss anything but still its not showing the TestNG option to run
Probably it could be some eclipse version issue then.
Try to use the latest version of eclipse.
Hi sir,good morning hope u r doing good, while istalling and run the testNG it showing some error like"internal error launching test case"
Are you on VPN network buddy?
Thank you Reddy ,in preferences i am able to see testNG software but under runas "testng test' option not showing.
Did you add any @test annotation in that class file buddy?
Your teaching concept good bro, but too fast bro, within browser opening time you are going to next topic.
Hii i got error to place jar files in resource folder. clipboard content con't paste into the selected elements this one is the error
Open the project in file explorer and paste the content there buddy
Cannot perform operation computing alternate solutions may take a while nu varudhu correcta
Aama correct da
Thank you so much!
Happy learning buddy 😊
When I add @Test it shows error what can I do?
It didn't show maven dependency also
Press Ctrl+space
Hello sir, thanks for the clear explanation. i have installed TestNG Plugin for Eclipse and my Project but its not showing the " Run | Debug " after @Test. please suggest me how can i get it. Thank you
Thankyou 😊
1. Did you restart the Eclipse after installing the testng plugin?
2. Is your eclipse a latest version?
3. Did you install the latest version of testng eclipse plugin?
@@HYRTutorials Thanks for the quick response sir. I watched the video couple of times, so i got the solution, mistake was I have created the testng class in src/main/java. Actually it should be in src/test folder.
why Run | debug not showing in when create Script in "class in src/main/java" but showing in "src/test folder. "
Did everything like in the video Run All option not coming after software installation
Did install only for Run All option run as Testng was coming previously, 3 warnings are still there unlike yours in the video please help bro
Probably you are writing the tests under src main java instead of src test java buddy
Sir it's very good explanation
But 1 doubt sir
When am going to create Mavel project only it's displaying
( SRc, Main, test, target ,pom.xml)
Not coming remains(jre system library, maven dependineses, Test project.....)
Am done same u r procedure
Plz tell me sir !!!
Maven dependencies will come only when you add any dependencies in the pom.xml file buddy.
While installing Testng in my maven project after sometime it is showing Cannot perform Operation.computing alternate solutions may take while 1/15 after completion of 15/15 it is showing that not installed. What is problem in this ??
Never saw such kind of errors.
Are you using office laptop?
@@HYRTutorials Personal laptop Bro It's Solved bro
@@ravijitte968 cool 😎
Hi bro, i got an error while run testing codes,that error is A jni error has occurred,place check ur installation and try again. So what to do now...
Checkout this video buddy
th-cam.com/video/4Y9mjyxO8EY/w-d-xo.html
Superrrrrr sir👌👌
Thankyou buddy
I'm getting this issue.. Cannot perform the operation computing alternate solutions.. Sir can u tell how to resolve this problem
After sometime it will go away buddy
Sir,@Test ani isthe, org.testng.annotations ani references kanivatledu. pls help
I have added dependency as u said in pom file as welll
Open the maven dependencies and verify whether u r able to see the testng jar file or not
Sir, Above mentioned issue got resloved sir. .But...when i right click and see , run with TESTNG is only shown.
Run on server option is not displayed. kindly help me
And moreover, RUNALL, RUN|Debug options are not shown on my page
@@LittleSoldiers143 after writing @Test, Press Ctrl+space
@@HYRTutorials Sir, Above mentioned issue got resloved sir. .But...when i right click and see , run with TESTNG is only shown.
Run on server option is not displayed. kindly help me
And moreover, RUNALL, RUN|Debug options are not shown on my page
@@LittleSoldiers143 But why do you need run on server buddy?
Thats is not displayed because u might have downloaded the different eclipse package than mine.
try to download the latest eclipse
Hi bro, I am getting error while installing plugin in eclipse IDE can u pls help here
What's the error buddy
Nice explained
Thank you 😃
Hii sir iam getting in my system , while writing @test it's showing import'test'(org.jnunit) not loading test ng package wat to do sir
Did u add the testng library to your project?
No sir I will try to rectify
excellent 👌
Thanks buddy 😊
You are great thank you
Thanks buddy 🙂
Thank you so much
Glad you liked it ☺️
.xml -> dependecies not show default . What should i do
Select File-New-File provide the filename with extension as .xml buddy
what is the diff. b/w java and Test NG.....And why we not go for program with java and why include TestNG?
Comparing Java and TestNG is inappropriate but to answer your question here im giving the answer
TestNG is a library developed as a framework in Java.
For eg if you want to execute any piece of code before executing any method every method, there is no option java ryt?
and to execute the methods in multi threaded mode then we have implement the multithreading concept from scratch.
instead of doing it from scratch or to achieve the hooks functionality testng is providing beautiful options called annotations.
Using these annotations you can control or adjust your execution process.
How did u align the dependency code at 3:59
Select the entire text in the pom file by pressing Ctrl+A
Then align the code using Ctrl+i
EXCELLENT SIR
Thanks buddy 😊
What is the version of eclipse tat ur using
Version: 2021-06 (4.20.0)
Sir maven project create chesi andulo testNG dependency add cheste saripothundhi kada sir
Also u need to install the eclipse plugin
@@HYRTutorialsalready eclipse IDE install chesukunna Anna
You need to install the TestNG plugin inside the eclipse.
I have shown that in the video buddy
Test కింద Run | debug అని రావడం లేదు, reason ఏంటో చెప్పండి... Pls give solution....
Install the testng eclipse plugin as shown in the video
Thank you sir
Happy Learning 😊
nice explanation brother. but while i am running the code with Testng iam getting error as "cannot find class in classpath" how to resolve that one i saw lot of videos but i didn't get any solution
Is the issue resolved buddy?
If not send me the screenshot on hyadagirireddytutorials@gmail.com
after installing plug in, Still I am not able to see testNg run option
Restart the Eclipse buddy.
And also write your tests under src/test folder
I m not able to install testng by new install n marketplace.
What is the error u r getting?
Can you please upload videos for page object model with and without page factory, data driven , keyword driven etc..pattherns with testng selenium testing.....
Sure buddy
when ever i used to run my programm its displays look like this sir..."java.lang.UnsupportedClassVersionError: Preview features are not enabled for TestNgclasstest (class file version 62.65535). Try running with '--enable-preview'
can you help in this
This happens when your runtime environment and compile time environment doesn't match correctly.
Runtime environment you will.be setting from environment variables but compile time environment can be set from eclipse only.
Right click on your project and select properties then click on java compiler.
In this window you can change the compiler settings
@@HYRTutorials Thank you so much sir
its will works
Hi ...... How to solve PKIX path building failed error resolved ? Please help
Send me the screenshot on hyadagirireddytutorials@gmail.com
👍🏻👍🏻👌👌
Thankyou
Thank you bro
Happy learning buddy 😊
Sir how did u created maven project please tell me
I have shown that in the video buddy
why my Run and Run All annotation is not comming on my eclips?
Probably you are writing tests under src/main/java
Write it in src/test/java
@@HYRTutorials how we can change? i am unable to find.
plz help
@@naaz7847 which project you are using buddy?
Normal java project or maven project?
@@HYRTutorialsthanks brother ee comment valla run all button Ni successful Ga kanipettanu program kooda execute ayyindhi😅😊
Yadagiri bro i am getting error annotation error why i am getting error
Can u send me the screenshots on hyadagirireddytutorials@gmail.com
thank you
Thankyou 😊
Sir , Thank u
Thanku
Happy Learning 😊
Awesome but Please explain little bit slow..some time's cont follow your speed..so please consider its my spl request
Thankyou 😊
Yeah in initial videos I was a bit faster but in later videos reduced the speed.
You have control over the video please reduce the videos speed..
while downloading testNG in marketplace getting unable to read repository how to solve this pls tell me
if you are on proxy then you should handle the proxy first.
or you can copy the jar files mentioned in the below location and paste it into plugins folder in eclipse directory.
drive.google.com/drive/folders/1hzkxTReVN4Xt_7Fr7MSn8ISWGuDpi1Lq?usp=sharing
@@HYRTutorials thank you
We need to copy paste those 6 jar files in plugins Sir??
hai sir plz provide testng installation site link
Unable to install TestNg Eclipse marketplace and it shows unable to read repository
Can u send me the screenshot on hyadagirireddytutorials@gmail.com
I send ur mail sir
@@vasuvasu5626 I have sent you some libraries.
Did it work?
suuuuper bayya
Thankyou sis 😊
i'm unable to get run | debug after installing TestNG
Did you install the eclipse testng plugin?
jar file of testng not opening sir ..can u plz help me out
Send me the screenshot on hyadagirireddytutorials@gmail.com
@@HYRTutorials sir isent mail to u..
Not working tried all ways, any other suggestion ?
What is the error u r getting?
Are you trying inside the VPN?
What purpose to create tha java project
Without project where do u write the code buddy?
After adding testng dependency I am not able to get annotations after entering @test ctrl+space ( it showing no default proposals)
Is the TestNG libraries showing under maven dependencies?
I can see this brother is saying very well whenever you watch the video please try to give a like
For installation of testng libraries
Maven project
Or
Normal java project
Any one method is enough?
Anything is fine buddy. Maven is preferred over the Norma project.
hai sir ...why we are using @test ????
TestNG works based on the annotations only buddy.
@Test is one of the main annotation
thanks sir
Happy learning buddy 😊
I installed testng, but while I am trying to run, I am not able to that testng
Did u install the TestNG eclipse plugin?
@@HYRTutorials yes
Send me the screenshots on hyadagirireddytutorials@gmail.com