It's all about the answers!

Ask a question

how to create a testcase?

george claud (12811) | asked Jul 06 '14, 11:57 a.m.
I am still stuck at how to create  a new testcase using C# in IBM CLM Quality Manager.

I read documentation that i can use :Rational Quality Manager Reportable REST API using a POST:

Generated ID:

I tried to figure it out the fields i need in c# something like this:
            HttpWebRequest documentGet = (HttpWebRequest)WebRequest.Create(url);//<singleprojectFeedUrl> ?
            documentGet.Method = "POST";
            documentGet.ContentType = "application/xml ";//
            documentGet.Referer = "https://timo-pcvirtual:9433/qm";
            documentGet.Headers.Set("OSLC-Core-Version", "2.0");//do i need this ?
            documentGet.Timeout = 300000;
I guess after i send this  i need to get from response "Content-Location" header?
Its not clear also how to create an xml with the testcase info i want to send. I searched the net i found a schema of the document i need to send ... (ps i am an embedded sw developer so these things are pretty new for me -_-)

Thank you very much for your help...I appreciate your time spent to help me with this :(

One answer

permanent link
Reshma Ratnani (1.1k1) | answered Jul 07 '14, 1:35 a.m.
Hi George,

We have a opensource Java based API utility which you refer. You can have a look at the source code . Link for it is

The syntax for a sample testcase xml is as below

<?xml version="1.0" encoding="UTF-8"?>
<ns2:testcase xmlns:ns2="" xmlns:ns1="" xmlns:ns3="" xmlns:ns4="" xmlns:ns5="" xmlns:ns6="" xmlns:ns7="" xmlns:ns8="" xmlns:ns9="" xmlns:ns10="" xmlns:ns11="" xmlns:ns12="" xmlns:ns13="" xmlns:ns14="" xmlns:ns15="" xmlns:ns16="" xmlns:ns17="" xmlns:ns19="" xmlns:ns20="">
    <ns3:title>Organizations can Apply</ns3:title>
  <ns2:category value="Developer Test" term="Test Phase"/>
  <ns2:testscript href="https://localhost:9444/qm/service/"/>

You can even create a testcase in RQM UI. Then do a GET of that testcase and get the syntax for testcase xml


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.