Is it a bug ? It seems that once I assign a keyword to a testcase, unless I delete and re-add the test case, the keyword sticks to the test case ( even after the kwd is deleted).
Pls help !
Thx !
Hmm...How do I remove keyword assignment for a testcase ?
Thanks, fman , for your quick reply.
Sorry, I didn\'t phrase my question properly.
My situation is:
I create a keyword
Assign it to a test case
Delete the keyword
Then, edit the testcase, and try to unassign the keywrd( that shows in read mode). But, it does not show up in the combobox (since the kwd does not exist anymore).
Seems like the assignment of the no longer valid keyword stays/lingers on to testcases that the kwd was assigned to.
I would expect that if a kwd is deleted, all the assignments to any testcases for that kwd would also get removed.If not, I should be able to at least remove it from the combobox.
I hope I explained clearly. If not, pls don\'t spend time on it, not a biggie. I am very happy using TL, thanks for all the hard work you guys have put into it. It\'s really appreciated !!!
Sorry, I didn\'t phrase my question properly.
My situation is:
I create a keyword
Assign it to a test case
Delete the keyword
Then, edit the testcase, and try to unassign the keywrd( that shows in read mode). But, it does not show up in the combobox (since the kwd does not exist anymore).
Seems like the assignment of the no longer valid keyword stays/lingers on to testcases that the kwd was assigned to.
I would expect that if a kwd is deleted, all the assignments to any testcases for that kwd would also get removed.If not, I should be able to at least remove it from the combobox.
I hope I explained clearly. If not, pls don\'t spend time on it, not a biggie. I am very happy using TL, thanks for all the hard work you guys have put into it. It\'s really appreciated !!!
When you assign a keyword to a testcase, it is stored as text in the mgttestcase table in the keywords column as part of a csv string
If you are comfortable executing database queries you could execute a command like this to remove a specific keyword
update mgttestcase set keywords = replace(keywords,\'regression,\',\'\') where id = 3
In the above example, I remove keyword regression from testcase Id 3.
Make sure you have the comma after your keyword in the replace
if you want to do all testcases, just leave off the where clause
If you have any testcases in testsuites, then you will also need to do the same on the testcase table
update testcase set keywords = replace(keywords,\'regression,\',\'\') where mgttcid = 3
Notice in the where clause I used the mgttcid field. This field has the same value as the identity column in the mgttestcase field
If you are comfortable executing database queries you could execute a command like this to remove a specific keyword
update mgttestcase set keywords = replace(keywords,\'regression,\',\'\') where id = 3
In the above example, I remove keyword regression from testcase Id 3.
Make sure you have the comma after your keyword in the replace
if you want to do all testcases, just leave off the where clause
If you have any testcases in testsuites, then you will also need to do the same on the testcase table
update testcase set keywords = replace(keywords,\'regression,\',\'\') where mgttcid = 3
Notice in the where clause I used the mgttcid field. This field has the same value as the identity column in the mgttestcase field