Jump to content

inspection_start_pcm.txt, executed twice for measurement plan run ?


Recommended Posts

I'm having a problem with inspection_start_pcm.txt and inspection_end_pcm.txt being executed twice during the run of a measurement plan. Its obviously causing problems, and i can't seem to figure out why. Any suggestions ?

Current environment is Calypso 5.4, on windows 10 platform.
I have seen other bugs with the external PCM-files so obviously they fucked something up. As usual.
Solve it like this:

Put this in the file that executes twice:

if isParameterDefined("FileAlreadyExecuted") == false

FileAlreadyExecuted = true

here you write all the code that you want to execute
here you write all the code that you want to execute
here you write all the code that you want to execute
here you write all the code that you want to execute
here you write all the code that you want to execute
here you write all the code that you want to execute

endif
This should check if the parameter "FileAlreadyExecuted" is defined. In the first run this should give false and therefore executing the code within the if-statement. Including defining the parameter. The next times Calypso wants to execute the file it will be defined and therefore skip all the code.
×
×
  • Create New...