Skip to content

Commit

Permalink
Feature (user contribution) TICKET 7509: Exporting testcases : add op…
Browse files Browse the repository at this point in the history
…tions to exclude from export: Summary,Preconditions,Steps
  • Loading branch information
fmancardi committed Apr 24, 2016
1 parent af42bfa commit 55fd451
Show file tree
Hide file tree
Showing 4 changed files with 1,526 additions and 1,490 deletions.
60 changes: 38 additions & 22 deletions gui/templates/testcases/tcExport.tpl
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{*
TestLink Open Source Project - http://testlink.sourceforge.net/
$Id: tcExport.tpl,v 1.14 2010/11/06 11:42:47 amkhullar Exp $
{*
TestLink Open Source Project - http://testlink.sourceforge.net/
$Id: tcExport.tpl,v 1.14 2010/11/06 11:42:47 amkhullar Exp $
test case export initial page
test case export initial page
@internal revisions
@since 1.9.11
@since 1.9.15
*}

{lang_get var="labels"
{lang_get var="labels"
s='export_filename,warning_empty_filename,file_type,warning,export_cfields,title_req_export,
view_file_format_doc,export_with_keywords,btn_export,export_tcase_external_id,btn_cancel,
view_file_format_doc,export_with_prefix'}
view_file_format_doc,export_with_prefix,export_summary,export_steps,export_preconditions,
export_testcase_requirements'}

{$cfg_section=$smarty.template|basename|replace:".tpl":""}
{config_load file="input_dimensions.conf" section=$cfg_section}
Expand All @@ -24,7 +25,7 @@ var alert_box_title = "{$labels.warning|escape:'javascript'}";
var warning_empty_filename = "{$labels.warning_empty_filename|escape:'javascript'}";
function validateForm(f)
{
if (isWhitespace(f.export_filename.value))
if (isWhitespace(f.export_filename.value))
{
alert_message(alert_box_title,warning_empty_filename);
selectField(f, 'export_filename');
Expand All @@ -41,12 +42,12 @@ function mirrorCheckbox(sourceOID,targetOID)
if(scb.checked)
{
tcb.disabled = 0;
}
}
else
{
tcb.checked = 0;
tcb.disabled = 1;
}
}
}
Expand All @@ -59,17 +60,17 @@ function mirrorCheckbox(sourceOID,targetOID)
<div class="workBack">

{if $gui->do_it eq 1}
<form method="post" id="export_xml" enctype="multipart/form-data"
<form method="post" id="export_xml" enctype="multipart/form-data"
action="lib/testcases/tcExport.php"
onSubmit="javascript:return validateForm(this);">

<table>
<tr>
<td>
{$labels.export_filename}
</td>
<td>
<input type="text" name="export_filename" maxlength="{#FILENAME_MAXLEN#}"
<input type="text" name="export_filename" maxlength="{#FILENAME_MAXLEN#}"
value="{$gui->export_filename|escape}" size="{#FILENAME_SIZE#}"/>
{include file="error_icon.tpl" field="export_filename"}
</td>
Expand All @@ -85,21 +86,33 @@ function mirrorCheckbox(sourceOID,targetOID)
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</tr>

<tr>
<td>{$labels.export_tcase_external_id}</td>
<td><input type="checkbox" name="exportTestCaseExternalID" id="exportTestCaseExternalID"
<td><input type="checkbox" name="exportTestCaseExternalID" id="exportTestCaseExternalID"
value="1" onclick="mirrorCheckbox('exportTestCaseExternalID','addPrefix');" checked />
{$labels.export_with_prefix}
<input type="checkbox" name="addPrefix" id="addPrefix" value="1">
</td>

</tr>
<tr>
<td>{$labels.title_req_export}</td>
<td>{$labels.export_summary}</td>
<td><input type="checkbox" name="exportTCSummary" value="1" checked /></td>
</tr>
<tr>
<td>{$labels.export_preconditions}</td>
<td><input type="checkbox" name="exportTCPreconditions" value="1" checked /></td>
</tr>
<tr>
<td>{$labels.export_steps}</td>
<td><input type="checkbox" name="exportTCSteps" value="1" checked /></td>
</tr>

</tr>
<tr>
<td>{$labels.export_testcase_requirements}</td>
<td><input type="checkbox" name="exportReqs" value="1" checked /></td>
</tr>
</tr>
<tr>
<td>{$labels.export_cfields}</td>
<td><input type="checkbox" name="exportCFields" value="1" checked /></td>
Expand All @@ -109,8 +122,11 @@ function mirrorCheckbox(sourceOID,targetOID)
<td><input type="checkbox" name="exportKeywords" value="0" /></td>
</tr>




</table>

<div class="groupBtn">
<input type="hidden" name="testcase_id" value="{$gui->tcID}" />
<input type="hidden" name="tcversion_id" value="{$gui->tcVersionID}" />
Expand All @@ -130,4 +146,4 @@ function mirrorCheckbox(sourceOID,targetOID)
</div>

</body>
</html>
</html>
Loading

0 comments on commit 55fd451

Please sign in to comment.