Finding Folders and cycles from Releases section in ALM? (294 Views)
Reply
Occasional Advisor
Praveen_ji
Posts: 16
Registered: ‎06-16-2014
Message 1 of 3 (294 Views)
Accepted Solution

Finding Folders and cycles from Releases section in ALM?

Hi, 

 

I have successfully retrived all the fields from Testsets and Defects sections by creating object in the following way. (By using C#)

 

TDConnection qcc = qccTDConnection;

BugFactory bf = (BugFactory)qcc.BugFactory;
List bugs = (List)bf.NewList(bf.Filter.Text);

 

foreach (TDAPIOLELib.Bug bg in bugs)
{
//store that value in to dataset

status = Convert.ToString(bg["BG_STATUS"]);
assignTo = bg.AssignedTo.ToString();
priority = Convert.ToString(bg["BG_PRIORITY"]); // PRIORITY VERY HIGH
}

 

This is fine ,But now i want to get the fields from Releses (cycles, folder... ). Here i tried like below but it couldnt work.

 

 

ReleaseFolderfactory rel = (Release)qcc.ReleaseFolderFactory;
List listRel = (List)rel.NewList(rel.Filter.Text);

foreach(TDAPIOLELib.Release rl in listRel)

{

string PlanStartDate = Convert.ToString(rl["RCYC_START_DATE"]);
string PlanEndDate = Convert.ToString(rl["RCYC_START_DATE"]);

 

}

 

Any one help me to solve this.. 

Thanks in advance.

 

Valued Contributor
Ramesh35
Posts: 43
Registered: ‎12-17-2013
Message 2 of 3 (262 Views)

Re: Finding Folders and cycles from Releases section in ALM?

 

Praveen,

 

check the below code hope it will help.

 

ReleaseFactory rel = qcc.ReleaseFactory;
            List listRel = (List)rel.NewList(rel.Filter.Text);

            foreach (TDAPIOLELib.Release rl in listRel)
            {

                string RelStartDate = Convert.ToString(rl.StartDate);
                string RelEndDate = Convert.ToString(rl.EndDate);
                CycleFactory CyF = rl.CycleFactory;

                 foreach (TDAPIOLELib.Cycle Cyc in CyF.NewList(""))
                    {
                        string CycleStartDate = Convert.ToString(Cyc.StartDate);
                        string CycleEndDate = Convert.ToString(Cyc.EndDate);

                    }
                
                

            }

 

 

 Note - I have not used the ReleaseFolder.

 

Regards,

Ramesh

 

 

Occasional Advisor
Praveen_ji
Posts: 16
Registered: ‎06-16-2014
Message 3 of 3 (251 Views)

Re: Finding Folders and cycles from Releases section in ALM?

Thanks alot Ramesh.. 

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.