Default value for a custom field

1.8 related questions and discussions.
Please upgrade to LATEST 1.9.x.
No more fixes for 1.8.

Moderators: Amaradana, TurboPT, TL Developers

Locked
gaudenzir
TestLink user
Posts: 14
Joined: Tue Oct 27, 2009 10:28 am

Default value for a custom field

Post by gaudenzir »

Hi,
I've defined a custom field (a list) that is associated to test cases and displayed at execution time.
Since the value of the field usually doesn't change during the execution of a set of tests I would like the field to remember the value during the tests execution.
In other words, if the tester choose a value from the list, then she get that value pre-selected when she open the subsequent tests.
My idea is to store the value selected in the user session.
Any hints on how to implement it ?

Thanks

Roberto
gaudenzir
TestLink user
Posts: 14
Joined: Tue Oct 27, 2009 10:28 am

Post by gaudenzir »

I guess that the function that need to be modified is string_custom_field_input
in cfield_mgr

But I don't know how to store the current selected option in session and have it for the entire test plan execution.

Any hint ?

Roberto
Locked