擅长:python、mysql、java
<p>来自<a href="http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#what-methods-are-considered-keywords" rel="nofollow">Robot Framework User Guide</a></p>
<pre><code>When the static library API is used, Robot Framework uses reflection to find out what public methods the library class or module implements.
It will exclude all methods starting with an underscore,
and with Java libraries also methods that are implemented only in java.lang.Object are ignored.
All the methods that are not ignored are considered keywords.
</code></pre>
<p>您是否考虑过使用<code>_do_something_generic</code>函数添加helper基类?您可以将其从<code>__all__</code>列表中排除。然后使用继承公开<code>Class1</code>中基类的关键字。在</p>
^{pr2}$