robotframework-robotlog2db 1.4.1__tar.gz → 1.5.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.
- {robotframework-robotlog2db-1.4.1 → robotframework-robotlog2db-1.5.0}/PKG-INFO +3 -1
- {robotframework-robotlog2db-1.4.1 → robotframework-robotlog2db-1.5.0}/README.rst +2 -0
- {robotframework-robotlog2db-1.4.1 → robotframework-robotlog2db-1.5.0}/RobotLog2DB/RobotLog2DB.pdf +0 -0
- {robotframework-robotlog2db-1.4.1 → robotframework-robotlog2db-1.5.0}/RobotLog2DB/robotlog2db.py +4 -3
- {robotframework-robotlog2db-1.4.1 → robotframework-robotlog2db-1.5.0}/RobotLog2DB/version.py +2 -2
- {robotframework-robotlog2db-1.4.1 → robotframework-robotlog2db-1.5.0}/robotframework_robotlog2db.egg-info/PKG-INFO +3 -1
- {robotframework-robotlog2db-1.4.1 → robotframework-robotlog2db-1.5.0}/robotframework_robotlog2db.egg-info/SOURCES.txt +0 -1
- {robotframework-robotlog2db-1.4.1 → robotframework-robotlog2db-1.5.0}/robotframework_robotlog2db.egg-info/requires.txt +1 -1
- robotframework-robotlog2db-1.4.1/RobotLog2DB/CDataBase.py +0 -1502
- {robotframework-robotlog2db-1.4.1 → robotframework-robotlog2db-1.5.0}/RobotLog2DB/__init__.py +0 -0
- {robotframework-robotlog2db-1.4.1 → robotframework-robotlog2db-1.5.0}/RobotLog2DB/__main__.py +0 -0
- {robotframework-robotlog2db-1.4.1 → robotframework-robotlog2db-1.5.0}/RobotLog2DB/xsd/robot.xsd +0 -0
- {robotframework-robotlog2db-1.4.1 → robotframework-robotlog2db-1.5.0}/robotframework_robotlog2db.egg-info/dependency_links.txt +0 -0
- {robotframework-robotlog2db-1.4.1 → robotframework-robotlog2db-1.5.0}/robotframework_robotlog2db.egg-info/entry_points.txt +0 -0
- {robotframework-robotlog2db-1.4.1 → robotframework-robotlog2db-1.5.0}/robotframework_robotlog2db.egg-info/top_level.txt +0 -0
- {robotframework-robotlog2db-1.4.1 → robotframework-robotlog2db-1.5.0}/setup.cfg +0 -0
- {robotframework-robotlog2db-1.4.1 → robotframework-robotlog2db-1.5.0}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: robotframework-robotlog2db
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.5.0
|
|
4
4
|
Summary: Imports robot result(s) to TestResultWebApp database
|
|
5
5
|
Home-page: https://github.com/test-fullautomation/robotframework-robotlog2db
|
|
6
6
|
Author: Tran Duy Ngoan
|
|
@@ -160,6 +160,8 @@ The usage should be showed as below:
|
|
|
160
160
|
--variant VARIANT variant name to be set for this import.
|
|
161
161
|
--versions VERSIONS metadata: Versions (Software;Hardware;Test) to be set for this import (semicolon separated).
|
|
162
162
|
--config CONFIG configuration json file for component mapping information.
|
|
163
|
+
--interface {db,rest}
|
|
164
|
+
database access interface.
|
|
163
165
|
|
|
164
166
|
The below command is simple usage with all required arguments to import
|
|
165
167
|
Robot Framework results into TestResultWebApp\'s database:
|
|
@@ -133,6 +133,8 @@ The usage should be showed as below:
|
|
|
133
133
|
--variant VARIANT variant name to be set for this import.
|
|
134
134
|
--versions VERSIONS metadata: Versions (Software;Hardware;Test) to be set for this import (semicolon separated).
|
|
135
135
|
--config CONFIG configuration json file for component mapping information.
|
|
136
|
+
--interface {db,rest}
|
|
137
|
+
database access interface.
|
|
136
138
|
|
|
137
139
|
|
|
138
140
|
The below command is simple usage with all required arguments to import
|
{robotframework-robotlog2db-1.4.1 → robotframework-robotlog2db-1.5.0}/RobotLog2DB/RobotLog2DB.pdf
RENAMED
|
Binary file
|
{robotframework-robotlog2db-1.4.1 → robotframework-robotlog2db-1.5.0}/RobotLog2DB/robotlog2db.py
RENAMED
|
@@ -52,7 +52,7 @@ import json
|
|
|
52
52
|
|
|
53
53
|
from lxml import etree
|
|
54
54
|
from robot.api import ExecutionResult
|
|
55
|
-
from
|
|
55
|
+
from TestResultDBAccess import DBAccessFactory
|
|
56
56
|
from RobotLog2DB.version import VERSION, VERSION_DATE
|
|
57
57
|
|
|
58
58
|
DRESULT_MAPPING = {
|
|
@@ -688,6 +688,7 @@ Avalable arguments in command line:
|
|
|
688
688
|
help='metadata: Versions (Software;Hardware;Test) to be set for this import (semicolon separated).')
|
|
689
689
|
cmdParser.add_argument('--config', type=str,
|
|
690
690
|
help='configuration json file for component mapping information.')
|
|
691
|
+
cmdParser.add_argument('--interface', choices=['db', 'rest'], default='db', help='database access interface.')
|
|
691
692
|
|
|
692
693
|
return cmdParser.parse_args()
|
|
693
694
|
|
|
@@ -1029,7 +1030,7 @@ Process test case data and create new test case record.
|
|
|
1029
1030
|
_tbl_case_result_return = 11
|
|
1030
1031
|
_tbl_case_counter_resets = 0
|
|
1031
1032
|
try:
|
|
1032
|
-
_tbl_case_lastlog = base64.b64encode(test.message.encode())
|
|
1033
|
+
_tbl_case_lastlog = str(base64.b64encode(test.message.encode()), encoding="utf-8")
|
|
1033
1034
|
except:
|
|
1034
1035
|
_tbl_case_lastlog = None
|
|
1035
1036
|
_tbl_test_result_id = test_result_id
|
|
@@ -1229,7 +1230,7 @@ Flow to import Robot results to database:
|
|
|
1229
1230
|
fatal_error=True)
|
|
1230
1231
|
|
|
1231
1232
|
# 3. Connect to database
|
|
1232
|
-
db=
|
|
1233
|
+
db = DBAccessFactory().create(args.interface)
|
|
1233
1234
|
try:
|
|
1234
1235
|
db.connect(args.server,
|
|
1235
1236
|
args.user,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: robotframework-robotlog2db
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.5.0
|
|
4
4
|
Summary: Imports robot result(s) to TestResultWebApp database
|
|
5
5
|
Home-page: https://github.com/test-fullautomation/robotframework-robotlog2db
|
|
6
6
|
Author: Tran Duy Ngoan
|
|
@@ -160,6 +160,8 @@ The usage should be showed as below:
|
|
|
160
160
|
--variant VARIANT variant name to be set for this import.
|
|
161
161
|
--versions VERSIONS metadata: Versions (Software;Hardware;Test) to be set for this import (semicolon separated).
|
|
162
162
|
--config CONFIG configuration json file for component mapping information.
|
|
163
|
+
--interface {db,rest}
|
|
164
|
+
database access interface.
|
|
163
165
|
|
|
164
166
|
The below command is simple usage with all required arguments to import
|
|
165
167
|
Robot Framework results into TestResultWebApp\'s database:
|