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

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

Naveen AutomationLabs

5 лет назад

69,197 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

All_in_one
All_in_one - 06.11.2022 12:48

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

Ответить
Shivam Shukla
Shivam Shukla - 05.05.2022 13:41

Sir your log generate is wrong there is no new folder created.

Ответить
naga srinivas
naga srinivas - 29.10.2021 07:04

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

Ответить
amit singh
amit singh - 26.09.2021 18:55

sir, u r the best

Ответить
Supriya Khatal
Supriya Khatal - 15.01.2021 20:16

Nice explanation.👍

Ответить
Samad Ahmed
Samad Ahmed - 31.12.2020 05:44

Sir, do the log4j properties still remain same or changed?
Beacuse my one is not working.
Thank you.

Ответить
amit bhardwaj
amit bhardwaj - 21.10.2020 20:55

plz make some video on security testing

Ответить
ashwini v
ashwini v - 15.08.2020 02:52

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

Ответить
Asheesh Kumar Tripathi
Asheesh Kumar Tripathi - 17.05.2020 22:16

Video quality is not good, don't know why everything is not clear, rest things are flawless

Ответить
ARVIND RAM
ARVIND RAM - 11.05.2020 10:10

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

Ответить
jayesh kumar
jayesh kumar - 30.04.2020 15:11

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

Ответить
Manikandan Km
Manikandan Km - 26.04.2020 12:24

Can we set xpath for all the fields ? for Username , password and till Clicking submit button .
Because when i use xpath for the webelements in the config properties , i am getting the below error



Exception in thread "main" java.lang.IllegalArgumentException: Keys to send should be a not null CharSequence
at org.openqa.selenium.remote.RemoteWebElement.sendKeys(RemoteWebElement.java:97)

Ответить
Desu Teja
Desu Teja - 29.03.2020 07:28

What is the purpose of using logs??

Ответить
Virendra Rai
Virendra Rai - 11.03.2020 20:58

I understand in property file we can put our configuration related things which we can modify easily but in project there is a huge test data which we can not hard code in our script. Can anyone explain where we can put our actual value or text ?

Ответить
Rahul Khan
Rahul Khan - 26.12.2019 18:24

you are great Sir. You explained it very simple.

Ответить
Honda Hness CB 350
Honda Hness CB 350 - 23.07.2019 14:18

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

Ответить
Suwarna Sonawane
Suwarna Sonawane - 01.07.2019 20:46

You nailed it. Very Good Explanation!

Ответить
Shruthi B S
Shruthi B S - 18.02.2019 13:12

Hi, if we are not using main method, then how to implement loggers

Ответить