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
35
36
Quintiq file version 2.0
#parent: #root
Method PTF_TestQuickTestPTF (
  output Real duration_o,
  output String response_o
) as Boolean id:Method_LibPTF_pnlTestRunner_PTF_TestQuickTestPTF
{
  #keys: '[133260.0.166022677]'
  Body:
  [*
    // Serves as a template method for QSes to implement the method to be executed
    isSuccessful := false;
    
    preconditionOK := true; // Your precondition for executing the action
    
    if( preconditionOK )
    {
      start := OS::PrecisionCounter();
                                         
      message := "Congratulations!" + String::NewLine() + 
                 "You have successfully installed and configured PTF!" + String::NewLine() +
                 "You can now refer to PTF QS Guide to create test scenario and test script in your Model.";                           
      MessageBox::Information( this, message, "&OK", 0, "PTF Installation" );
    
      duration_o   := this.PTF_GetDurationInMilisecond( start );
      response_o   := 'PTF has been installed and configured successfully';
      isSuccessful := true;
    }
    else
    {
      response_o := '< Precondition failed reason >'; // Your precondition failed reason
    }
    
    return isSuccessful;
  *]
}