daluu / phrrs

PHP remote library server for Robot Framework
6 stars 2 forks source link

Support CamelCase for test library keyword method names #3

Open daluu opened 11 years ago

daluu commented 11 years ago

By default, remote library currently supports Pythonic method naming for keywords:

method keyword_name for "keyword name" in tests

there is pseudo CamelCase support if "keyword name" is represented in tests as "keywordname" without spaces. But we ideally want the remote server to translate spaces to support CamelCase as well.

To do this, we could do preprocessing before reflection calls and do a search for any methods that match Pythonic naming, and if not try CamelCase (or reverse the order of search). May need try/catch block for this to not throw exception when searching non-existent method via reflection.

daluu commented 10 years ago

Based on findings from Perl server issue 12 (https://code.google.com/p/plrobotremoteserver/issues/detail?id=12), this should already be natively handled/supported by RF in the conversion (based on RF user documentation: http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#keyword-names), nothing to do but to test & confirm that can use CamelCase and Pythonic underscores to name methods. If not otherwise, then look into implementing support.