Distinguish between running in testing tool and in process?

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Distinguish between running in testing tool and in process?

  • Creator
    Topic
  • #52913
    Robert Kersemakers
    Participant

      Hi guys,

      I have the need to distinguish inside an Xlate, whether the Xlate is executed in the testing tool (where I don’t want certain things to happen, like say write the processed transaction code to a file) or whether it runs in a process. I can’t seem to find anything that tells me whether the Xlate is executed in the testing tool.

      I am thinking of using the process name [file tail [pwd]] to check if the process name is correct. But maybe there is another option?

      Thanks in advance!

      Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

    Viewing 3 reply threads
    • Author
      Replies
      • #75908
        Jim Kosloskey
        Participant

          Robert,

          I think the thread name global contains something like “TEST” when the proc is run inside a tester.

          I know it contains something when in test I just don’t recall what the literal is – I can look it up but maybe you can find it faster.

          I will check when I have a few minutes.

          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

        • #75909
          Jim Kosloskey
          Participant

            Robert,

            If you reference the global HciConnName it will indeed have the value ‘TEST’ in it if you are running in the testing tool (at least that is true for the Xlate testing tool).

            email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

          • #75910
            Robert Kersemakers
            Participant

              Thanks Jim. Gonna try that Monday.  8)

              Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

            • #75911
              Robert Kersemakers
              Participant

                A bit later than expected (why can’t they leave me alone at work?) but it works like a charm.

                Thanks again!

                Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

            Viewing 3 reply threads
            • The forum ‘Cloverleaf’ is closed to new topics and replies.