'is it possible to use a PXTransactionScope inside of a test using the test SDk
I am trying to have all of my database actions rolled back after my test executes. I have included the using block inside the Execute method of my test. But every time that my code calls to the SAVE() method of the SOOrderEntry it immediately gets added to the database. I am fairly new to Acumatica.
{
using (TestExecution.CreateTestCaseGroup("Execute: SO301000_SOOrderEntryExt_HoldReserve (2) Test"))
{
var maint = new SO301000_SOOrderEntryExt();
maint.OpenScreen();
using (TestExecution.CreateTestStepGroup("Group1"))
{
maint.Insert();
ModifyForm(maint, "SH", "C000000000", "MAIN");
maint.Save(); // after the save it is written to the DB immediately
}
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
