Giter VIP home page Giter VIP logo

robot-parallel's Introduction

robot-parallel

Run robot test suite parallel, example.

How to use SplitSuite.py?

akash@SkyFall:~/robot$ robot --dryrun --prerunmodifier SplitSuite.py:3:1 tests/

Visiting SUITE: Tests
Total number of suites: 36
number of suites: 12.0
Suites in this part: 12
...

This script takes two arguments, “number of groups” and which group do you want execute. Note that passing argument is different here, e.g “3:1”. Above snippet will divide suite into 3 groups and run 1st group.

Now,if you want to execute 2nd group you will run

akash@SkyFall:~/robot$ robot --dryrun --prerunmodifier SplitSuite.py:3:2 tests/

How to use SplitSuite_v2.py?

bd@testing:~/robot$ robot --dryrun --prerunmodifier SplitSuite.py:3:1:4 tests/

This script takes three arguments, “number of groups”, which group do you want execute and the max level of depth the splitter will go through in your tests folder before performing the splitter.

Why version 2?

A use case explaining the differences between the 2 versions may help

tests/
   - UI_testing/
         - Login.robot
         - Checkout.robot
   - API_testing/
         - Catalog/
            - Catalog.robot
            - Categories.robot
            - Images.robot
            - Upselling.robot
            - Prices.robot
         - Cart.robot

In the above example, the script version 1 would bring to 2 splits, where the first one would contain Login.robot and Checkout.robot, while the second split would contain a lot more suites to run.

The second version of the script lets you flatten the tree structure to a specified level. Let's say level 2. The script will take all the single .robot files and after that it will splits the suites into 2 runs. The 2 splits will have 4 suites each.

robot-parallel's People

Contributors

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