Create testcases via keyboard
Posted: Fri Aug 10, 2012 10:17 am
Hey everybody, we're just evaluating testlink for our company and i am adding a lot of test cases. I'd usually love to do those kind of tasks with as little mouse interaction as possible so i did an extremely minor change to enable step addition with keyboard only.
First: You'll have to deactivate fckedit in the custum_config.inc.php file.
$tlCfg->gui->text_editor['all'] = array('type' => 'none');
This makes is possible to tab from the step-action to the expected result. (Does only make sense if you dont need the fancy formatting stuff of fckedit)
Second: Add an ACCESSKEY to the save button in tcStepEdit.tpl
316-317: <LABEL ACCESSKEY=S><input id="do_update_step" type="submit" name="do_update_step"
onclick="show_modified_warning=false; doAction.value='{$gui->operation}'" value="{$labels.btn_save}" /></LABEL>
You can now tab from action to expected result and submit the step with alt+s. Voilá, was a great help for me
*I edited this post because it's original formulation had a tone to it i didnt intended; thx @fman for the hint with custom_config as well
First: You'll have to deactivate fckedit in the custum_config.inc.php file.
$tlCfg->gui->text_editor['all'] = array('type' => 'none');
This makes is possible to tab from the step-action to the expected result. (Does only make sense if you dont need the fancy formatting stuff of fckedit)
Second: Add an ACCESSKEY to the save button in tcStepEdit.tpl
316-317: <LABEL ACCESSKEY=S><input id="do_update_step" type="submit" name="do_update_step"
onclick="show_modified_warning=false; doAction.value='{$gui->operation}'" value="{$labels.btn_save}" /></LABEL>
You can now tab from action to expected result and submit the step with alt+s. Voilá, was a great help for me
*I edited this post because it's original formulation had a tone to it i didnt intended; thx @fman for the hint with custom_config as well