Sharpen your ABAP Editor for TDD – Part I
Sharpen your ABAP Editor for Test-Driven-Development (TDD) – Part I
How to optimize your Performance by using the new ABAP Editor
“Give me six hours to chop down a tree and I will spend the first four sharpening the axe”
– Abraham Lincoln
I have great pleasure when I´m doing TDD. For me it is obvious that the Tools that I use, I had to optimal apply in my Programming flow.
Of course, nothing is “out of the box” but find out here how I customize and use my Programming Tools.
ABAP Editor Customization
In my opinion, following aspects are relevant for a smooth use:
- Own Templates for the most used commands
- Navigation Options
- Tips and Tricks for using the Object Navigator
Creating own Templates
You know the Situation. Your are Programming some stuff, and some commands seem to be very annoying for you…
You type again and again the thousands assert_equal statement. And you peek for something faster, but than you continue with your next step.
This sound´s very familiar for you. And here stop and customize your ABAP Editor. In the new ABAP Editor it is possible to customize user-specific Templates.
For following commands I have an own Template:
- local Classes
- local Test-Classes
- Testmethod definition
- Testmethod implementation
- assert_equals Statements
- fail Statements
Navigation Options in the new ABAP Editor
Everything is ok. You write your Unit-Test. Make it to run “green”. And then you refactor the sources. But with time you have to scroll all the time.
At the TOP of your Editor the Test-Classes were defined. And at the BOTTOM of your Editor the Implementation-Part will grow and grow.
And then you have all the Time to scroll up and down and up and down…
Would it be nice to have more Options?
And here is the time to use:
- the Split-View Option
- create own local Bookmarks
- Search and Replace of Code
Tips and Tricks for using the Object Navigator
Imagine you have a smooth Package- and Class-Architecture. For some Tests you have to instanciate some classes (Preconditions) and this is necessary for all Testmethods. Then you go to the Taskbar and Press ‘Pattern’ or hit the Keyboard-Shortcuts CTRL+F6 for inserting an Statement.
And of course you ask you the same question as I asked me: Have I more Options?
And yes, you can drag an drop from the Object-Navigator the relevant Methods to insert Statements in the Editor.
My experience is…
All the above Helpers make TDD a lot of easier, and the Development process is much faster and not to forget it make Programming a joy!
Your experience is?
What are your experiences with this Options?
Have you something different that works for using TDD in the ABAP-World?
Blogs in this Series:
- Sharpen your ABAP Editor for TDD Part I. (http://scn.sap.com/community/abap/blog/2013/01/05/sharpen-your-abap-editor-for-tdd)
- Sharpen your ABAP Editor for TDD Part II. (http://scn.sap.com/community/abap/blog/2013/01/23/sharpen-your-abap-editor-for-tdd–part-ii)
- Sharpen your ABAP Editor for TDD Part III. (http://scn.sap.com/community/abap/blog/2013/01/29/sharpen-your-abap-editor-for-tdd–part-iii)
- Sharpen your ABAP Editor for TDD Part IV. ( http://scn.sap.com/community/abap/blog/2014/06/25/sharpen-your-abap-editor-for-tdd–part-iv )