test-fullautomation / robotframework

Generic automation framework for acceptance testing and RPA
http://robotframework.org
Apache License 2.0
1 stars 0 forks source link

Conversion to printable names not wanted #83

Open HolQue opened 4 days ago

HolQue commented 4 days ago

These are the names of some keywords like defined in a Python based keyword library:

@keyword
def send_message_1(self):

@keyword
def ReceiveMessage_2(self):

@keyword
def Wait_For_Message_3(self):

In log files they appear in this way:

Send Message 1
ReceiveMessage 2
Wait For Message 3

This conversion of keyword names is extremely annoying, because when searching across code and log files for certain keywords, a developer has to consider two different ways of spelling.

Root cause for this behavior is function 'printable_name' in robot\utils\misc.py

I gave it a try: I commented out the entire code of this function and returned the input string unchanged.

Outcome: The keywords appear in log files in their original way of spelling:

send_message_1
ReceiveMessage_2
Wait_For_Message_3

In my opinion we urgently should try to implement a better solution for the conversion to printable names.

There is already a flag 'code_style' available to control the behavior of 'printable_name'. Maybe this can be a starting point for modifications.