Can not create unit test case for report definition

Hello Guys,

I’m trying to create a test case for report definition by following the steps from the below documentation.

As mentioned in the documentation I tried to create test case by clicking Actions > Run.

After running the report, I am just getting the results and there is no option like Convert to Test.

Any suggestions, please?

Thanks in advance :slight_smile:

@BATTINIRAMESH

Is your application recently upgraded? If yes, you may need to switch to Pega Unit testing from older AUT feature.

Refer below article,

Managing unit tests and test suites | Pega

Otherwise check if you have relevant privileges, you can try running this when condition ‘pzPegaUnitEnabled’.

@GireeshV8858 Thank you so much for your reply :slight_smile:

We are on Pega Unit testing feature and have pzPegaUnitEnabled privilege too.

I figured out the issue why we are not seeing ‘Convert to test’ option when we did run report definition. This is because we did taken pyReportEditorHeader section to our application ruleset to customize it 3 years back.

But pega updated this OOTB section recently by including pyRunRecordSecondaryButtonsExt section which is for showing ‘Convert to test’ option. And we don’t have this change in our customized pyReportEditorHeader section.

@BATTINIRAMESH ran into this same issue and your findings were the same - thanks for sharing!