Git Product home page Git Product logo

Comments (4)

jollychang avatar jollychang commented on June 11, 2024

@bbbco You need a return value from keyword

[jollychang@WilliamMBP tmp]$ cat test_aaa.txt
*** Settings ***
Library         DebugLibrary
Library         String

*** Keywords ***
a
    [Arguments]    ${string}
    [Return]    ${rs}
    ${rs}=  get substring  ${string}  1  3

** test case **
SOME TEST
    a  '123'
    Debug

[jollychang@WilliamMBP tmp]$ pybot test_aaa.txt
==============================================================================
Test Aaa
==============================================================================
SOME TEST                                                             .
>>>>> Enter interactive shell, only accepted plain text format keyword.
> a  hello
<  'el'
>

from robotframework-debuglibrary.

bbbco avatar bbbco commented on June 11, 2024

But what if I want to debug inside of a Keyword and not inside of a test? That is the example I gave--the debug statement is inside the Keyword definition and not inside the test case. I should be able to access the variable that is passed in to the Keyword that I am debugging.

Please reopen and reconsider this issue.

from robotframework-debuglibrary.

xyb avatar xyb commented on June 11, 2024

@bbbco variable assignment supported now, please upgrade to version 0.8.

from robotframework-debuglibrary.

manycoding avatar manycoding commented on June 11, 2024

I cannot use any variables set at the start of a keyword from my Fedora 25 terminal, both from bash or sh. It always returns ! FAILED: ExecutionFailed(u"No keyword with name '${var}=' found.",).
However everything works fine in Windows 7 cmd and Alpine bash.
Any suggestions?

from robotframework-debuglibrary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.