TestLink GUI change

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
emosms
TestLink user
Posts: 2
Joined: Mon Apr 15, 2013 7:44 pm

TestLink GUI change

Post by emosms »

Hi,
I saw there has been a similar closed topic.
Now, I spent a weekend digging the source code of testlink, with a minimall success.
---
What I am trying to achieve is add an extra field into a testcase step.
I dont mean a custom field, but and extra field per each testcase step.
---
Up till now I have found the view element inc_steps_tpl, where I have added a custom header and an extra cell in a row.
gui/templates/testcases/ inc_steps.tpl
here I found the loop populating the case steps table:

Code: Select all

{foreach from=$steps item=step_info}
        <td {if $edit_enabled} style="cursor:pointer;" onclick="launchEditStep({$step_info.id});" {/if}>{$step_info.actions}</td>
        <td {if $edit_enabled} style="cursor:pointer;" onclick="launchEditStep({$step_info.id});" {/if}>{$step_info.expected_results}</td>
//add custom <td></> here.
So, I did searched for the associative array $steps using notepad++ in the whole testlink directory, got many hits, but I couldn't quite trace it..
Is it inside some global, like $TLcnf, init_args...
Quite unpleasant to get which file includes the aforementioned smarty inc_steps.tpl and what is going on with the variable
---
On other end of the wire I found the db table 'tcsteps', but I cannot find the associated DAO controller, database object class, script with random sql queries, whatever...
---
Any hint, architecture diagram, class diagram, dataflow diagram, whatever will be appreciated.
I have basic java programming skills, not much web, and '0' php/smarty experience.
That is why maybe I find dfificult to track the variables I need to change. But the application is not very small as well :).

Best Regards
emosms
TestLink user
Posts: 2
Joined: Mon Apr 15, 2013 7:44 pm

Re: TestLink GUI change

Post by emosms »

Enterprise Architect ! :)
TLink has a pretty nice OO design.
Still, not a small app to remember the structure of it...
Post Reply