How can I load the data dynamically from a .properties file to my jBehave story file? I have been using $ in my story file like:
When the stock is traded at price : $<price>
Then the alert status should be $<status>
I am trying to fetch the values of and from properties file placed under my src/test/resources folder and included my .properties file in the pom.xml like
<testResource>
<directory>${basedir}/src/test/resources</directory>
<filtering>false</filtering>
<includes>
include>**/*.properties</include>
</includes>
</testResource>
But still its not working. When I try running "mvn integration-test" on my cmd. It throws me this exception
org.json.JSONException: A JSONObject text must begin with '{' at character 1
at org.json.JSONTokener.syntaxError(JSONTokener.java:410)
at org.json.JSONObject.<init>(JSONObject.java:179)
at org.json.JSONObject.<init>(JSONObject.java:402)....
I am not sure where am I going wrong. Please help me out. Awaiting reply!! -Tester