去评论
dz插件网

单元测试/集成测试自动化 New

哥斯拉
2024/08/26 17:57:24
CoverageMasterwinAMS : 閫傜敤浜庡祵鍏ュ紡鐩爣鏈轰唬鐮佺殑鍗曞厓娴嬭瘯/闆嗘垚娴嬭瘯宸ュ叿
鍏ㄩ潰鏀寔宓屽叆寮忓井鏈猴紒楠岃瘉宓屽叆寮廋/C++杞欢 瀹炴柦浠ユā鍧椾负鍗曚綅鐨勮嚜鍔ㄥ寲鍗曞厓娴嬭瘯宸ュ叿
涓嶉渶瑕丠ookCode 鐩存帴浣跨敤鐩爣鏈轰唬鐮佽繘琛屽崟鍏冩祴璇
鑱斿悎闈欐佽В鏋愬伐鍏穂CasePlayer2]锛屾彁渚汣0锛堣鍙ワ級,C1锛堝垽瀹氾級,MC/DC瑕嗙洊鐜囨姤鍛婏紝浼樺寲娴嬭瘯鐢ㄤ緥鍒朵綔
宸插彇寰楃涓夋柟璁よ瘉鏈烘瀯TUVSUD瀵归傜敤浜庢苯杞︽満鑳藉畨鍏↖SO26262杞欢宸ュ叿鐨勮璇
浜у搧姒傝
[Coveragemaster winAMS]鏄互宓屽叆寮忚蒋浠剁殑鍑芥暟涓哄崟浣嶏紝瀹炴柦妯″潡鍗曞厓娴嬭瘯浠ュ強C0/C1/MCDC瑕嗙洊鐜囨祴璇曪紙coverage test锛夌殑宓屽叆寮忚蒋浠惰嚜鍔ㄥ寲鍗曞厓娴嬭瘯宸ュ叿銆傜洰鏍囨満婧愪唬鐮侀氳繃浜ゅ弶缂栬瘧鍣ㄧ敓鎴愮洰鏍囨満鎵ц浠g爜锛岄氳繃璺熷疄闄呭鐞嗗櫒鍚屾牱鐨勬ā鎷熷鐞嗗櫒鐜杩涜鍗曞厓娴嬭瘯锛屼笉闇瑕佸鎵ц浠g爜鍋氫换浣曞彉鍔紝浣块珮淇¤禆鎬х殑妯″潡娴嬭瘯鎴愪负鍙兘銆傚湪姹借溅鎺у埗杞欢杩欐牱鐨勫瀹夊叏鎬ц姹傛瀬楂樼殑棰嗗煙锛屽崟鍏冩祴璇曞凡缁忔垚涓轰笉鍙己灏戠殑涓閮ㄥ垎銆備娇鐢ㄧ洰鏍囨満浠g爜杩涜鍗曞厓娴嬭瘯涔熸槸涓轰簡绗﹀悎姹借溅琛屼笟涓璉SO26262鍔熻兘瀹夊叏璁よ瘉鏍囧噯銆

浜у搧鐗归暱
鍏ㄩ潰鏀寔宓屽叆寮忓井鏈猴紒楠岃瘉宓屽叆寮廋/C++杞欢 瀹炴柦浠ユā鍧椾负鍗曚綅鐨勮嚜鍔ㄥ寲鍗曞厓娴嬭瘯宸ュ叿
浣滀负鑳藉妫楠屽嚭浠呭嚟绯荤粺娴嬭瘯浠ュ強鏁翠綋娴嬭瘯鏃犳硶鍙戠幇鐨刐娼滃湪閿欒]鐨勬娴嬫柟娉曪紝[鍗曞厓娴嬭瘯]鍦ㄥ祵鍏ュ紡寮鍙戦鍩熷彈鍒板箍娉涢噸瑙嗐傚悓鏃讹紝鍗曞厓娴嬭瘯涔熸槸姹借溅鐢ㄨ蒋浠跺姛鑳藉畨鍏紙ISO26262锛夐鍩熶腑瑕佹眰瀹炴柦鐨勮璇侀」鐩箣涓銆

[Coverage master winAMS]鐩存帴浣跨敤閫氳繃浜ゅ弶缂栬瘧鐢熸垚鐨勭洰鏍囨満浠g爜锛屽湪妯℃嫙澶勭悊鍣ㄧ幆澧冧笅杩涜鍗曞厓娴嬭瘯銆傛棦鑳藉疄鐜癈璇█绋嬪簭鐨勯昏緫涓婄殑鍗曞厓楠岃瘉锛屽張鑳藉瀵瑰祵鍏ュ紡寰満缁勮涓轰骇鍝佸悗鍙兘鍙戠敓鐨勯棶棰樼瓑杩涜鍏锋湁楂樹俊璧栧害鐨勭櫧鐩掞紙white box锛夋祴璇曘

涓嶉渶瑕丠ookCode 浣跨洿鎺ヤ娇鐢ㄧ洰鏍囨満浠g爜杩涜鍗曞厓娴嬭瘯鎴愪负鍙兘鐨勪笟鐣屽敮涓鐨勫伐鍏
鏈変簺鍏徃鐨勫崟鍏冩祴璇曞伐鍏峰線寰閲囩敤鍦ㄨ娴嬭瘯瀵硅薄鐨勬簮浠g爜涓拷鍔犳祴璇曠敤浠g爜鎴栬呮祴璇曠敤椹卞姩鍣ㄧ殑鏂规硶锛屽鑷存祴璇曟椂鎵鐢ㄧ殑浠g爜涓庣粍瑁呬负浜у搧鍚庣殑鐩爣鏈虹敤浠g爜涓嶅悓銆傝櫧鐒禰鐞嗚涓婅繍琛屽姛鑳藉簲璇ユ槸鐩稿悓鐨刔锛屼絾鏄粠宓屽叆寮忓紑鍙戠殑瑙掑害鑰冭檻锛岃繖鏍峰氨濡傚悓瀵逛氦鍙夌紪璇戞墍鐢熸垚鐨勭粡杩囦紭鍖栧鐞嗙殑浠g爜杩涜浜嗗姞宸ワ紝鏃犳硶纭繚鏈缁堜骇鍝佺殑璐ㄩ噺銆侰overage master winAMS鏄笟鐣屽敮涓鐨勶紝鍏锋湁[涓嶉渶瑕佸琚祴璇曞璞″仛浠讳綍鍔犲伐]瀹炴柦鍗曞厓娴嬭瘯鍔熻兘鐨勫伐鍏凤紝鐗瑰埆鏄湪瀹夊叏鎬ц姹傞珮鐨勯鍩熶腑寰楀埌寰堥珮鐨勮瘎浠枫



涓嶉渶寤虹珛鍗曞厓娴嬭瘯涓撶敤鐨勭幆澧冿紝鍙互鍦ㄥ紑鍙戠敤浜ゅ弶缂栬瘧鐜杩涜鍗曞厓娴嬭瘯
Coverage master winAMS涓嶉渶瑕佽拷鍔犱换浣曟祴璇曠敤椹卞姩鍣ㄦ垨娴嬭瘯鐢ㄤ唬鐮侊紝鍙互鐩存帴浣跨敤灏嗙粍瑁呮垚浜у搧鐨勭洰鏍囦唬鐮佽繘琛屽崟鍏冩祴璇曘傚崟鍏冩祴璇曡兘澶熶笌杞欢寮鍙戜娇鐢ㄥ叡鍚岀殑浜ゅ弶缂栬瘧鐜锛屼笉鍐嶉渶瑕佸娴嬭瘯璧勬簮杩涜涓撻棬绠$悊锛屼篃涓嶅啀闇瑕佸缓绔嬪叾浠栦笓鐢ㄧ幆澧冦傚洜姝わ紝鏃㈡柟渚跨▼搴忚祫婧愮鐞嗭紝鍙堣兘澶熺缉鐭噯澶囨祴璇曠幆澧冩墍闇鐨勬椂闂淬

绗﹀悎姹借溅鍔熻兘瀹夊叏鏍囧噯锛圛SO26262锛塠涓嶅仛鍔犲伐鐩存帴浣跨敤鐩爣鏈轰唬鐮佸疄鏂藉崟鍏冩祴璇昡杩欎竴瑕佹眰鐨勬渶浣冲伐鍏
ISO26262鏄粠IEC61508琛嶇敓鍑烘潵鐨勯傜敤浜庢苯杞﹀埗閫犻鍩熺殑鍔熻兘瀹夊叏鏍囧噯銆傚叾涓殑Part.6-9[杞欢绋嬪簭鍗曞厓娴嬭瘯]鍖呮嫭浜嗗叧浜庤蒋浠剁▼搴忕殑鏋勯犺鐩栫巼娴嬭瘯浠ュ強鏈夊叧鐨勮瀹氶」鐩傛牴鎹苯杞﹀畨鍏ㄦ爣鍑嗭紙ASIL锛夛紝鎻愬嚭浜嗘祴璇曡鍙ヨ鐩栫巼锛坰tatement coverage锛夛紝鍒嗘敮瑕嗙洊鐜囷紙branch coverage锛夛紝MC/DC瑕嗙洊鐜囩殑鎺ㄨ崘鎬т簨椤广

鍏朵腑鐨勫彟涓涓帹鑽愭т簨椤规槸

[灏藉彲鑳戒娇鍗曞厓娴嬭瘯鐨勭幆澧冧笌鐩爣鐜鐩稿悓]

鐨勮瀹氥傚鏋滃湪涓庣洰鏍囩幆澧冧笉鍚岀殑鐜涓嬭繘琛屽崟鍏冩祴璇曪紝蹇呴』琛ㄦ槑婧愪唬鐮佷笌鐩爣浠g爜鐨勫樊鍒紝浠ュ強鐩爣鐜鍜屾祴璇曠幆澧冪殑宸埆銆傚洜姝わ紝瀵逛簬閭d簺浣跨敤涓庣洰鏍囧井鏈轰笉鍚岀殑鐢佃剳杩涜缂栬瘧鍜屽崟鍏冩祴璇曠殑鍏朵粬鍏徃鐨勫伐鍏疯岃█锛岃繖涓姹傚緢闅炬弧瓒炽傝繕鏈変簺鍏徃鐨勫崟鍏冩祴璇曞伐鍏疯櫧鐒跺寘鎷氦鍙夌紪璇戠幆澧冨強缂栬瘧鍔熻兘锛岃屼笖涔熻兘澶熷湪涓庣洰鏍囩幆澧冪浉鍚岀殑鐜涓嬭繘琛屾祴璇曪紝浣嗘槸鎵鏈夌殑娴嬭瘯閮介渶瑕佹彃鍏ユ祴璇曠敤浠g爜锛岃繘琛屽啀娆$紪璇戯紝鍥犳娴嬭瘯涔熷彧鑳藉湪涓庣洰鏍囩幆澧冧笉鍚岀殑鐜涓嬪疄鏂姐

GAIO鎻愪緵鐨勫崟鍏冩祴璇曞伐鍏稢overage master winAMS鍏锋湁

鈼忛噰鐢ㄥ叏闈㈡敮鎸佸祵鍏ュ紡寰満鐨勫井鏈哄寲鍔熻兘娴嬭瘯骞冲彴鐜鈼忎笉闇瑕佹彃鍏ユ祴璇曠敤浠g爜鐩存帴浣跨敤鐩爣鏈轰唬鐮佽繘琛屾祴璇

鐨勭壒寰侊紝鎻愪緵绗﹀悎ISO26262鏍囧噯瑕佹眰鐨勫繀椤诲姛鑳姐侴AIO鎻愪緵鐨凜overagemaster winAMS鏄鍚圛SO26262鏍囧噯[鐩存帴浣跨敤鏁磋鐢ㄤ唬鐮佸疄鏂藉崟鍏冩祴璇昡杩欎竴瑕佹眰鐨勪笟鐣屽敮涓鐨勫伐鍏枫

鍏充簬姹借溅鏈鸿兘瀹夊叏ISO26262鐨勫搴斾互鍙婅璇佺殑鑾峰緱
宸插彇寰楃涓夋柟璁よ瘉鏈烘瀯TUVSUD瀵归傜敤浜庢苯杞︽満鑳藉畨鍏↖SO26262杞欢宸ュ叿鐨勮璇
2012骞6鏈28鏃ワ紝銆孋overage master winAMS /General銆嶆祴璇曞伐鍏疯幏寰楃敱寰峰浗TUVSUD绗笁鏂硅璇佹満鏋勶紝鍦ㄦ苯杞︽満鑳藉畨鍏ㄨ鏍肩殑ISO26262杞欢宸ュ叿鏂归潰鐨勮璇侊紝鍖呮嫭鏃ユ湰鍦ㄥ唴浜氭床鍦板尯棣栨鑾峰緱璇ラ」璁よ瘉銆

閫氳繃姝ら」璁よ瘉锛岃鏄庢湰鍏徃鐨勫崟鍏冩祴璇曞伐鍏枫孋overage master winAMS /General銆嶏紝浠ュ強绋嬪簭鍒嗘瀽宸ュ叿銆孋asePlayer2銆嶏紝鍦ㄩ潤鎬佸垎鏋愬拰鍗曞厓娴嬭瘯棰嗗煙锛屾槸绗﹀悎鎵鏈夊畨鍏ㄥ害姘村噯鐨勫伐鍏凤紝骞剁敱TUVSUD璁よ瘉鏈烘瀯寰楀埌浜嗕繚闅溿

ISO 26262瀵逛簬涓嶅悓鐨勫紑鍙戠敤杞欢宸ュ叿鍦ㄥ伐鍏风疆淇℃按骞筹紙TCL锛夛紝閮介渶瑕佸紑鍙戣呮彁渚涘紑鍙戣蒋浠跺伐鍏风殑璁よ瘉涔︺傛椤硅璇侀傜敤浜庡湪宸ュ叿璁よ瘉褰撲腑锛屾渶涓哄鏉傜殑TCL3宸ュ叿璁よ瘉鏍囧噯銆傚洜姝わ紝瀵煎叆鏈叕鍙哥殑鍗曞厓娴嬭瘯宸ュ叿涔嬪悗锛屼笉闇瑕佸TCL鐨勯儴鍒嗚繘琛岃璇侊紝杩涜屽彲浠ョ缉鍑忔墜缁窡鏃堕棿銆

涓昏鐨勫崟鍏冩祴璇曞姛鑳
閲囩敤SSTManager绠$悊鍗曞厓娴嬭瘯project
SSTManager鏄疌overage master winAMS鐨勫簲鐢ㄥ姛鑳斤紝鐢ㄤ簬绠$悊鍗曞厓娴嬭瘯project锛屽埗浣滄祴璇曟暟鎹紙test data锛夈備粠璁惧畾娴嬭瘯鐜寮濮嬶紝鍒版姤鍛婃祴璇曠粨鏋滀负姝紝鍧囩敱寰満鍖栧姛鑳芥祴璇曞钩鍙帮紙ISS锛夊疄鏂界患鍚堢鐞嗐

閲囩敤閫氱敤渚垮埄鐨凜SV鏂囦欢绠$悊娴嬭瘯鏁版嵁鐨勮緭鍏ヨ緭鍑
Coverage masterwinAMS涓嶉渶瑕佹彃鍏ユ祴璇曠敤浠g爜锛岀洿鎺ヤ娇鐢ㄧ洰鏍囨満浠g爜杩涜鍗曞厓娴嬭瘯銆傞噰鐢ㄩ氱敤渚垮埄鐨凜SV鏂囦欢绠$悊鍑芥暟娴嬭瘯鏃朵娇鐢ㄧ殑杈撳叆杈撳嚭鏁版嵁銆傛祴璇曠粨鏉熷悗锛岃緭鍑虹殑娴嬭瘯缁撴灉鍜岃緭鍑虹殑鏈熷緟鍊间篃灏嗕互鐩稿悓鐨勬牸寮忔樉绀哄湪CSV鏂囦欢涔嬩腑銆

C0/C1瑕嗙洊鐜囨姤鍛婄殑鑷姩鍖栧埗浣滃姛鑳斤紙鏍囧噯鍔熻兘锛
鏍规嵁娴嬭瘯鐨勮緭鍏ヨ緭鍑烘暟鎹嚜鍔ㄦ姤鍛婄浉搴旀簮浠g爜鐨凜0/C1娴嬭瘯瑕嗙洊鐜囩粨鏋溿傚寘鎷氳繃鍥惧舰锛坴iewer锛夋樉绀烘祴璇曟暟鎹紝浠ュ強涓庡叾鐩稿簲鐨勮娴嬭瘯鐨勬簮浠g爜璺緞鐨勫姛鑳斤紝鐢ㄤ簬鍒嗘瀽娴嬭瘯缁撴灉銆備綔涓洪夐」鍔熻兘涔熷寘鎷琈C/DC瑕嗙洊鐜囨祴璇曞姛鑳姐


MC/DC瑕嗙洊鐜囩殑鑷姩鍖栨祴璇曞姛鑳斤紙閫夐」鍔熻兘锛
浣滀负閫夐」鍔熻兘鎻愪緵MC/DC瑕嗙洊鐜囨祴璇曞姛鑳姐侰0/C1瑕嗙洊鐜囨祴璇曚笉闇瑕佸姞宸ュ嵆鍙洿鎺ヤ娇鐢ㄧ洰鏍囨満浠g爜銆傜劧鑰岋紝MC/DC瑕嗙洊鐜囨祴璇曞浜庡鍚堝紡鐨勬潯浠跺紡锛岄渶瑕佽嚜鍔ㄦ彃鍏ookCode灏嗗鍚堝紡鐨勬潯浠跺紡鍒嗚В锛屾墠鑳藉鍚勬潯浠跺紡杩涜娴嬭瘯銆傝繖鏍峰氨鏈夊彲鑳藉鑷存祴璇曠敤浠g爜涓庣洰鏍囨満鐢ㄤ唬鐮佺殑涓嶅悓銆備负浜嗛獙璇丠ookCode鐨勫Ε褰撴э紝鍦∕C/DC瑕嗙洊鐜囨祴璇曠殑鍚屾椂锛岃繍琛岀洰鏍囨満浠g爜锛岀‘璁よ繍琛岀粨鏋滀笌鏈熷緟鍊肩殑涓鑷存с

娉:鍙冲浘涓句緥鏄剧ず锛岀2涓猧f鍙ョ殑澶嶅悎鏉′欢寮忎腑锛孾gbc>30]涓篺alse鏃剁殑鍒嗘敮娌℃湁琚祴璇曞埌銆備互C1瑕嗙洊鐜囨祴璇曟潵璇达紝瀹冪殑娴嬭瘯缁撴灉鏄疧K锛涜屽浜嶮C/DC瑕嗙洊鐜囨祴璇曟潵璇达紝瀹冪殑缁撴灉鏄疦G銆

娉:MC/DC瑕嗙洊鐜囨祴璇曞姛鑳戒笉鏀寔C++绋嬪簭銆

鍗曞厓娴嬭瘯鐨勬晥鐜囧寲鍔熻兘
鑱斿悎绋嬪簭瑙f瀽宸ュ叿CasePlayer2锛屽疄鐜颁唬鐮佸弬鐓цВ鏋愪綔涓氱殑鏁堢巼鍖
鍒╃敤CasePlayer2鐢熸垚鐨勬祦绋嬪浘琛ㄤ互鍙婃ā鍧楁瀯閫犲浘锛堣皟鐢ㄥ嚱鏁扮殑鏋勯犲浘锛変笌婧愪唬鐮佺殑杩炴帴锛坙ink锛夊姛鑳斤紝浣垮崟鍏冩祴璇曠敤婧愪唬鐮佺殑瑙f瀽宸ヤ綔鏁堢巼鍖栥

鑳藉鑷姩妫绱㈣娴嬭瘯鍑芥暟鐨勫閮ㄥ彉閲忥紝浣挎祴璇曟潯浠惰瀹氭晥鐜囧寲
鑱斿悎绋嬪簭瑙f瀽宸ュ叿CasePlayer2锛岃嚜鍔ㄦ绱㈣娴嬭瘯鍑芥暟鎵浣跨敤鐨勫閮ㄥ彉閲忋傜缉鐭簡浠ュ線蹇呴』瀵规簮浠g爜杩涜鎼滅储鎵惧嚭杈撳叆鏉′欢鐨勫彉閲忔墍闇鐨勫伐浣溿傝屼笖锛岃兘澶熼槻姝汉宸ユ搷浣滃鑷寸殑绫讳技鍙橀噺鎸囧畾閬楁紡鐨勭殑閿欒銆


鏍规嵁浠g爜瑙f瀽鑷姩鍖栧埗浣淐0锛孋1锛孧C/DC 瑕嗙洊鐜囨祴璇曡鍒
鑱斿悎绋嬪簭瑙f瀽宸ュ叿CasePlayer2锛岃嚜鍔ㄥ寲鍒朵綔绗﹀悎瑕嗙洊鐜囨祴璇曡姹傜殑鏉′欢鍒嗘敮if,switch,for,while绛夌殑娴嬭瘯鏁版嵁銆傚彲浠ュ皢琚祴璇曞嚱鏁颁腑鍚湁鐨勬潯浠跺紡锛坕f浠ュ強switch绛夛級鍦ㄦ暟鎹埗鎴愬浘褰(Viewer)涓婂垪琛ㄦ樉绀恒傜偣鍑诲叾涓殑鏉′欢锛屽伐鍏峰皢鑷姩寮濮嬫绱笌涔嬬浉鍏崇殑鍙橀噺锛岃繘鑰屼粠鎵璁剧疆鐨勬潯浠剁殑澧冪晫鍊间腑鑷姩鐢熸垚瑕嗙洊鐜囨祴璇曟墍闇瑕佺殑鏁版嵁銆

涓轰簡杈惧埌C1/MCDC瑕嗙洊鐜囷紝娴嬭瘯鏃堕渶瑕佸鍚勫嚱鏁扮殑鏁版嵁杩涜缁勫悎銆傚埄鐢–asePlayer2鎻愪緵鐨勮В鏋愮粨鏋滐紝鍒嗘瀽鏉′欢寮忕殑net鏋勯狅紝鍦ㄩ噸澶嶆ч檺鍒跺湪鏈灏忛檺搴︿笅鐢熸垚C1/MCDC瑕嗙洊鐜囨祴璇曠敤鏁版嵁銆



鏀寔MPU
銆CoverageMaster winAMS Supported ProcessorList(English)

鍔ㄤ綔鐜
銉绘搷浣淧C/OS
銉籌BM PC/AT 鍏煎鏈
銉籔entium(鐩稿綋) 2GHz 浠ヤ笂鐨凜PU
銉诲瓨鍌ㄥ櫒 512MB 浠ヤ笂锛堟帹鑽愬硷級
銉绘樉绀哄櫒鍒嗚鲸鐜 XGA(1024*768)浠ヤ笂锛堟帹鑽愬硷級
銉籛indows XP, WindowsVista, Windows 7锛32bit/64bit锛夛紙鈥籛indows 95/98/Me/NT/2000 鏈敮鎸侊級