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

Getting an error on the execution of ABAP Unit test.

HI,

I have developed a class in XYZ system. (System name not specified, where XYZ is the development system). I wrote a ABAP unit test case for this. When I run the unit test, it worked fine.

After transporting the request to other system ABC (System name not specified, where ABC is the test system).,

I tried do execute the same unit test in ABC system. I am getting a warning message

"The class pool <MY_CLASS_NAME> contains no executable unit tests; see long text."

I saw the Local Definitions/Implementations, the abap unit test code is there in the class. But still getting this warning message.

Can anyone help me to solve this problem?

--

Regards,

Vinay Bedre

Edited by: Vinay Bedre on May 19, 2011 7:10 AM

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on May 20, 2011 at 10:19 AM

    I would check two things:

    1. Profile parameter abap/test_generation (see [http://help.sap.com/saphelp_nw2004s/helpdata/en/37/381540bf1af72ee10000000a1550b0/frameset.htm|http://help.sap.com/saphelp_nw2004s/helpdata/en/37/381540bf1af72ee10000000a1550b0/frameset.htm] )

    2. Settings in transaction SAUNIT_CLIENT_SETUP - you can prohibitunit tests there

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 15, 2011 at 09:45 AM

    Hi,

    i was getting warning "The class pool <MY_CLASS_NAME> contains no executable unit tests; see long text."

    I changed risk level from "Dangerous" to "Harmless".

    Now i am getting message " Processed successfully: 0 programs, 0 test classes, 0 test methods ".

    i am working in CPF/100 - pre development system and not a production system.

    i also checked transaction "SAUNIT_CLIENT_SETUP" , unit test cases are not prohibited.

    Can anyone help me to solve this problem?

    Regards,

    Deeraj Kumar.

    Edited by: Deeraj Kumar on Jun 15, 2011 11:46 AM

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      it would be very helpfull, if you could publish the coding of your test class. Searching for errors without seeing the coding is quite difficult.

      Did you add the "for testing" option to the definition of you test methods?

      class my_test_class definition for testing. "#AU Risk_Level Harmless.

      private section.

      methods: my_test_method for testing .

      ...

      endclass.

      Regards

      Dirk

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.