robotframework-robotlog2rqm 1.7.0__py3-none-any.whl → 1.7.1__py3-none-any.whl

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.
RobotLog2RQM/CRQM.py CHANGED
@@ -2125,11 +2125,21 @@ Link list of test cases to provided testplan ID.
2125
2125
  # use namespace mapping from root for access response XML
2126
2126
  root = oTree.getroot()
2127
2127
 
2128
+ # Collect existing linked TC IDs to avoid duplication
2129
+ lExistingTCIDs = []
2130
+ NS_QM = f"{{{self.NAMESPACES['ns2']}}}"
2131
+ for oTC in root.findall(f'{NS_QM}testcase', root.nsmap):
2132
+ href = oTC.get('href')
2133
+ if href:
2134
+ sTCID = href.split('/')[-1]
2135
+ lExistingTCIDs.append(sTCID)
2136
+
2128
2137
  for sTCID in lTestcases:
2129
- sTestcaseURL = self.integrationURL('testcase', sTCID)
2130
- oTC = etree.Element('{http://jazz.net/xmlns/alm/qm/v0.1/}testcase', nsmap=root.nsmap)
2131
- oTC.set('href', sTestcaseURL)
2132
- root.append(oTC)
2138
+ if sTCID not in lExistingTCIDs:
2139
+ sTestcaseURL = self.integrationURL('testcase', sTCID)
2140
+ oTC = etree.Element(f'{NS_QM}testcase', nsmap=root.nsmap)
2141
+ oTC.set('href', sTestcaseURL)
2142
+ root.append(oTC)
2133
2143
 
2134
2144
  # Update test plan data with linked testcases and PUT to RQM
2135
2145
  resUpdateTestplan = self.updateResourceByID('testplan', testplanID, etree.tostring(oTree))
@@ -2190,13 +2200,26 @@ Link list of test cases to provided testsuite ID
2190
2200
  root = oTree.getroot()
2191
2201
 
2192
2202
  oSuiteElems = oTree.find('ns2:suiteelements', root.nsmap)
2203
+ # Collect existing linked TC IDs to avoid duplication
2204
+ lExistingTCIDs = []
2205
+ NS_QM = f"{{{self.NAMESPACES['ns2']}}}"
2206
+ for oElem in oSuiteElems.findall(f'{NS_QM}suiteelement', root.nsmap):
2207
+ oTC = oElem.find(f'{NS_QM}testcase', root.nsmap)
2208
+ if oTC is not None:
2209
+ href = oTC.get('href')
2210
+ if href:
2211
+ sTCID = href.split('/')[-1]
2212
+ lExistingTCIDs.append(sTCID)
2213
+
2193
2214
  for sTCID in lTestcases:
2194
- sTestcaseURL = self.integrationURL('testcase', sTCID)
2195
- oTC = etree.Element('{http://jazz.net/xmlns/alm/qm/v0.1/}testcase', nsmap=root.nsmap)
2196
- oTC.set('href', sTestcaseURL)
2197
- oElem = etree.Element('{http://jazz.net/xmlns/alm/qm/v0.1/}suiteelement', nsmap=root.nsmap)
2198
- oElem.append(oTC)
2199
- oSuiteElems.append(oElem)
2215
+ if sTCID not in lExistingTCIDs:
2216
+ sTestcaseURL = self.integrationURL('testcase', sTCID)
2217
+ oTC = etree.Element(f'{NS_QM}testcase', nsmap=root.nsmap)
2218
+ oTC.set('href', sTestcaseURL)
2219
+ oElem = etree.Element(f'{NS_QM}suiteelement', nsmap=root.nsmap)
2220
+ oElem.append(oTC)
2221
+ oSuiteElems.append(oElem)
2222
+
2200
2223
  root.append(oSuiteElems)
2201
2224
 
2202
2225
  # Update test suite data with linked testcases and PUT to RQM
Binary file
RobotLog2RQM/version.py CHANGED
@@ -18,5 +18,5 @@
18
18
  #
19
19
  # Version and date of RobotLog2RQM
20
20
  #
21
- VERSION = "1.7.0"
22
- VERSION_DATE = "07.01.2026"
21
+ VERSION = "1.7.1"
22
+ VERSION_DATE = "03.02.2026"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: robotframework-robotlog2rqm
3
- Version: 1.7.0
3
+ Version: 1.7.1
4
4
  Summary: Imports robot result(s) to IBM Rational Quality Manager (RQM)
5
5
  Home-page: https://github.com/test-fullautomation/robotframework-robotlog2rqm
6
6
  Author: Tran Duy Ngoan
@@ -1,11 +1,11 @@
1
- RobotLog2RQM/CRQM.py,sha256=NxFbIKvTOepkdNmv0V9aQCaU2jSGhuHO707XTglMF_A,69357
2
- RobotLog2RQM/RobotLog2RQM.pdf,sha256=juRMokH0l5nlXxS4j3UYWOZSwzJ6e3PbvXGor1dDeoA,359822
1
+ RobotLog2RQM/CRQM.py,sha256=i7qYWz0AZ3SYouulcQCUYQxaVSrCiO332mFSGRiap4s,70212
2
+ RobotLog2RQM/RobotLog2RQM.pdf,sha256=APfNVVMMOvRNmv-siL5IcYFSna4eL1AfhGpLFnIXCsc,359466
3
3
  RobotLog2RQM/__init__.py,sha256=YKDTJjDsnQkr5X-gjjO8opwKUVKm6kc8sIUpURYMk48,596
4
4
  RobotLog2RQM/__main__.py,sha256=JabttEncy80antJWeGVmjoXyiF1DyXxkxdW4xLuHzT0,681
5
5
  RobotLog2RQM/logger.py,sha256=FnZZqssOcrF5yK6wxkgifScoQcFGrqrvzLvXWY3V-9A,4252
6
6
  RobotLog2RQM/robotlog2rqm.py,sha256=zX8ibJqeQTPwtRF6zX-qHtT1d6jj1EI90vpaUL77FEM,30161
7
7
  RobotLog2RQM/rqmtool.py,sha256=Lz4KSP3cDhrurbqdI1KHtCB-5a8-_oZIGidkpMpy4Tg,12400
8
- RobotLog2RQM/version.py,sha256=oVbL29-7ny1ggCEV0zCBPuQgsLryCuPzFd5UnzXAU5M,916
8
+ RobotLog2RQM/version.py,sha256=l5tG05S0H-JDPf4XJmwAS6UqzQyZVKP00TE0tb1A6Rk,916
9
9
  RobotLog2RQM/RQM_templates/buildrecord.xml,sha256=uGot7pNOjPR8do0JsJi0Lz3OCU9NMhODRd428QgvHh4,1498
10
10
  RobotLog2RQM/RQM_templates/configuration.xml,sha256=NrFDv51fuGhgeMiZuRhQ5q_UJ0u_pWzdxisIF5AJs74,1378
11
11
  RobotLog2RQM/RQM_templates/executionresult.xml,sha256=WTp4qDk29peBc0ll6GHVXX_kF_YBsOVjy9vBzoz7_2k,2160
@@ -14,9 +14,9 @@ RobotLog2RQM/RQM_templates/suiteexecutionrecord.xml,sha256=9GAs2WqZMkFJSNEZULm9B
14
14
  RobotLog2RQM/RQM_templates/testcase.xml,sha256=zovFKj-37QHn2S8mMA_9RnAJ3zBmDJkJj31yelsnFFI,2167
15
15
  RobotLog2RQM/RQM_templates/testsuite.xml,sha256=r2ijEsyPoE7qzCtUxgIHDOEcqUveDN4SMf9HSE9b0ZU,1326
16
16
  RobotLog2RQM/RQM_templates/testsuitelog.xml,sha256=l-NlaCyk6Ben76PElXKOHfMlEvyQ-e9MOZ6-F9HvwDQ,1920
17
- robotframework_robotlog2rqm-1.7.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
18
- robotframework_robotlog2rqm-1.7.0.dist-info/METADATA,sha256=zvP30zO-1p_yQhu3Hne9TOLGu8KU0Ucj-RmsdctwrsI,12028
19
- robotframework_robotlog2rqm-1.7.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
20
- robotframework_robotlog2rqm-1.7.0.dist-info/entry_points.txt,sha256=yLoNhxm2lfj3FxMx3Orct8db4qkPLII8u241GAH6BB0,111
21
- robotframework_robotlog2rqm-1.7.0.dist-info/top_level.txt,sha256=jb_Gt6W44FoOLtGfBe7RzqCLaquhihkEWvSI1zjXDHc,13
22
- robotframework_robotlog2rqm-1.7.0.dist-info/RECORD,,
17
+ robotframework_robotlog2rqm-1.7.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
18
+ robotframework_robotlog2rqm-1.7.1.dist-info/METADATA,sha256=mbrlE1JWnF5yf70nN9y7QrZ88oz0Ps5mpcnrNLCCfic,12028
19
+ robotframework_robotlog2rqm-1.7.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
20
+ robotframework_robotlog2rqm-1.7.1.dist-info/entry_points.txt,sha256=yLoNhxm2lfj3FxMx3Orct8db4qkPLII8u241GAH6BB0,111
21
+ robotframework_robotlog2rqm-1.7.1.dist-info/top_level.txt,sha256=jb_Gt6W44FoOLtGfBe7RzqCLaquhihkEWvSI1zjXDHc,13
22
+ robotframework_robotlog2rqm-1.7.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5