admin
2025-01-22 7e31442f0e9b07764e9c6a9680d3d4aeba5fe1de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Quintiq file version 2.0
#parent: #root
Method PTF_TestDeleteScenario (
  output Real duration_o,
  output String response_o,
  String scenarioname
) as Boolean id:Method_LibPTF_pnlTestRunner_PTF_TestDeleteScenario
{
  #keys: '[136682.0.314444044]'
  Body:
  [*
    issuccessful := false;
    
    preconditionflag := true; // Your precondition before executing the action
    
    if( preconditionflag )
    {
      startprecisionctr := OS::PrecisionCounter();
    
      // Call your method here
      // Use the following construct if you want to execute a server method
      this.PTF_GetPTFLibrary().DeleteScenario( scenarioname, response_o );
    
      duration_o   := this.PTF_GetDurationInMilisecond( startprecisionctr );
      issuccessful := true;
    }
    else
    {
      response_o := 'PTF_Test_CreateScenario: Precondition failed because < ' + response_o + ' >'; // Your precondition failed reason
    }
    
    return issuccessful;
  *]
}