Project´´½¨Íê³ÉÖ®ºó£¬ÐÞ¸ÄProjectµÄÊôÐÔ£¬Ö¸¶¨ÆäCQ Enabled¡£ ÔÚProject ExplorerÖУ¬Ñ¡Öиոմ´½¨µÄProject£¬ÓÒ¼ü£¬Ñ¡ÔñÊôÐÔ£¨properties£©£¬ÔÚ´ò¿ªµÄÊôÐÔÒ³ÖÐÑ¡Ôñ"ClearQuest"Ò³¡£´Ëʱ"Project
is CQ enabled"¸´Ñ¡¿òÓ¦¸ÃÊdzöÓÚδ±»Ñ¡ÖÐ״̬¡£Ñ¡Öи´Ñ¡¿ò£¬´ÓÏÂÀ´ÁбíÖÐÑ¡ÔñÒѾÔÚClearQuest½¨ºÃµÄConnection
ºÍSample DB¡£"È·¶¨"£¬Íê³É²Ù×÷¡£
ͼ4 ÔÚ¹¤³ÌÊôÐÔÖÐÖ¸¶¨¹¤³ÌΪCQ Enabled
3. Join project£º´´½¨¼¯³ÉÁ÷£¬¿ª·¢Á÷£¬¼¯³ÉÊÔͼ£¬¿ª·¢ÊÓͼ¡£ÔÚ¿ª·¢ÊÓͼ»·¾³Ï´´½¨ÐµÄÎļþ£¬»òÕ߶ÔÎļþ½øÐмì³ö¼ìÈë²Ù×÷´ò¿ªClearCase
Explorer£¬Ñ¡Ôñ¿ª·¢ÊÓͼ£¬ÔÚcvobµÄ¸ùĿ¼Àï´´½¨Ò»¸öеÄÎļþ£¬Ñ¡Ôñ"Add to source control"£¬½«Õâ¸öÎļþ¼ÓÈëÔ´¿ØÖÆ¡£ÔÚ"Add
to source control"µÄ½çÃæÉÏ£¬ÐèҪѡÔñÒ»¸öÓëÕâ¸öÎļþµÄ°æ±¾Ïà¹ØÁªµÄ»î¶¯£¨activity£©¡£
ͼ5 ΪԪËØа汾ָ¶¨»î¶¯£¨activity£©
ÔÚÉ趨Ïà¹ØÁªµÄactivityµÄʱºò£¬ÓÐÈýÖÖ·½Ê½£ºÑ¡Ôñ"New"£¬Ð´´½¨Ò»¸öClearQuestµÄ¼Ç¼ÀàÐÍ£¨defect
»òÕßBaseCMActivityÁ½ÖÖÀàÐͿɹ©Ñ¡Ôñ£©£»»òÕßÔÚÏÂÀÁбíÖÐÑ¡ÔñÒ»¸öÒÑÓеÄdefectÓëÖ®¹ØÁª£»»òÕßʹÓÃ"browse"²éѯһ¸öÂú×ãÒ»¶¨Ìõ¼þµÄ¼Ç¼¡£
ÏÂÃæ·Ö±ðÏêϸ½éÉÜÕ⼸ÖÖ·½Ê½£º
н¨·½Ê½
Ñ¡Ôñ"New"£¬Ä¬ÈÏÇé¿öÏ£¬¿ÉÒÔÑ¡Ôñн¨Á½ÖÖÀàÐ͵Äactivity £ºdefectºÍBaseCMActivity¡£µ¥»÷"New"£¬¿ÉÒÔ¿´µ½ÕâÁ½ÖּǼÀàÐÍ£¬ÈçͼËùʾ£º
ͼ6 ¿ÉÑ¡µÄ¼Ç¼ÀàÐÍ
ÊÇ·ñ¿ÉÒÔ´´½¨ÕâÁ½ÖÖÀàÐ͵ļǼ£¬»òÕßÖ»ÄÜ´´½¨ÄÄÒ»ÖÖÊÇ¿ÉÒÔ×ÔÓÉÉ趨µÄ¡£·½·¨ÊÇ£ºÔÚProject Explorer ÀÓÒ¼üÑ¡ÖÐpvob£¬ÔÚÓÒ¼ü²Ëµ¥ÖÐÑ¡ÖÐ"policies"²ßÂÔ¡£Èç¹û"Do
not allow submitting of records from ClearCase client"Ñ¡ÏîÊDZ»Ñ¡ÖÐ״̬£¬¾ÍÒâζ×Ų»ÔÊÐíÔÚClearCase¶Ë´´½¨ClearQuestµÄ¼Ç¼£¬ÔÚ½«Îļþ¼ÓÈëÔ´¿ØÖÆ¡¢¶ÔÔªËؼìÈë¡¢¼ì³ö²Ù×÷ʱ£¬¹ØÁªactivityµÄ½çÃæÖÐÒ²²»»á³öÏÖ"New"Õâ¸ö²Ù×÷°´Å¥£»Ïà·´µÄ£¬Èç¹û"Do
not allow submitting of records from ClearCase client"Ñ¡ÏîÊDz»±»Ñ¡ÖеÄ״̬£¬¾ÍÒâζ×ÅÓû§¿ÉÒÔÔÚClearCase
¶Ë´´½¨ClearQuestµÄ¼Ç¼£¬µ«ÊÇ£¬ÔÚ"Allowed record types"ÖÐÏÞ¶¨ÁËÔÊÐí´´½¨µÄ¼Ç¼ÀàÐÍ£¬Èç¹ûÑ¡ÖÐÁË"defect"£¬ËµÃ÷¿ÉÒÔд´½¨defectÀàÐ͵ļǼ£¬ÔÚClearCaseÀïµã»÷"New"ʱ£¬ÔÚµ¯³öµÄÑ¡ÔñÒ³ÀïÏàÓ¦µÄÒ²Ö»ÄÜ¿´µ½"defect"ÕâÒ»ÀàÐÍ¡£¶ÔÓÚBaseCMActivityÒ²ÊÇͬÑùµÄ¡£Ä¬ÈϵÄÇé¿öÏ£¬ÕâÁ½ÖÖÀàÐͶ¼ÊDZ»Ñ¡Öеġ£
ͼ7 É趨¿ÉÒÔÔÚClearCase¶ËÌá½»µÄÀàÐÍ
ÕâÀï¼ÙÉèµ¥»÷ÁË"New" Ö®ºó£¬Ñ¡ÔñµÄÊÇdefect£¬Ôò»áµ÷ÓÃClearQuestµÄн¨defectµÄ´°¿Ú£º
ÊäÈë±ØÒªµÄÐÅÏ¢ºó±£´æ£¬Ð½¨µÄdefectµÄheadline¾Í»á³öÏÖÔÚactivity¶ÔÓ¦µÄÏÂÀÁбíÑ¡Ôñ¿òÄÚ£¬¿ÉÒÔĬÈϵÄÑ¡ÔñÕâ¸öн¨µÄdefect£¬Íê³ÉÏàÓ¦µÄClearCaseµÄ²Ù×÷¡£Èç¹ûʹÓÃQEÓû§µÇ½µ½ClearQuestµÄ¿Í»§¶Ë£¬ÔËÐйØÓÚdefectµÄ
²éѯ£¬Ôò»á²éѯµ½¸Õ¸Õ´´½¨µÄdefect£¬²¢ÇÒ´ËʱÕâ¸ödefectÊÇ´¦ÓÚopened״̬µÄ¡£
ͼ9 Defect´¦ÓÚOpened ״̬
Ñ¡ÔñÒÑÓеÄdefect
Èç¹ûÊÂÏÈÔÚClearQuest¿Í»§¶ËÖÐÒѾ´´½¨ÁËһЩ¼Ç¼£¬ÄÇÔÚactivityµÄÏÂÀÁбíÖоͻá×Ô¶¯ÁгöÀ´ÕâЩ¼Ç¼¡£²»¹ý£¬ÄÄЩ¼Í¼»áÁÐÔÚÁбíÀïÒ²ÊÇÓÐÒ»¶¨µÄÏÞÖÆÌõ¼þµÄ£º
1) ÕâЩdefectµÄËùÓÐÈË£¨owner£©±ØÐëºÍClearCaseÖÐ×÷¼¯³ÉʱµÇ½ClearQuestËùʹÓõÄÓû§ÕÊ»§ÊÇÒ»Öµģ¬Ò²¾ÍÊÇ˵ֻÓÐÄÇЩ·ÖÅä¸øÕâ¸öÓû§´¦ÀíµÄdefect²ÅÄÜÔÚ±¸Ñ¡µÄ»î¶¯ÁбíÀï³öÏÖ¡£
2) Ö»Óд¦ÓÚAssigned¡¢ Opened״̬µÄdefect²Å»á±»Áе½activityµÄ±¸ÓÃÏÂÀÁбíÖУ¬¶ø´¦ÓÚsubmitted״̬ºÍresolvedÒÔ¼°closed״̬µÄdefectÔò²»»á³öÏÖÔÚ±¸Ñ¡ÏÂÀÁбíÖС£
"Browse"·½Ê½
Ñ¡Ôñ"Browse"°´Å¥£¬µ¯³ö"Activity Entity Browser"´°¿Ú¡£¿ÉÒÔÔÚÕâ¸ö´°¿ÚÖÐÑ¡Ôñ"New
Query"½¨Á¢Ò»¸öеÄQuery£¬É趨²éѯÌõ¼þ£¬Ñ¡ÔñÂú×ãÐèÒªµÄ¼Ç¼¡£É趨ºÃ²éѯ½á¹ûÒªÏÔʾµÄ×Ö¶ÎÒÔ¼°²éѯÌõ¼þºó£¬¿ÉÒÔ½«Õâ¸ö²éѯ±£´æ£¨±£´æºóµÄ²éѯҲ¿ÉÒÔÖ±½ÓÔÚClearQuest¿Í»§¶ËÖб»Ê¹Óã©¡£Ð´´½¨µÄ²éѯ»áÁÐÔÚ"Activity
Entity Browser"µÄ´°¿ÚÖУ¬Ñ¡ÖÐÕâ¸ö²éѯ£¬»òÕßÑ¡ÔñÆäËûÒѾÔÚClearQuestÖд´½¨µÄ²éѯ£¬µã»÷"ÔËÐÐ"£¨run£©°´Å¥£¬ÔÚ²éѯ½á¹ûÖÐÑ¡ÔñÕýÈ·µÄ¼Ç¼£¬×÷ΪÓëClearCaseÖеÄÎļþ°æ±¾Ïà¹ØÁªµÄ»î¶¯£¨activity£©¡£
ͼ 10 ²éѯÏà¹Ø¼Ç¼
4. Deliver²Ù×÷
Deliver²Ù×÷¿ªÊ¼ºó£¬ClearCaseÖлá×Ô¶¯Éú³ÉÒ»¸ö¶ÔÓ¦µÄActivity£¬Õâ¸öActivityµÄÃû³ÆÖаüº¬"deliver"µÄ×ÖÑù£¬ÒÔ¼°Ö´ÐÐDeliver²Ù×÷µÄʱ¼ä¡£¶ÔÓ¦Õâ¸öActivity£¬»á×Ô¶¯½¨Á¢Ò»¸öClearQuestµÄ"UCMUtilityActivity"ÀàÐ͵ļǼ£¬Õâ¸ö¼Ç¼µÄ״̬Ëæ×ÅDeliver״̬µÄ¸Ä±ä¶ø¸Ä±ä¡£
Deliver²Ù×÷½øÐе½×îºó£¬²»È·ÈϽáÊøDeliverµÄ²Ù×÷
ÔÚProject ExplorerÖУ¬ÓÒ¼üÑ¡Öпª·¢Á÷£¬Ñ¡Ôñ"Deliver from Stream>
to Default"£¬¿ªÆôDeliverµÄ²Ù×÷£¬²ÉÓÃĬÈϵÄÉèÖã¬ÔÚ×îºóµÄÈ·ÈÏÒ³ÖÐÑ¡Ôñ"Close"¡£
ͼ11 ÊÇ·ñÍê³ÉDeliver²Ù×÷
ÓÃQEÓû§µÇ½ClearQuestµÄ¿Í»§¶Ë£¨½¨ProjectÖ¸¶¨CQ Enableʱ£¬¼ÙÉèʹÓÃQEÕÊ»§µÇ½µ½ClearQuestÊý¾Ý¿â£©¡£Ð½¨Ò»¸ö²éѯ£¬²éѯ¶ÔÏóÊÇUCMUtilityActivityÀàÐ͵ļǼ£¬ÔËÐвéѯ£¬ÔÚ²éѯ½á¹ûÖÐÕÒ³öheadlineÊÇClearCaseÖÐdeliver
activityÃû³ÆµÄ¼Ç¼£¬²é¿´Ä¿Ç°Õâ¸ö¼Ç¼µÄ״̬Ӧ¸ÃÊÇ"Active"¡£
È¡ÏûDeliver²Ù×÷
Èç¹û֮ǰûÓÐÈ·ÈϽáÊø£¨ÔÚDeliverµÄ×îºóÌáʾҳÖÐÑ¡ÔñClose£©Deliver²Ù×÷£¬ÖØпªÆô"Deliver
from Stream > to Default"Ö®ºó£¬»á³öÏÖÈÃÓû§Ñ¡Ôñ"¼ÌÐø"»¹ÊÇ"È¡Ïû"µÄѯÎʽçÃ棬ÕâÀïÑ¡Ôñ"Undo
the Delivery"¡£ DeliverµÄ²Ù×÷±»È¡Ïûºó£¬ ClearQuestÖжÔÓ¦µÄUCMUtilityActivityÀàÐ͵ļǼҲ²»¸´´æÔÚÁË¡£
Deliver²Ù×÷½øÐе½×îºó£¬È·ÈϽáÊøDeliverµÄ²Ù×÷
ÖØпªÆôDeliver²Ù×÷£¬²¢ÇÒÔÚ×îºóµÄÈ·ÈÏÒ³ÖÐÑ¡ÖÐ"Complete"£¬ÔÚClearQuest¿Í»§¶Ë£¬µÇ½µ½Êý¾Ý¿â£¬ÔËÐÐÉÏÃæ´´½¨µÄ²éѯ£¬¿´µ½ÒÔClearCaseµÄactivityÃû×÷ΪheadlineµÄ¼Ç¼³öÏÖÔÚ²éѯ½á¹ûÁбíÖУ¬²¢ÇÒ´ËʱµÄ״̬¸ÄΪ£º"Complete"¡£
ͼ12 UCMUtilityActivity µÄ¼Ç¼״̬¸ÄΪComplete
5. Rebase²Ù×÷
ͬÑùµØ£¬¶ÔÓÚRebase²Ù×÷£¬Ò²»á×Ô¶¯Éú³ÉÒ»¸öClearCaseµÄActivity£¬Ãû³ÆÖаüº¬"rebase"×ÖÑùÒÔ¼°Ö´ÐÐRebaseµÄʱ¼ä¡£ÔÚClearQuestÖÐÒ²»á×Ô¶¯´´½¨Ò»¸ö"UCMUtilityActivity"ÀàÐ͵ļǼ¡£Ëæ×ÅRebase²Ù×÷½øÐе½²»Í¬µÄ³Ì¶È£¬¼Ç¼µÄ״̬ҲËæÖ®¸Ä±ä£¬ÈýÖÖ²»Í¬µÄ״̬ºÍDeliverµÄÇé¿öÏàͬ£¬ÕâÀï²»×÷¹ý¶à׸Êö¡£
6. ÔÚClearQuest½çÃæÖ´ÐÐClearCaseµÄһЩ²Ù×÷
ʵÏÖÁËUCM ClearCaseÓëClearQuestµÄ¼¯³ÉÖ®ºó£¬²»½ö¿ÉÒÔÔÚClearCase¶ËÖ´ÐÐÀýÈçн¨Ò»¸ödefect
µÈClearQuestµÄ²Ù×÷£¬Í¬Ê±£¬Ò²¿ÉÒÔÔÚClearQuest¶ËÖ´ÐÐÀýÈç¼ìÈë¡¢²é¿´ÀúÊ·ÐÅÏ¢µÈClearCaseµÄ²Ù×÷¡£
´ÓÒÔÉϵĽéÉÜÖпÉÒÔÁ˽⵽£¬ÔÚClearCase ExplorerÖУ¬µ±¶ÔÒ»¸öÎļþ½øÐмÓÈëÔ´¿ØÖÆ¡¢¼ìÈë¡¢¼ì³ö²Ù×÷ʱ£¬»áʹ»î¶¯£¨activity£©Ö¸ÏòClearQuestµÄijһ¸ö¼Ç¼¡£Æäʵ£¬ÕâÖÖ¹ØÁª½¨Á¢Ö®ºó£¬Ò²°ÑÕâ¸öÎļþ¼ÓÈëµ½ÁËClearQuestËù¶ÔÓ¦µÄ¼Ç¼µÄ±ä»¯¼¯£¨change
set£©µ±ÖС£
ÔÚClearQuestÖÐͨ¹ý²éѯµÃµ½ºÍClearCaseÖÐij¸öÎļþ°æ±¾Ïà¹ØÁªµÄ¼Ç¼£¨defect»òÕßÆäËüÀàÐ͵ļǼ£©£¬´ò¿ªËûµÄ±ä»¯¼¯£¨change
set£©£¬»á¿´µ½ÓëÖ®Ïà¹ØÁªµÄÎļþ¼°Æä°æ±¾¡£ÓÒ¼üµã»÷Õâ¸öÎļþ£¬ÔÚµ¯³öµÄ²Ëµ¥ÖпÉÒÔ½øÐÐClearCaseµÄһЩÏà¹Ø²Ù×÷¡£ÈçͼËùʾ£º
ͼ13 ¿ÉÒÔÔÚClearQuestÖнøÐеÄClearCaseµÄ²Ù×÷
7. ÈçºÎÈ¡ÏûProject µÄCQ EnabledµÄÌØÐÔ¡£
Èç¹ûÒ»¸öProject ´ËʱÊÇCQ EnabledµÄ£¬ÔÚProject ExplorerÖУ¬Ñ¡ÖÐÕâ¸ö¹¤³Ì£¨Project£©£¬ÓÒ¼ü£¬Ñ¡ÔñÊôÐÔ£¨properties£©£¬ÔÚ´ò¿ªµÄÊôÐÔÒ³ÖÐÑ¡Ôñ"ClearQuest"Ò³¡£´Ëʱ"Project
is CQ enabled"¸´Ñ¡¿òÓ¦¸ÃÊDZ»Ñ¡ÖеÄ״̬¡£ÏëҪȡÏûÕâ¸ö¹¤³Ì£¨Project£©µÄCQ Enabled
ÌØÐÔ£¬Ö»ÒªÈ¥µô¸´Ñ¡¿òµÄÑ¡ÖÐ״̬¼´¿É¡£"È·¶¨"Ö®ºó£¬ÏµÍ³»áÌáʾȡÏûµÄ²Ù×÷»áÉæ¼°µ½¶àÉÙ¸öClearQuestµÄ¼Ç¼¡£
Èý¡¢ ×ܽá
±¾ÎÄÊ×ÏȼòÒª½éÉÜÁËIBM µÄÈí¼þ°æ±¾¿ØÖƺÍÅäÖùÜÀí¹¤¾ßClearCaseÒÔ¼°È±Ïݸú×Ù¹ÜÀí¹¤¾ßClearQuest£¬²¢ÂÛÊöÁËClearCase
Óë ClearQuest¼¯³ÉµÄÕæÕýº¬Òå¡£ClearCase Óë ClearQuestµÄ¼¯³ÉÖ÷Òª·Ö³ÉÁ½ÖÖ·½Ê½£ºBase ClearCase
Óë ClearQuestµÄ¼¯³ÉÒÔ¼°UCM ClearCase Óë ClearQuestµÄ¼¯³É¡£±¾ÎÄÒÔUCM ClearCase
Óë ClearQuestµÄ¼¯³ÉΪÖ÷£¬Ïêϸ²ûÊöÁ˼¯³ÉÓ¦ÓõÄÒ»°ã²Ù×÷¹ý³Ì¡£Ï£Íûͨ¹ýÔĶÁ±¾ÎÄ£¬ÄÜΪ´ÓÊÂÏà¹Ø¹¤×÷µÄ¿ª·¢ÈËÔ±Ìṩʵ¼ÊµÄʹÓÃÖ¸µ¼¡£
²Î¿¼×ÊÁÏ
Software Configuration Management -A Clear Case for IBM Rational-
UCM ClearCase and ClearQuest.
ClearCase product manual: UCM development guide
ClearCase product manual: UCM project introduction
Multiple DBset application for UCM ClearCase ClearQuest integration
ʹÓÃIBM Rational ClearCaseºÍIBM Rational ClearQuest½øÐÐÁ¼ºÃµÄµç×ӼǼ¹ÜÀí
¹ØÓÚ×÷Õß
É̻۲¨£ºIBMÖйúÈí¼þ¿ª·¢ÊµÑéÊÒ£¬Rational Team£¬Èí¼þ¹¤³Ìʦ¡£shanghb@cn.ibm.com¡£