How to read properties file || Generate Logs in Selenium - using Log4j API

preview_player
Показать описание
In this video, we will learn about How to read properties file in Selenium and how to generate logs for Selenium execution.

Learn:
1. Generate Run Time logs using log4j API
2. Read properties from configuration file

~~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:

Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:

WebServices API Automation Tutorials:

Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:

Paid courses (Recorded) videos:
📗 Get My Paid Courses at
Paid courses (Recorded) videos:
-------------------------------

✔️SOCIAL NETWORKS
--------------------------------

Support My Channel✔️Or Buy Me A Coffee
--------------------------------
✔️Thanks for watching!
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة
Рекомендации по теме
Комментарии
Автор

Very simple language and very smooth explained..

tusharkhade
Автор

you are great Sir. You explained it very simple.

RahulKhan-lfkw
Автор

Excellent video Naveen hats off to you!!!
I have one query you said for small project we can create property file but if has 2000 keys in it not best approach. How to handle big projects where we have more than 2000 properties to handle this is my current project issue. Request your guidance

sathya-enjoy_lifetothefullest
Автор

Nice explanation Naveen, well explained with demo

sharatchandra
Автор

Simple to follow and informative. Thank you :)

DinkeshShah
Автор

you explain so well. thank you thank you so much..

nthapa
Автор

Naveen sir can u plz make a video on how to read the value from the UI
and then use write properties file to store the read value from UI into Properties file

arvindram
Автор

Thank you Naveen worth watching. Could you please make videos on how to drive single workbook (excel) with multiple sheets of info. Though its covered at high level. With example

ashwiniv
Автор

And sir another question u created pkg class inside src/main/java as u used main method inside your code not testng.
if I use testng then I should keep all those pkg's and classes inside src/test/java ... right ?

sauravmahata
Автор

First of All ....Big Thank You Naveen..I had a query just if case Naveen or other commentors would address it would be happy to learn. As I founded userId and Password in POM class and have written methods through send Keys and wanted to send Keys through Test class in @BeforeClass.How to do it and secondly. What is the correct approach where we should find the Elements in POM class or in Properties File.

shivkumarhiremath
Автор

bro one question bro you give the path of properties file in file input stream that runs and give result in your system what if i run file from another system that file path not exist in that system

allmovies
Автор

Thanks a lot, Naveen. Worth watching!!!:)

Could you please make videos on appium as well? Thanks in advance.

roshankumargupta
Автор

Hi naveen please upload protractor videos please

prithvivishwanath
Автор

plz make some video on security testing

amitbhardwaj
Автор

Thanks a lot Naveen, Excellent video.please can you provide me log4j properties code.thanks again

roliapanna
Автор

Can any one please address my question - We have added log4J dependency in POM.xml and then added .properties file. How maven will come to know the path of log4j.properties file? usually we add maven resources filtering in POM.XML to know where exactly file is located

pranay
Автор

Naveen sir can u make video on how read and write properties file by using maven

jayeshkumar
Автор

Hi
if I don't use maven then where should I keep my log4j.properties file ??

sauravmahata
Автор

Hello Naveen what if there are two usernames on we have written two names as UserName in a same prop file, which value it will take the first UserName or Second Username

hondahnesscb
Автор

I have a doubt that while we given 2 urls in properties file and run those 2 urls alternatively one after another what we have to do

nagasrinivas