Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Selenium Framework for Beginners 17 | What is Properties File | How to use

Автор: Automation Step by Step

Загружено: 2018-08-09

Просмотров: 49201

Описание:

more about Raghav - https://automationstepbystep.com/
Today we will learn What is a properties file
How to create a properties file
How to get data from properties file
How to set data to properties file
Run test using Properties file
helpful tips

Exception Handling -    • Selenium Framework for Beginners 16 | How ...  

What is a properties file

Properties file is a file with .properties as extension
(e.g config.properties)

Is used in Java (and related technologies) to store configurable parameters

Parameters as stored as key:value pairs (key=value)
example:
browser=firefox

How to create a properties file

Create a new file inside your java project and name it with .properties extension.

example config.properties

How to get data from properties file

Step 1 - Create a object of class Properties class
Properties prop = new Properties();

Step 2 - Create a object of class InputStream
InputStream input = new FileInputStream("location of properties file");

Step 3 - Load Properties file
prop.load(input);

Step 4 - Get values from Properties file
prop.getProperty("browser");

How to set data to properties file

Step 1 - Create a object of class Properties class
Properties prop = new Properties();

Step 2 - Create a object of class OutputStream
OutputStream output = new FileOutputStream("location of properties file");

Step 3 - Set values
prop.setProperty("result", "pass");

Step 4 - Store values in properties file
prop.store(output, "comments");

Helpful Tips

Use # or ! to put comments in properties file

Having comments in properties file to describe the configurations are very helpful to understand the use of the config parameter

Use debug mode to troubleshoot in case of any errors

https://en.wikipedia.org/wiki/.proper...

FREE Courses - https://automationstepbystep.com/

Udemy Discounts - https://automationstepbystep.com/udem...
GitHub - https://github.com/Raghav-Pal/
Udemy - https://www.udemy.com/user/raghav-pal-3/
Training by Raghav at your venue - [email protected]
Training schedule - https://automationstepbystep.com/trai...

----------- UI TESTING -----------
Selenium Beginners - https://bit.ly/2MGRS8K
Selenium Java Framework from Scratch - https://bit.ly/2N9xvR6
Selenium Python - https://bit.ly/2oyMp5x
Selenium Tips - https://bit.ly/2owxc50
Selenium Builder - https://bit.ly/2MKNtlq
Katalon Studio - https://bit.ly/2wARFdi
Robot Framework with RIDE- https://bit.ly/2Px6Ue9
Robot Framework with Eclipse - http://bit.ly/2N8DZxb
Protractor - http://bit.ly/2KtqVkU
TestProject - http://bit.ly/2DRNJYE

----------- API TESTING -----------
Web Services (API) - https://bit.ly/2MGafL7
SoapUI - https://bit.ly/2MGahmd
Postman - https://bit.ly/2wz8LrW
General - https://bit.ly/2PYdwmV
Katalon Studio API Testing - https://bit.ly/2BwuCTN

----------- MOBILE TESTING -----------
Appium - https://bit.ly/2ZHFSGX
Mobile Playlist - https://bit.ly/2PxpeUv

----------- CI | CD | DEVOPS -----------
Jenkins Beginner - https://bit.ly/2MIn8EC
Jenkins Tips & Trick - https://bit.ly/2LRt6xC
Docker - https://bit.ly/2MInnzx
Kubernetes - http://bit.ly/2MJIlMK

----------- VERSION CONTROL SYSTEM -----------
Git & GitHub - https://bit.ly/2Q1pagY
GitLab - http://bit.ly/2kQPGyQ

----------- PERFORMANCE TESTING -----------
JMeter Beginner - https://bit.ly/2oBbtIU
JMeter Intermediate - https://bit.ly/2oziNVB
JMeter Advanced - https://bit.ly/2Q22Y6a
JMeter Tips & Tricks - https://bit.ly/2NOfWD2
Performance Testing - https://bit.ly/2wEXbLS

----------- PROGRAMMING -----------
Java Beginners - https://bit.ly/2PVUcXs
Java Tips & Tricks - https://bit.ly/2CdcDnJ
GROOVY - https://bit.ly/2FvWV5C
JAVASCRIPT - http://bit.ly/2KJDZ8o
PYTHON - http://bit.ly/2Z4iRye

----------- IDE -----------
Visual Studio Code - https://bit.ly/2V15yvt

----------- MAVEN -----------
Maven - https://bit.ly/2NJdDRS

----------- OTHERS -----------
Redis- https://bit.ly/2N9jyCG
Misc - https://bit.ly/2Q2q5xQ
Tools & Tips - https://bit.ly/2oBfwoR
QnA Friday- https://bit.ly/2NgwGpw
Sunday Special - https://bit.ly/2wB23BO

Ask Raghav - https://bit.ly/2CoJGWf
Interviews - https://bit.ly/2NIPPxk
All Playlists - https://bit.ly/2LSiezA

Keep Learning,
Raghav

---------- Connect with Raghav -----------
Website - https://automationstepbystep.com/
LifeCharger -
Udemy Courses - https://www.udemy.com/user/raghav-pal-3/
Facebook -   / automationstepbystep  
Twitter -   / automationsbs  
Youtube -    / automationstepbystep  

Like, Subscribe & Share
You can support my mission for education by sharing this knowledge and helping as many people as you can

Never Stop Learning
Raghav

Selenium Framework for Beginners 17 | What is Properties File | How to use

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Selenium Framework for Beginners 18 | How to use Excel for getting data in Selenium Java Framework

Selenium Framework for Beginners 18 | How to use Excel for getting data in Selenium Java Framework

Selenium Framework for Beginners 14 | What is Log4j | How to add Log4j in java project

Selenium Framework for Beginners 14 | What is Log4j | How to add Log4j in java project

Selenium Framework for Beginners 13 | Selenium What is testng.xml | How to create testng.xml

Selenium Framework for Beginners 13 | Selenium What is testng.xml | How to create testng.xml

Selenium Framework for Beginners 19 | Selenium TestNG How to get data from Excel using DataProvider

Selenium Framework for Beginners 19 | Selenium TestNG How to get data from Excel using DataProvider

Deep House Mix 2024 | Deep House, Vocal House, Nu Disco, Chillout Mix by Diamond #3

Deep House Mix 2024 | Deep House, Vocal House, Nu Disco, Chillout Mix by Diamond #3

Что такое Rest API (http)? Soap? GraphQL? Websockets? RPC (gRPC, tRPC). Клиент - сервер. Вся теория

Что такое Rest API (http)? Soap? GraphQL? Websockets? RPC (gRPC, tRPC). Клиент - сервер. Вся теория

БЕЗ VPN👉 Как обойти ВСЕ блокировки на ПК, Андроид и ТВ! Обход блокировки Воцап, Ютуб, Роблокс, ТГ

БЕЗ VPN👉 Как обойти ВСЕ блокировки на ПК, Андроид и ТВ! Обход блокировки Воцап, Ютуб, Роблокс, ТГ

⚡️АСЛАНЯН: Срочно! Путин СОРВАЛСЯ ОБРАЩЕНИЕМ! Сделка с Трампом СОРВАНА. Слили НОВЫЕ ЦЕЛИ

⚡️АСЛАНЯН: Срочно! Путин СОРВАЛСЯ ОБРАЩЕНИЕМ! Сделка с Трампом СОРВАНА. Слили НОВЫЕ ЦЕЛИ "СВО"

4 часа Шопена для обучения, концентрации и релаксации

4 часа Шопена для обучения, концентрации и релаксации

Selenium Webdriver With Java  in Hindi #52-How To Read Data From Properties File | With Practical

Selenium Webdriver With Java in Hindi #52-How To Read Data From Properties File | With Practical

SHAZAM Top 50🏖️Лучшая Музыка 2025🏖️Зарубежные песни Хиты🏖️Популярные Песни Слушать Бесплатно #40

SHAZAM Top 50🏖️Лучшая Музыка 2025🏖️Зарубежные песни Хиты🏖️Популярные Песни Слушать Бесплатно #40

Selenium Framework for Beginners 20 | What are TestNG Listeners | How to use TestNG Listeners

Selenium Framework for Beginners 20 | What are TestNG Listeners | How to use TestNG Listeners

Selenium Framework for Beginners 10 | What is Extent Reports | How to use Extent Reports in Selenium

Selenium Framework for Beginners 10 | What is Extent Reports | How to use Extent Reports in Selenium

Музыка для работы - Deep Focus Mix для программирования, кодирования

Музыка для работы - Deep Focus Mix для программирования, кодирования

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

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

Selenium Framework for Beginners 1 | Getting Started | How to setup Selenium Java project in Eclipse

Selenium Framework for Beginners 1 | Getting Started | How to setup Selenium Java project in Eclipse

Понимание Active Directory и групповой политики

Понимание Active Directory и групповой политики

4 Hours Chopin for Studying, Concentration & Relaxation

4 Hours Chopin for Studying, Concentration & Relaxation

Как стать аналитиком данных в 2026 году (с 0)

Как стать аналитиком данных в 2026 году (с 0)

Selenium Framework for Beginners 5 |  How to find Web Elements Locators in Selenium

Selenium Framework for Beginners 5 | How to find Web Elements Locators in Selenium

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]