Post

1 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...

By Arun Motoori

As already discussed in our earlier post, handling Parameterization with testng configuration XML file is preferable only when there are less number of parameters to be used in the Selenium Automation code. But if we want to use more number of parameters in our Selenium Automation code, one of the methods of doing it is to create Properties file with list of parameters and retrieve the listed parameters from the file and use them in our Selenium Automation code.Follow the below steps to create a Properties text file:1. Create a new Package ‘configparameters’ as shown below:
2. Right click on the package ‘cofigparameters’ and select New -> File option as shown below:

3. Ensure that a ‘New File’ dialog is displayed, enter Config.properties into the ‘File Name’ field and click on ‘Finish’ button as shown below:
4. Ensure that Config.properties text file got created and opened as shown below:
5.

Source: http://seleniumone-by-arun.blogspot.com/2013/05/161-create-properties-text-file.html

Category: aage. 161. Create Properties text file

Você também pode querer ler

Comments are off for this post.