Question

1
Replies
129
Views
RaveendraK0060 Member since 2018 4 posts
Verizon
Posted: 2 years ago
Last activity: 2 years 3 months ago
Closed

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,..

Low-Code App Development Dev/Designer Studio Decision Management
Moderation Team has archived post
Share this page LinkedIn