generated from IBM/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add etm_simple_updatetestresult.py showing using the OSLC APIs to cre…
…ate a new test result
- Loading branch information
Showing
6 changed files
with
408 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
## | ||
## © Copyright 2021- IBM Inc. All rights reserved | ||
# SPDX-License-Identifier: MIT | ||
## | ||
|
||
# this is a start of implementing the ETM REST API - it's very incomplete! | ||
|
||
import logging | ||
|
||
import lxml.etree as ET | ||
|
||
from . import rdfxml | ||
from . import utils | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
################################################################################################# | ||
|
||
class QM_REST_API_Mixin(): | ||
def __init__(self,*args,**kwargs): | ||
self.typesystem_loaded = False | ||
self.has_typesystem=True | ||
self.clear_typesystem() | ||
self.alias = None | ||
|
||
def get_alias( self ): | ||
if not self.alias: | ||
# GET the alias | ||
projects_x = self.execute_get_rdf_xml( f"service/com.ibm.rqm.integration.service.IIntegrationService/projects" ) | ||
self.alias = rdfxml.xmlrdf_get_resource_text( projects_x, f".//atom:entry/atom:title[.='{self.name}']/../atom:content/qm_ns2:project/qm_ns2:alias" ) | ||
# print( f"{self.alias=}" ) | ||
return self.alias | ||
|
||
def find_testplan( self, name ): | ||
pass | ||
|
||
def find_testcase( self, name ): | ||
pass | ||
|
||
def find_testexecturionrecord( self, name ): | ||
pass | ||
|
Oops, something went wrong.