Create testcases via keyboard

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

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
jhornung
TestLink user
Posts: 2
Joined: Fri Aug 10, 2012 7:36 am

Create testcases via keyboard

Post by jhornung »

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
Last edited by jhornung on Fri Aug 10, 2012 10:41 am, edited 2 times in total.
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Create testcases via keyboard

Post by fman »

>> I felt it very inefficient to do so. First because i coudnt easily paste our already defined steps and second because i had to switch between
>> mouse and keyboard a lot.
I think, there is always a better way to express that something is no following your actual work pattern, instead of giving impression is a product/application flaw.
Think about how do you feel when your customers said that your products sucks, just because they do not like how you have designed it.

IMPORTANT THING ABOUT CONFIG:
do not edit config.inc.php, we have provided custom* for these taks
jhornung
TestLink user
Posts: 2
Joined: Fri Aug 10, 2012 7:36 am

Re: Create testcases via keyboard

Post by jhornung »

oh damn sorry that wasnt meant that way at all! I actually like testlink a lot and i am really happy with it! I am truly sorry if this post sounded offensive!
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Create testcases via keyboard

Post by fman »

got, I'm going to add this to the FAQ & HINT section, and do changes on stable code.
Post Reply