Skip to main content

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
0 votes
1 answer
4k views

How to load Config.properties file in Cucumber TestRunner.java file?

To run my Selenium/Cucumber java project, I need to pass some VM arguments, variables, properties path etc... now easiest way is to pass it in Eclipse run configuration under "VM arguments" ...
danny234's user avatar
0 votes
3 answers
3k views

How to pass text dynamically in xpath under Properties file

I am stuck in a situation where I want to write Xpath dynamically in the properties file. The actual XPath is like in property File div[contains(text(),'<state Name>')]. State Name changes ...
Rahil Kumar's user avatar
1 vote
1 answer
556 views

JMeter to Taurus - how to handle external property files and pass/fail criteria?

I've got a lot of JMeter tests setup - multiple test plans, thread groups, requests, asserts etc. We're using it for our functional API testing, as well as performance testing. I am now investigating ...
Moorpheus's user avatar
  • 265
0 votes
1 answer
3k views

JMeter - how to use external property files robustly in GUI and non-GUI mode?

I've got a JMeter test plan that I'm in the process of amending to use external property files for environment details and thread group numbers - similar to this link: https://octoperf.com/blog/2019/...
Moorpheus's user avatar
  • 265
2 votes
1 answer
309 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()); ...
Samira's user avatar
  • 23
1 vote
2 answers
7k 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 ...
Happy Coder's user avatar
1 vote
1 answer
988 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....
toastmaster's user avatar
3 votes
3 answers
6k 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 ...
user avatar