testit-adapter-robotframework 3.3.1__tar.gz → 3.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of testit-adapter-robotframework might be problematic. Click here for more details.
- {testit_adapter_robotframework-3.3.1/src/testit_adapter_robotframework.egg-info → testit_adapter_robotframework-3.4.0}/PKG-INFO +20 -3
- testit_adapter_robotframework-3.3.1/PKG-INFO → testit_adapter_robotframework-3.4.0/README.md +18 -22
- {testit_adapter_robotframework-3.3.1 → testit_adapter_robotframework-3.4.0}/setup.py +2 -2
- {testit_adapter_robotframework-3.3.1 → testit_adapter_robotframework-3.4.0}/src/testit_adapter_robotframework/TMSLibrary.py +1 -1
- {testit_adapter_robotframework-3.3.1 → testit_adapter_robotframework-3.4.0}/src/testit_adapter_robotframework/listeners.py +3 -0
- {testit_adapter_robotframework-3.3.1 → testit_adapter_robotframework-3.4.0}/src/testit_adapter_robotframework/models.py +4 -0
- {testit_adapter_robotframework-3.3.1 → testit_adapter_robotframework-3.4.0}/src/testit_adapter_robotframework/utils.py +2 -1
- testit_adapter_robotframework-3.3.1/README.md → testit_adapter_robotframework-3.4.0/src/testit_adapter_robotframework.egg-info/PKG-INFO +39 -1
- testit_adapter_robotframework-3.4.0/src/testit_adapter_robotframework.egg-info/requires.txt +3 -0
- testit_adapter_robotframework-3.3.1/src/testit_adapter_robotframework.egg-info/requires.txt +0 -3
- {testit_adapter_robotframework-3.3.1 → testit_adapter_robotframework-3.4.0}/setup.cfg +0 -0
- {testit_adapter_robotframework-3.3.1 → testit_adapter_robotframework-3.4.0}/src/testit_adapter_robotframework/__init__.py +0 -0
- {testit_adapter_robotframework-3.3.1 → testit_adapter_robotframework-3.4.0}/src/testit_adapter_robotframework.egg-info/SOURCES.txt +0 -0
- {testit_adapter_robotframework-3.3.1 → testit_adapter_robotframework-3.4.0}/src/testit_adapter_robotframework.egg-info/dependency_links.txt +0 -0
- {testit_adapter_robotframework-3.3.1 → testit_adapter_robotframework-3.4.0}/src/testit_adapter_robotframework.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: testit-adapter-robotframework
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.4.0
|
|
4
4
|
Summary: Robot Framework adapter for Test IT
|
|
5
5
|
Home-page: https://github.com/testit-tms/adapters-python/
|
|
6
6
|
Author: Integration team
|
|
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
Requires-Dist: attrs
|
|
19
19
|
Requires-Dist: robotframework
|
|
20
|
-
Requires-Dist: testit-python-commons==3.
|
|
20
|
+
Requires-Dist: testit-python-commons==3.4.0
|
|
21
21
|
|
|
22
22
|
# Test IT TMS adapter for Robot Framework
|
|
23
23
|

|
|
@@ -50,6 +50,7 @@ pip install testit-adapter-robotframework
|
|
|
50
50
|
| It enables/disables certificate validation (**It's optional**). Default value - true | certValidation | TMS_CERT_VALIDATION | tmsCertValidation |
|
|
51
51
|
| Mode of automatic creation test cases (**It's optional**). Default value - false. The adapter supports following modes:<br/>true - in this mode, the adapter will create a test case linked to the created autotest (not to the updated autotest)<br/>false - in this mode, the adapter will not create a test case | automaticCreationTestCases | TMS_AUTOMATIC_CREATION_TEST_CASES | tmsAutomaticCreationTestCases |
|
|
52
52
|
| Mode of automatic updation links to test cases (**It's optional**). Default value - false. The adapter supports following modes:<br/>true - in this mode, the adapter will update links to test cases<br/>false - in this mode, the adapter will not update link to test cases | automaticUpdationLinksToTestCases | TMS_AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES | tmsAutomaticUpdationLinksToTestCases |
|
|
53
|
+
| Mode of import type selection when launching autotests (**It's optional**). Default value - true. The adapter supports following modes:<br/>true - in this mode, the adapter will create/update each autotest in real time<br/>false - in this mode, the adapter will create/update multiple autotests | importRealtime | TMS_IMPORT_REALTIME | tmsImportRealtime |
|
|
53
54
|
| Url of proxy server (**It's optional**) | tmsProxy | TMS_PROXY | tmsProxy |
|
|
54
55
|
| Name of the configuration file If it is not provided, it is used default file name (**It's optional**) | - | TMS_CONFIG_FILE | tmsConfigFile |
|
|
55
56
|
|
|
@@ -68,6 +69,7 @@ adapterMode = ADAPTER_MODE
|
|
|
68
69
|
certValidation = CERT_VALIDATION
|
|
69
70
|
automaticCreationTestCases = AUTOMATIC_CREATION_TEST_CASES
|
|
70
71
|
automaticUpdationLinksToTestCases = AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES
|
|
72
|
+
importRealtime = IMPORT_REALTIME
|
|
71
73
|
|
|
72
74
|
# This section are optional. It enables debug mode.
|
|
73
75
|
[debug]
|
|
@@ -85,11 +87,26 @@ $ robot -v testit TEST_DIRECTORY
|
|
|
85
87
|
Launch with command-line parameters (parameters are case-insensitive):
|
|
86
88
|
|
|
87
89
|
```
|
|
88
|
-
$ robot -v testit -v tmsUrl:URL -v tmsPrivateToken:USER_PRIVATE_TOKEN -v tmsProjectId:PROJECT_ID -v tmsConfigurationId:CONFIGURATION_ID -v tmsTestRunId:TEST_RUN_ID -v tmsTestRunName:TEST_RUN_NAME -v tmsAdapterMode:ADAPTER_MODE -v tmsProxy:'{"http":"http://localhost:8888","https":"http://localhost:8888"}' -v tmsConfigFile:<optional file> -v tmsCertValidation:CERT_VALIDATION -v tmsAutomaticCreationTestCases:AUTOMATIC_CREATION_TEST_CASES -v tmsAutomaticUpdationLinksToTestCases:AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES TEST_DIRECTORY
|
|
90
|
+
$ robot -v testit -v tmsUrl:URL -v tmsPrivateToken:USER_PRIVATE_TOKEN -v tmsProjectId:PROJECT_ID -v tmsConfigurationId:CONFIGURATION_ID -v tmsTestRunId:TEST_RUN_ID -v tmsTestRunName:TEST_RUN_NAME -v tmsAdapterMode:ADAPTER_MODE -v tmsProxy:'{"http":"http://localhost:8888","https":"http://localhost:8888"}' -v tmsConfigFile:<optional file> -v tmsCertValidation:CERT_VALIDATION -v tmsAutomaticCreationTestCases:AUTOMATIC_CREATION_TEST_CASES -v tmsAutomaticUpdationLinksToTestCases:AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES -v tmsImportRealtime:IMPORT_REALTIME TEST_DIRECTORY
|
|
89
91
|
```
|
|
90
92
|
|
|
91
93
|
If you want to enable debug mode then see [How to enable debug logging?](https://github.com/testit-tms/adapters-python/tree/main/testit-python-commons)
|
|
92
94
|
|
|
95
|
+
#### Run with filter
|
|
96
|
+
To create filter by autotests you can use the Test IT CLI (use adapterMode 1 for run with filter):
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
$ export TMS_TOKEN=<YOUR_TOKEN>
|
|
100
|
+
$ testit autotests_filter
|
|
101
|
+
--url https://tms.testit.software \
|
|
102
|
+
--configuration-id 5236eb3f-7c05-46f9-a609-dc0278896464 \
|
|
103
|
+
--testrun-id 6d4ac4b7-dd67-4805-b879-18da0b89d4a8 \
|
|
104
|
+
--framework robotframework \
|
|
105
|
+
--output tmp/filter.txt
|
|
106
|
+
|
|
107
|
+
$ robot -v testit -v tmsTestRunId:6d4ac4b7-dd67-4805-b879-18da0b89d4a8 -v tmsAdapterMode:1 $(cat tmp/filter.txt) TEST_DIRECTORY
|
|
108
|
+
```
|
|
109
|
+
|
|
93
110
|
### Tags
|
|
94
111
|
|
|
95
112
|
Tags can be used to specify information about autotest. Tags are space sensitive, use only one space between words.
|
testit_adapter_robotframework-3.3.1/PKG-INFO → testit_adapter_robotframework-3.4.0/README.md
RENAMED
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: testit-adapter-robotframework
|
|
3
|
-
Version: 3.3.1
|
|
4
|
-
Summary: Robot Framework adapter for Test IT
|
|
5
|
-
Home-page: https://github.com/testit-tms/adapters-python/
|
|
6
|
-
Author: Integration team
|
|
7
|
-
Author-email: integrations@testit.software
|
|
8
|
-
License: Apache-2.0
|
|
9
|
-
Classifier: Programming Language :: Python :: 3
|
|
10
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
-
Description-Content-Type: text/markdown
|
|
18
|
-
Requires-Dist: attrs
|
|
19
|
-
Requires-Dist: robotframework
|
|
20
|
-
Requires-Dist: testit-python-commons==3.3.1
|
|
21
|
-
|
|
22
1
|
# Test IT TMS adapter for Robot Framework
|
|
23
2
|

|
|
24
3
|
|
|
@@ -50,6 +29,7 @@ pip install testit-adapter-robotframework
|
|
|
50
29
|
| It enables/disables certificate validation (**It's optional**). Default value - true | certValidation | TMS_CERT_VALIDATION | tmsCertValidation |
|
|
51
30
|
| Mode of automatic creation test cases (**It's optional**). Default value - false. The adapter supports following modes:<br/>true - in this mode, the adapter will create a test case linked to the created autotest (not to the updated autotest)<br/>false - in this mode, the adapter will not create a test case | automaticCreationTestCases | TMS_AUTOMATIC_CREATION_TEST_CASES | tmsAutomaticCreationTestCases |
|
|
52
31
|
| Mode of automatic updation links to test cases (**It's optional**). Default value - false. The adapter supports following modes:<br/>true - in this mode, the adapter will update links to test cases<br/>false - in this mode, the adapter will not update link to test cases | automaticUpdationLinksToTestCases | TMS_AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES | tmsAutomaticUpdationLinksToTestCases |
|
|
32
|
+
| Mode of import type selection when launching autotests (**It's optional**). Default value - true. The adapter supports following modes:<br/>true - in this mode, the adapter will create/update each autotest in real time<br/>false - in this mode, the adapter will create/update multiple autotests | importRealtime | TMS_IMPORT_REALTIME | tmsImportRealtime |
|
|
53
33
|
| Url of proxy server (**It's optional**) | tmsProxy | TMS_PROXY | tmsProxy |
|
|
54
34
|
| Name of the configuration file If it is not provided, it is used default file name (**It's optional**) | - | TMS_CONFIG_FILE | tmsConfigFile |
|
|
55
35
|
|
|
@@ -68,6 +48,7 @@ adapterMode = ADAPTER_MODE
|
|
|
68
48
|
certValidation = CERT_VALIDATION
|
|
69
49
|
automaticCreationTestCases = AUTOMATIC_CREATION_TEST_CASES
|
|
70
50
|
automaticUpdationLinksToTestCases = AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES
|
|
51
|
+
importRealtime = IMPORT_REALTIME
|
|
71
52
|
|
|
72
53
|
# This section are optional. It enables debug mode.
|
|
73
54
|
[debug]
|
|
@@ -85,11 +66,26 @@ $ robot -v testit TEST_DIRECTORY
|
|
|
85
66
|
Launch with command-line parameters (parameters are case-insensitive):
|
|
86
67
|
|
|
87
68
|
```
|
|
88
|
-
$ robot -v testit -v tmsUrl:URL -v tmsPrivateToken:USER_PRIVATE_TOKEN -v tmsProjectId:PROJECT_ID -v tmsConfigurationId:CONFIGURATION_ID -v tmsTestRunId:TEST_RUN_ID -v tmsTestRunName:TEST_RUN_NAME -v tmsAdapterMode:ADAPTER_MODE -v tmsProxy:'{"http":"http://localhost:8888","https":"http://localhost:8888"}' -v tmsConfigFile:<optional file> -v tmsCertValidation:CERT_VALIDATION -v tmsAutomaticCreationTestCases:AUTOMATIC_CREATION_TEST_CASES -v tmsAutomaticUpdationLinksToTestCases:AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES TEST_DIRECTORY
|
|
69
|
+
$ robot -v testit -v tmsUrl:URL -v tmsPrivateToken:USER_PRIVATE_TOKEN -v tmsProjectId:PROJECT_ID -v tmsConfigurationId:CONFIGURATION_ID -v tmsTestRunId:TEST_RUN_ID -v tmsTestRunName:TEST_RUN_NAME -v tmsAdapterMode:ADAPTER_MODE -v tmsProxy:'{"http":"http://localhost:8888","https":"http://localhost:8888"}' -v tmsConfigFile:<optional file> -v tmsCertValidation:CERT_VALIDATION -v tmsAutomaticCreationTestCases:AUTOMATIC_CREATION_TEST_CASES -v tmsAutomaticUpdationLinksToTestCases:AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES -v tmsImportRealtime:IMPORT_REALTIME TEST_DIRECTORY
|
|
89
70
|
```
|
|
90
71
|
|
|
91
72
|
If you want to enable debug mode then see [How to enable debug logging?](https://github.com/testit-tms/adapters-python/tree/main/testit-python-commons)
|
|
92
73
|
|
|
74
|
+
#### Run with filter
|
|
75
|
+
To create filter by autotests you can use the Test IT CLI (use adapterMode 1 for run with filter):
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
$ export TMS_TOKEN=<YOUR_TOKEN>
|
|
79
|
+
$ testit autotests_filter
|
|
80
|
+
--url https://tms.testit.software \
|
|
81
|
+
--configuration-id 5236eb3f-7c05-46f9-a609-dc0278896464 \
|
|
82
|
+
--testrun-id 6d4ac4b7-dd67-4805-b879-18da0b89d4a8 \
|
|
83
|
+
--framework robotframework \
|
|
84
|
+
--output tmp/filter.txt
|
|
85
|
+
|
|
86
|
+
$ robot -v testit -v tmsTestRunId:6d4ac4b7-dd67-4805-b879-18da0b89d4a8 -v tmsAdapterMode:1 $(cat tmp/filter.txt) TEST_DIRECTORY
|
|
87
|
+
```
|
|
88
|
+
|
|
93
89
|
### Tags
|
|
94
90
|
|
|
95
91
|
Tags can be used to specify information about autotest. Tags are space sensitive, use only one space between words.
|
|
@@ -2,7 +2,7 @@ from setuptools import find_packages, setup
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='testit-adapter-robotframework',
|
|
5
|
-
version='3.
|
|
5
|
+
version='3.4.0',
|
|
6
6
|
description='Robot Framework adapter for Test IT',
|
|
7
7
|
long_description=open('README.md', "r").read(),
|
|
8
8
|
long_description_content_type="text/markdown",
|
|
@@ -23,5 +23,5 @@ setup(
|
|
|
23
23
|
py_modules=['testit_adapter_robotframework'],
|
|
24
24
|
packages=find_packages(where='src'),
|
|
25
25
|
package_dir={'': 'src'},
|
|
26
|
-
install_requires=['attrs', 'robotframework', 'testit-python-commons==3.
|
|
26
|
+
install_requires=['attrs', 'robotframework', 'testit-python-commons==3.4.0']
|
|
27
27
|
)
|
|
@@ -42,7 +42,7 @@ class TMSLibrary:
|
|
|
42
42
|
if self.enabled:
|
|
43
43
|
cli_params = ["tmsUrl", "tmsPrivateToken", "tmsProjectId", "tmsConfigurationId", "tmsTestRunId",
|
|
44
44
|
"tmsProxy", "tmsTestRunName", "tmsAdapterMode", "tmsConfigFile", "tmsCertValidation",
|
|
45
|
-
"tmsAutomaticCreationTestCases", "tmsAutomaticUpdationLinksToTestCases"]
|
|
45
|
+
"tmsAutomaticCreationTestCases", "tmsAutomaticUpdationLinksToTestCases", "tmsImportRealtime"]
|
|
46
46
|
option = Option(**{param: built_in.get_variable_value(f'${{{param}}}', None) for param in cli_params})
|
|
47
47
|
self.adapter_manager = TmsPluginManager.get_adapter_manager(option)
|
|
48
48
|
pabot_index = built_in.get_variable_value('${PABOTQUEUEINDEX}', None)
|
|
@@ -71,6 +71,9 @@ class AutotestAdapter:
|
|
|
71
71
|
self.adapter_manager.write_test(
|
|
72
72
|
convert_executable_test_to_test_result_model(self.active_test.order()))
|
|
73
73
|
|
|
74
|
+
def close(self):
|
|
75
|
+
self.adapter_manager.write_tests()
|
|
76
|
+
|
|
74
77
|
|
|
75
78
|
class TestRunAdapter:
|
|
76
79
|
ROBOT_LISTENER_API_VERSION = 3
|
|
@@ -87,6 +87,7 @@ class Autotest(Default):
|
|
|
87
87
|
message = attrib(default="")
|
|
88
88
|
started_on = attrib(default=None)
|
|
89
89
|
completed_on = attrib(default=None)
|
|
90
|
+
externalKey = attrib(default=None)
|
|
90
91
|
|
|
91
92
|
step_depth = attrib(default=Factory(list))
|
|
92
93
|
result_depth = attrib(default=Factory(list))
|
|
@@ -94,6 +95,7 @@ class Autotest(Default):
|
|
|
94
95
|
def add_attributes(self, attrs):
|
|
95
96
|
self.title = attrs['originalname']
|
|
96
97
|
self.autoTestName = attrs['originalname']
|
|
98
|
+
self.externalKey = attrs['originalname']
|
|
97
99
|
self.description = attrs['doc']
|
|
98
100
|
self.template = attrs['template']
|
|
99
101
|
self.classname = attrs['longname'].split('.')[-2]
|
|
@@ -213,3 +215,5 @@ class Option:
|
|
|
213
215
|
self.set_automatic_creation_test_cases = kwargs.get('tmsAutomaticCreationTestCases', None)
|
|
214
216
|
if kwargs.get('tmsAutomaticUpdationLinksToTestCases', None):
|
|
215
217
|
self.set_automatic_updation_links_to_test_cases = kwargs.get('tmsAutomaticUpdationLinksToTestCases', None)
|
|
218
|
+
if kwargs.get('tmsImportRealtime', None):
|
|
219
|
+
self.set_import_realtime = kwargs.get('tmsImportRealtime', None)
|
|
@@ -36,7 +36,8 @@ def convert_executable_test_to_test_result_model(executable_test: dict) -> TestR
|
|
|
36
36
|
.set_result_links(executable_test['resultLinks'])\
|
|
37
37
|
.set_labels(executable_test['labels'])\
|
|
38
38
|
.set_work_item_ids(executable_test['workItemsID'])\
|
|
39
|
-
.set_message(executable_test['message'])
|
|
39
|
+
.set_message(executable_test['message'])\
|
|
40
|
+
.set_external_key(executable_test['externalKey'])
|
|
40
41
|
|
|
41
42
|
|
|
42
43
|
def step_results_to_autotest_steps_model(step_results: dict) -> typing.List[StepResult]:
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: testit-adapter-robotframework
|
|
3
|
+
Version: 3.4.0
|
|
4
|
+
Summary: Robot Framework adapter for Test IT
|
|
5
|
+
Home-page: https://github.com/testit-tms/adapters-python/
|
|
6
|
+
Author: Integration team
|
|
7
|
+
Author-email: integrations@testit.software
|
|
8
|
+
License: Apache-2.0
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
Requires-Dist: attrs
|
|
19
|
+
Requires-Dist: robotframework
|
|
20
|
+
Requires-Dist: testit-python-commons==3.4.0
|
|
21
|
+
|
|
1
22
|
# Test IT TMS adapter for Robot Framework
|
|
2
23
|

|
|
3
24
|
|
|
@@ -29,6 +50,7 @@ pip install testit-adapter-robotframework
|
|
|
29
50
|
| It enables/disables certificate validation (**It's optional**). Default value - true | certValidation | TMS_CERT_VALIDATION | tmsCertValidation |
|
|
30
51
|
| Mode of automatic creation test cases (**It's optional**). Default value - false. The adapter supports following modes:<br/>true - in this mode, the adapter will create a test case linked to the created autotest (not to the updated autotest)<br/>false - in this mode, the adapter will not create a test case | automaticCreationTestCases | TMS_AUTOMATIC_CREATION_TEST_CASES | tmsAutomaticCreationTestCases |
|
|
31
52
|
| Mode of automatic updation links to test cases (**It's optional**). Default value - false. The adapter supports following modes:<br/>true - in this mode, the adapter will update links to test cases<br/>false - in this mode, the adapter will not update link to test cases | automaticUpdationLinksToTestCases | TMS_AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES | tmsAutomaticUpdationLinksToTestCases |
|
|
53
|
+
| Mode of import type selection when launching autotests (**It's optional**). Default value - true. The adapter supports following modes:<br/>true - in this mode, the adapter will create/update each autotest in real time<br/>false - in this mode, the adapter will create/update multiple autotests | importRealtime | TMS_IMPORT_REALTIME | tmsImportRealtime |
|
|
32
54
|
| Url of proxy server (**It's optional**) | tmsProxy | TMS_PROXY | tmsProxy |
|
|
33
55
|
| Name of the configuration file If it is not provided, it is used default file name (**It's optional**) | - | TMS_CONFIG_FILE | tmsConfigFile |
|
|
34
56
|
|
|
@@ -47,6 +69,7 @@ adapterMode = ADAPTER_MODE
|
|
|
47
69
|
certValidation = CERT_VALIDATION
|
|
48
70
|
automaticCreationTestCases = AUTOMATIC_CREATION_TEST_CASES
|
|
49
71
|
automaticUpdationLinksToTestCases = AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES
|
|
72
|
+
importRealtime = IMPORT_REALTIME
|
|
50
73
|
|
|
51
74
|
# This section are optional. It enables debug mode.
|
|
52
75
|
[debug]
|
|
@@ -64,11 +87,26 @@ $ robot -v testit TEST_DIRECTORY
|
|
|
64
87
|
Launch with command-line parameters (parameters are case-insensitive):
|
|
65
88
|
|
|
66
89
|
```
|
|
67
|
-
$ robot -v testit -v tmsUrl:URL -v tmsPrivateToken:USER_PRIVATE_TOKEN -v tmsProjectId:PROJECT_ID -v tmsConfigurationId:CONFIGURATION_ID -v tmsTestRunId:TEST_RUN_ID -v tmsTestRunName:TEST_RUN_NAME -v tmsAdapterMode:ADAPTER_MODE -v tmsProxy:'{"http":"http://localhost:8888","https":"http://localhost:8888"}' -v tmsConfigFile:<optional file> -v tmsCertValidation:CERT_VALIDATION -v tmsAutomaticCreationTestCases:AUTOMATIC_CREATION_TEST_CASES -v tmsAutomaticUpdationLinksToTestCases:AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES TEST_DIRECTORY
|
|
90
|
+
$ robot -v testit -v tmsUrl:URL -v tmsPrivateToken:USER_PRIVATE_TOKEN -v tmsProjectId:PROJECT_ID -v tmsConfigurationId:CONFIGURATION_ID -v tmsTestRunId:TEST_RUN_ID -v tmsTestRunName:TEST_RUN_NAME -v tmsAdapterMode:ADAPTER_MODE -v tmsProxy:'{"http":"http://localhost:8888","https":"http://localhost:8888"}' -v tmsConfigFile:<optional file> -v tmsCertValidation:CERT_VALIDATION -v tmsAutomaticCreationTestCases:AUTOMATIC_CREATION_TEST_CASES -v tmsAutomaticUpdationLinksToTestCases:AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES -v tmsImportRealtime:IMPORT_REALTIME TEST_DIRECTORY
|
|
68
91
|
```
|
|
69
92
|
|
|
70
93
|
If you want to enable debug mode then see [How to enable debug logging?](https://github.com/testit-tms/adapters-python/tree/main/testit-python-commons)
|
|
71
94
|
|
|
95
|
+
#### Run with filter
|
|
96
|
+
To create filter by autotests you can use the Test IT CLI (use adapterMode 1 for run with filter):
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
$ export TMS_TOKEN=<YOUR_TOKEN>
|
|
100
|
+
$ testit autotests_filter
|
|
101
|
+
--url https://tms.testit.software \
|
|
102
|
+
--configuration-id 5236eb3f-7c05-46f9-a609-dc0278896464 \
|
|
103
|
+
--testrun-id 6d4ac4b7-dd67-4805-b879-18da0b89d4a8 \
|
|
104
|
+
--framework robotframework \
|
|
105
|
+
--output tmp/filter.txt
|
|
106
|
+
|
|
107
|
+
$ robot -v testit -v tmsTestRunId:6d4ac4b7-dd67-4805-b879-18da0b89d4a8 -v tmsAdapterMode:1 $(cat tmp/filter.txt) TEST_DIRECTORY
|
|
108
|
+
```
|
|
109
|
+
|
|
72
110
|
### Tags
|
|
73
111
|
|
|
74
112
|
Tags can be used to specify information about autotest. Tags are space sensitive, use only one space between words.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|