Page 1 of 1

Additional search function

Posted: Mon Feb 08, 2010 1:18 pm
by theflasher
Hi, could it be possible to add an extra searchfield for tescases in some areas?
Here a picture what i mean.
Image
Actually we use this here:
- Set urgent tests
- Assign Test Case execution
- Show Test Cases newest versions
- Update Linked Test Case Versions
- Add / Remove Test Cases

it is easy to implement. We use the following custommade template
gui/templates/incTestCaseSearchForm.tpl

Code: Select all

{*****************************************************************************************************************}	  		
{*modified by A Groll, allows to search after testcases by using a part or full tascasename*}
{assign var="cfg_section" value="tcFullSearchForm"}
{config_load file="input_dimensions.conf" section=$cfg_section}
{lang_get var="labels"
          s="th_title,caption_search_form,btn_find"}

<form method="post" action="lib/testcases/tcSearch.php" target="workframe">
	<table class="smallGrey" style="width:100%">
		<caption>{$labels.caption_search_form}</caption>		
		<tr>
			<td>{$labels.th_title}</td>
			<td><input type="text" name="name" size="{#TCNAME_SIZE#}" maxlength="{#TCNAME_MAXLEN#}"/>
			<span style="padding-left: 20px;">
			<input type="submit" name="doSearch" value="{$labels.btn_find}" />
			</span>
			</td>
		</tr>					
	</table>
</form>
</div>
{*****************************************************************************************************************}  
and include it into this files:
tcTree.tpl
planTCNavigator.tpl
planAddTCNavigator.tpl


we need this function because it takes sometimes very long time to find the right testcase in the tree. With search by name we can find a testcase much quicker.
An impovement would be, if the tree opens exactly where the testcase is.