Page tree
Skip to end of metadata
Go to start of metadata

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 if for 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.

@Test
public void foo() {
  step1();
  step2();
  step3();
}

private void step1() {
  ... 
}
private void step2() {
  ...
}
private void step2() {
  ...
}
  • No labels