robotframework-robotlog2db 1.4.0__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.
Files changed (17) hide show
  1. {robotframework-robotlog2db-1.4.0 → robotframework-robotlog2db-1.5.0}/PKG-INFO +3 -1
  2. {robotframework-robotlog2db-1.4.0 → robotframework-robotlog2db-1.5.0}/README.rst +2 -0
  3. {robotframework-robotlog2db-1.4.0 → robotframework-robotlog2db-1.5.0}/RobotLog2DB/RobotLog2DB.pdf +0 -0
  4. {robotframework-robotlog2db-1.4.0 → robotframework-robotlog2db-1.5.0}/RobotLog2DB/robotlog2db.py +4 -3
  5. {robotframework-robotlog2db-1.4.0 → robotframework-robotlog2db-1.5.0}/RobotLog2DB/version.py +2 -2
  6. {robotframework-robotlog2db-1.4.0 → robotframework-robotlog2db-1.5.0}/RobotLog2DB/xsd/robot.xsd +1 -0
  7. {robotframework-robotlog2db-1.4.0 → robotframework-robotlog2db-1.5.0}/robotframework_robotlog2db.egg-info/PKG-INFO +3 -1
  8. {robotframework-robotlog2db-1.4.0 → robotframework-robotlog2db-1.5.0}/robotframework_robotlog2db.egg-info/SOURCES.txt +0 -1
  9. {robotframework-robotlog2db-1.4.0 → robotframework-robotlog2db-1.5.0}/robotframework_robotlog2db.egg-info/requires.txt +1 -1
  10. robotframework-robotlog2db-1.4.0/RobotLog2DB/CDataBase.py +0 -1502
  11. {robotframework-robotlog2db-1.4.0 → robotframework-robotlog2db-1.5.0}/RobotLog2DB/__init__.py +0 -0
  12. {robotframework-robotlog2db-1.4.0 → robotframework-robotlog2db-1.5.0}/RobotLog2DB/__main__.py +0 -0
  13. {robotframework-robotlog2db-1.4.0 → robotframework-robotlog2db-1.5.0}/robotframework_robotlog2db.egg-info/dependency_links.txt +0 -0
  14. {robotframework-robotlog2db-1.4.0 → robotframework-robotlog2db-1.5.0}/robotframework_robotlog2db.egg-info/entry_points.txt +0 -0
  15. {robotframework-robotlog2db-1.4.0 → robotframework-robotlog2db-1.5.0}/robotframework_robotlog2db.egg-info/top_level.txt +0 -0
  16. {robotframework-robotlog2db-1.4.0 → robotframework-robotlog2db-1.5.0}/setup.cfg +0 -0
  17. {robotframework-robotlog2db-1.4.0 → 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.4.0
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
@@ -52,7 +52,7 @@ import json
52
52
 
53
53
  from lxml import etree
54
54
  from robot.api import ExecutionResult
55
- from RobotLog2DB.CDataBase import CDataBase
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=CDataBase()
1233
+ db = DBAccessFactory().create(args.interface)
1233
1234
  try:
1234
1235
  db.connect(args.server,
1235
1236
  args.user,
@@ -18,5 +18,5 @@
18
18
  #
19
19
  # Version and date of RobotLog2DB
20
20
  #
21
- VERSION = "1.4.0"
22
- VERSION_DATE = "19.09.2023"
21
+ VERSION = "1.5.0"
22
+ VERSION_DATE = "22.04.2024"
@@ -295,6 +295,7 @@
295
295
  <xs:enumeration value="TRACE" />
296
296
  <xs:enumeration value="DEBUG" />
297
297
  <xs:enumeration value="INFO" />
298
+ <xs:enumeration value="USER" />
298
299
  <xs:enumeration value="WARN" />
299
300
  <xs:enumeration value="ERROR" />
300
301
  <xs:enumeration value="FAIL" />
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: robotframework-robotlog2db
3
- Version: 1.4.0
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:
@@ -1,6 +1,5 @@
1
1
  README.rst
2
2
  setup.py
3
- RobotLog2DB/CDataBase.py
4
3
  RobotLog2DB/RobotLog2DB.pdf
5
4
  RobotLog2DB/__init__.py
6
5
  RobotLog2DB/__main__.py
@@ -1,4 +1,4 @@
1
1
  colorama
2
- mysqlclient
3
2
  robotframework
4
3
  lxml
4
+ TestResultDBAccess