Coder Social home page Coder Social logo

Comments (4)

KrzysztofJozefowicz avatar KrzysztofJozefowicz commented on August 27, 2024

Hi
We support KW assistance from external libs although there might be cases where list of KW will not be available (we discovered one flaw today with jython and external libs, next version v.0.6.2 will have this patch). Still, it is possible to get content assist for KW by manually generating libdocs and including libdoc xml file into red.xml (this is also a way to work with RED when not all of the required external libraries are installed on your pc but you are able to get list of KW into xml).
For libdoc generation have a look into official docs:
http://robot-framework.readthedocs.org/en/2.9.1/_modules/robot/libdoc.html

for jython, simplified command:
jython -m robot.libdoc <lib_name_jar> <output_libdoc_file_xml>

from red.

baudren avatar baudren commented on August 27, 2024

Ok. Just to be clear: it should do it automatically, but in case it fails, one can always do the generating libdocs? Because this is a big deal in the development flow, for developers: write or update your keyword, and have it refactored inside your robot file (or at least told that this keyword does not exist anymore).

from red.

KrzysztofJozefowicz avatar KrzysztofJozefowicz commented on August 27, 2024

Hi
From RED and RF point of view, whenever external lib is included in testcase and in red.xml, RED is executing libdoc generation in background (command as above depending of python interpreter used in project) to get list of KW&docs - if libdoc command fails, libname is in red. Also when lib is changed, you can manually force RED to regenerate KW from changed files by right clicking on lib name under Robot Referenced Libraries in Project Explorer ( in v.0.6.2 there will be mechanism to detect and regenerate KW list when files where changed configurable in red.xml).
So when KW name is changed in external libs, error for unknown KW in robot tests will be rised on file or on whole project if validated (you can also use headless validation in CI to get the same but in automatic way as for instance post-commit action).
I hope this is clear for you.

from red.

baudren avatar baudren commented on August 27, 2024

Yep, thanks a lot! I will give it a spin, then, and maybe I will finally manage to convince my team to use RF, in order to keep our sanity. Cheers

from red.

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.