Testing Tool: TPS Script, no output?

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Testing Tool: TPS Script, no output?

  • Creator
    Topic
  • #52191
    Jerry Tilsley
    Participant

      All,

      Trying to use the testing tool to do some testing on a new tps script.  But I am not getting the expected output.

      Here is the output I am getting:

      Quote:

      Please Wait ……

      Command Issued: hcitpstest -r run -a -x ASCII -f len10 -c sms_ib_data -e “hciroutetestshowbydest ” /HIC/qdx/cis5.8/integrator/emr2_support/mt_lab_burrows “tps_gl_payroll_mt_xlate”

      Command output:

      Here is the basic code I am using trying to troubleshoot the testing tool issue:

      Code:

      ######################################################################
      # Name: tps_gl_payroll_mt_xlate
      # Programmer: Jerry M. Tilsley
      # Date: January 3, 2011
      # Purpose: To convert the payroll GL flat file from API for
      # Meditech.
      #
      # UPoC type: tps
      # Args: tps keyedlist containing the following keys:
      #       MODE    run mode (”start”, “run” or “time”)
      #       MSGID   message handle
      #       ARGS    user-supplied arguments:
      #              
      #
      # Returns: tps disposition list:
      #          

      #

      proc tps_gl_payroll_mt_xlate { args } {
         keylget args MODE mode               ;# Fetch mode

         set dispList {} ;# Nothing to return

         switch -exact — $mode {
             start {
                 # Perform special init functions
         # N.B.: there may or may not be a MSGID key in args
             }

             run {
         # ‘run’ mode always has a MSGID; fetch and process it
      #echo [exec date] tps_payroll_xlate
      echo “TEST”
      keylget args MSGID mh

      lappend dispList “CONTINUE $mh”
             }

             time {
                 # Timer-based processing
         # N.B.: there may or may not be a MSGID key in args
             }
             
             shutdown {
         # Doing some clean-up work
      }
         }

         return $dispList
      }

      Any help would be greatly appreciated!

    Viewing 7 reply threads
    • Author
      Replies
      • #73351
        Bob Richardson
        Participant

          Greetings,

          The -e argument shows that you have selected a “route test” proc in the testing tool for TPS.  To display your run results for TPS testing select “hcitpstestshowbydisp”.

          Hope that helps you out.

          By the way, if you are using CIS5.7, there is a feature whereby the “send to proc” reverts back to the default proc when you change the TCL that you want to test or when you add/remove TCLs from a stack (if you have selected more than one proc).  You have to re-select the “Send to proc” again.  Reported as a bug to Lawson Cloverleaf support last month (12/10) from our shop.  

          Good luck, good hunting!

        • #73352
          Jerry Tilsley
          Participant

            Bob,

            Thanks for the reply, I changed to the showbydisp proc, but this did not help.  Also, I am running 5.8 in a test/development environment.  Never had this issue before.  If I do a Route test then the results come back, but nothing under the TPS test section.

            Thanks!

          • #73353
            Bob Richardson
            Participant

              Jerry,

              That is strange indeed.  Can you post an image of your test tool configuration?  That would be helpful here.  

              Perhaps a shop that is running the 5.8 engine will respond

              (we are 5.7).  I would suggest that if no one responds from a 5.8 shop then feel no hesitation in contacting Lawson Cloverleaf support.

              Come next Monday 1/10 we have to use the website case method as calls and email contacts will not be valid.

              Let us know how your issue turns out.

            • #73354
              Jerry Tilsley
              Participant

                Here is a screenshot.

              • #73355
                Bob Richardson
                Participant

                  Jerry,

                  Just a couple of quick checks here:

                  (1) file newline delimted or length encoded or eof?

                  (2) always check “leak detection” (my preference)

                  (3) always check “initial startup”  (my preference)

                  BobR

                • #73356
                  Jerry Tilsley
                  Participant

                    The file here is length encoded.  I usually do use the leak check, but here just trying to figure out what is going on with this I didn’t use it.

                  • #73357
                    Jerry Tilsley
                    Participant

                      UPDATE:

                      I run this through the command line to see what it would do and I do get output.  So the issue is just with the GUI.  That help narrow it down?

                    • #73358
                      Jerry Tilsley
                      Participant

                        It appears that I am just too impatient!  The file I was running through to test the new script just happens to be a really large data file and was taking quite some time to process.  Everything is working now!

                        Thanks for all the help!

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