05-08-2008 04:16 AM
05-08-2008 05:59 AM
05-08-2008 06:22 AM
05-08-2008 07:28 AM
HI Arun,
unless i do not understand why you want to perform in a step module a SequnenceCall
I would do it this way create a new Exection and wait for end
it looks like this:
stationOptions.AllowOtherModels =
true; String strAbsolutePath; Boolean bUserCancelled; // Get the sequenceFile if (engine.FindFile(strFileName, out strAbsolutePath, out bUserCancelled, FindFilePromptOptions.FindFile_PromptHonorUserPreference, FindFileSearchListOptions.FindFile_AddDirToSrchList_No, false, null) == true){
SequenceFile seqFile = engine.GetSequenceFileEx(strAbsolutePath, GetSeqFileOptions.GetSeqFile_OperatorInterfaceFlags, TypeConflictHandlerTypes.ConflictHandler_Error); // Get the Model if (engine.FindFile(strModelName, out strAbsolutePath, out bUserCancelled, FindFilePromptOptions.FindFile_PromptHonorUserPreference, FindFileSearchListOptions.FindFile_AddDirToSrchList_No, false, null) == true){
seqFile.ModelPath = strAbsolutePath;
seqFile.ModelOption =
ModelOptions.ModelOption_RequireSpecificModel; String strModelDescription; SequenceFile seqFileModel = seqFile.GetModelSequenceFile(out strModelDescription); // Get the Single Pass EntryPoint String strEntryPoint = "Single Pass"; Sequence sequence = seqFileModel.GetSequenceByName(strEntryPoint); if (sequence.Type == SequenceTypes.SeqType_ExeEntryPoint){
Execution execution = engine.NewExecution(seqFile, strEntryPoint, seqFileModel, false, 0,null,null,null);execution.WaitForEndEx(-1,
true, null, null);}
}
else{
Console.WriteLine("ModelFile {0} not found", strModelName);}
}
else{
Console.WriteLine("Teststand File {0} not found", strFileName);}
BUT !!!!!
I think the best would be set a TS Locals bolean in your Module and perfom it in next step with precodition and step sequnce call
greetings
juergen