All Downloads are FREE. Search and download functionalities are using the official Maven repository.

robotframework-2.7.7.proto.parallel.doc.Parallel.html Maven / Gradle / Ivy

The newest version!



Parallel





Parallel

Scope: test case
Named arguments: supported

Introduction

Library for executing tests in parallel from inside of a robot test case.

Importing

Arguments Documentation
runner_script, *arguments runner_script is pybot or jybot or a custom script.

arguments are default arguments given to every test execution.

Example:
Library Parallel pybot --variable variable:value --loglevel DEBUG

Shortcuts

Keywords

Keyword Arguments Documentation
Add Arguments For Parallel Tests *arguments Adds arguments to be used when parallel test is started.

arguments is a list of arguments to pass to parallel executions.

In the following example variable my_var is used in both of the tests started with the keyword Run Parallel Tests:
Add Arguments For Parallel Tests --variable my_var:value
Run Parallel Tests Test Another Test
Run Parallel Tests *test_names Executes all given tests parallel and wait those to be ready.

Arguments can be set with keyword Add Arguments For Parallel Tests and data source with keyword Set Data Source For Parallel Tests. In case test cases are from different data sources, combination of Set Data Source For Parallel Tests, Start Parallel Test and Wait All Parallel Tests keywords needs to be used.
Set Data Source For Parallel Tests data_source Sets data source which is used when parallel tests are started.

data_source is path to file which contains the test/tests which are started/executed with keywords Start Parallel Test or Run Parallel Tests.

If tests to be executed are in the same suite and Robot Framework 2.5 or later is used, there is no need to use this keyword as data_source can be automatically resolved.

Examples:
Set Data Source For Parallel Tests ${CURDIR}${/}my_parallel_suite.txt
Start Parallel Test My Parallel Test
Start Parallel Test test_name, *arguments Starts executing test with given test_name and arguments.

arguments is list of Robot Framework command line arguments passed to the started test execution. It should not include data source. Use Set Data Source For Parallel Tests keyword for setting the data source. Additional arguments can also be set in library import and with Add Arguments For Parallel Tests keyword.

Returns a process object that represents this execution.
Stop All Parallel Tests Forcefully stops all the test executions.

NOTE: Requires Python 2.6 or later.
Wait All Parallel Tests Wait all started test executions to be ready and fails if any of those failed.
Wait Parallel Tests *processes Waits given processes to be ready and fails if any of the tests failed.

Processes are list of test execution processes returned from keyword Start Parallel Test.




© 2015 - 2024 Weber Informatics LLC | Privacy Policy