Hi Mukesh, Thanks for this video. I was searching what is the difference between " “assert” , “verify” and “waifFor”" ? Do you have any video for this?
Hi Mukesh, ur videos are super awsome with such a gr8 knowledge, Please please arrange the same in a order or name them with the integer value so that any one can view it in oder coz we don't know the course content and it creates confusion by watching it in random order. hope u got what i mean to say
Hi Servpreet Thank you so much for such a nice comment. you can follow them in below order learn-automation.com/selenium-webdriver-tutorial-for-beginners/
Hello Mukesh. I'm getting the below error while trying to run the Assertion test cases: Error: Unable to initialize main class org.testng.remote.RemoteTestNG Caused by: java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterException I tried to uninstall TestNG from the eclipse and re-install it but it didn't work out. Can you please provide me a solution.
Hello Mukesh, I have one doubt, in my script i am getting the page title and it contains a big link i want to verify just just part of that link using assert statement. let say if the link is --Shop online for mobiles,electronics,fashion & more @ Flipkart. I want to check whether the title contains flipkart or not so how to apply assert in that condition
Hi sir thanks for all the support, I've complete all the setup but at the end when using "assert" in program it showing "Assert can not be resolved" downloaded testng as well Please guide me through it
HI Mukesh, your tutorials are great! but can you help me solve a doubt please, Can I reuse the same browser, instead of opening a new one each time my test with selenium webdriver starts? And if it can be done, can you please put a tutorial please!. thanks.
Mukesh otwani can I write initialise browser in beforeClass method ,so that the browser opens up only once and tests will continue to run for that class. After each test I will logout, and before each test I will login
on Amazon.com I searched for Nikon. I sorted from price from high to low. And selected 2nd item from list to see the details. Now From details I want to check (verify with assert) that product topic contains text “Nikon D850”. What should be the line of code using selenium and java? Can you guide on this? Thank you in advance.
Hi Stephen I am good. You can follow tutorials in below sequence. learn-automation.com/selenium-webdriver-tutorial-for-beginners/ learn-automation.com/advance-selenium-webdriver-tutorials/
Hi Mukesh, i noticed one point saying that "Assert is like validation/verification stage in testNG" without using any TestNG framework or class, cant we use assert directly?
HI Mukesh, I am observing issue with using soft Assert. The scenario is like this All necessary TestNG, selenium, java classes are imported import class1 Public class2{ @Test (priority =1) Public static void Testcase_1{ class1.method1(); class1.method2(); } @Test(Priority =2) public static void Testcase_2{ some_other_methods(); } } The Problem here is Testcase_1 will be considered pass if both methods class1.method1() and class1.method2() will go through. Now what happens if class1.method1() fails somehow, TestNG framework break the Testcase_1 and does not execute class1.method2(). It directly executes Testcase_2 without executing class1.method2(). I tried SoftAssert also, but still no luck. can you help me. I found one way is that breaking class1.method2() also in a separate test case, but that will be a kind of hack, and i am looking for some other way to do it.
if int a=100; and i want to validate if value of A is greater than 0 or not then what will be my assertion syntax O/P should be TRUE if A value is greater than 0
Hi Sidhu we have method called is displayed which returns true or false. You can apply assert on that. If you want to verify image is correct or not then capture src attribute of image and then make api call and get the status. If response is in 2xx or 3xx category then image is correct else fail the test.
How to write condition for drop-down .. drop down automatically continually changed.. how to write condition for always select first index ... Plzz rly me broo
Hey Gulam Azum JMeter have different type of assertion like below BeanShell Assertion BSF Assertion Compare Assertion Duration Assertion HTML Assertion JSR223 Assertion MD5Hex Assertion Response Assertion Size Assertion SMIME Assertion XML Assertion XML Schema Assertion XPath Assertion
Actually what is the use of assertions? Is it used for checking any words or digit that match or contains in that particular webpage ? I didn't get the core idea😓😓
Voice in this video is so low that I could not hear even though I connected my laptop to out speaker. Content is awesome but Please make video with audible sound
Hello sir, When I Test the application, i'm getting this error. org.openqa.selenium.ElementNotVisibleException: Element is not visible (WARNING: The server did not provide any stacktrace information). Why i'm getting this Error. help me to solve the problem Thanks in advance
Hey Radhika, no problem kindly check below link which will solve your issue learn-automation.com/solve-elementnotvisibleexception-in-selenium-webdriver/
Step-1- Go to https:www.wellsfargo.com/mortgage/manage-account/disaster-recovery/ Step-2- Verify "Learn More..." link exists(There were two learn more links we have to identify liks in particular section.) Step-3- If 1st "Learn More... " link does not exist still continue execution to next step. Step-4- If 2nd link does not exist stop the execution Step-5- If second link exist click on link & verify the header of next page. how do i perform this using assertion. i am new to selenium please help me.
@@Mukeshotwani plz don't be angry to my comments as I'm also not Englishman, living in Astana, I cannot to explain why for Us hard hear that kind of pronunciation, but actually Ur info absolutely useful for understanding.
You are geneius when it comes to explaining any concepts. You are one of the best teachers I have ever been taught, Thank you.
Thank you so much Nishant bhai, it means alot to me.😍
thank you for sharing knowledge
Thank you
Despite the cold you made this video, it's a great motivation Mukeah Sir, Hats off to you .
Thank you very much ur explanation is extraordinary
Thanks and welcome
Good explanation very useful 👍🏻
Glad it was helpful!
Wonderful explaination sir, and one more thing in your classes is the key point of the topic is clear and easy to understand.
Hi Subhash, Thanks a ton :) keep Learning.
your way of explaining things and using instantaneous suitable examples is amazing! thanks for the lecture Mukesh :)
thanks Mukesh .... examples used in ur videos are generally very easy to understand the concepts ...
Really nice tutorial Mukesh. Explained in a very simple way. Thanks! Kindly upload more.
Thanks Sneha :) Keep watching
A very effective way of teaching, It'z very helpful. Thanks a lot.
+Abhilash Sharma Your most welcome Abhilash let me know if any help from my side.
Mr Mukesh the way you explain is really helpful. Thank you sir. 🙏
Your most welcome Parthiv. Keep in touch and let me know if any help from my side. 🙏
Sir, Your tutorials are awesome. What are the sources of jobs available for TestNG(work from home)
Thank you Mukesh..You have described in a very simple way.
Thank you Sohel I am glad you liked it 😊
Assertion explained very assertively. I am impressed.
+Kumar Chandra Yog Hey Kumar thank you so much... keep visiting😃
Hey Mukesh, Thanks to you .......................I am always benefited from your clips, i never stop visiting
regards
Nagag
Hey Nagag :) thanks
Very informative sir. Very impressed the way you teach. It helps me a lot. Thank you ..
Most welcome Mahesh and keep visiting.
Excellent videos. Very well explained.
Nice video, THANK YOU Sir ..... It helps a lot for fresher Please upload more videos
Thanks Mukesh...very informative!! keep uploading such videos...helps a lot
+Bhaumik Oza Welcome Bhaumik will upload more videos soon. Keep visiting.
excellent videos,Thanks Mukesh..
Thanks Kishore :)
This is helpful video sir
, one request for you --- can you one video publish on string class ?
Hi Mukesh,
Thanks for this video. I was searching what is the difference between " “assert” , “verify” and “waifFor”" ? Do you have any video for this?
Hi Mukesh.. Is there any way to check if actualValue > expectedValue thru assertion ?
Yes you can use either soft assert or hard assert
@@Mukeshotwani I did not find AssertGreaterThan 🤔🤔
Hi Mukesh,
ur videos are super awsome with such a gr8 knowledge,
Please please arrange the same in a order or name them with the integer value so that any one can view it in oder coz we don't know the course content and it creates confusion by watching it in random order. hope u got what i mean to say
Hi Servpreet
Thank you so much for such a nice comment.
you can follow them in below order learn-automation.com/selenium-webdriver-tutorial-for-beginners/
Hello Mukesh. I'm getting the below error while trying to run the Assertion test cases:
Error: Unable to initialize main class org.testng.remote.RemoteTestNG
Caused by: java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterException
I tried to uninstall TestNG from the eclipse and re-install it but it didn't work out. Can you please provide me a solution.
Hi Ashish, which TestNG version u are using? Please use 6.14.3
Hello Mukesh,
I have one doubt, in my script i am getting the page title and it contains a big link i want to verify just just part of that link using assert statement. let say if the link is --Shop online for mobiles,electronics,fashion & more @ Flipkart. I want to check whether the title contains flipkart or not so how to apply assert in that condition
Hi Saurav,
This video will guide you
ua-cam.com/video/Ruuytdl_F4U/v-deo.html
Hi sir thanks for all the support,
I've complete all the setup but at the end when using "assert" in program it showing "Assert can not be resolved" downloaded testng as well
Please guide me through it
Hi Mate, please use testng latest dependency using maven project.
Hi Mukesh
pl answer
how to attach javadoc in the element to see the content?
Hi Sonali Kindly check below video ua-cam.com/video/tNjK6_ublzg/v-deo.html
Hi Mukesk, I need to verify whether the image displayed is picture or video...?can u suggest me what to use..?
Thanks Mukesh it helped me, Can you please create Video on TestNG with Try catch.
HI Mukesh, your tutorials are great! but can you help me solve a doubt please, Can I reuse the same browser, instead of opening a new one each time my test with selenium webdriver starts? And if it can be done, can you please put a tutorial please!. thanks.
NO Mate Selenium start fresh session each time.
Mukesh otwani can I write initialise browser in beforeClass method ,so that the browser opens up only once and tests will continue to run for that class. After each test I will logout, and before each test I will login
before suite will be suitable for your solution
on Amazon.com I searched for Nikon. I sorted from price from high to low. And selected 2nd item from list to see the details. Now From details I want to check (verify with assert) that product topic contains text “Nikon D850”. What should be the line of code using selenium and java? Can you guide on this? Thank you in advance.
Hi Mukesh.. Hope your doing well.. Could you please let know me how to see your videos sequentially(one Topic after another) ?
Hi Stephen I am good. You can follow tutorials in below sequence.
learn-automation.com/selenium-webdriver-tutorial-for-beginners/
learn-automation.com/advance-selenium-webdriver-tutorials/
Hi Mukesh,
Is assertion testNG dependant? I mean, I can use assertions concept only in testNG?
🙏🙏🙏
Hi Mukesh, i noticed one point saying that "Assert is like validation/verification stage in testNG" without using any TestNG framework or class, cant we use assert directly?
Yes but you need to write so many line of code for that. Better to use some existing test framework.
HI Mukesh, I am observing issue with using soft Assert. The scenario is like this
All necessary TestNG, selenium, java classes are imported
import class1
Public class2{
@Test (priority =1)
Public static void Testcase_1{
class1.method1();
class1.method2();
}
@Test(Priority =2)
public static void Testcase_2{
some_other_methods();
}
}
The Problem here is Testcase_1 will be considered pass if both methods class1.method1() and class1.method2() will go through. Now what happens if class1.method1() fails somehow, TestNG framework break the Testcase_1 and does not execute class1.method2(). It directly executes Testcase_2 without executing class1.method2(). I tried SoftAssert also, but still no luck. can you help me.
I found one way is that breaking class1.method2() also in a separate test case, but that will be a kind of hack, and i am looking for some other way to do it.
nice explanation
Thanks Bharat
Just awesome !!!!!!!!!!!
Hey Suryakant, Thank you
Can u make a Video Regarding Merging two or Three Data Providers,SO that it Should data From Excel Sheet.it will be veryHelp ful Thankyou
got wat is assert...thanx mukesh
Cheers Nilam
really nice .but sound is very very less.Raise your vice brother
Hi Arjun, in recent videos voice quality is better, thats old video so my mic had some issues :(
plz use static or non static in assertion give the boyh example soft and hard assert with webdriver use also.......
thank you
This is nice tutorial
But I want to know that
When i tick the check of spicejet
On listing page only spicejet flight
Available not indigo or AirAsia
if int a=100;
and i want to validate if value of A is greater than 0 or not then what will be my assertion syntax
O/P should be TRUE if A value is greater than 0
Hi sir ,how can we can assertion if image is displayed or not?
Hi Sidhu we have method called is displayed which returns true or false. You can apply assert on that. If you want to verify image is correct or not then capture src attribute of image and then make api call and get the status. If response is in 2xx or 3xx category then image is correct else fail the test.
Thanq u sir for quick reply… how to make api call?for image testing .
Any video for that . I can go through that video then
HI Mukesh..thank you for this class.
Can you explain "Data Providers" in TestNG
Hey Ram I have covered the same in below video ua-cam.com/video/_7XJenTvR34/v-deo.html
Thank you Mukesh.
How to write condition for drop-down .. drop down automatically continually changed.. how to write condition for always select first index ... Plzz rly me broo
how do I use this test ng assertion on jMeter? thanks.
Hey Gulam Azum JMeter have different type of assertion like below
BeanShell Assertion
BSF Assertion
Compare Assertion
Duration Assertion
HTML Assertion
JSR223 Assertion
MD5Hex Assertion
Response Assertion
Size Assertion
SMIME Assertion
XML Assertion
XML Schema Assertion
XPath Assertion
I like the way you teach Mukesh, but cleaning the Nose obviously not so pleasant. thanks
Sorry for that Mashooq
Actually what is the use of assertions?
Is it used for checking any words or digit that match or contains in that particular webpage ?
I didn't get the core idea😓😓
how to check login credentials in testng?
HI Mandar,
TestNG is testing framework. For login you have to use Selenium
thx a lot.
Your welcome Pragti Keep visiting.
Why we do not use main method in TestNG
10:10 onwards video quality is not good...anyone else facing the issue or is it only me
Thanks
Voice in this video is so low that I could not hear even though I connected my laptop to out speaker. Content is awesome but Please make video with audible sound
Notes will make sure next time audio is good.
Second option is giving me error
Can you please explain error?
please make sure to increase volume....
Avinash Chaudhari kindly use headphones
im getting low voice..Im hearing this lecture without connecting any headset
Hello sir,
When I Test the application, i'm getting this error.
org.openqa.selenium.ElementNotVisibleException: Element is not visible (WARNING: The server did not provide any stacktrace information).
Why i'm getting this Error. help me to solve the problem
Thanks in advance
Hey Radhika, no problem kindly check below link which will solve your issue learn-automation.com/solve-elementnotvisibleexception-in-selenium-webdriver/
Thanks...........
Step-1- Go to https:www.wellsfargo.com/mortgage/manage-account/disaster-recovery/
Step-2- Verify "Learn More..." link exists(There were two learn more links we have to identify liks in particular section.)
Step-3- If 1st "Learn More... " link does not exist still continue execution to next step.
Step-4- If 2nd link does not exist stop the execution
Step-5- If second link exist click on link & verify the header of next page.
how do i perform this using assertion. i am new to selenium please help me.
i think i have to use some if condition if link exist or not. i am really confused.
is this fixed?
really funny accent of Eng
What about the content?
@@Mukeshotwani plz don't be angry to my comments as I'm also not Englishman, living in Astana, I cannot to explain why for Us hard hear that kind of pronunciation, but actually Ur info absolutely useful for understanding.
@@azatska thank you Azatia loved your honesty. Best of luck. Keep learning.
Sound is too low,not useful this vedio
There is hardly any voice in ur videos...pls make it with better sound
Nice explanation