filmov
tv
Configuration file in automation framework | JAVA properties file | Selenium Java
Показать описание
In this video we are going to see that how to add configuration file in the framework.
We can create our configuration file in any format, it might be a text file, properties file or can be a json file.
Add below code to read the properties file.
Properties property = new Properties();
try {
InputStream instm = new FileInputStream(configpath);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
} catch (IOException e) {
// TODO Auto-generated catch block
}
Now using the property object , we can use the configuration settings in our framework to make things configurable.
e.g.
{
driver = new FirefoxDriver();
}
{
driver = new ChromeDriver();
}
{
driver = new InternetExplorerDriver();
}
***********Please comment in case of any query.***************
Also, please see other videos as well.
We can create our configuration file in any format, it might be a text file, properties file or can be a json file.
Add below code to read the properties file.
Properties property = new Properties();
try {
InputStream instm = new FileInputStream(configpath);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
} catch (IOException e) {
// TODO Auto-generated catch block
}
Now using the property object , we can use the configuration settings in our framework to make things configurable.
e.g.
{
driver = new FirefoxDriver();
}
{
driver = new ChromeDriver();
}
{
driver = new InternetExplorerDriver();
}
***********Please comment in case of any query.***************
Also, please see other videos as well.
Configuration file in automation framework | JAVA properties file | Selenium Java
Configuration file in automation framework | JSON file | Selenium C#
Configuration Management | Test Automation Framework Development | Part VI | LambdaTest
Step-by-Step Tutorial on Creating and Utilizing Configuration File in Automation Anywhere
Calling custom configuration for Selenium framework
Nornir Config File // Setting up the Python Network Automation Framework
Config file - Learn how to create and use config file in Automation anywhere A360/ A2019
Session 07: Create Configuration File For Automation Project
Part 4: Create testing.xml file and BaseClas code refactoring
How to Create & Use JSON Config Files in Automation Tests
Selenium C# Automation Made Easy - Chapter 9 -Access locators from config files: Gregory Chungath
An Introduction to Extending custom configuration in Selenium framework
🚀🤖 CONFIGURATION FILE in TestCafe | TESTCAFE TUTORIAL For Beginners
Selenium Beginner Tutorial 10 - How To Use Config Properties File
Part 2 - Getting Started | Adding POM | Config Files Mapping | Converter Classes |
Selenium Framework for Beginners 17 | What is Properties File | How to use
Simplified: Reading Text configuration file in Automation Anywhere A360 | Using v11 config file
API Tests Optimization - Config & Random Data | JavaScript API Automation
Part 3: Properties File Setup and BaseClass Creation
UiPath Advance Certification | Topic 51 UiPath ReFramework Config Asset | UiARD Certification
TestNG Framework Automation. Using Properties file to get from config filing System - session 5 H/W
Setup & Configuration - WebdriverIO Automation Framework Boilerplate for beginners
27. API Automation Framework - Creating Properties File Rest Assured, API Automation Playlist
Protractor: Read data from config file
Комментарии