GithubHelp home page GithubHelp logo

robot-framework-template's Introduction

robot-framework-template

Panduza Robot Template is based on tips from robot framework documentation:

Directory Map

  • tests: put your acceptance tests here (.robot)
  • platform: contains changing resource configuration of your project
  • report-serve.sh: mount a nginx web server for the robot report on this directory (use docker, easy to use on Linux)

VsCode Extensions

VsCode has become a very important tools in the software industry. You can use it to build your own Robot Test IDE.

Robot Code

This extension seems better integrated when you work on Windows (less cofiguration to reach a working point).

Good Practice

Use "platform.resource"

This concept allow a better resource management of your test project.

Append all your imports inside a "platform.resource" file, then just import this file in all your tests. (see platform/template/platform.resource)

Then you just have to import only "platform.resource" (see tests/test1.robot)

Moreover, you can create one platform directory for each of your tests configuration. This way you will be able to switch from one to an other thanl to pythonpath.

Here you are using the "template" resources

"robotcode.robot.pythonPath": [
    "${workspaceFolder}/platform/template"
]

Here you are using the "demo" resources

"robotcode.robot.pythonPath": [
    "${workspaceFolder}/platform/demo"
]

Gherkin on high level test description (Given, When, Then)

Robot Framework is a great python test framework but Gherkin provide a better test description syntax.

I advice to use it on your high level test descriptions : (see tests/test2_gherkin.robot)

By the way, if your are not using python on some other project... Go see https://cucumber.io/

robot-framework-template's People

Contributors

xdoctorwhoz avatar

Watchers

 avatar  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.