Svoboda | Graniru | BBC Russia | Golosameriki | Facebook

To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
Live Statistics
English Articles
Improved in 24 Hours
Added in 24 Hours
Languages
Recent
Show all languages
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds

From Wikipedia, the free encyclopedia

ABAP Unit is the xUnit adoption for the ABAP language. ABAP Unit is directly embedded into the ABAP development environment and into the ABAP runtime environment.

In ABAP Unit tests are test methods in dedicated test classes. A test class may contain several test methods. The optional methods SETUP() and TEARDOWN() offer the possibility to manage the context of the unit tests. Usually test classes are local classes within the program under tests. The domain code and the test code share this way the same life cycle and are always in sync. The test code can exercise the domain code of the program but not vice versa. This restriction is checked by ABAP runtime system and ensures the pattern "no test code in productive code".

Test execution for single programs is possible from within the editors. Newer versions of ABAP Unit (>= SAP_BASIS 7.02) offer an integration with coverage metrics and a report to schedule automatic test execution with mail notification. ABAP Unit offers no feature to define test suites programmatically. Mass runs for entire packages can be executed with the Code Inspector integration only.


YouTube Encyclopedic

  • 1/3
    Views:
    3 732
    3 953
    838
  • SAP ABAP Unit - Chap 1: Introduction
  • ABAP Unit Test - Testing in ABAP made easy
  • The Case for Automated ABAP Testing

Transcription

Sample

class tc_Text_Buffer definition for testing.  "#AU Risk_Level Harmless
  private section.
    methods set_Text_And_Get_Text for testing.
endclass.

class tc_Text_Buffer implementation.
  method set_Text_And_Get_Text.
    constants c_Hello_World type string value 'Hello World'.
    data buffer type ref to zcl_Text_Editor_Buffer.
    create object buffer.
    buffer->set_Text( c_Hello_World ).
    cl_Aunit_Assert=>assert_Equals( act = buffer->text exp = c_Hello_World ).
  endmethod.
endclass.
This page was last edited on 2 June 2024, at 15:33
Basis of this page is in Wikipedia. Text is available under the CC BY-SA 3.0 Unported License. Non-text media are available under their specified licenses. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. WIKI 2 is an independent company and has no affiliation with Wikimedia Foundation.