Deactivation of Test Case Fields

The release related discussions, plans and questions.
Locked
mhayes
Advanced user
Posts: 15
Joined: Sun Apr 20, 2008 6:09 pm

Deactivation of Test Case Fields

Post by mhayes »

Hello All,

Is there an easy method to alter the test cases such that you only have some of the default fields? We want to only have the Title and Steps text area fields. Is there a method for hiding/disabling the Summary and Expected fields?

Many Thanks,
Mark
shm2bk
Advanced user
Posts: 29
Joined: Sun Jun 08, 2008 3:28 pm

hiding of two editor-windows

Post by shm2bk »

Hello mhayes
Here is the solution: Only one big editor-window with a high of 800 pixel.:

First edit the File „Testlink\config.inc.php“ and make the 3 Windows Summary, steps and result one beneath the other.

$g_spec_cfg->steps_results_layout='vertical';
---------------------------------------------------------------------------
After this you have to edit the File TestLink\custom_config.inc.php
3 new lines in in custom_config.inc.php:
$g_testcase_height->summary = "0"; // window not visible
$g_testcase_height->steps = "800"; // height of the steps window
$g_testcase_height->expected_results = "0"; // window not visible
--------------------------------------------------------------------------
After this you have to edit the File „TestLink\Lib\testcases\tcEdit.php“
add 2 new lines of code. The 2 lines are marked with // new line

// create fckedit objects
$a_ofck = array('summary','steps','expected_results');
$oFCK = array();
$my_height = config_get('testcase_height'); // New line
foreach ($a_ofck as $key)
{
$oFCK[$key] = new fckeditor($key) ;
$of = &$oFCK[$key];
$of->BasePath = $_SESSION['basehref'] . 'third_party/fckeditor/';
$of->ToolbarSet=$g_fckeditor_toolbar;;
$of->Height = $my_height->$key; // new line
-----------------------------------------------------------------------------------
Now you can delete the title of the hided windows in the GUI.
4 new lines in the file: testlink\locale\en_US\custom_strings.txt
or edit the lines in the strings.txt = 4 empty strings

$TLS_summary = "";
$TLS_expected_results = "";
$TLS_test_exec_summary = "";
$TLS_test_exec_expected_r = "";
------------------------------------------------------------------------------------
Now we are ready with the hiding of 2 editor-windows
You only have the Steps-window. (wide and high)
Locked