Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Selenium Beginner Tutorial 10 - How To Use Config Properties File
Play lesson

Selenium Beginner Tutorial - Selenium Beginner Tutorial 10 - How To Use Config Properties File

5.0 (4)
29 learners

What you'll learn

This course includes

  • 3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

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/.properties . ________ 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 - https://www.facebook.com/automationstepbystep Twitter - https://twitter.com/automationsbs Youtube - http://youtube.com/automationstepbystep Like, Subscribe, Share You can support my mission for education by sharing this knowledge and helping as many people as you can

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere