Page 1 of 1

problem with GetTestPlanByName

Posted: Wed Feb 23, 2011 2:03 pm
by aborraz
Hello:

I have a short problem with the method getTestPlanByName.

I call it from my application as follows:

Code: Select all

            TestPlan tplan = null; 
            try
            {
                tplan = tl.GetTestPlanByName("N2A", "Plan de Test N2A"); 
            }
            catch (TestLinkException ex)
            {
                MessageBox.Show("Error retrieving TestPlan!!!");
            }
I receive an error indicating that there is no Plan Names on this project.

If I perform a search on my database I get the TestPlan, but tesproject_id is not the ID of my TestProject. It's and Id of a node with value 7 (the id of my tesproject is 74).

What I'm doing wrong??

Thanks in advance.