Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get copy of S_CODE_INSPECTOR package?

Former Member
0 Kudos

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?

2 REPLIES 2

Former Member
0 Kudos

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...

0 Kudos

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!