Quantcast
Channel: All Quality Center / ALM Practitioners Forum posts
Viewing all articles
Browse latest Browse all 14708

Re: Upload Attachement to QC using OTA with Java

$
0
0

Hi Azar,

 

I am not able to change the status of the test cases. can you please guide me.

 

IBaseFactory obj2 = testSet.tsTestFactory().queryInterface(IBaseFactory.class);
                IList tstestlist = obj2.newList("");
                boolean testcaseExist = false;
                ITSTest testCase = null;
                for(Com4jObject obj3:tstestlist)
                {
                ITSTest tstest = obj3.queryInterface(ITSTest.class);
                System.out.println(tstest.name());
                String strQCTestCaseName = tstest.name().split("]")[1];
                if(strTestCasename.equalsIgnoreCase(strQCTestCaseName)){
                testcaseExist = true;
                testCase = tstest;
                
                
                IRunFactory runfactory = tstest.runFactory().queryInterface(IRunFactory.class);
                IRun run=runfactory.addItem("RunNew2").queryInterface(IRun.class);
                run.status("Passed");


Viewing all articles
Browse latest Browse all 14708

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>