51Testing软件测试论坛

标题: Notes_Entry,Note_log功能不能实现 [打印本页]

作者: 会飞的鱼    时间: 2006-6-27 11:09
标题: Notes_Entry,Note_log功能不能实现
我在用clearquest的新建一个defect的时候,感觉Note_Entry和Notes_Log两个字段用不到,就把它们两个给删除了,可是现在有重新使用它们了,可是我把他们重新添加上以后功能却实现不了了。麻烦知道的朋友告诉一声,谢谢!

[ 本帖最后由 会飞的鱼 于 2006-6-27 11:45 编辑 ]
作者: 会飞的鱼    时间: 2006-6-27 16:01
1  Create two fields "Notes_Entry" and "Notes_log" of type Multiline_string.
2  Create a new tab for Notes and place the above two fields onto the forms. Make sure "Multi-line","Auto Vert Scroll" and "Vert Scroll Bar" are checked in the properties.
3  In the Notes_Entry value_changed hook paste the following line:
Call Set_Log (fieldname,"Notes_Log").
If using Perl as the scripting language, the code will be:
SetLog($fieldname, "Notes_Log");
4   Create an Action "Init_Notes_Entry" of type BASE and paste the following into the Initialization hook
Note_Entry_Init "Note_Entry"
For Perl: NoteEntryInit("Note_Entry");
5   Create a global script by copying out-of-the-box set_log sub routine and remove
"GetFieldValue("State").GetValue" line from the script.
For Perl: $entity->GetFieldValue("State")->GetValue()
6   Test work.
7   Check-in schema changes.
8   Upgrade user databases to apply the change.




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2