It's all about the answers!

Ask a question

How to use Integration Services from Python to access SaaS

David Sedar (287) | asked Nov 23 '23, 11:50 a.m.
edited Nov 26 '23, 6:09 a.m.

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 =''
x = requests.get(url,params ={'j_username':test_userID,'j_password':test_userPW},stream=True, timeout=5 )

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">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=10">

<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;


<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
                net = {jazz: {ajax: {}}};
                net.jazz.ajax._contextRoot = "/qm";
                net.jazz.ajax._webuiPrefix = "/web/";

        <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";

        <script type="text/javascript">
        / <![CDATA[ /
                require(["dojo/ready", "dojo/parser", "dijit/registry", "dijit/Dialog"], function(ready, parser, registry){
        / ]]> /

One answer

permanent link
Ralph Schoon (63.1k33646) | answered Nov 26 '23, 8:32 a.m.
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:

Your answer

Register or 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.