Questions tagged [properties-file]

A .properties file is either a simple text file or an XML file containing pairs of keys and values. Java and related technologies frequently use .properties files to store configuration information.

Filter by
Sorted by
Tagged with
2
votes
1answer
61 views

Unable to pass dynamic xpath in repository file?

My code is : for (int z = 0; z < rows.size(); z++) { rows.get(z).findElement(By.xpath("//*[@class='ng-scope'][" + (z + 1) + "]//*[@placeholder='Stop Name']")).sendKeys(shuttleObj.getStopArea()); ...
0
votes
0answers
33 views

How to pass parameters from groovy script in pom.xml to .properties file?

I have this groovy plugin to replace my project.basedir with \\ to /. This work fine in my console. <plugin> <groupId>org.codehaus.groovy.maven</groupId> <artifactId>...
1
vote
2answers
2k views

Use enviornment variables in selenium properties file

I have a test package which is based on Selenium and the configuration is in a test.properties file. Now all the config values are hard coded there. I would like to hide some config values to hide ...
0
votes
1answer
483 views

How to test with multiple test data using property file? [closed]

I am using selenium with page object pattern. And I am using property file for keeping the test data , not scattering all over the script. Here is my code package propertytest; import org.testng....
3
votes
3answers
3k views

Test data couldn't able to read from properties file

I got an error in my selenium program. I am using page object design pattern. And I want reading test data from properties file. But it couldn't able to read ? Any one please help me to solve page ...