Quintiq file version 2.0
|
#parent: #root
|
Method PTF_TestUpdateShiftPattern (
|
output Real duration_o,
|
output String response_o,
|
String unitname,
|
String shiftpattern,
|
String start
|
) as Boolean id:Method_LibPTF_pnlTestRunner_PTF_TestUpdateShiftPattern
|
{
|
#keys: '[136682.0.314444085]'
|
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_GetMPPTFLibrary().UpdateShiftPattern( unitname, shiftpattern , start);
|
|
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;
|
*]
|
}
|