Question
Verizon
US
Last activity: 19 Jul 2018 4:08 EDT
Not able to use Data set in Test run for a strategy
Hi,
We are trying to use Pega Unit test case to validate a strategy. We have created a File data set to read the JSON input.Our JSON file has only one attribute. In the test run pane for the strategy element(switch) ,we specified to run the strategy as Data set and gave the Data set name and specified the key name in our JSON file in the Subject ID field. When we tried to run the Test ,we are getting the below error
Data set <Data set Name> cannot be used for test runs because it does not support reading records by subject ID.
Please let us know what did we miss here? are File Data sets not supposed to be used for Pega Unit testing? do we need to use other data sets like database table,..