As a test developer, it could be useful to execute some code statements against the active device.
This can be done via the context menu as shown in the screenshot below:
Using this functionality multiple lines can be selected and executed. Its recommended to select the Appium Driver and Seetest client piece of code to be also selected.
The current restrictions:
- The code lines can be selected from a method body (class or method declarations are not expected)
- Complex statements (like
while) are not supported
- Some complex expression with java lambdas are not supported
- It is not possible to execute via this functionality lines, invoking private methods from the parent class.
For example, in the following code snippet, the lines in the foo method would be possible only after changing the visibility of those methods.