Pega UnitTest, how to deal with Fault scenario when data entry allready in database
Hi,
I am having some trouble in automating a Pega unit test with the following scenario. From a pega casetype/flow we are writing a (Person) entitity to the database. The happy flow scenario is no problem to test but where I am having some trouble in finding the correct way is to test the Fault scenario ie the Person record allready exists so the outcome of the flow is a fault. The test should still be green since the fault is expected but after having tried al sorts of properties and pages it seems the Pega Unit test allways fails.
Any hints, tips appreciated.
Regards,
Leo