Giter Site home page Giter Site logo

erxiaoliu / intellibot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lte2000/intellibot

0.0 0.0 0.0 25.3 MB

IntelliJ/PyCharm plugin for Robot Automation Framework

Home Page: https://github.com/lte2000/intellibot

License: MIT License

HTML 0.52% Java 96.50% RobotFramework 2.98%

intellibot's Introduction

IntelliJ/PyCharm Plugin for Robot Automation Framework

INSTALLATION
Download the intellibot.jar file in this github project.
Then install this plugin to your IDE by using the 'Install plugin from disk...' option.

NEW OPTIONS
This version of intellibot provide more options, see following picture:

New Options

NEW FEATURE/ENHANCEMENT/FIX comparing to the original version

  • Support FOR loop, both old and new syntax

  • Variable

    • support variable in extended syntax, e.g. ${var * 10 + 3}
    • support scalar/dictionary/list variable resolve
    • will not take number like ${123} as "variable not defined"
    • improve the handling when type ${ in variable table
    • correct the priority of variable according to the robot framework user guide
  • Library/Resource

    • can limit transitive import depth to improve performance
    • improve resolve library WITH NAME
    • support implemented as a directory
    • don't replace "." to "/" in library path if it contain "/"
    • don't resolve library as class if using physical path to library
    • regard library as directory if using physical path and not end with ".py",
    • follow the rule in robot framework user guide as much as possbile
    • strip variable in library path to be part of path name
      • e.g. "Resource %{PATH_1}/file1.robot" will search "Resource PATH_1/file1.robot"
      • it is useful if there're variables in import path but there is not running environment in local
      • provide an option to switch this behaviour on/off
  • Correct the import behavior for Library, Resource and Variables files.

    • import both variable and keyword from Resource.
    • import only keyword from Library.
    • import only variable from Variables.
  • User defined GLOBAL variables, like the one provided in command line "--variablefile"

    • using fake resource file named _ProjectDefaultResource_.robot under the current Pycharm project's root directory
    • it is processed as a Resource file, but only variables are imported, keywords are ignored
    • provide an option to switch on/off
  • Support SeleniumLibrary keywords

    • No exception
  • Autocompletion

    • keyword autocompletion support input prefixed with library and resource name
    • insert 4 spaces after keyword
    • if type 2 spaces, expand to 4 spaces according to surrounding space count
  • resolve exception:

    • when type ${}
    • when keyword containing file is null
    • solve "Project Disposed" exception when close current project and open new project without quit application
    • type cast exception

original readme

This is a work in progress (the product of a 24 hour hack match), though at this point I have devoted far more time than that. Related feature request to JetBrains: IDEA-97678. Here is a growing list of features.

Sample

Installation & Usage

Note that this plugin should work in either IntelliJ or PyCharm, but that PyCharm is far less used (and thus tested) personally.

The plugin is now hosted in the JetBrains repositories. This means you can install it directly form your IDE. Just search for 'Intellibot' under 'Browse Repositories...'.

You can also install the plugin manually. To do so you can either download and compile the project yourself. Or download the intellibot.jar file in the project. You can then install this plugin to your IDE by using the 'Install plugin from disk...' option. This version may be slightly ahead of the JetBrains repository though potentially slightly less stable.

The plugin will, by default, operate against any ".robot" file in the project. You can add ".txt" support by following these instructions. If you are using PyCharm then any Python libraries should be detected when you setup your interpreter. If you are using IntelliJ then you can install the Python plugin. Both instructions can be found in this wiki page.

intellibot's People

Contributors

mtrubs avatar lte2000 avatar tillaert avatar kidlike avatar sabrams avatar gabethegeek avatar danielpbak avatar eezltn avatar puhnastik avatar

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.