Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to use Integration Services from Python to access SaaS

SaaS V7.0.2 ETM

 According to the best information I can find on how to obtain the custom attributes of a Test Case, the following should work in Python:
If I try:
url ='https://telent-dng.clm.ibmcloud.com/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TPCMS+inc+RemoteSecure/testcase/urn:com.ibm.rqm:testcase:10258'
x = requests.get(url,params ={'j_username':test_userID,'j_password':test_userPW},stream=True, timeout=5 )
print(x.status_code)
print(x.text)

then the responses are: 
200 - confirming the url and login is correct,
but then I just get the the IBM standard javascript:   How do I get to 'see' the Testcase 10258 expressed as xml ??

<!DOCTYPE html>
<!--
  Licensed Materials - Property of IBM
  (c) Copyright IBM Corporation 2005, 2021. All Rights Reserved.

  Note to U.S. Government Users Restricted Rights:
  Use, duplication or disclosure restricted by GSA ADP Schedule
  Contract with IBM Corp.
-->

<html  lang="en-us">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=10">
<title></title>

<link type="text/css" rel="stylesheet" href="/qm/web/_style/?include=A~&etag=Hx5ts47ItPL_en_US&_proxyURL=%2Fqm&ss=YhbKt">
<link rel="shortcut icon" href="/qm/web/net.jazz.ajax/jazz.ico">

<style type="text/css">
#net-jazz-ajax-NoScriptMessage {
        width: 100%;
        color: #D0D0D0;
        font-size: 2em;
        text-align: center;
        position: absolute;
        top: 1%;
        z-index: 999;
}
</style>

</head>

<body class="claro">
        <noscript><div id="net-jazz-ajax-NoScriptMessage">Javascript is either disabled or not available in your Browser</div></noscript>
        <div id="net-jazz-ajax-InitialLoadMessage">Loading...</div>
        <div id="net-jazz-ajax-WorkbenchRoot"></div>

        <script type="text/javascript">
                djConfig = {
                        isDebug: false,
                        layout: "",
                        usePlainJson: true,
                        baseUrl: "/qm/web/dojo/",
                        locale: "en-us",
                        localizationComplete: true
                };
                /null/
                net = {jazz: {ajax: {}}};
                net.jazz.ajax._contextRoot = "/qm";
                net.jazz.ajax._webuiPrefix = "/web/";
        </script>

        <script type="text/javascript" src="/qm/web/_js/?include=A~&etag=Hx5ts47ItPL_en_US&_proxyURL=%2Fqm&ss=YhbKt&locale=en-us"></script>        

<script type="text/javascript">
require("dojo/main").getObject('jazz.core.loader', true)._serverStartup="YhbKt";
require("dojo/main").getObject('jazz.core.loader',true)._loaded=["A"];
</script>


        <script type="text/javascript">
        / <![CDATA[ /
                require(["dojo/ready", "dojo/parser", "dijit/registry", "dijit/Dialog"], function(ready, parser, registry){
                     ready(function(){
                        net.jazz.ajax.ui.PlatformUI.createAndRunWorkbench("net.jazz.web.app.authrequired");
                     });
                });
        / ]]> /
        </script>
</body>
</html>

0 votes



One answer

Permanent link
What you see basically means you are not logged in and your request failed. That is the reason why you got redirected to the page you see.

The best approach is usually to try using a browser or a REST tool. When that works automate it.

You can find some information about using the REST APIs including example python code in this post series: https://rsjazz.wordpress.com/2021/10/15/elm-authentication/

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,023
× 158

Question asked: Nov 23 '23, 11:50 a.m.

Question was seen: 1,481 times

Last updated: Nov 26 '23, 8:32 a.m.

Confirmation Cancel Confirm