Page 1 of 1

find $tcase_id in gui?

Posted: Fri Oct 23, 2009 10:00 am
by thomasi.derycke
In a project that I am working on we are automating lots of testcases described in testlink (v 1.8.3).

execution results will be automaticaly pushed back using de xml-rpc.

Therefor we need at least the testplan_id and the testcase_id.
Both are not directly visible in the GUI when going to the execute screen.

However firebug allows you to determin the real testcase_id when clicking a testcase in the tree of execution screen:

testlink-1.8.3/lib/execute/execSetResults.php?version_id=30&level=testcase&id=9&build_id=20&include_unassigned=0
In this example the testcase id = 9 (and that is the one we need for de xml-rpc call) but in the gui we see:
Test Case ID TC--3 :: Version: 3

My question now:
Is there an easy way to find out the testcase id? and testplan id? I don't want to ask the scripters to use firebug to find out the testcase id

Posted: Wed Nov 18, 2009 10:55 pm
by fman
you can get testplan id from TL GUI on page that display testplans there is a icon (a brick) that allows you to display internal ID.

We are trying to avoid using INTERNAL TC ID, and all API calls (at least on 1.9) uses EXTERNAL TC ID.
you can get info you need doing some queries on tables:
nodes_hierarchy, tcversions