Forum Discussion

m_essaid's avatar
m_essaid
Valued Contributor
6 years ago

CTF Loader

Hi, Most of us must run our test nightly. I have personnaly several machines running on Win 10 Pro, and updated to last version (1909). My tests are very common in the way that they simulate keystr...
  • tristaanogre's avatar
    tristaanogre
    5 years ago

    Process filter has to do with processes that show up in Windows.  Basically, if you go to Task manager and look at the list of processes, whatever process name shows there, that's how you filter the process.  So, my guess is that CTFMon is calling the DLL... so, to exclude the DLL, you need to filter out CTFMonitor

  • m_essaid's avatar
    5 years ago

    Hi,

    Finaly I found a solution : I ask TC to close the process before the tests. I had to adapt slightly the following method which closes a process :

     

    procedure KillProcessus(NomProcessus: string);
    var
      p, IsClosed;
    begin
      p := Sys.FindChild('ProcessName', NomProcessus);
      while (p.Exists) do
      begin
        p.Close;
        IsClosed:= p.WaitProperty('Exists', False);
        if not IsClosed then
          p.Terminate;
        p:= Sys.FindChild('ProcessName', NomProcessus);
      end;  
    end;

    This procedure don't work because there is no window for this process. So I used this one which work pretty fine :

     

    procedure KillProcessusCTFMon(NomProcessus: string);
    var
      p, IsClosed;
    begin
      p := Sys.FindChild('ProcessName', NomProcessus);
      while (p.Exists) do
      begin
        p.Terminate;
        p:= Sys.FindChild('ProcessName', NomProcessus);
      end;  
    end;