स्क्रीनशॉट्स का नाम टेस्ट केसेस पर आधारित हो, इसकी इतनी सुन्दर व्याख्या शायद ही किसी अन्य वीडियो में उपलब्ध है। इतने अच्छे विश्लेषण और समीक्षा के लिए नवीन को बहुत बहुत धन्यवाद। रिगार्ड्स
@saurabhsahastar4 жыл бұрын
It has been long time that I have been searching this simple way of failed test case screenshot and I got the best one. Thank You Naveen sir
@divyanshbahuguna63242 жыл бұрын
I was stuck in this issue for 5-6 hours and now we got he solution within 20 minutes. What a great video!!!!!!!!!!!!!!!!
@zima30994 ай бұрын
Thank you for the excellent tutorial, it worked like a charm!
@chinmyeemalik67794 жыл бұрын
Hi Naveen AutomationLabs, One query if I have implemented soft assertion and multiple tests in a method is failing .How to get the proper screenshot?
@surajdeulgaonkar5 жыл бұрын
Hi naveen,can u plz explain how to attach screenshot folder to extent report
@madhupkumar58923 жыл бұрын
Really very helpful Video. This one I needed. Thanks a lot.
@gopalade28012 ай бұрын
thank you for giving such nice explanation i cleared all my doughts over wait
@rajkumarnervatla15526 жыл бұрын
Thanks Navin for wonderful videos...
@life_isawesome4 жыл бұрын
Hi Naveen, thanks for creating and posting these videos...These videos are very helpful. I have one request you to please create a video on parallel execution of tests in testng...
@ayyappapusarla7474 Жыл бұрын
Thank you for the session sir, very informative 🙏
@srinivasam1005 жыл бұрын
This video has very Good information. I needed this. Thanks
@ranisingh71513 жыл бұрын
Very usefull and explained very well to understand conceptually.
@EasyChoosy2 жыл бұрын
I'm not getting that option to add unimplemented methods. how can i add them? Getting error to declate method in Base
@akalyamohan20234 жыл бұрын
Hi Naveen, In this video, I have a doubt. Can you please clarify to proceed further? You have called failed() method from base class to CustomListeners class without creating an object? usually, non-static method can be called through object reference variable right?
@coolgomsy893 жыл бұрын
because we have extended the base class here
@abhay62762 жыл бұрын
@@coolgomsy89 even if we have extended the base class we have to create an object in child class to acquire properties of base class to child class.. if we dont want to create an object the parent method must be prefix with static keyword....i hope i m right
@abhay62762 жыл бұрын
Mohan, you are absolutely right.
@sajjad4134 жыл бұрын
Excellent Work, outstanding job
@naveenautomationlabs4 жыл бұрын
Thank you so much 😀
@vivekfadat11183 жыл бұрын
Hi Naveen, I am unable to find FileUtils class though I have latest Apachi poi 5. I am trying this code without Maven dependencies and project. what could have been gone wrong? please guide..
@Math-Lover13 жыл бұрын
Hi Naveen, a quick question: fail-fast function is enabled by default in selenium/appium/protractor? It looks like following steps will be skipped automatically once a step is failed. Thanks.
@sureshkrishna9973 жыл бұрын
sir if you are giving a hard assert inside the method then how the after method tear down configuration is working
@mytutorbyte35064 жыл бұрын
Hello Naveen, How you are using takeScreenshotTest(), It is not defined any where in another 2 files
@GauravSingh-uu7lv5 жыл бұрын
How to read and run the URL's in the browser from excel one by one and followed by writing/updating the same excel with issue found in those URL?
@narmeenfarid78594 жыл бұрын
please share how to take screenshot of failed testcase in nunit C#
@shankar91boss4 жыл бұрын
Followed same steps, facing Null Pointer Exception in Base Class in failed(). Help me resolve this. TIA Added variables, methods as static. Worked as expected
@Manoj-gr7kn4 жыл бұрын
if there are two test cases failed in a test class only one Screenshot appears in screenshot folder.. How to get two failed test cases failed screenshots in a folder.???
@rupamrouth48206 жыл бұрын
hi Naveen, thanks for providing this kind of videos which help me a lot. I have a query on taking screenshots - is it possible to take the screenshot with highlighting elements which got failed. Because am not passing the element from failed() method and also unable to pass the element as ITestResult doesn't have such thing. Could you please suggest? Thanks once again
@mukulpahwa64834 жыл бұрын
What if I have multiple soft assertions and I want to take their screenshot?
@amrutaziradkar469 Жыл бұрын
Nice explanation 😊
@navyachinnari6 жыл бұрын
i dnt understand at all... im using Eclipse Luna, installed required sw's and Jar files and testNg too... Please help me how to start writing script for capturing Screenshot only for failure step
@ssandeep796 жыл бұрын
Wouldn't using the TestListenerAdapter be a better option to handle this as it provides methods such as onTestFailure, onConfigurationFailure etc? The only other thing Developer would need to do would be to register the listeners in the testng.xml file
@jahangiralikhan24106 жыл бұрын
Awesome video once again brother so easy to understand :)
@varaprasad69115 жыл бұрын
What if I use soft assertion and needed screenshot for all the failed assertions.
@noumank.j.2313 жыл бұрын
Very informative, my query is how we can make it more generic, like we have ten test classes for each pafe, each class has 10-15 methods, so always we have to count methods and then take screenshots according to counting?
@meenakshipatake45655 жыл бұрын
Hi Naveen, Do I need to update folder name after each run? Suppose in first run 10 testcases got failed so there would be 10 screenshots in next run only 2 got failed so those 10 would be there right?
@dnyaneshwarmachave21452 жыл бұрын
Very useful...ty
@poojabagga52065 жыл бұрын
Hi naveen, I need class name along with the method name. Means class name where method is defined. Like ScreenshotTest + takescrrenshotTest1. Can you please help.
@naveenreddy.dommata6 жыл бұрын
Hi Naveen, it is possible to add listener in TestNG XML file if we have multiple classes right! for taking screenshot
@raghuramjb83466 жыл бұрын
Yes , we can give in testng xml file with
@naveenautomationlabs6 жыл бұрын
Yes, you can write in testng.xml file
@naveenreddy.dommata6 жыл бұрын
Yeah thank you
@nandamreshma18184 жыл бұрын
Hi Naveen, Can you please explain how we will capture all the screenshots in word or pdf file.
@maheshiyyer31035 жыл бұрын
Thanks Naveen, we are using the failed() method in the customListener class without creating an object of the child or base class? Is it possible because of the listener implemented? Could you please clarify this?
@jaiswalaarti4273 жыл бұрын
i am also searching the answer for same question
@वृषालीहळदणकर6 жыл бұрын
It's very very helpful ... i like you sir very much
@phaneendranv6 жыл бұрын
Hi naveen, if we have 10 testcases so we need to add test listener in all the 10 classes right?
@naveenautomationlabs6 жыл бұрын
yes, you need to add @Listeners for all the test classes. So better to add a Listener in testng.xml file at suite level.
@phaneendranv6 жыл бұрын
Naveen AutomationLabs, okay thank you
@shushmanellutla22943 жыл бұрын
i try to implement i am not getting screenshot into my folder and no eror message.
@sureshkrishna9973 жыл бұрын
use png instead of jpg
@kalpeshwani66483 жыл бұрын
Hi Naveen, I tried to implement as per video but after implementing ITestListener interface, I am not getting option to implement method from ITestListener, can you please help me to to know what went wrong : my code is as follows: package screenshotUsingListners; import org.testng.ITestListener; public class CustomListner extends Base implements ITestListener{ }
@hafeezabdul68525 жыл бұрын
Failed method is not static but still we can access in custom listenr class... How??
@snair78585 жыл бұрын
Because the base class has been extended and so the method can be directly called.. Any child class can call the parent class's methods
@jayprakash67485 жыл бұрын
Hi Naveen, How to run a test case with different version of chrome driver. Please help me on this. Regards, Jay Prakash
@ankitpare64936 жыл бұрын
Hi Naveen, thanks for sharing all these stuffs man..It's really helpful... As a subscriber, I have one small feedback ,I believe you should trim down your video lengths to around 15 odd minutes,and create playlists if a topic can't be covered in 15 mints. It will be really awesome.. Keep up the good work ,and good luck :)
@naveenautomationlabs6 жыл бұрын
Thanks for your suggestion but some topics can't be covered in 15 mins. I cover each topic with full depth, can't possible in 15 mins and no point to create multiple videos for the same topic.
@santhoshk51576 жыл бұрын
Naveen AutomationLabs yes sir ur correct.. please don't create small small videos.. create only full complete end to end like full depth of topic as you did till now...
@ankitpare64936 жыл бұрын
Naveen AutomationLabs cool ,thanks for sharing the knowledge though... :)
@bharatvarshney26666 жыл бұрын
Absolutely , there is no point for 15 minutes, if topic is small then it should be covered in 15 minutes.As a subscriber, I am only say @Naveen always explain deeply and clear concept.
@vikassinghal94136 жыл бұрын
I understand the point for short videos, but the main attraction in your video is the depth you get into in any topic you cover, so its not possible to cover those in 15 mins, I love the way you emphasize on importing points and that give me a feeling that nothing has been missed. So I would still suggest to go in depth. Once again Naveen, your videos are unbeatable and I have never seen such videos anywhere. You rock!!
@sweetthirty22 жыл бұрын
How to take screenshots in cucumber/bdd framework
@ksdnsdkumar13752 жыл бұрын
You can use canned steps (pre-defined) to take screenshot. Then take picture
@shankumondal28813 жыл бұрын
Awesome 👍
@wolkcub5 жыл бұрын
Nice, thank you! Id, like recommended, add time or\and date into the file name. Something like new SimpleDateFormat("dd_MM_").format(Calendar.getInstance().getTime()) In that case you have some histori of fails.
@poonamthakur57164 жыл бұрын
Did it work Successfully??
@bestcricketbowling99472 жыл бұрын
I need pdf of this program,if anyone has it provide plz
@ritikaarora30114 жыл бұрын
Really helpful video like all others (Y) , but I am also stuck at null pointer exception !! Please help if anyone faced the same .
@ritikaarora30114 жыл бұрын
I was not extending my base class in listener , so driver value was reinitialising to null , Fixed after watching the video again.
@RahulPal-ev7pb6 жыл бұрын
hiii naveen... plzz make some real project which is all framework and method will be cover
@ranveermalhotra56506 жыл бұрын
very informative
@anuak20846 жыл бұрын
Hi Naveen... This Video is really helpful for me... But this is only for failed test cases... Similarly could you give me solutions for if tests case skipped or you want send mail after all execution then how do you implement this code
@naveenautomationlabs6 жыл бұрын
How can you take the screenshot for skipped test cases? What is the significance of taking screenshot for skipped test cases.
@anuak20846 жыл бұрын
Questions is not like that... In TestNG listeners implementation for skipped test case or after successfully execute send mail in TestNG listeners there having methods like ontestskipp and ontestsuccess under this method give the implementation for skipped test and send mail for successfully execution
@khaledchowdhury93966 жыл бұрын
Hi Naveen, thanks for the video. i got an error. pls help me out java.lang.NullPointerException at com.Pinal.BaseTest.screnshot(Base.java:24) at com.Pinal.ListenersPinal.onTestFailure(CustomListeners.java:24)
@challaprasad425 жыл бұрын
i am also getting error. if you solved that error please help me
@Mortus86065 жыл бұрын
hi Khaled, Do you get any resolution for this problem?
@arunragavan4424 жыл бұрын
@@challaprasad42 plz extends base class it will work
@arunragavan4424 жыл бұрын
@@Mortus8606 extends base class it will work
@AparnaChinninty3 жыл бұрын
Thank you
@akashkapade56585 жыл бұрын
Hi Naveen, could you please make a video for capturing screen shot for entire end to end flow of execution and those should be placed in a separate folder which will be named with test case name and time stamp.
@adrianleandro43153 жыл бұрын
sorry to be off topic but does anyone know a tool to log back into an instagram account..? I was dumb lost the account password. I would love any tricks you can give me
@davisjaden23763 жыл бұрын
@Adrian Leandro instablaster ;)
@adrianleandro43153 жыл бұрын
@Davis Jaden thanks so much for your reply. I found the site thru google and I'm in the hacking process atm. Takes a while so I will get back to you later with my results.
@adrianleandro43153 жыл бұрын
@Davis Jaden it did the trick and I actually got access to my account again. Im so happy! Thanks so much you saved my account :D
@davisjaden23763 жыл бұрын
@Adrian Leandro you are welcome xD
@stith_pragya3 жыл бұрын
Thank You sir
@Tejas_Creation_2 жыл бұрын
How To takes Screenshots if multiple Test cases failed ??
@arunragavan4424 жыл бұрын
tq so much sir
@MrYashMundey4 жыл бұрын
Best !
@sharatchandra20456 жыл бұрын
Nice explanantion
@Ajay_Rana8176 жыл бұрын
Hi naveen thanks for sharing vedio. I have some quary pam.xml file is mendatory if i am created java project not maven project .
@anilcste4 жыл бұрын
POM.xml not required if it's not Maven project
@shashibhushan14813 жыл бұрын
thanks.
@rameez0135 жыл бұрын
Plz make video for sending email from selenium
@shivangichandra53623 жыл бұрын
It would be great if you could provide the source code files as well