Skip to Content
author's profile photo Former Member
Former Member

How to get copy of S_CODE_INSPECTOR package?

I have V6.10 WAS Test Drive installed, and it contains package S_CODE_INSPECTOR. But when I look at the package in SE80, it has no contents. I also have an old version (2002) of some information on extending CI checks, which mention the S_CODE_INSPECTOR package and say that it's suposed to contain some templates that one would find useful for extended CI funtionality.

1) Shouldn't I be able to see some information in the WAS 61.0 S_CODE_INSPECTOR package? Interfaces, etc?)

2) How can I get (and install) the templates that are referenced in the documentation I have, in particular CL_CI_TEST_SCAN_TEMPLATE?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Apr 12, 2004 at 07:10 PM

    Ok - I see all the elements of the S_CODE_INSPECTOR package, but I'm looking for a definition of CL_CI_TEST_SCAN_TEMPLATE? Does such a thing exist? And if so, can someone point me to it?

    Thanks...

    Add a comment
    10|10000 characters needed characters exceeded

    • In MiniWAS 6.20 it has a definition. It's inherited from CL_CI_TEST_SCAN and method GET_MESSAGE_TEXT and RUN were redefined.

      Public section:

      class CL_CI_TEST_SCAN_TEMPLATE definition

      public

      inheriting from CL_CI_TEST_SCAN

      create public .

      " public components of class CL_CI_TEST_SCAN_TEMPLATE

      " do not include other source files here!!!

      public section.

      methods CONSTRUCTOR .

      methods GET_MESSAGE_TEXT

      redefinition .

      methods RUN

      redefinition .

      Protected section:

      " protected components of class CL_CI_TEST_SCAN_TEMPLATE

      " do not include other source files here!!!

      protected section.

      Private section:

      " private components of class CL_CI_TEST_ROOT_TEMPLATE

      " do not include other source files here!!!

      private section.

      constants MY_NAME type SEOCLSNAME value '<test class name>' .

      Method GET_MESSAGE_TEXT:

      method GET_MESSAGE_TEXT .

      case P_CODE.

      when '<errcode_1>'. P_TEXT = '<message text>'(001).

      when '<errcode_n>'. P_TEXT = '<message text>'(002).

      endcase.

      endmethod. "GET_MESSAGE_TEXT

      Method RUN:

      method RUN .

      • Test

      • Test-Object-Name supplied in

      • OBJECT_TYPE

      • OBJECT_NAME

      • Program name supplied in

      • PROGRAM_NAME

      *

      *result of tests by raise event:

      *

      *INFORM( P_INCLUDE = <include>

      • P_LINE = <line>

      • P_COLUMN = <column>

      • P_ERRCNT = L_ERRCNT

      • P_KIND = C_ERROR / C_WARNING / C_NOTE

      • P_TEST = MY_NAME

      • P_CODE = <error code>

      • P_PARAM_1 = <parameter 1>

      • P_PARAM_2 = <parameter 2>

      • P_PARAM_3 = <parameter 3>

      • P_PARAM_4 = <parameter 4> )

      • add 1 to L_ERRCNT.

      " Dummy-Statement to avoid SLIN-Errors

      WRITE MY_NAME.

      endmethod.

      Incho

      Ps: Probable you try to extend the Code Inspector as you asked in your previous post. Can you post a message if you find the solution? Thanks!

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.