P2 - Installation of TestNG | TestNG | Testing Framework |
HTML-код
- Опубликовано: 23 ноя 2024
- 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.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
↔️ 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
I have seen many videos to install TestNG in Eclipse. This is one of the best video in RUclips. Keep rocking!
Crystal clear explanation Mr. Reddy
Thankyou Mounika 😊
Your teaching skills are superb....
Thanks buddy 😊
Superb Explained.. ❤️ Non It Students can easily get understood
Thanks buddy 😊
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 simple explanation. Thank You for your effort
Thanks buddy 😊
Very helpful video.. thank you sir
Very nicely and precisely explained. Most importantly it's consuming less time to learn
Thankyou buddy 😊
explanation was clear and good easily understand
Thankyou buddy 😊
Very....
Clear Explanation..
Thank you so much 🙂
amazing content and precise information thank you
Nice explanation,👍
Thanks buddy 😊
thank very good excellent explanation achive your goal
Thanks buddy 😊
Very good explanation sir
Thankyou buddy 😊
Good explanation....very useful❤
Thanks buddy 😊
nice explanasion bro... clean and clear way ur explanasion .. keep going. waiting for another concepts... t
Thankyou 😊
Good Explanation... Thank you.
Thankyou 😊
@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
EXCELLENT SIR
Thanks buddy 😊
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.
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..
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
Your teaching concept good bro, but too fast bro, within browser opening time you are going to next topic.
Nice explained
Thank you 😃
Superrrrrr sir👌👌
Thankyou buddy
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. "
Excellent video very helpful
Thankyou buddy 😊
TESTNG videos anni Telugu lo kuda pettandi maku chala use avuthundhi please 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
Time pattuddi buddy
Excellent
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
suuuuper bayya
Thankyou sis 😊
Thank you very much, you do an excellent job!!!
Glad to help!
I can see this brother is saying very well whenever you watch the video please try to give a like
thanks for the video series on this
Keep learning and keep supporting buddy
excellent 👌
Thanks buddy 😊
You are great thank you
Thanks buddy 🙂
Thank you so much.
Explaination is very good sir but ...Video is not clear... can't see anything..
Thanks buddy 😊
By default RUclips plays it in low resolution but you can change it to high resolution buddy. The video is available in 1080p 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
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
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.
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.
inspite of adding TestNG jars ,I am unable to open it. This error shows Error: Main method not found in class practise.SeleniumPractise, please define the main method as:
public static void main(String[] args)
or a JavaFX application class must extend javafx.application.Application
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.
Test కింద Run | debug అని రావడం లేదు, reason ఏంటో చెప్పండి... Pls give solution....
Install the testng eclipse plugin as shown in the video
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?
👍🏻👍🏻👌👌
Thankyou
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
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
Thank you so much!
Happy learning 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
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
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.
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
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.
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?
Thank you so much
Glad you liked it ☺️
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.
I need selenium full course...r u providing online classes
Currently I'm not taking any classes buddy
Thank you sir
Happy Learning 😊
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?
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 😎
Thank you bro
Happy learning buddy 😊
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,@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
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
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
Still after completing all steps.....testng option on right click(run as testng) not coming
Launching class has encountered a problem
Invalid project
Show error type kindly give the solution
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
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
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
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
Sir i have Installed the TestNg Successfully But Maven Folder is not created sir even i am refresh my project
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
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
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 , Thank u
Hi bro, I am getting error while installing plugin in eclipse IDE can u pls help here
What's the error buddy
thank you
Thankyou 😊
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
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?
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?
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😅😊
.xml -> dependecies not show default . What should i do
Select File-New-File provide the filename with extension as .xml buddy
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??
Hi ...... How to solve PKIX path building failed error resolved ? Please help
Send me the screenshot on hyadagirireddytutorials@gmail.com
Cannot perform operation computing alternate solutions may take a while nu varudhu correcta
Aama correct da
Sir how did u created maven project please tell me
I have shown that in the video buddy
What is the version of eclipse tat ur using
Version: 2021-06 (4.20.0)
thanks sir
Happy learning buddy 😊
I m not able to install testng by new install n marketplace.
What is the error u r getting?
When I add @Test it shows error what can I do?
It didn't show maven dependency also
Press Ctrl+space
Yadagiri bro i am getting error annotation error why i am getting error
Can u send me the screenshots on hyadagirireddytutorials@gmail.com
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
ruclips.net/video/4Y9mjyxO8EY/видео.html
😊
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
i'm unable to get run | debug after installing TestNG
Did you install the eclipse testng plugin?
Not working tried all ways, any other suggestion ?
What is the error u r getting?
Are you trying inside the VPN?