ycliper

Популярное

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

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

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

Топ запросов

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

Selenium Beginner Tutorial 10 - How To Use Config Properties File

Автор: Automation Step by Step

Загружено: 2017-02-17

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

Описание: more about Raghav - https://automationstepbystep.com/
Today we will learn:
1. What is a properties file
2. How to create a properties file
3. How to get data from properties file
4. How to set data to properties file
5. Run test using Properties file

helpful tips
_______________________________________________

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 2 : 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");

_______________________________________________
References - https://en.wikipedia.org/wiki/.proper... .

_______ ONLINE COURSES TO LEARN _______

Visit - http://automationstepbystep.com/

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


----------- FOLLOW -----------
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

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Selenium Beginner Tutorial 10 - How To Use Config Properties File

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

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

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

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

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

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

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



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



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