Quintiq file version 2.0
|
#parent: #root
|
Method PTF_TestMethodTemplate (
|
output Real duration_o,
|
output String response_o
|
) as Boolean id:Method_LibPTF_pnlTestRunner_PTF_TestMethodTemplate
|
{
|
#keys: '[104342.0.795231983]'
|
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();
|
|
// Call your method here
|
// Use the following construct if you want to execute a server method
|
// this.PTF_GetPTF().<Your method>
|
|
// Call the following statement if the action is asynchronous
|
// this.PTF_ExecutePreAsyncAction();
|
|
duration_o := this.PTF_GetDurationInMilisecond( start );
|
response_o := '<Trace information about the action>';
|
isSuccessful := true;
|
}
|
else
|
{
|
response_o := '< Precondition failed reason >'; // Your precondition failed reason
|
}
|
|
return isSuccessful;
|
*]
|
}
|