Skip to main content
Participating Frequently
August 7, 2026
Solved

Loosing my test cases in ER

  • August 7, 2026
  • 12 replies
  • 72 views

Hi,

Here is the scenario I am facing:

  1. I open an Expression Rule and implement my logic.
  2. I add several test cases to validate the expected behavior.
  3. I save the Expression Rule, which creates version 18.
  4. Later, I modify the Expression Rule code and save it again, which creates version 19.
  5. When version 19 is created, I can see that the test cases from version 18 are available in the new version.

Could you please explain why, when I delete version 18 and refresh the latest version, all my test cases are lost?

I would expect the test cases to be kept in version 19 since they were automatically carried over when the new version was created.

I tried this on many ERs and observed the same behavior.

Regards

Best answer by mikes0011

I can reproduce this behavior somewhat with one of my example ERs - it seems to me like you may have accidentally stumbled on something about how test cases are stored behind-the-scenes (for duplication reasons it would make sense that they’re not re-writing the same test logic, which COULD get bulky, with every single version, though it seems like the deletion scheme might not have taken this into account when it was implemented). 

You could file a bug report with Appian, though i’m iffy on whether they’ll consider this a bug per se, since I don’t think they ever said we can guarantee any sort of continuity of this extended functionality once deleting old versions starts coming into play.

12 replies

mikes0011
mikes0011Answer
Brainy
August 7, 2026

I can reproduce this behavior somewhat with one of my example ERs - it seems to me like you may have accidentally stumbled on something about how test cases are stored behind-the-scenes (for duplication reasons it would make sense that they’re not re-writing the same test logic, which COULD get bulky, with every single version, though it seems like the deletion scheme might not have taken this into account when it was implemented). 

You could file a bug report with Appian, though i’m iffy on whether they’ll consider this a bug per se, since I don’t think they ever said we can guarantee any sort of continuity of this extended functionality once deleting old versions starts coming into play.

The Expression Guru
Participating Frequently
August 7, 2026

Thanks you mikes001 to have tested

peter.lewis
Employee
August 7, 2026

Yeah if it consistently reproduces, it seems like a valid bug you could report. Just curious, when do you typically delete versions? I’m not sure there’s general best practices around keeping or deleting versions, so a lot of devs just leave the long version history :)

mikes0011
Brainy
August 7, 2026

for the record, i tried it and was able to reproduce it in one try. 

not OP, but personally, i don’t usually delete versions other than in cases of egregious errors or something, , but can see that this might be some sort of underperformance on the part of the version deletion functionality behind-the-scenes.

The Expression Guru
Participating Frequently
August 10, 2026

Hi,
I’ve asked to the Appian support and actually, it was a known issue that has been resolved in hotfix version 25.3.320.

mikes0011
Brainy
August 10, 2026

Funny that they’d say it’s fixed in some 25.X version hotfix, since I just reproduced it easily, based on your initial description, in version 26.6...

The Expression Guru
Participating Frequently
August 11, 2026

It’s surprising because I have also tested a new ER with some tests cases in our 26.6 testing Appian environment, but did not succeed in reproduce the issue.

Our environnement is a Cloud one. Is yours is an on-premise Appian ?