Test automation for imbus TestBench Enterprise using Robot Framework
Project description
Creating robot files
To generate the robot files itb2robot needs two parameters. A JSON configuration file and a directory or ZIP file containing the TestBench JSON report files. If no configuration file is passed, itb2robot searches the current working directory for a file named "config.json".
tb2robot -c config.json path/to/json/files.zip
Configuration of output
To configure the output of the converter a json configuration file is used. This file contains the following settings:
rfLibraryRoots
A list of the different root subdivisions of the TestBench in which robot libraries are defined. Libraries that are not part of one of these subdivisions will not be imported into the robot file. The only exception to this are forced imports, which are always included in the robot files.
"rfLibraryRoots": ["RobotLibraries", "RF"]
rfResourceRoots
Like the libraries, the root subdivisions of the resource files must also be specified. This can be done in rfResourceRoots.
"rfResourceRoots": ["RF-Resources"]
fullyQualified
Boolean variable that defines whether the library name is prepended to a keyword call.
"fullyQualified": true
resourceDirectory
Path to the directory which contains the used resource files. The path can be absolute or relative. In case of a relative path, a "{root}" is prepended. This parameter is necessary to specify a relative path to the resource directory when importing the resources in the setting section of a robot file.
"resourceDirectory": "{root}/Resources",
*** Settings ***
Resource ../Resources/myKeywords.resource
generationDirectory
Path to the directory where the robot files will be generated. The path can be absolute or relative. As with the resource directory, a "{root}" can be prepended to indicate that this is a relative path
"generationDirectory": "{root}/Generated"
logSuiteNumbering
Boolean variable that defines whether the prefix of a directory that determines the execution order is shown in the logs.
"logSuiteNumbering": true
clearGenerationDirectory
Boolean variable that defines whether the specified generation directory and all files contained in it should be deleted before new robot files will be created.
"clearGenerationDirectory": true,
logCompoundInteractions
To generate not only the atomic interactions in the robot files, the parameter logCompoundInteractions can be set to true. This way, compound interactions are displayed as comments in the robot code. Furthermore, the atomic interactions that make up these compound interactions are indented to indicate which parent interaction they belong to.
"logCompoundInteractions": true,
subdivisionsMapping
A dictionary that defines which library or resource should be imported in the robot file, if a keyword from the library/resource is used. The keys of the dictionaries are the names of the libraries or resources and the values represent the import statements.
"subdivisionsMapping": {
"libraries": {
"SeleniumLibrary": "SeleniumLibrary timeout=10 implicit_wait=1 run_on_failure=Capture Page Screenshot",
"Schneewitchen": "MyLibrary"
},
"resources": {
"MyKeywords": "MyKeywords.resource"
}
}
forcedImport
Specifies which libraries must be imported into each generated robot file regardless of whether a keyword from this library is used.
"forcedImport": {
"libraries": []
}
loggingConfiguration
Option to set itb2robots log level. Valid options are:
- "CRITICAL"
- "FATAL"
- "ERROR"
- "WARNING"
- "WARN"
- "INFO"
- "DEBUG"
- "NOTSET"
If no option is specified, the log level will be set to "INFO".
"loggingConfiguration": {
"console": {
"logLevel": "info"
}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for testbench2robotframework-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33f3228a5fc0e74588a818c0776258471081be571dafe39eda2f828e866a978d |
|
MD5 | 6cc9db48210d7a82f3870641d03b2e02 |
|
BLAKE2b-256 | 0c64739d090428254e3195652df401b16f1ea1081693010a5f56c0d4a01a7fcd |
Hashes for testbench2robotframework-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e88e82dc2eaf8abd63993dbfc661d07694baeac53676fb4a8d4bfaf26d07efed |
|
MD5 | c525851e4134e19a62ab7a71f342c10f |
|
BLAKE2b-256 | c85bc770012ed41a6ba4bfc53ec5db1c67ad66a629fce8065d18ca8e2a90a93d |