0

I am trying to get a list of android devices attached using adb devices -l.

But i'm not very sure how to run commands using process

Error given is --> FileNotFoundError, No such file or directory.

I think i'm missing out the syntax and would appreciate if anyone could take a look at this.

*** Settings ***
Library     Process
Suite Teardown      Terminate All Processes     kill=True

*** Test Cases ***
Example
    Run Process   adb devices -l

When i add shell = True,

the error message becomes --> Expected at least 1 non-named argument, got 0. Not too sure what argument i should put.

    Run Process   adb devices -l    shell=True

Referencing to: http://robotframework.org/robotframework/latest/libraries/Process.html

1 Answer 1

2

Silly mistake. It was a spacing issue.

I just need to tab 2 twice between the codes and it runs fine.

Run Process       adb devices -l      shell=True
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.