Skip to content

Commit 50e0b89

Browse files
committed
refactoring for checking automation
1 parent efcdef6 commit 50e0b89

2 files changed

Lines changed: 24 additions & 15 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{*
2+
TestLink Open Source Project - http://testlink.sourceforge.net/
3+
4+
@filesource planView.labels.tpl
5+
6+
*}
7+
{lang_get var="l10n"
8+
s='testplan_title_tp_management,testplan_txt_empty_list,sort_table_by_column,
9+
testplan_th_name,testplan_th_notes,testplan_th_active,testplan_th_delete,
10+
testplan_alt_edit_tp,alt_active_testplan,testplan_alt_delete_tp,public,
11+
btn_testplan_create,th_id,error_no_testprojects_present,btn_export_import,
12+
export_import,export,import,export_testplan_links,import_testplan_links,
13+
build_qty,testcase_qty,platform_qty,active_click_to_change,
14+
inactive_click_to_change,testcase_number_help,platform_number_help,
15+
build_number_help,assign_roles,execution'}
16+
17+
{assign var="labels" value=$l10n scope=parent}

gui/templates/tl-classic/plan/planView.tpl

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ TestLink Open Source Project - http://testlink.sourceforge.net/
55
66
@internal development hint:
77
some smarty and javascript variables are created on the inc_*.tpl files.
8-
8+
9+
*}
10+
911
{$cfg_section=$smarty.template|basename|replace:".tpl":""}
1012
{config_load file="input_dimensions.conf" section=$cfg_section}
1113

@@ -19,17 +21,7 @@ some smarty and javascript variables are created on the inc_*.tpl files.
1921
{$assignRolesAction="lib/usermanagement/usersAssign.php?featureType=testplan&featureID="}
2022
{$gotoExecuteAction="lib/general/frmWorkArea.php?feature=executeTest&tplan_id="}
2123

22-
23-
24-
{lang_get var="labels"
25-
s='testplan_title_tp_management,testplan_txt_empty_list,sort_table_by_column,
26-
testplan_th_name,testplan_th_notes,testplan_th_active,testplan_th_delete,
27-
testplan_alt_edit_tp,alt_active_testplan,testplan_alt_delete_tp,public,
28-
btn_testplan_create,th_id,error_no_testprojects_present,btn_export_import,
29-
export_import,export,import,export_testplan_links,import_testplan_links,build_qty,
30-
testcase_qty,platform_qty,active_click_to_change,inactive_click_to_change,
31-
testcase_number_help,platform_number_help,build_number_help,assign_roles,execution'}
32-
24+
{include file="plan/planView.labels.tpl"}
3325

3426
{lang_get s='warning_delete_testplan' var="warning_msg"}
3527
{lang_get s='delete' var="del_msgbox_title"}
@@ -98,7 +90,7 @@ var del_action=fRoot+'{$deleteAction}';
9890
</thead>
9991
<tbody>
10092
{foreach item=testplan from=$gui->tplans}
101-
<tr>
93+
<tr data-qa-tplan-name="{$testplan.name|escape}">
10294
<td><a href="{$editAction}{$testplan.id}">
10395
{$testplan.name|escape}
10496
<span class="api_info" style='display:none'>{$tlCfg->api->id_format|replace:"%s":$testplan.id}</span>
@@ -122,7 +114,7 @@ var del_action=fRoot+'{$deleteAction}';
122114
</td>
123115
{/if}
124116

125-
<td class="clickable_icon">
117+
<td class="clickable_icon" data-qa-active="{$testplan.active}">
126118
{if $testplan.active==1}
127119
<input type="image" style="border:none"
128120
title="{$labels.active_click_to_change}" alt="{$labels.active_click_to_change}"
@@ -135,7 +127,7 @@ var del_action=fRoot+'{$deleteAction}';
135127
src="{$tlImages.off}"/>
136128
{/if}
137129
</td>
138-
<td class="clickable_icon">
130+
<td class="clickable_icon" data-qa-is_public="{$testplan.is_public}">
139131
{if $testplan.is_public eq 1}
140132
<img style="border:none" title="{$labels.public}" alt="{$labels.public}" src="{$tlImages.checked}"/>
141133
{else}

0 commit comments

Comments
 (0)