Quality Center / ALM Practitioners Forum
cancel

Finding Folders and cycles from Releases section in ALM?

SOLVED
Go to solution
Highlighted
Praveen_ji
Valued Contributor.

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.

 

2 REPLIES
Ramesh35
Honored Contributor.
Solution

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

 

 

Praveen_ji
Valued Contributor.

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

Thanks alot Ramesh..