customized status values?

The release 1.6 is going to be unsupported by Community. Because our effort moves ahead. However there are still valuable informations for you.

customized status values?

Postby fjser » Thu Nov 30, 2006 8:13 pm

can you customize/add to the list of status results for each test case? I see a section in the config file with an array that lists some that arent readily available. I would also like to add/change a few of my own. Is this easily achieved?
fjser
TestLink user
 
Posts: 6
Joined: Mon Nov 27, 2006 9:29 pm

Re: customized status values?

Postby TurboPT » Sun Dec 10, 2006 5:52 am

fjser wrote:can you customize/add to the list of status results for each test case?

Yes.

fjser wrote:I see a section in the config file with an array that lists some that arent readily available. I would also like to add/change a few of my own. Is this easily achieved?

I think "easily achieved" would really depend on how well you can handle the php code, as well as the templates, for you'll have to trudge though the code to cover what you add to the array in the same manner they do. Search for the elements of that array [especially the first four items] throughout the code to see the scope of what files would be involved.
TurboPT
Member of TestLink Community
 
Posts: 271
Joined: Sun Dec 10, 2006 4:51 am

Postby havlatm » Sun Dec 10, 2006 10:45 pm

Which status you miss? The main problem of such patch will be correct connection of a new statuses with reports ...
havlatm
Member of TestLink Community
 
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Postby Xgrind » Thu Dec 28, 2006 8:29 am

Hi,

I had managed to reveal the Not Applicable status in the Execution page, but I can't seems to be able to register the results into the database. Meaning that if I select NA for that particular test case, the result will be saved but as BLOCKED.

How can I rectify that? I tried several values in the execNavigator.php but nothing seems to help. I tried:

- $notApplicable
- $NA
- $not_applicable

as values, but to no avail. Can anyone help? I'm not a programmer so I can only figure some codes here and there. Will greatly appreciate that. Thank you.

Johnny
Xgrind
Advanced user
 
Posts: 25
Joined: Mon Dec 18, 2006 2:24 am

Postby TurboPT » Sun Dec 31, 2006 1:38 pm

First, be aware about the association to reports in havlatm's post.

To help figure out what to change to store the new value, what have you changed (and the files involved), so far, to make the NA appear?
TurboPT
Member of TestLink Community
 
Posts: 271
Joined: Sun Dec 10, 2006 4:51 am

Postby Xgrind » Fri Jan 05, 2007 1:37 am

Thanks for replying.

Here's the details of what I have changed:

\lib\execute\execNavigator.php
\lib\functions\exec.inc.php
\lib\functions\results.inc.php
\lib\functions\resultsmorebuild.inc.php

Although it showed on the execute page, but it does not register into the database, meaning results will update as BLOCKED instead of NA. Plus it screwed up the format in the results page.

I hereby attach the files for your reference so that you guys can point out what I had done wrong. Thanks for helping again :)

The files can be downloaded via http://www.filefactory.com/file/4efc5b/
Xgrind
Advanced user
 
Posts: 25
Joined: Mon Dec 18, 2006 2:24 am

Postby TurboPT » Fri Jan 05, 2007 2:59 am

Do I have to register? I don't see where the files are available after clicking the link.
TurboPT
Member of TestLink Community
 
Posts: 271
Joined: Sun Dec 10, 2006 4:51 am

Postby Xgrind » Fri Jan 05, 2007 11:57 am

You have to scroll down to select "Download for free with FileFactory Basic" then click "Click here to begin your download " to download the file. Thanks :)
Xgrind
Advanced user
 
Posts: 25
Joined: Mon Dec 18, 2006 2:24 am

Postby havlatm » Mon Jan 08, 2007 8:19 am

Please, make a New feature request to our Bug Tracking system for this N/A status. This is not simple patch because the new value must be maintain on several places. I'll ask Kevin to look at the issue implementation to 1.7 (no promise).
havlatm
Member of TestLink Community
 
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Postby TurboPT » Thu Jan 11, 2007 4:12 pm

Xgrind: I got your files, but please give me time to look at that, for I'm not a TL team member, and I don't have much time during the week to look at it.

I don't mind helping you achieve a customized solution, but also take note of havlatm's previous post:
havlatm wrote:... This is not simple patch because the new value must be maintain on several places...

...so there are definitely other files involved. If you would like to continue for your specific need, let me know. Note, though, that the progress would be a little slow from my end.

Havlatm: if I were to put together [offer] a better way to support custom statuses, (all files, DB scripts, etc...) could it be applied as a patch to 1.6, or has the development shift moved on to 1.7?
TurboPT
Member of TestLink Community
 
Posts: 271
Joined: Sun Dec 10, 2006 4:51 am

Postby fman » Thu Jan 11, 2007 4:32 pm

Hi, we can take a look to your code, and implement it or some kind
of modification on TL 1.7.
Please give us enough good information to make our work easier.
It would be great to have some kind of SRS of the feature (may be what is written in this post is enough).

One important thing: we will give to this feature a priority on TL 1.7.x development, because we need to finish test for realesing stable version.

Regards

Francisco
fman
Member of TestLink Community
 
Posts: 2286
Joined: Tue Nov 15, 2005 7:19 am

Postby Xgrind » Tue Jan 16, 2007 1:54 am

Hi Turbo,

I really appreciate what you are doing for me! Thanks!

Ya, I would love very much to have that feature for my side as I used the NA status pretty often before we switch over to Testlink, with that feature it will help us a great deal.

Once again, thanks again for your help! :D

TurboPT wrote:Xgrind: I got your files, but please give me time to look at that, for I'm not a TL team member, and I don't have much time during the week to look at it.

I don't mind helping you achieve a customized solution, but also take note of havlatm's previous post:
havlatm wrote:... This is not simple patch because the new value must be maintain on several places...

...so there are definitely other files involved. If you would like to continue for your specific need, let me know. Note, though, that the progress would be a little slow from my end.

Havlatm: if I were to put together [offer] a better way to support custom statuses, (all files, DB scripts, etc...) could it be applied as a patch to 1.6, or has the development shift moved on to 1.7?
Xgrind
Advanced user
 
Posts: 25
Joined: Mon Dec 18, 2006 2:24 am

Postby testerjeff26 » Tue Jan 16, 2007 7:15 pm

Has a request been officially submitted for this feature in 1.7 yet?

I would also like to see Customizable Statuses.

Thanks
testerjeff26
TestLink user
 
Posts: 4
Joined: Thu Dec 08, 2005 9:04 pm

Postby fman » Wed Jan 17, 2007 1:21 pm

in TL 1.7 you can customize status.
Only problem:
Reports will not give you info about new status (yet), but you can use
your statuses on execution.

Give a look to config.inc.php and the new file cfg/const.inc.php

You also need to add some CSS classes to show the right colors.

with this code:

$g_tc_status_for_ui = array(
"not_run" => "test_status_not_run",
"not_available" => "test_status_not_available",
"passed" => "test_status_passed",
"failed" => "test_status_failed",
"blocked" => "test_status_blocked");

you add the not_available status to User Interface(UI)

you also need to configure the not_available (is just a code then YOU HAVE NOT USE SPACES in the string) in:

$g_tc_status = array (
"failed" => 'f',
"blocked" => 'b',
"passed" => 'p',
"not_run" => 'n',
"not_available" => 'x',
"unknown" => 'u',
"all" => 'all'
);


hope is clear
fman
Member of TestLink Community
 
Posts: 2286
Joined: Tue Nov 15, 2005 7:19 am


Return to TestLink 1.6 (closed)



Who is online

Users browsing this forum: No registered users and 0 guests