1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8"/>
- <title>Test Report</title>
- <link href="assets/style.css" rel="stylesheet" type="text/css"/></head>
- <body onLoad="init()">
- <script>/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this file,
- * You can obtain one at http://mozilla.org/MPL/2.0/. */
- function toArray(iter) {
- if (iter === null) {
- return null;
- }
- return Array.prototype.slice.call(iter);
- }
- function find(selector, elem) { // eslint-disable-line no-redeclare
- if (!elem) {
- elem = document;
- }
- return elem.querySelector(selector);
- }
- function findAll(selector, elem) {
- if (!elem) {
- elem = document;
- }
- return toArray(elem.querySelectorAll(selector));
- }
- function sortColumn(elem) {
- toggleSortStates(elem);
- const colIndex = toArray(elem.parentNode.childNodes).indexOf(elem);
- let key;
- if (elem.classList.contains('result')) {
- key = keyResult;
- } else if (elem.classList.contains('links')) {
- key = keyLink;
- } else {
- key = keyAlpha;
- }
- sortTable(elem, key(colIndex));
- }
- function showAllExtras() { // eslint-disable-line no-unused-vars
- findAll('.col-result').forEach(showExtras);
- }
- function hideAllExtras() { // eslint-disable-line no-unused-vars
- findAll('.col-result').forEach(hideExtras);
- }
- function showExtras(colresultElem) {
- const extras = colresultElem.parentNode.nextElementSibling;
- const expandcollapse = colresultElem.firstElementChild;
- extras.classList.remove('collapsed');
- expandcollapse.classList.remove('expander');
- expandcollapse.classList.add('collapser');
- }
- function hideExtras(colresultElem) {
- const extras = colresultElem.parentNode.nextElementSibling;
- const expandcollapse = colresultElem.firstElementChild;
- extras.classList.add('collapsed');
- expandcollapse.classList.remove('collapser');
- expandcollapse.classList.add('expander');
- }
- function showFilters() {
- const filterItems = document.getElementsByClassName('filter');
- for (let i = 0; i < filterItems.length; i++)
- filterItems[i].hidden = false;
- }
- function addCollapse() {
- // Add links for show/hide all
- const resulttable = find('table#results-table');
- const showhideall = document.createElement('p');
- showhideall.innerHTML = '<a href="javascript:showAllExtras()">Show all details</a> / ' +
- '<a href="javascript:hideAllExtras()">Hide all details</a>';
- resulttable.parentElement.insertBefore(showhideall, resulttable);
- // Add show/hide link to each result
- findAll('.col-result').forEach(function(elem) {
- const collapsed = getQueryParameter('collapsed') || 'Passed';
- const extras = elem.parentNode.nextElementSibling;
- const expandcollapse = document.createElement('span');
- if (extras.classList.contains('collapsed')) {
- expandcollapse.classList.add('expander');
- } else if (collapsed.includes(elem.innerHTML)) {
- extras.classList.add('collapsed');
- expandcollapse.classList.add('expander');
- } else {
- expandcollapse.classList.add('collapser');
- }
- elem.appendChild(expandcollapse);
- elem.addEventListener('click', function(event) {
- if (event.currentTarget.parentNode.nextElementSibling.classList.contains('collapsed')) {
- showExtras(event.currentTarget);
- } else {
- hideExtras(event.currentTarget);
- }
- });
- });
- }
- function getQueryParameter(name) {
- const match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
- return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
- }
- function init () { // eslint-disable-line no-unused-vars
- resetSortHeaders();
- addCollapse();
- showFilters();
- sortColumn(find('.initial-sort'));
- findAll('.sortable').forEach(function(elem) {
- elem.addEventListener('click',
- function() {
- sortColumn(elem);
- }, false);
- });
- }
- function sortTable(clicked, keyFunc) {
- const rows = findAll('.results-table-row');
- const reversed = !clicked.classList.contains('asc');
- const sortedRows = sort(rows, keyFunc, reversed);
- /* Whole table is removed here because browsers acts much slower
- * when appending existing elements.
- */
- const thead = document.getElementById('results-table-head');
- document.getElementById('results-table').remove();
- const parent = document.createElement('table');
- parent.id = 'results-table';
- parent.appendChild(thead);
- sortedRows.forEach(function(elem) {
- parent.appendChild(elem);
- });
- document.getElementsByTagName('BODY')[0].appendChild(parent);
- }
- function sort(items, keyFunc, reversed) {
- const sortArray = items.map(function(item, i) {
- return [keyFunc(item), i];
- });
- sortArray.sort(function(a, b) {
- const keyA = a[0];
- const keyB = b[0];
- if (keyA == keyB) return 0;
- if (reversed) {
- return keyA < keyB ? 1 : -1;
- } else {
- return keyA > keyB ? 1 : -1;
- }
- });
- return sortArray.map(function(item) {
- const index = item[1];
- return items[index];
- });
- }
- function keyAlpha(colIndex) {
- return function(elem) {
- return elem.childNodes[1].childNodes[colIndex].firstChild.data.toLowerCase();
- };
- }
- function keyLink(colIndex) {
- return function(elem) {
- const dataCell = elem.childNodes[1].childNodes[colIndex].firstChild;
- return dataCell == null ? '' : dataCell.innerText.toLowerCase();
- };
- }
- function keyResult(colIndex) {
- return function(elem) {
- const strings = ['Error', 'Failed', 'Rerun', 'XFailed', 'XPassed',
- 'Skipped', 'Passed'];
- return strings.indexOf(elem.childNodes[1].childNodes[colIndex].firstChild.data);
- };
- }
- function resetSortHeaders() {
- findAll('.sort-icon').forEach(function(elem) {
- elem.parentNode.removeChild(elem);
- });
- findAll('.sortable').forEach(function(elem) {
- const icon = document.createElement('div');
- icon.className = 'sort-icon';
- icon.textContent = 'vvv';
- elem.insertBefore(icon, elem.firstChild);
- elem.classList.remove('desc', 'active');
- elem.classList.add('asc', 'inactive');
- });
- }
- function toggleSortStates(elem) {
- //if active, toggle between asc and desc
- if (elem.classList.contains('active')) {
- elem.classList.toggle('asc');
- elem.classList.toggle('desc');
- }
- //if inactive, reset all other functions and add ascending active
- if (elem.classList.contains('inactive')) {
- resetSortHeaders();
- elem.classList.remove('inactive');
- elem.classList.add('active');
- }
- }
- function isAllRowsHidden(value) {
- return value.hidden == false;
- }
- function filterTable(elem) { // eslint-disable-line no-unused-vars
- const outcomeAtt = 'data-test-result';
- const outcome = elem.getAttribute(outcomeAtt);
- const classOutcome = outcome + ' results-table-row';
- const outcomeRows = document.getElementsByClassName(classOutcome);
- for(let i = 0; i < outcomeRows.length; i++){
- outcomeRows[i].hidden = !elem.checked;
- }
- const rows = findAll('.results-table-row').filter(isAllRowsHidden);
- const allRowsHidden = rows.length == 0 ? true : false;
- const notFoundMessage = document.getElementById('not-found-message');
- notFoundMessage.hidden = !allRowsHidden;
- }
- </script>
- <h1>reportname.html</h1>
- <p>Report generated on 11-Oct-2022 at 10:07:57 by <a href="https://pypi.python.org/pypi/pytest-html">pytest-html</a> v3.1.1</p>
- <h2>Environment</h2>
- <table id="environment">
- <tr>
- <td>Packages</td>
- <td>{"pluggy": "1.0.0", "py": "1.11.0", "pytest": "7.1.3"}</td></tr>
- <tr>
- <td>Platform</td>
- <td>Windows-10-10.0.22000-SP0</td></tr>
- <tr>
- <td>Plugins</td>
- <td>{"allure-pytest": "2.10.0", "dependency": "0.5.1", "forked": "1.4.0", "html": "3.1.1", "metadata": "2.0.2", "ordering": "0.6", "rerunfailures": "10.2", "xdist": "2.5.0"}</td></tr>
- <tr>
- <td>Python</td>
- <td>3.9.5</td></tr></table>
- <h2>Summary</h2>
- <p>68 tests ran in 2.11 seconds. </p>
- <p class="filter" hidden="true">(Un)check the boxes to filter the results.</p><input checked="true" class="filter" data-test-result="passed" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="passed">54 passed</span>, <input checked="true" class="filter" data-test-result="skipped" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="skipped">0 skipped</span>, <input checked="true" class="filter" data-test-result="failed" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="failed">14 failed</span>, <input checked="true" class="filter" data-test-result="error" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="error">0 errors</span>, <input checked="true" class="filter" data-test-result="xfailed" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="xfailed">0 expected failures</span>, <input checked="true" class="filter" data-test-result="xpassed" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="xpassed">0 unexpected passes</span>, <input checked="true" class="filter" data-test-result="rerun" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="rerun">0 rerun</span>
- <h2>Results</h2>
- <table id="results-table">
- <thead id="results-table-head">
- <tr>
- <th class="sortable result initial-sort" col="result">Result</th>
- <th class="sortable" col="name">Test</th>
- <th class="sortable" col="duration">Duration</th>
- <th class="sortable links" col="links">Links</th></tr>
- <tr hidden="true" id="not-found-message">
- <th colspan="4">No results found. Try to check the filters</th></tr></thead>
- <tbody class="failed results-table-row">
- <tr>
- <td class="col-result">Failed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[Dem-DemResetConfirmedBitOnOverflow-false]</td>
- <td class="col-duration">0.02</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log">module_name = 'Dem', param_name = 'DemResetConfirmedBitOnOverflow', expect_value = 'false'<br/><br/> @allure.feature('Fix Value Parameter Check')<br/> @pytest.mark.parametrize("module_name, param_name, expect_value", get_xlsx_data_by_filter(PROJECT_TYPE, ItemType.FIXED_VALUE))<br/> def test_fix_value_case(module_name, param_name, expect_value):<br/> '''<br/> 该用例适用于 对某一配置项值进行检查,可能有多个container 都具有该配置项,但所有配置项的值都相同,为一固定值。<br/> 当有一个值与预期值不匹配时,将报错。<br/> :param module_name:<br/> :param param_name:<br/> :param expect_value:<br/> :return:<br/> '''<br/> item = (param_name, expect_value)<br/> res = check_module_param_check(PROJECT, module_name, item)<br/> <br/>> assert True == res<br/><span class="error">E assert True == False</span><br/><br/>testcase\test_case.py:34: AssertionError<br/> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DemResetConfirmedBitOnOverflow not match! Expect Value false != true'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>ERROR root:CfgCheckBase.py:48 Check Param DemResetConfirmedBitOnOverflow not match! Expect Value false != true<br/></div></td></tr></tbody>
- <tbody class="failed results-table-row">
- <tr>
- <td class="col-result">Failed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[Dem-DemPendingDtcProcessing-DEM_PROCESS_PDTC_ALL_DTC]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log">module_name = 'Dem', param_name = 'DemPendingDtcProcessing', expect_value = 'DEM_PROCESS_PDTC_ALL_DTC'<br/><br/> @allure.feature('Fix Value Parameter Check')<br/> @pytest.mark.parametrize("module_name, param_name, expect_value", get_xlsx_data_by_filter(PROJECT_TYPE, ItemType.FIXED_VALUE))<br/> def test_fix_value_case(module_name, param_name, expect_value):<br/> '''<br/> 该用例适用于 对某一配置项值进行检查,可能有多个container 都具有该配置项,但所有配置项的值都相同,为一固定值。<br/> 当有一个值与预期值不匹配时,将报错。<br/> :param module_name:<br/> :param param_name:<br/> :param expect_value:<br/> :return:<br/> '''<br/> item = (param_name, expect_value)<br/> res = check_module_param_check(PROJECT, module_name, item)<br/> <br/>> assert True == res<br/><span class="error">E assert True == False</span><br/><br/>testcase\test_case.py:34: AssertionError<br/> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DemPendingDtcProcessing not match! Expect Value DEM_PROCESS_PDTC_ALL_DTC != DEM_PROCESS_PDTC_STOREDONLY'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>ERROR root:CfgCheckBase.py:48 Check Param DemPendingDtcProcessing not match! Expect Value DEM_PROCESS_PDTC_ALL_DTC != DEM_PROCESS_PDTC_STOREDONLY<br/></div></td></tr></tbody>
- <tbody class="failed results-table-row">
- <tr>
- <td class="col-result">Failed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[Dem-DemWarningIndicatorRequestedProcessing-DEM_PROCESS_WIR_ALL_DTC]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log">module_name = 'Dem', param_name = 'DemWarningIndicatorRequestedProcessing', expect_value = 'DEM_PROCESS_WIR_ALL_DTC'<br/><br/> @allure.feature('Fix Value Parameter Check')<br/> @pytest.mark.parametrize("module_name, param_name, expect_value", get_xlsx_data_by_filter(PROJECT_TYPE, ItemType.FIXED_VALUE))<br/> def test_fix_value_case(module_name, param_name, expect_value):<br/> '''<br/> 该用例适用于 对某一配置项值进行检查,可能有多个container 都具有该配置项,但所有配置项的值都相同,为一固定值。<br/> 当有一个值与预期值不匹配时,将报错。<br/> :param module_name:<br/> :param param_name:<br/> :param expect_value:<br/> :return:<br/> '''<br/> item = (param_name, expect_value)<br/> res = check_module_param_check(PROJECT, module_name, item)<br/> <br/>> assert True == res<br/><span class="error">E assert True == False</span><br/><br/>testcase\test_case.py:34: AssertionError<br/> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DemWarningIndicatorRequestedProcessing not match! Expect Value DEM_PROCESS_WIR_ALL_DTC != DEM_PROCESS_WIR_STOREDONLY'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>ERROR root:CfgCheckBase.py:48 Check Param DemWarningIndicatorRequestedProcessing not match! Expect Value DEM_PROCESS_WIR_ALL_DTC != DEM_PROCESS_WIR_STOREDONLY<br/></div></td></tr></tbody>
- <tbody class="failed results-table-row">
- <tr>
- <td class="col-result">Failed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[DoIP-DoIPTcpTxMgtQueueSize-31]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log">module_name = 'DoIP', param_name = 'DoIPTcpTxMgtQueueSize', expect_value = '31'<br/><br/> @allure.feature('Fix Value Parameter Check')<br/> @pytest.mark.parametrize("module_name, param_name, expect_value", get_xlsx_data_by_filter(PROJECT_TYPE, ItemType.FIXED_VALUE))<br/> def test_fix_value_case(module_name, param_name, expect_value):<br/> '''<br/> 该用例适用于 对某一配置项值进行检查,可能有多个container 都具有该配置项,但所有配置项的值都相同,为一固定值。<br/> 当有一个值与预期值不匹配时,将报错。<br/> :param module_name:<br/> :param param_name:<br/> :param expect_value:<br/> :return:<br/> '''<br/> item = (param_name, expect_value)<br/> res = check_module_param_check(PROJECT, module_name, item)<br/> <br/>> assert True == res<br/><span class="error">E assert True == False</span><br/><br/>testcase\test_case.py:34: AssertionError<br/> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DoIPTcpTxMgtQueueSize not match! Expect Value 31 != 34'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>ERROR root:CfgCheckBase.py:48 Check Param DoIPTcpTxMgtQueueSize not match! Expect Value 31 != 34<br/></div></td></tr></tbody>
- <tbody class="failed results-table-row">
- <tr>
- <td class="col-result">Failed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[Dcm-DcmDspMaxDidToRead-3]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log">module_name = 'Dcm', param_name = 'DcmDspMaxDidToRead', expect_value = '3'<br/><br/> @allure.feature('Fix Value Parameter Check')<br/> @pytest.mark.parametrize("module_name, param_name, expect_value", get_xlsx_data_by_filter(PROJECT_TYPE, ItemType.FIXED_VALUE))<br/> def test_fix_value_case(module_name, param_name, expect_value):<br/> '''<br/> 该用例适用于 对某一配置项值进行检查,可能有多个container 都具有该配置项,但所有配置项的值都相同,为一固定值。<br/> 当有一个值与预期值不匹配时,将报错。<br/> :param module_name:<br/> :param param_name:<br/> :param expect_value:<br/> :return:<br/> '''<br/> item = (param_name, expect_value)<br/> res = check_module_param_check(PROJECT, module_name, item)<br/> <br/>> assert True == res<br/><span class="error">E assert True == False</span><br/><br/>testcase\test_case.py:34: AssertionError<br/> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DcmDspMaxDidToRead not match! Expect Value 3 != 1'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>ERROR root:CfgCheckBase.py:48 Check Param DcmDspMaxDidToRead not match! Expect Value 3 != 1<br/></div></td></tr></tbody>
- <tbody class="failed results-table-row">
- <tr>
- <td class="col-result">Failed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[DoIP-DoIPRoutingActivationConfirmationReqLength-4]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log">module_name = 'DoIP', param_name = 'DoIPRoutingActivationConfirmationReqLength', expect_value = '4'<br/><br/> @allure.feature('Fix Value Parameter Check')<br/> @pytest.mark.parametrize("module_name, param_name, expect_value", get_xlsx_data_by_filter(PROJECT_TYPE, ItemType.FIXED_VALUE))<br/> def test_fix_value_case(module_name, param_name, expect_value):<br/> '''<br/> 该用例适用于 对某一配置项值进行检查,可能有多个container 都具有该配置项,但所有配置项的值都相同,为一固定值。<br/> 当有一个值与预期值不匹配时,将报错。<br/> :param module_name:<br/> :param param_name:<br/> :param expect_value:<br/> :return:<br/> '''<br/> item = (param_name, expect_value)<br/>> res = check_module_param_check(PROJECT, module_name, item)<br/><br/>testcase\test_case.py:32: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/>Base\ModuleCfgCheck.py:96: in check_module_param_check<br/> cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)<br/>Base\ModuleCfgCheck.py:64: in do_param_check<br/> match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/><br/>self = <Base.CfgCheckBase.CfgCheckBase object at 0x000001804B4188E0><br/>element = <Element {http://autosar.org/schema/r4.0}AUTOSAR at 0x1804b417c40><br/>param_name = 'DoIPRoutingActivationConfirmationReqLength', param_expect_value = '4', is_multi_container = False<br/><br/> def parameter_match(self, element: etree.Element,<br/> param_name: str,<br/> param_expect_value: str,<br/> is_multi_container:bool = False) -> bool:<br/> '''<br/> <br/> :param element: 待查询container<br/> :param param_name: 配置项值<br/> :param param_expect_value: 期望的配置值<br/> :param is_multi_container: 是否匹配多个相同的配置项<br/> :return: 是否与期望值匹配<br/> '''<br/> <br/> param_definition_ref_containers = Arxml.get_all_match_element(element,<br/> './/DEFINITION-REF',<br/> param_name,<br/> xpath_rule='CONTAINS')<br/> compare_result = True<br/>> if len(param_definition_ref_containers) != 0:<br/><span class="error">E TypeError: object of type 'NoneType' has no len()</span><br/><br/>Base\CfgCheckBase.py:35: TypeError<br/></div></td></tr></tbody>
- <tbody class="failed results-table-row">
- <tr>
- <td class="col-result">Failed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[DoIP-DoIPRoutingActivationConfirmationResLength-4]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log">module_name = 'DoIP', param_name = 'DoIPRoutingActivationConfirmationResLength', expect_value = '4'<br/><br/> @allure.feature('Fix Value Parameter Check')<br/> @pytest.mark.parametrize("module_name, param_name, expect_value", get_xlsx_data_by_filter(PROJECT_TYPE, ItemType.FIXED_VALUE))<br/> def test_fix_value_case(module_name, param_name, expect_value):<br/> '''<br/> 该用例适用于 对某一配置项值进行检查,可能有多个container 都具有该配置项,但所有配置项的值都相同,为一固定值。<br/> 当有一个值与预期值不匹配时,将报错。<br/> :param module_name:<br/> :param param_name:<br/> :param expect_value:<br/> :return:<br/> '''<br/> item = (param_name, expect_value)<br/>> res = check_module_param_check(PROJECT, module_name, item)<br/><br/>testcase\test_case.py:32: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/>Base\ModuleCfgCheck.py:96: in check_module_param_check<br/> cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)<br/>Base\ModuleCfgCheck.py:64: in do_param_check<br/> match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/><br/>self = <Base.CfgCheckBase.CfgCheckBase object at 0x000001804B422460><br/>element = <Element {http://autosar.org/schema/r4.0}AUTOSAR at 0x1804b41dd40><br/>param_name = 'DoIPRoutingActivationConfirmationResLength', param_expect_value = '4', is_multi_container = False<br/><br/> def parameter_match(self, element: etree.Element,<br/> param_name: str,<br/> param_expect_value: str,<br/> is_multi_container:bool = False) -> bool:<br/> '''<br/> <br/> :param element: 待查询container<br/> :param param_name: 配置项值<br/> :param param_expect_value: 期望的配置值<br/> :param is_multi_container: 是否匹配多个相同的配置项<br/> :return: 是否与期望值匹配<br/> '''<br/> <br/> param_definition_ref_containers = Arxml.get_all_match_element(element,<br/> './/DEFINITION-REF',<br/> param_name,<br/> xpath_rule='CONTAINS')<br/> compare_result = True<br/>> if len(param_definition_ref_containers) != 0:<br/><span class="error">E TypeError: object of type 'NoneType' has no len()</span><br/><br/>Base\CfgCheckBase.py:35: TypeError<br/></div></td></tr></tbody>
- <tbody class="failed results-table-row">
- <tr>
- <td class="col-result">Failed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[DoIP-DoIPSupportVidWithEId-true]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log">module_name = 'DoIP', param_name = 'DoIPSupportVidWithEId', expect_value = 'true'<br/><br/> @allure.feature('Fix Value Parameter Check')<br/> @pytest.mark.parametrize("module_name, param_name, expect_value", get_xlsx_data_by_filter(PROJECT_TYPE, ItemType.FIXED_VALUE))<br/> def test_fix_value_case(module_name, param_name, expect_value):<br/> '''<br/> 该用例适用于 对某一配置项值进行检查,可能有多个container 都具有该配置项,但所有配置项的值都相同,为一固定值。<br/> 当有一个值与预期值不匹配时,将报错。<br/> :param module_name:<br/> :param param_name:<br/> :param expect_value:<br/> :return:<br/> '''<br/> item = (param_name, expect_value)<br/> res = check_module_param_check(PROJECT, module_name, item)<br/> <br/>> assert True == res<br/><span class="error">E assert True == False</span><br/><br/>testcase\test_case.py:34: AssertionError<br/> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DoIPSupportVidWithEId not match! Expect Value true != false'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>ERROR root:CfgCheckBase.py:48 Check Param DoIPSupportVidWithEId not match! Expect Value true != false<br/></div></td></tr></tbody>
- <tbody class="failed results-table-row">
- <tr>
- <td class="col-result">Failed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[ComM-search_pattern9-ComMNmVariant-FULL]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log">module_name = 'ComM'<br/>search_pattern = {'xpath_rule': 'CONTAINS', 'xpath_str': './/SHORT-NAME', 'xpath_text': 'PTEXTCAN'}<br/>param_name = 'ComMNmVariant', expect_value = 'FULL'<br/><br/> @allure.feature('Custom Pattern Parameter Check')<br/> @pytest.mark.parametrize("module_name, search_pattern, param_name, expect_value", get_xlsx_data_by_filter(PROJECT_TYPE, ItemType.CUSTOM_PATTERN))<br/> def test_custom_pattern_case(module_name, search_pattern, param_name, expect_value):<br/> '''<br/> 该用例适用于测试 通过某种模式规则,定位到唯一的container, 该container包含的指定配置项,是否与期望值相同。<br/> 例如,可能多个container 都具有该配置项,但对于目标container, 可能和其他container 配置值不同。<br/> :param module_name:<br/> :param search_pattern:<br/> :param param_name:<br/> :param expect_value:<br/> :return:<br/> '''<br/> item = (param_name, expect_value)<br/> res = check_module_param_check(PROJECT, module_name, item, search_pattern)<br/> <br/>> assert True == res<br/><span class="error">E assert True == False</span><br/><br/>testcase\test_case.py:51: AssertionError<br/> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="2d9080b7-9e57-356e-8706-416c07a10755"><SHORT-NAME>PTEXTCAN2Connector_4204420a</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">PTEXTCAN2Connector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMBusType</DEFINITION-REF><VALUE>COMM_BUS_TYPE_CAN</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMChannelId</DEFINITION-REF><VALUE>6</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMFullCommRequestNotificationEnabled</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMMainFunctionPeriod</DEFINITION-REF><VALUE>0.01</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoCom</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoWakeup</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES><SUB-CONTAINERS><ECUC-CONTAINER-VALUE UUID="a491ef01-ca24-3f66-876e-83cc14b4f354"><SHORT-NAME>ComMNetworkManagement</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmVariant</DEFINITION-REF><VALUE>LIGHT</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMPncNmRequest</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmLightTimeout</DEFINITION-REF><VALUE>5</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmLightSilentTimeout</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE><ECUC-CONTAINER-VALUE UUID="d002fa07-8058-42f5-91c7-d223dd574473"><SHORT-NAME>PTEXTCAN2Connector_3f418a4f</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">PTEXTCAN2Connector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel</DEFINITION-REF><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel/ComMUserChannel</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/ComM/ComMConfigSet/PTEXTCAN2Connector_c1ab8566</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE></SUB-CONTAINERS></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param ComMNmVariant not match! Expect Value FULL != LIGHT'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="2d9080b7-9e57-356e-8706-416c07a10755"><SHORT-NAME>PTEXTCAN2Connector_4204420a</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">PTEXTCAN2Connector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMBusType</DEFINITION-REF><VALUE>COMM_BUS_TYPE_CAN</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMChannelId</DEFINITION-REF><VALUE>6</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMFullCommRequestNotificationEnabled</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMMainFunctionPeriod</DEFINITION-REF><VALUE>0.01</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoCom</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoWakeup</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES><SUB-CONTAINERS><ECUC-CONTAINER-VALUE UUID="a491ef01-ca24-3f66-876e-83cc14b4f354"><SHORT-NAME>ComMNetworkManagement</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmVariant</DEFINITION-REF><VALUE>LIGHT</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMPncNmRequest</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmLightTimeout</DEFINITION-REF><VALUE>5</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmLightSilentTimeout</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE><ECUC-CONTAINER-VALUE UUID="d002fa07-8058-42f5-91c7-d223dd574473"><SHORT-NAME>PTEXTCAN2Connector_3f418a4f</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">PTEXTCAN2Connector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel</DEFINITION-REF><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel/ComMUserChannel</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/ComM/ComMConfigSet/PTEXTCAN2Connector_c1ab8566</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE></SUB-CONTAINERS></ECUC-CONTAINER-VALUE>
- ERROR root:CfgCheckBase.py:48 Check Param ComMNmVariant not match! Expect Value FULL != LIGHT<br/></div></td></tr></tbody>
- <tbody class="failed results-table-row">
- <tr>
- <td class="col-result">Failed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[ComM-search_pattern10-ComMNmVariant-FULL]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log">module_name = 'ComM', search_pattern = {'xpath_rule': 'CONTAINS', 'xpath_str': './/SHORT-NAME', 'xpath_text': 'PTCAN'}<br/>param_name = 'ComMNmVariant', expect_value = 'FULL'<br/><br/> @allure.feature('Custom Pattern Parameter Check')<br/> @pytest.mark.parametrize("module_name, search_pattern, param_name, expect_value", get_xlsx_data_by_filter(PROJECT_TYPE, ItemType.CUSTOM_PATTERN))<br/> def test_custom_pattern_case(module_name, search_pattern, param_name, expect_value):<br/> '''<br/> 该用例适用于测试 通过某种模式规则,定位到唯一的container, 该container包含的指定配置项,是否与期望值相同。<br/> 例如,可能多个container 都具有该配置项,但对于目标container, 可能和其他container 配置值不同。<br/> :param module_name:<br/> :param search_pattern:<br/> :param param_name:<br/> :param expect_value:<br/> :return:<br/> '''<br/> item = (param_name, expect_value)<br/> res = check_module_param_check(PROJECT, module_name, item, search_pattern)<br/> <br/>> assert True == res<br/><span class="error">E assert True == False</span><br/><br/>testcase\test_case.py:51: AssertionError<br/> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 86, in get_detail_element
- logging.info(match_string)
- Message: '<ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="e54efaa3-a0ae-3e06-8867-dc51aea19aa3"><SHORT-NAME>PTCANConnector_1fc94cd9</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">PTCANConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser/ComMUserIdentifier</DEFINITION-REF><VALUE>5</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser/ComMUserModeNotification</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="e79ad42e-d298-3ee6-b7b0-784accd656a1"><SHORT-NAME>PTCANConnector_57557ac6</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">PTCANConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMBusType</DEFINITION-REF><VALUE>COMM_BUS_TYPE_CAN</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMChannelId</DEFINITION-REF><VALUE>5</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMFullCommRequestNotificationEnabled</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMMainFunctionPeriod</DEFINITION-REF><VALUE>0.01</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoCom</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoWakeup</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES><SUB-CONTAINERS><ECUC-CONTAINER-VALUE UUID="6ce88167-875b-44d4-9970-ae5b0d4883a8"><SHORT-NAME>PTCANConnector_3dea3036</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">PTCANConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel</DEFINITION-REF><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel/ComMUserChannel</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/ComM/ComMConfigSet/PTCANConnector_1fc94cd9</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE><ECUC-CONTAINER-VALUE UUID="ce9bfde3-9d77-3e8c-bc8a-e0415d53d6a4"><SHORT-NAME>ComMNetworkManagement</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmVariant</DEFINITION-REF><VALUE>LIGHT</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMPncNmRequest</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmLightTimeout</DEFINITION-REF><VALUE>5</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmLightSilentTimeout</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE></SUB-CONTAINERS></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param ComMNmVariant not match! Expect Value FULL != LIGHT'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:86 <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="e54efaa3-a0ae-3e06-8867-dc51aea19aa3"><SHORT-NAME>PTCANConnector_1fc94cd9</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">PTCANConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser/ComMUserIdentifier</DEFINITION-REF><VALUE>5</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser/ComMUserModeNotification</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE>
- INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="e79ad42e-d298-3ee6-b7b0-784accd656a1"><SHORT-NAME>PTCANConnector_57557ac6</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">PTCANConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMBusType</DEFINITION-REF><VALUE>COMM_BUS_TYPE_CAN</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMChannelId</DEFINITION-REF><VALUE>5</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMFullCommRequestNotificationEnabled</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMMainFunctionPeriod</DEFINITION-REF><VALUE>0.01</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoCom</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoWakeup</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES><SUB-CONTAINERS><ECUC-CONTAINER-VALUE UUID="6ce88167-875b-44d4-9970-ae5b0d4883a8"><SHORT-NAME>PTCANConnector_3dea3036</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">PTCANConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel</DEFINITION-REF><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel/ComMUserChannel</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/ComM/ComMConfigSet/PTCANConnector_1fc94cd9</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE><ECUC-CONTAINER-VALUE UUID="ce9bfde3-9d77-3e8c-bc8a-e0415d53d6a4"><SHORT-NAME>ComMNetworkManagement</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmVariant</DEFINITION-REF><VALUE>LIGHT</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMPncNmRequest</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmLightTimeout</DEFINITION-REF><VALUE>5</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmLightSilentTimeout</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE></SUB-CONTAINERS></ECUC-CONTAINER-VALUE>
- ERROR root:CfgCheckBase.py:48 Check Param ComMNmVariant not match! Expect Value FULL != LIGHT<br/></div></td></tr></tbody>
- <tbody class="failed results-table-row">
- <tr>
- <td class="col-result">Failed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[ComM-search_pattern12-ComMNmVariant-LIGHT]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log">module_name = 'ComM', search_pattern = {'xpath_rule': 'CONTAINS', 'xpath_str': './/SHORT-NAME', 'xpath_text': 'LIN1'}<br/>param_name = 'ComMNmVariant', expect_value = 'LIGHT'<br/><br/> @allure.feature('Custom Pattern Parameter Check')<br/> @pytest.mark.parametrize("module_name, search_pattern, param_name, expect_value", get_xlsx_data_by_filter(PROJECT_TYPE, ItemType.CUSTOM_PATTERN))<br/> def test_custom_pattern_case(module_name, search_pattern, param_name, expect_value):<br/> '''<br/> 该用例适用于测试 通过某种模式规则,定位到唯一的container, 该container包含的指定配置项,是否与期望值相同。<br/> 例如,可能多个container 都具有该配置项,但对于目标container, 可能和其他container 配置值不同。<br/> :param module_name:<br/> :param search_pattern:<br/> :param param_name:<br/> :param expect_value:<br/> :return:<br/> '''<br/> item = (param_name, expect_value)<br/>> res = check_module_param_check(PROJECT, module_name, item, search_pattern)<br/><br/>testcase\test_case.py:49: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/>Base\ModuleCfgCheck.py:96: in check_module_param_check<br/> cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)<br/>Base\ModuleCfgCheck.py:64: in do_param_check<br/> match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)<br/>Base\CfgCheckBase.py:30: in parameter_match<br/> param_definition_ref_containers = Arxml.get_all_match_element(element,<br/>Base\Arxml.py:112: in get_all_match_element<br/> result = Arxml.get_xpath_result(root_element, xpath_str, xpath_text, xpath_rule)<br/>Base\Arxml.py:92: in get_xpath_result<br/> ns = Arxml.get_arxml_namespace(element)<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/><br/>element = None<br/><br/> @staticmethod<br/> def get_arxml_namespace(element: etree.Element):<br/>> ns = element.nsmap<br/><span class="error">E AttributeError: 'NoneType' object has no attribute 'nsmap'</span><br/><br/>Base\Arxml.py:32: AttributeError<br/> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 74, in get_detail_element
- logging.error(f'By Pattern {xpath_str}-{xpath_text}-{xpath_rule}, not find valud element!')
- Message: 'By Pattern .//SHORT-NAME-LIN1-CONTAINS, not find valud element!'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>ERROR root:ModuleCfgCheck.py:74 By Pattern .//SHORT-NAME-LIN1-CONTAINS, not find valud element!<br/></div></td></tr></tbody>
- <tbody class="failed results-table-row">
- <tr>
- <td class="col-result">Failed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[Os-search_pattern24-OsTaskStackSize-2048]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log">module_name = 'Os'<br/>search_pattern = {'xpath_rule': 'TEXT_EQ', 'xpath_str': './/SHORT-NAME', 'xpath_text': 'SecureSrvTask'}<br/>param_name = 'OsTaskStackSize', expect_value = '2048'<br/><br/> @allure.feature('Custom Pattern Parameter Check')<br/> @pytest.mark.parametrize("module_name, search_pattern, param_name, expect_value", get_xlsx_data_by_filter(PROJECT_TYPE, ItemType.CUSTOM_PATTERN))<br/> def test_custom_pattern_case(module_name, search_pattern, param_name, expect_value):<br/> '''<br/> 该用例适用于测试 通过某种模式规则,定位到唯一的container, 该container包含的指定配置项,是否与期望值相同。<br/> 例如,可能多个container 都具有该配置项,但对于目标container, 可能和其他container 配置值不同。<br/> :param module_name:<br/> :param search_pattern:<br/> :param param_name:<br/> :param expect_value:<br/> :return:<br/> '''<br/> item = (param_name, expect_value)<br/>> res = check_module_param_check(PROJECT, module_name, item, search_pattern)<br/><br/>testcase\test_case.py:49: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/>Base\ModuleCfgCheck.py:96: in check_module_param_check<br/> cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)<br/>Base\ModuleCfgCheck.py:64: in do_param_check<br/> match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)<br/>Base\CfgCheckBase.py:30: in parameter_match<br/> param_definition_ref_containers = Arxml.get_all_match_element(element,<br/>Base\Arxml.py:112: in get_all_match_element<br/> result = Arxml.get_xpath_result(root_element, xpath_str, xpath_text, xpath_rule)<br/>Base\Arxml.py:92: in get_xpath_result<br/> ns = Arxml.get_arxml_namespace(element)<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/><br/>element = None<br/><br/> @staticmethod<br/> def get_arxml_namespace(element: etree.Element):<br/>> ns = element.nsmap<br/><span class="error">E AttributeError: 'NoneType' object has no attribute 'nsmap'</span><br/><br/>Base\Arxml.py:32: AttributeError<br/> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 74, in get_detail_element
- logging.error(f'By Pattern {xpath_str}-{xpath_text}-{xpath_rule}, not find valud element!')
- Message: 'By Pattern .//SHORT-NAME-SecureSrvTask-TEXT_EQ, not find valud element!'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>ERROR root:ModuleCfgCheck.py:74 By Pattern .//SHORT-NAME-SecureSrvTask-TEXT_EQ, not find valud element!<br/></div></td></tr></tbody>
- <tbody class="failed results-table-row">
- <tr>
- <td class="col-result">Failed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[Os-search_pattern25-OsTaskStackSize-4096]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log">module_name = 'Os', search_pattern = {'xpath_rule': 'TEXT_EQ', 'xpath_str': './/SHORT-NAME', 'xpath_text': 'InitTask'}<br/>param_name = 'OsTaskStackSize', expect_value = '4096'<br/><br/> @allure.feature('Custom Pattern Parameter Check')<br/> @pytest.mark.parametrize("module_name, search_pattern, param_name, expect_value", get_xlsx_data_by_filter(PROJECT_TYPE, ItemType.CUSTOM_PATTERN))<br/> def test_custom_pattern_case(module_name, search_pattern, param_name, expect_value):<br/> '''<br/> 该用例适用于测试 通过某种模式规则,定位到唯一的container, 该container包含的指定配置项,是否与期望值相同。<br/> 例如,可能多个container 都具有该配置项,但对于目标container, 可能和其他container 配置值不同。<br/> :param module_name:<br/> :param search_pattern:<br/> :param param_name:<br/> :param expect_value:<br/> :return:<br/> '''<br/> item = (param_name, expect_value)<br/> res = check_module_param_check(PROJECT, module_name, item, search_pattern)<br/> <br/>> assert True == res<br/><span class="error">E assert True == False</span><br/><br/>testcase\test_case.py:51: AssertionError<br/> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="7c0d8893-fed0-464d-9468-7726c4a24bb0"><SHORT-NAME>InitTask</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Os/OsTask</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskActivation</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskPriority</DEFINITION-REF><VALUE>110</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskSchedule</DEFINITION-REF><VALUE>NON</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskStackSharing</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskStackSize</DEFINITION-REF><VALUE>1024</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskType</DEFINITION-REF><VALUE>BASIC</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskUsesFpu</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/Os/OsTask/OsTaskAccessingApplication</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/SystemApplication_OsCore0</VALUE-REF></ECUC-REFERENCE-VALUE><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/Os/OsTask/OsTaskAccessingApplication</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/SystemApplication_OsCore1</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param OsTaskStackSize not match! Expect Value 4096 != 1024'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="7c0d8893-fed0-464d-9468-7726c4a24bb0"><SHORT-NAME>InitTask</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Os/OsTask</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskActivation</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskPriority</DEFINITION-REF><VALUE>110</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskSchedule</DEFINITION-REF><VALUE>NON</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskStackSharing</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskStackSize</DEFINITION-REF><VALUE>1024</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskType</DEFINITION-REF><VALUE>BASIC</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskUsesFpu</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/Os/OsTask/OsTaskAccessingApplication</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/SystemApplication_OsCore0</VALUE-REF></ECUC-REFERENCE-VALUE><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/Os/OsTask/OsTaskAccessingApplication</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/SystemApplication_OsCore1</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE>
- ERROR root:CfgCheckBase.py:48 Check Param OsTaskStackSize not match! Expect Value 4096 != 1024<br/></div></td></tr></tbody>
- <tbody class="failed results-table-row">
- <tr>
- <td class="col-result">Failed</td>
- <td class="col-name">testcase/test_case.py::test_canif_buffersize_check_case</td>
- <td class="col-duration">0.04</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log">@allure.feature('CanIfBufferSize Check')<br/> @allure.title('tx buffer 配置检查')<br/> def test_canif_buffersize_check_case():<br/> '''<br/> 该用例用于 CanIf 模块 CanIfBufferCfg CanIfBufferSize CanIfTxBufferHandlingType检查。<br/> :return:<br/> '''<br/> mcc = ModuleCfgCheck('CanIf', PROJECT)<br/> canif_init_cfg = Arxml.get_first_match_element(mcc.arxml_root, './/SHORT-NAME', 'CanIfInitCfg', 'TEXT_EQ')<br/> <br/> ecuc_containers = Arxml.get_all_match_element(Arxml.get_parent_element(canif_init_cfg), './/ECUC-CONTAINER-VALUE')<br/> for ecuc in ecuc_containers:<br/> ecuc_con = EcucContainerValue(ecuc)<br/> ecuc_con_attr = ecuc_con.container_attr<br/> ecuc_type = Arxml.get_split_end_value(ecuc_con_attr['container_definition_ref'][-1])<br/> if ecuc_type == 'CanIfBufferCfg':<br/> CanIfTxBufferHandlingType = ecuc_con_attr['parameter_values']['CanIfTxBufferHandlingType'][-1]<br/> CanIfBufferSize = ecuc_con_attr['parameter_values']['CanIfBufferSize'][-1]<br/> CanIfTxBufferMappedTxPdus = ecuc_con_attr['parameter_values']['CanIfTxBufferMappedTxPdus'][-1]<br/> print(f"{ecuc_con_attr['short_name']}, CanIfTxBufferHandlingType={CanIfTxBufferHandlingType}")<br/> if ('CanIfBufferCfg' not in ecuc_con_attr['short_name'] and<br/> int(CanIfTxBufferMappedTxPdus) > int(CanIfBufferSize)):<br/> print(f"CanIfBufferSize Check ERROR! {ecuc_con_attr['short_name']}, CanIfBufferSize={CanIfBufferSize}, CanIfTxBufferMappedTxPdus={CanIfTxBufferMappedTxPdus}")<br/>> assert True == False<br/><span class="error">E assert True == False</span><br/><br/>testcase\test_case.py:110: AssertionError<br/> ------------------------------Captured stdout call------------------------------ <br/>PhCnADCANFD_8062c890, CanIfTxBufferHandlingType=FIFO
- CanIfBufferSize Check ERROR! PhCnADCANFD_8062c890, CanIfBufferSize=16, CanIfTxBufferMappedTxPdus=24
- <br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[Dcm-DcmResetToFblAfterSessionFinalResponseEnabled-true]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[Dcm-DcmSpecificCauseCodeEnabled-true0]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[Dcm-DcmSpecificCauseCodeEnabled-true1]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[Dem-DemClearDTCBehavior-DEM_CLRRESP_VOLATILE]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[Dem-DemMaxNumberEventEntryPrimary-40]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[Dem-DemTypeOfFreezeFrameRecordNumeration-DEM_FF_RECNUM_CONFIGURED]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[Dem-DemImmediateNvStorage-true]</td>
- <td class="col-duration">0.03</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DemImmediateNvStorage not match! Expect Value true != false'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DemImmediateNvStorage not match! Expect Value true != false'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DemImmediateNvStorage not match! Expect Value true != false'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DemImmediateNvStorage not match! Expect Value true != false'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DemImmediateNvStorage not match! Expect Value true != false'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DemImmediateNvStorage not match! Expect Value true != false'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DemImmediateNvStorage not match! Expect Value true != false'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DemImmediateNvStorage not match! Expect Value true != false'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DemImmediateNvStorage not match! Expect Value true != false'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DemImmediateNvStorage not match! Expect Value true != false'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DemImmediateNvStorage not match! Expect Value true != false'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DemImmediateNvStorage not match! Expect Value true != false'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DemImmediateNvStorage not match! Expect Value true != false'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DemImmediateNvStorage not match! Expect Value true != false'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DemImmediateNvStorage not match! Expect Value true != false'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DemImmediateNvStorage not match! Expect Value true != false'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param DemImmediateNvStorage not match! Expect Value true != false'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>ERROR root:CfgCheckBase.py:48 Check Param DemImmediateNvStorage not match! Expect Value true != false
- ERROR root:CfgCheckBase.py:48 Check Param DemImmediateNvStorage not match! Expect Value true != false
- ERROR root:CfgCheckBase.py:48 Check Param DemImmediateNvStorage not match! Expect Value true != false
- ERROR root:CfgCheckBase.py:48 Check Param DemImmediateNvStorage not match! Expect Value true != false
- ERROR root:CfgCheckBase.py:48 Check Param DemImmediateNvStorage not match! Expect Value true != false
- ERROR root:CfgCheckBase.py:48 Check Param DemImmediateNvStorage not match! Expect Value true != false
- ERROR root:CfgCheckBase.py:48 Check Param DemImmediateNvStorage not match! Expect Value true != false
- ERROR root:CfgCheckBase.py:48 Check Param DemImmediateNvStorage not match! Expect Value true != false
- ERROR root:CfgCheckBase.py:48 Check Param DemImmediateNvStorage not match! Expect Value true != false
- ERROR root:CfgCheckBase.py:48 Check Param DemImmediateNvStorage not match! Expect Value true != false
- ERROR root:CfgCheckBase.py:48 Check Param DemImmediateNvStorage not match! Expect Value true != false
- ERROR root:CfgCheckBase.py:48 Check Param DemImmediateNvStorage not match! Expect Value true != false
- ERROR root:CfgCheckBase.py:48 Check Param DemImmediateNvStorage not match! Expect Value true != false
- ERROR root:CfgCheckBase.py:48 Check Param DemImmediateNvStorage not match! Expect Value true != false
- ERROR root:CfgCheckBase.py:48 Check Param DemImmediateNvStorage not match! Expect Value true != false
- ERROR root:CfgCheckBase.py:48 Check Param DemImmediateNvStorage not match! Expect Value true != false
- ERROR root:CfgCheckBase.py:48 Check Param DemImmediateNvStorage not match! Expect Value true != false<br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[CanTp-CanTpChannelMode-CANTP_MODE_FULL_DUPLEX]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[CanTp-CanTpMainFunctionPeriod-0.005]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[CanTp-CanTpEnableSynchronousTransmit-true]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[EthIf-EthIfVlanId-7]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[EthIf-EthIfTrcvLinkStateChgMainReload-50]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[EthTrcv-EthTrcvHwAccessMonitorPeriod-1]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[DoIP-DoIPControlIpAssignment-false]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[ComM-ComMMainFunctionPeriod-0.01]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 32, in test_fix_value_case
- res = check_module_param_check(PROJECT, module_name, item)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 64, in do_param_check
- match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)
- File "D:\01_Work\Python_Venv\pytest_src\Base\CfgCheckBase.py", line 48, in parameter_match
- logging.error(f"Check Param {param_name} not match! Expect Value {param_expect_value} != {value}")
- Message: 'Check Param ComMMainFunctionPeriod not match! Expect Value 0.01 != 0.02'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>ERROR root:CfgCheckBase.py:48 Check Param ComMMainFunctionPeriod not match! Expect Value 0.01 != 0.02<br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[Ea-EaNumberOfWriteCycles-1000000]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[Dcm-DcmRequestManufacturerNotificationEnabled-true]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[Dcm-DcmRequestSupplierNotificationEnabled-true]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[Dem-DemReportSuppressedDTCsInService19x0A-true]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[DoIP-DoIPActivationLineDefaultActive-true]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[DoIP-DoIPAliveCheckResponseTimeout-0.5]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[DoIP-DoIPGeneralInactivityTime-300]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[DoIP-DoIPInitialInactivityTime-2]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[DoIP-DoIPInitialVehicleAnnouncementTime-0.5]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[DoIP-DoIPNodeType-DOIP_GATEWAY]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[DoIP-DoIPSupportEntityState-true]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[DoIP-DoIPUseEIDasGID-true]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[DoIP-DoIPUseMacAddressForIdentification-true]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[DoIP-DoIPUseVehicleIdentificationSyncStatus-true]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[DoIP-DoIPVehicleAnnouncementInterval-0.5]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_fix_value_case[DoIP-DoIPVehicleAnnouncementRepetition-3]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[Rte-search_pattern0-RteExclusiveAreaImplMechanism-NONE]</td>
- <td class="col-duration">0.05</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="bf14d0c1-3d89-4086-bc75-df93012555d2"><SHORT-NAME>ETHTRCV_30_88Q1010_EXCLUSIVE_AREA_SEQUENCE</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Rte/RteBswModuleInstance/RteBswExclusiveAreaImpl</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Rte/RteBswModuleInstance/RteBswExclusiveAreaImpl/RteExclusiveAreaImplMechanism</DEFINITION-REF><VALUE>NONE</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-FOREIGN-REFERENCE-DEF">/MICROSAR/Rte/RteBswModuleInstance/RteBswExclusiveAreaImpl/RteBswExclusiveAreaRef</DEFINITION-REF><VALUE-REF DEST="EXCLUSIVE-AREA">/MICROSAR/EthTrcv_30_88Q1010_ib_bswmd/BswModuleDescriptions/EthTrcv/EthTrcv_30_88Q1010Behavior/ETHTRCV_30_88Q1010_EXCLUSIVE_AREA_SEQUENCE</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="bf14d0c1-3d89-4086-bc75-df93012555d2"><SHORT-NAME>ETHTRCV_30_88Q1010_EXCLUSIVE_AREA_SEQUENCE</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Rte/RteBswModuleInstance/RteBswExclusiveAreaImpl</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Rte/RteBswModuleInstance/RteBswExclusiveAreaImpl/RteExclusiveAreaImplMechanism</DEFINITION-REF><VALUE>NONE</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-FOREIGN-REFERENCE-DEF">/MICROSAR/Rte/RteBswModuleInstance/RteBswExclusiveAreaImpl/RteBswExclusiveAreaRef</DEFINITION-REF><VALUE-REF DEST="EXCLUSIVE-AREA">/MICROSAR/EthTrcv_30_88Q1010_ib_bswmd/BswModuleDescriptions/EthTrcv/EthTrcv_30_88Q1010Behavior/ETHTRCV_30_88Q1010_EXCLUSIVE_AREA_SEQUENCE</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE><br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[Rte-search_pattern1-RteExclusiveAreaImplMechanism-NONE]</td>
- <td class="col-duration">0.05</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="bf14d0c1-3d89-4086-bc75-df93012555d2"><SHORT-NAME>ETHTRCV_30_88Q1010_EXCLUSIVE_AREA_SEQUENCE</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Rte/RteBswModuleInstance/RteBswExclusiveAreaImpl</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Rte/RteBswModuleInstance/RteBswExclusiveAreaImpl/RteExclusiveAreaImplMechanism</DEFINITION-REF><VALUE>NONE</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-FOREIGN-REFERENCE-DEF">/MICROSAR/Rte/RteBswModuleInstance/RteBswExclusiveAreaImpl/RteBswExclusiveAreaRef</DEFINITION-REF><VALUE-REF DEST="EXCLUSIVE-AREA">/MICROSAR/EthTrcv_30_88Q1010_ib_bswmd/BswModuleDescriptions/EthTrcv/EthTrcv_30_88Q1010Behavior/ETHTRCV_30_88Q1010_EXCLUSIVE_AREA_SEQUENCE</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="bf14d0c1-3d89-4086-bc75-df93012555d2"><SHORT-NAME>ETHTRCV_30_88Q1010_EXCLUSIVE_AREA_SEQUENCE</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Rte/RteBswModuleInstance/RteBswExclusiveAreaImpl</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Rte/RteBswModuleInstance/RteBswExclusiveAreaImpl/RteExclusiveAreaImplMechanism</DEFINITION-REF><VALUE>NONE</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-FOREIGN-REFERENCE-DEF">/MICROSAR/Rte/RteBswModuleInstance/RteBswExclusiveAreaImpl/RteBswExclusiveAreaRef</DEFINITION-REF><VALUE-REF DEST="EXCLUSIVE-AREA">/MICROSAR/EthTrcv_30_88Q1010_ib_bswmd/BswModuleDescriptions/EthTrcv/EthTrcv_30_88Q1010Behavior/ETHTRCV_30_88Q1010_EXCLUSIVE_AREA_SEQUENCE</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE><br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[Rte-search_pattern2-RteExclusiveAreaImplMechanism-NONE]</td>
- <td class="col-duration">0.05</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="98dc5aa8-2a5d-442e-b734-3561af67f232"><SHORT-NAME>EXCLUSIVE_AREA_SMI_MULTI_CHIP_ACCESS</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Rte/RteBswModuleInstance/RteBswExclusiveAreaImpl</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Rte/RteBswModuleInstance/RteBswExclusiveAreaImpl/RteExclusiveAreaImplMechanism</DEFINITION-REF><VALUE>NONE</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-FOREIGN-REFERENCE-DEF">/MICROSAR/Rte/RteBswModuleInstance/RteBswExclusiveAreaImpl/RteBswExclusiveAreaRef</DEFINITION-REF><VALUE-REF DEST="EXCLUSIVE-AREA">/MICROSAR/EthSwt_30_88Q5050_ib_bswmd/BswModuleDescriptions/EthSwt/EthSwt_30_88Q5050Behavior/EXCLUSIVE_AREA_SMI_MULTI_CHIP_ACCESS</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="98dc5aa8-2a5d-442e-b734-3561af67f232"><SHORT-NAME>EXCLUSIVE_AREA_SMI_MULTI_CHIP_ACCESS</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Rte/RteBswModuleInstance/RteBswExclusiveAreaImpl</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Rte/RteBswModuleInstance/RteBswExclusiveAreaImpl/RteExclusiveAreaImplMechanism</DEFINITION-REF><VALUE>NONE</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-FOREIGN-REFERENCE-DEF">/MICROSAR/Rte/RteBswModuleInstance/RteBswExclusiveAreaImpl/RteBswExclusiveAreaRef</DEFINITION-REF><VALUE-REF DEST="EXCLUSIVE-AREA">/MICROSAR/EthSwt_30_88Q5050_ib_bswmd/BswModuleDescriptions/EthSwt/EthSwt_30_88Q5050Behavior/EXCLUSIVE_AREA_SMI_MULTI_CHIP_ACCESS</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE><br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[TcpIp-search_pattern3-TcpIpAssignmentTrigger-TCPIP_MANUAL]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="397b14d1-b5e8-3292-9609-e1ae8e71e090"><SHORT-NAME>NE_CCP_MCU_4b8feb2f</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">NE_CCP_MCU</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpAddressType</DEFINITION-REF><VALUE>TCPIP_UNICAST</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpDomainType</DEFINITION-REF><VALUE>TCPIP_AF_INET</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpAddrId</DEFINITION-REF><VALUE>0</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpIpAddrReceiveAllNotConfiguredMulticasts</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpCtrlRef</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/TcpIp/TcpIpConfig/EthernetCnt_MCUSOMEIP_958a6954</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES><SUB-CONTAINERS><ECUC-CONTAINER-VALUE UUID="a57adb29-b7d4-40f3-978b-fe9394e325a1"><SHORT-NAME>TcpIpStaticIpAddressConfig</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpStaticIpAddressConfig</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-STRING-PARAM-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpStaticIpAddressConfig/TcpIpStaticIpAddress</DEFINITION-REF><VALUE>172.31.7.1</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpStaticIpAddressConfig/TcpIpNetmask</DEFINITION-REF><VALUE>24</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE><ECUC-CONTAINER-VALUE UUID="71ccd270-2f06-46bd-86f6-98dc762b67f7"><SHORT-NAME>NE_CCP_MCU_4b8feb2f</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpAddrAssignment</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpAddrAssignment/TcpIpAssignmentMethod</DEFINITION-REF><VALUE>TCPIP_STATIC</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpAddrAssignment/TcpIpAssignmentPriority</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpAddrAssignment/TcpIpAssignmentTrigger</DEFINITION-REF><VALUE>TCPIP_MANUAL</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE></SUB-CONTAINERS></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="397b14d1-b5e8-3292-9609-e1ae8e71e090"><SHORT-NAME>NE_CCP_MCU_4b8feb2f</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">NE_CCP_MCU</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpAddressType</DEFINITION-REF><VALUE>TCPIP_UNICAST</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpDomainType</DEFINITION-REF><VALUE>TCPIP_AF_INET</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpAddrId</DEFINITION-REF><VALUE>0</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpIpAddrReceiveAllNotConfiguredMulticasts</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpCtrlRef</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/TcpIp/TcpIpConfig/EthernetCnt_MCUSOMEIP_958a6954</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES><SUB-CONTAINERS><ECUC-CONTAINER-VALUE UUID="a57adb29-b7d4-40f3-978b-fe9394e325a1"><SHORT-NAME>TcpIpStaticIpAddressConfig</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpStaticIpAddressConfig</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-STRING-PARAM-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpStaticIpAddressConfig/TcpIpStaticIpAddress</DEFINITION-REF><VALUE>172.31.7.1</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpStaticIpAddressConfig/TcpIpNetmask</DEFINITION-REF><VALUE>24</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE><ECUC-CONTAINER-VALUE UUID="71ccd270-2f06-46bd-86f6-98dc762b67f7"><SHORT-NAME>NE_CCP_MCU_4b8feb2f</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpAddrAssignment</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpAddrAssignment/TcpIpAssignmentMethod</DEFINITION-REF><VALUE>TCPIP_STATIC</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpAddrAssignment/TcpIpAssignmentPriority</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/TcpIp/TcpIpConfig/TcpIpLocalAddr/TcpIpAddrAssignment/TcpIpAssignmentTrigger</DEFINITION-REF><VALUE>TCPIP_MANUAL</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE></SUB-CONTAINERS></ECUC-CONTAINER-VALUE><br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[ComM-search_pattern4-ComMNmVariant-FULL]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="394ab424-d42e-395e-b4a2-e443acae98ff"><SHORT-NAME>CNCANConnector_c3dea38d</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">CNCANConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMBusType</DEFINITION-REF><VALUE>COMM_BUS_TYPE_CAN</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMChannelId</DEFINITION-REF><VALUE>3</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMFullCommRequestNotificationEnabled</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMMainFunctionPeriod</DEFINITION-REF><VALUE>0.01</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoCom</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoWakeup</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES><SUB-CONTAINERS><ECUC-CONTAINER-VALUE UUID="824aef3e-8710-39ed-99de-e897083d40db"><SHORT-NAME>ComMNetworkManagement</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmVariant</DEFINITION-REF><VALUE>FULL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMPncNmRequest</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE><ECUC-CONTAINER-VALUE UUID="5d2bfe99-b98f-4bde-88df-06746f146b06"><SHORT-NAME>CNCANConnector_79bed539</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">CNCANConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel</DEFINITION-REF><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel/ComMUserChannel</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/ComM/ComMConfigSet/CNCANConnector_56ba5669</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE></SUB-CONTAINERS></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="394ab424-d42e-395e-b4a2-e443acae98ff"><SHORT-NAME>CNCANConnector_c3dea38d</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">CNCANConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMBusType</DEFINITION-REF><VALUE>COMM_BUS_TYPE_CAN</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMChannelId</DEFINITION-REF><VALUE>3</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMFullCommRequestNotificationEnabled</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMMainFunctionPeriod</DEFINITION-REF><VALUE>0.01</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoCom</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoWakeup</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES><SUB-CONTAINERS><ECUC-CONTAINER-VALUE UUID="824aef3e-8710-39ed-99de-e897083d40db"><SHORT-NAME>ComMNetworkManagement</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmVariant</DEFINITION-REF><VALUE>FULL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMPncNmRequest</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE><ECUC-CONTAINER-VALUE UUID="5d2bfe99-b98f-4bde-88df-06746f146b06"><SHORT-NAME>CNCANConnector_79bed539</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">CNCANConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel</DEFINITION-REF><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel/ComMUserChannel</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/ComM/ComMConfigSet/CNCANConnector_56ba5669</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE></SUB-CONTAINERS></ECUC-CONTAINER-VALUE><br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[ComM-search_pattern5-ComMNmVariant-FULL]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 86, in get_detail_element
- logging.info(match_string)
- Message: '<ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="bfe9f16a-5503-31cd-b184-760fdbd0ad77"><SHORT-NAME>ADCANFDConnector_de070bd3</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">ADCANFDConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser/ComMUserIdentifier</DEFINITION-REF><VALUE>0</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser/ComMUserModeNotification</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="42cf0dd8-4b7f-38eb-b5c5-bde29d208885"><SHORT-NAME>ADCANFDConnector_e856f16b</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">ADCANFDConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMBusType</DEFINITION-REF><VALUE>COMM_BUS_TYPE_CAN</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMChannelId</DEFINITION-REF><VALUE>0</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMFullCommRequestNotificationEnabled</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMMainFunctionPeriod</DEFINITION-REF><VALUE>0.01</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoCom</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoWakeup</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES><SUB-CONTAINERS><ECUC-CONTAINER-VALUE UUID="0db6318b-416b-368d-9855-1f59191773e1"><SHORT-NAME>ComMNetworkManagement</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmVariant</DEFINITION-REF><VALUE>FULL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMPncNmRequest</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE><ECUC-CONTAINER-VALUE UUID="2b61137b-7af9-4fc3-8ed5-cf4a802b49b7"><SHORT-NAME>ADCANFDConnector_957d0f0b</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">ADCANFDConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel</DEFINITION-REF><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel/ComMUserChannel</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/ComM/ComMConfigSet/ADCANFDConnector_de070bd3</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE></SUB-CONTAINERS></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:86 <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="bfe9f16a-5503-31cd-b184-760fdbd0ad77"><SHORT-NAME>ADCANFDConnector_de070bd3</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">ADCANFDConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser/ComMUserIdentifier</DEFINITION-REF><VALUE>0</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser/ComMUserModeNotification</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE>
- INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="42cf0dd8-4b7f-38eb-b5c5-bde29d208885"><SHORT-NAME>ADCANFDConnector_e856f16b</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">ADCANFDConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMBusType</DEFINITION-REF><VALUE>COMM_BUS_TYPE_CAN</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMChannelId</DEFINITION-REF><VALUE>0</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMFullCommRequestNotificationEnabled</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMMainFunctionPeriod</DEFINITION-REF><VALUE>0.01</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoCom</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoWakeup</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES><SUB-CONTAINERS><ECUC-CONTAINER-VALUE UUID="0db6318b-416b-368d-9855-1f59191773e1"><SHORT-NAME>ComMNetworkManagement</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmVariant</DEFINITION-REF><VALUE>FULL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMPncNmRequest</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE><ECUC-CONTAINER-VALUE UUID="2b61137b-7af9-4fc3-8ed5-cf4a802b49b7"><SHORT-NAME>ADCANFDConnector_957d0f0b</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">ADCANFDConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel</DEFINITION-REF><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel/ComMUserChannel</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/ComM/ComMConfigSet/ADCANFDConnector_de070bd3</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE></SUB-CONTAINERS></ECUC-CONTAINER-VALUE><br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[ComM-search_pattern6-ComMNmVariant-FULL]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 86, in get_detail_element
- logging.info(match_string)
- Message: '<ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="34c5c58c-28c0-3cbf-95c2-fa138328e8a4"><SHORT-NAME>CHCANFDConnector_f56a8f6f</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">CHCANFDConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser/ComMUserIdentifier</DEFINITION-REF><VALUE>2</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser/ComMUserModeNotification</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="980a104a-8466-365c-939b-4a178458c775"><SHORT-NAME>CHCANFDConnector_2a037dec</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">CHCANFDConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMBusType</DEFINITION-REF><VALUE>COMM_BUS_TYPE_CAN</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMChannelId</DEFINITION-REF><VALUE>2</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMFullCommRequestNotificationEnabled</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMMainFunctionPeriod</DEFINITION-REF><VALUE>0.01</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoCom</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoWakeup</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES><SUB-CONTAINERS><ECUC-CONTAINER-VALUE UUID="c2519040-88f7-36b4-8761-ef60bb094cab"><SHORT-NAME>ComMNetworkManagement</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmVariant</DEFINITION-REF><VALUE>FULL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMPncNmRequest</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE><ECUC-CONTAINER-VALUE UUID="fd4d52d6-a940-4c2f-9d0b-65b9f9f6076f"><SHORT-NAME>CHCANFDConnector_bc5aedf3</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">CHCANFDConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel</DEFINITION-REF><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel/ComMUserChannel</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/ComM/ComMConfigSet/CHCANFDConnector_f56a8f6f</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE></SUB-CONTAINERS></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:86 <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="34c5c58c-28c0-3cbf-95c2-fa138328e8a4"><SHORT-NAME>CHCANFDConnector_f56a8f6f</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">CHCANFDConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser/ComMUserIdentifier</DEFINITION-REF><VALUE>2</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser/ComMUserModeNotification</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE>
- INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="980a104a-8466-365c-939b-4a178458c775"><SHORT-NAME>CHCANFDConnector_2a037dec</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">CHCANFDConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMBusType</DEFINITION-REF><VALUE>COMM_BUS_TYPE_CAN</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMChannelId</DEFINITION-REF><VALUE>2</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMFullCommRequestNotificationEnabled</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMMainFunctionPeriod</DEFINITION-REF><VALUE>0.01</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoCom</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoWakeup</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES><SUB-CONTAINERS><ECUC-CONTAINER-VALUE UUID="c2519040-88f7-36b4-8761-ef60bb094cab"><SHORT-NAME>ComMNetworkManagement</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmVariant</DEFINITION-REF><VALUE>FULL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMPncNmRequest</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE><ECUC-CONTAINER-VALUE UUID="fd4d52d6-a940-4c2f-9d0b-65b9f9f6076f"><SHORT-NAME>CHCANFDConnector_bc5aedf3</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">CHCANFDConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel</DEFINITION-REF><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel/ComMUserChannel</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/ComM/ComMConfigSet/CHCANFDConnector_f56a8f6f</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE></SUB-CONTAINERS></ECUC-CONTAINER-VALUE><br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[ComM-search_pattern7-ComMNmVariant-FULL]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="1784dcfe-507a-3858-a638-087302885c9b"><SHORT-NAME>CFCANConnector_99dd70e0</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">CFCANConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMBusType</DEFINITION-REF><VALUE>COMM_BUS_TYPE_CAN</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMChannelId</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMFullCommRequestNotificationEnabled</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMMainFunctionPeriod</DEFINITION-REF><VALUE>0.01</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoCom</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoWakeup</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES><SUB-CONTAINERS><ECUC-CONTAINER-VALUE UUID="851c0e88-0b08-3de3-ac80-5957d111f0e7"><SHORT-NAME>ComMNetworkManagement</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmVariant</DEFINITION-REF><VALUE>FULL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMPncNmRequest</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE><ECUC-CONTAINER-VALUE UUID="bb492b9d-e338-4840-b0fa-7bbb768955fb"><SHORT-NAME>CFCANConnector_9aaae16d</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">CFCANConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel</DEFINITION-REF><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel/ComMUserChannel</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/ComM/ComMConfigSet/CFCANConnector_eff97069</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE></SUB-CONTAINERS></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="1784dcfe-507a-3858-a638-087302885c9b"><SHORT-NAME>CFCANConnector_99dd70e0</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">CFCANConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMBusType</DEFINITION-REF><VALUE>COMM_BUS_TYPE_CAN</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMChannelId</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMFullCommRequestNotificationEnabled</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMMainFunctionPeriod</DEFINITION-REF><VALUE>0.01</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoCom</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoWakeup</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES><SUB-CONTAINERS><ECUC-CONTAINER-VALUE UUID="851c0e88-0b08-3de3-ac80-5957d111f0e7"><SHORT-NAME>ComMNetworkManagement</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmVariant</DEFINITION-REF><VALUE>FULL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMPncNmRequest</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE><ECUC-CONTAINER-VALUE UUID="bb492b9d-e338-4840-b0fa-7bbb768955fb"><SHORT-NAME>CFCANConnector_9aaae16d</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">CFCANConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel</DEFINITION-REF><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel/ComMUserChannel</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/ComM/ComMConfigSet/CFCANConnector_eff97069</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE></SUB-CONTAINERS></ECUC-CONTAINER-VALUE><br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[ComM-search_pattern8-ComMNmVariant-LIGHT]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="c0546a3f-0b96-30f7-af65-584fe9839573"><SHORT-NAME>DIAGCANConnector_8f3cc1a5</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">DIAGCANConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMBusType</DEFINITION-REF><VALUE>COMM_BUS_TYPE_CAN</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMChannelId</DEFINITION-REF><VALUE>4</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMFullCommRequestNotificationEnabled</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMMainFunctionPeriod</DEFINITION-REF><VALUE>0.01</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoCom</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoWakeup</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES><SUB-CONTAINERS><ECUC-CONTAINER-VALUE UUID="4ae751f2-2cc1-3ac4-8a44-b6a8619d1797"><SHORT-NAME>ComMNetworkManagement</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmVariant</DEFINITION-REF><VALUE>LIGHT</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMPncNmRequest</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmLightTimeout</DEFINITION-REF><VALUE>5</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmLightSilentTimeout</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE><ECUC-CONTAINER-VALUE UUID="5d6609c6-31da-47dd-93ad-3108cb060c66"><SHORT-NAME>DIAGCANConnector_208d3468</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">DIAGCANConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel</DEFINITION-REF><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel/ComMUserChannel</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/ComM/ComMConfigSet/DIAGCANConnector_11f8ac3d</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE></SUB-CONTAINERS></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="c0546a3f-0b96-30f7-af65-584fe9839573"><SHORT-NAME>DIAGCANConnector_8f3cc1a5</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">DIAGCANConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMBusType</DEFINITION-REF><VALUE>COMM_BUS_TYPE_CAN</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMChannelId</DEFINITION-REF><VALUE>4</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMFullCommRequestNotificationEnabled</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMMainFunctionPeriod</DEFINITION-REF><VALUE>0.01</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoCom</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoWakeup</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES><SUB-CONTAINERS><ECUC-CONTAINER-VALUE UUID="4ae751f2-2cc1-3ac4-8a44-b6a8619d1797"><SHORT-NAME>ComMNetworkManagement</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmVariant</DEFINITION-REF><VALUE>LIGHT</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMPncNmRequest</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmLightTimeout</DEFINITION-REF><VALUE>5</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmLightSilentTimeout</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE><ECUC-CONTAINER-VALUE UUID="5d6609c6-31da-47dd-93ad-3108cb060c66"><SHORT-NAME>DIAGCANConnector_208d3468</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">DIAGCANConnector</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel</DEFINITION-REF><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel/ComMUserChannel</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/ComM/ComMConfigSet/DIAGCANConnector_11f8ac3d</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE></SUB-CONTAINERS></ECUC-CONTAINER-VALUE><br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[ComM-search_pattern11-ComMNmVariant-LIGHT]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 86, in get_detail_element
- logging.info(match_string)
- Message: '<ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="4f160355-9994-31dc-9766-e19c382f5d34"><SHORT-NAME>CCPLin2Master_63f50e10</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">CCPLin2Master</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser/ComMUserIdentifier</DEFINITION-REF><VALUE>9</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser/ComMUserModeNotification</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="c5eb3e7d-f5a5-3340-908f-1c0a4cc4d67d"><SHORT-NAME>CCPLin2Master_184f7691</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">CCPLin2Master</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMBusType</DEFINITION-REF><VALUE>COMM_BUS_TYPE_LIN</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMChannelId</DEFINITION-REF><VALUE>9</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMFullCommRequestNotificationEnabled</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMMainFunctionPeriod</DEFINITION-REF><VALUE>0.01</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoCom</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoWakeup</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES><SUB-CONTAINERS><ECUC-CONTAINER-VALUE UUID="35956d2f-b60a-4506-8a53-4b852de7c2bb"><SHORT-NAME>CCPLin2Master_b08ec2b1</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">CCPLin2Master</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel</DEFINITION-REF><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel/ComMUserChannel</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/ComM/ComMConfigSet/CCPLin2Master_63f50e10</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE><ECUC-CONTAINER-VALUE UUID="d367e7ab-d5cc-3723-bf1d-31d58b5990c6"><SHORT-NAME>ComMNetworkManagement</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmVariant</DEFINITION-REF><VALUE>LIGHT</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMPncNmRequest</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmLightTimeout</DEFINITION-REF><VALUE>0</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE></SUB-CONTAINERS></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:86 <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="4f160355-9994-31dc-9766-e19c382f5d34"><SHORT-NAME>CCPLin2Master_63f50e10</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">CCPLin2Master</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser/ComMUserIdentifier</DEFINITION-REF><VALUE>9</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMUser/ComMUserModeNotification</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE>
- INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="c5eb3e7d-f5a5-3340-908f-1c0a4cc4d67d"><SHORT-NAME>CCPLin2Master_184f7691</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">CCPLin2Master</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMBusType</DEFINITION-REF><VALUE>COMM_BUS_TYPE_LIN</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMChannelId</DEFINITION-REF><VALUE>9</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMFullCommRequestNotificationEnabled</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMMainFunctionPeriod</DEFINITION-REF><VALUE>0.01</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoCom</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNoWakeup</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES><SUB-CONTAINERS><ECUC-CONTAINER-VALUE UUID="35956d2f-b60a-4506-8a53-4b852de7c2bb"><SHORT-NAME>CCPLin2Master_b08ec2b1</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">CCPLin2Master</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel</DEFINITION-REF><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMUserPerChannel/ComMUserChannel</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/ComM/ComMConfigSet/CCPLin2Master_63f50e10</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE><ECUC-CONTAINER-VALUE UUID="d367e7ab-d5cc-3723-bf1d-31d58b5990c6"><SHORT-NAME>ComMNetworkManagement</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement</DEFINITION-REF><PARAMETER-VALUES><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmVariant</DEFINITION-REF><VALUE>LIGHT</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMPncNmRequest</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/ComM/ComMConfigSet/ComMChannel/ComMNetworkManagement/ComMNmLightTimeout</DEFINITION-REF><VALUE>0</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE></SUB-CONTAINERS></ECUC-CONTAINER-VALUE><br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[Dcm-search_pattern13-DcmDspSessionForBoot-DCM_OEM_BOOT]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="bc679531-efb9-3d33-bec7-9b9cd4ac4386"><SHORT-NAME>Programming</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">Programming</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Dcm/DcmConfigSet/DcmDsp/DcmDspSession/DcmDspSessionRow</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Dcm/DcmConfigSet/DcmDsp/DcmDspSession/DcmDspSessionRow/DcmDspSessionLevel</DEFINITION-REF><VALUE>2</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/Dcm/DcmConfigSet/DcmDsp/DcmDspSession/DcmDspSessionRow/DcmDspSessionP2ServerMax</DEFINITION-REF><VALUE>0.05</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/Dcm/DcmConfigSet/DcmDsp/DcmDspSession/DcmDspSessionRow/DcmDspSessionP2StarServerMax</DEFINITION-REF><VALUE>5</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dcm/DcmConfigSet/DcmDsp/DcmDspSession/DcmDspSessionRow/DcmDspSessionForBoot</DEFINITION-REF><VALUE>DCM_OEM_BOOT</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="bc679531-efb9-3d33-bec7-9b9cd4ac4386"><SHORT-NAME>Programming</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">Programming</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Dcm/DcmConfigSet/DcmDsp/DcmDspSession/DcmDspSessionRow</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Dcm/DcmConfigSet/DcmDsp/DcmDspSession/DcmDspSessionRow/DcmDspSessionLevel</DEFINITION-REF><VALUE>2</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/Dcm/DcmConfigSet/DcmDsp/DcmDspSession/DcmDspSessionRow/DcmDspSessionP2ServerMax</DEFINITION-REF><VALUE>0.05</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-FLOAT-PARAM-DEF">/MICROSAR/Dcm/DcmConfigSet/DcmDsp/DcmDspSession/DcmDspSessionRow/DcmDspSessionP2StarServerMax</DEFINITION-REF><VALUE>5</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dcm/DcmConfigSet/DcmDsp/DcmDspSession/DcmDspSessionRow/DcmDspSessionForBoot</DEFINITION-REF><VALUE>DCM_OEM_BOOT</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE><br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[Dem-search_pattern14-DemDataElementUsePort-USE_DATA_INTERNAL]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="654cc654-d4b1-3dff-b5f3-f6f921176c5e"><SHORT-NAME>EDR_01_AgedCounter</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">AgedCounter</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataSize</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataType</DEFINITION-REF><VALUE>UINT8</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementEndianness</DEFINITION-REF><VALUE>OPAQUE</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementStoreNonVolatile</DEFINITION-REF><VALUE>true</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementUsePort</DEFINITION-REF><VALUE>USE_DATA_INTERNAL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementInternalData</DEFINITION-REF><VALUE>DEM_AGED_COUNTER</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-FOREIGN-REFERENCE-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementSystemTemplateDiagnosticDataElementRef</DEFINITION-REF><VALUE-REF DEST="DIAGNOSTIC-DATA-ELEMENT">/DiagnosticExtract/DEM/DiagnosticExtendedDataRecord/ExtendedData/AgedCounter</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="654cc654-d4b1-3dff-b5f3-f6f921176c5e"><SHORT-NAME>EDR_01_AgedCounter</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">AgedCounter</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataSize</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataType</DEFINITION-REF><VALUE>UINT8</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementEndianness</DEFINITION-REF><VALUE>OPAQUE</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementStoreNonVolatile</DEFINITION-REF><VALUE>true</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementUsePort</DEFINITION-REF><VALUE>USE_DATA_INTERNAL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementInternalData</DEFINITION-REF><VALUE>DEM_AGED_COUNTER</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-FOREIGN-REFERENCE-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementSystemTemplateDiagnosticDataElementRef</DEFINITION-REF><VALUE-REF DEST="DIAGNOSTIC-DATA-ELEMENT">/DiagnosticExtract/DEM/DiagnosticExtendedDataRecord/ExtendedData/AgedCounter</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE><br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[Dem-search_pattern15-DemDataElementUsePort-USE_DATA_INTERNAL]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="4f7ae86f-ec83-34eb-879d-bd59cc3b8006"><SHORT-NAME>EDR_01_AgeingCounter</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">AgeingCounter</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataSize</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataType</DEFINITION-REF><VALUE>UINT8</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementEndianness</DEFINITION-REF><VALUE>OPAQUE</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementStoreNonVolatile</DEFINITION-REF><VALUE>true</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementUsePort</DEFINITION-REF><VALUE>USE_DATA_INTERNAL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementInternalData</DEFINITION-REF><VALUE>DEM_AGINGCTR</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-FOREIGN-REFERENCE-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementSystemTemplateDiagnosticDataElementRef</DEFINITION-REF><VALUE-REF DEST="DIAGNOSTIC-DATA-ELEMENT">/DiagnosticExtract/DEM/DiagnosticExtendedDataRecord/ExtendedData/AgeingCounter</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="4f7ae86f-ec83-34eb-879d-bd59cc3b8006"><SHORT-NAME>EDR_01_AgeingCounter</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">AgeingCounter</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataSize</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataType</DEFINITION-REF><VALUE>UINT8</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementEndianness</DEFINITION-REF><VALUE>OPAQUE</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementStoreNonVolatile</DEFINITION-REF><VALUE>true</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementUsePort</DEFINITION-REF><VALUE>USE_DATA_INTERNAL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementInternalData</DEFINITION-REF><VALUE>DEM_AGINGCTR</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-FOREIGN-REFERENCE-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementSystemTemplateDiagnosticDataElementRef</DEFINITION-REF><VALUE-REF DEST="DIAGNOSTIC-DATA-ELEMENT">/DiagnosticExtract/DEM/DiagnosticExtendedDataRecord/ExtendedData/AgeingCounter</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE><br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[Dem-search_pattern16-DemDataElementUsePort-USE_DATA_INTERNAL]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="5ce75aed-e810-3c22-97e3-9f8b3a807614"><SHORT-NAME>EDR_01_FaultOccurrenceCounter</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">FaultOccurrenceCounter</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataSize</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataType</DEFINITION-REF><VALUE>UINT8</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementEndianness</DEFINITION-REF><VALUE>OPAQUE</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementStoreNonVolatile</DEFINITION-REF><VALUE>true</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementUsePort</DEFINITION-REF><VALUE>USE_DATA_INTERNAL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementInternalData</DEFINITION-REF><VALUE>DEM_OCCCTR</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-FOREIGN-REFERENCE-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementSystemTemplateDiagnosticDataElementRef</DEFINITION-REF><VALUE-REF DEST="DIAGNOSTIC-DATA-ELEMENT">/DiagnosticExtract/DEM/DiagnosticExtendedDataRecord/ExtendedData/FaultOccurrenceCounter</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="5ce75aed-e810-3c22-97e3-9f8b3a807614"><SHORT-NAME>EDR_01_FaultOccurrenceCounter</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">FaultOccurrenceCounter</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataSize</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataType</DEFINITION-REF><VALUE>UINT8</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementEndianness</DEFINITION-REF><VALUE>OPAQUE</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementStoreNonVolatile</DEFINITION-REF><VALUE>true</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementUsePort</DEFINITION-REF><VALUE>USE_DATA_INTERNAL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementInternalData</DEFINITION-REF><VALUE>DEM_OCCCTR</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-FOREIGN-REFERENCE-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementSystemTemplateDiagnosticDataElementRef</DEFINITION-REF><VALUE-REF DEST="DIAGNOSTIC-DATA-ELEMENT">/DiagnosticExtract/DEM/DiagnosticExtendedDataRecord/ExtendedData/FaultOccurrenceCounter</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE><br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[Dem-search_pattern17-DemDataElementUsePort-USE_DATA_INTERNAL]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="375c6477-1d91-3c2c-bf2d-3ce2a98f1c2f"><SHORT-NAME>EDR_01_FaultPendingCounter</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">FaultPendingCounter</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataSize</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataType</DEFINITION-REF><VALUE>UINT8</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementEndianness</DEFINITION-REF><VALUE>OPAQUE</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementStoreNonVolatile</DEFINITION-REF><VALUE>true</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementUsePort</DEFINITION-REF><VALUE>USE_DATA_INTERNAL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementInternalData</DEFINITION-REF><VALUE>DEM_FAULT_PENDING_COUNTER</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-FOREIGN-REFERENCE-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementSystemTemplateDiagnosticDataElementRef</DEFINITION-REF><VALUE-REF DEST="DIAGNOSTIC-DATA-ELEMENT">/DiagnosticExtract/DEM/DiagnosticExtendedDataRecord/ExtendedData/FaultPendingCounter</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="375c6477-1d91-3c2c-bf2d-3ce2a98f1c2f"><SHORT-NAME>EDR_01_FaultPendingCounter</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">FaultPendingCounter</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataSize</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataType</DEFINITION-REF><VALUE>UINT8</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementEndianness</DEFINITION-REF><VALUE>OPAQUE</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementStoreNonVolatile</DEFINITION-REF><VALUE>true</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementUsePort</DEFINITION-REF><VALUE>USE_DATA_INTERNAL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementInternalData</DEFINITION-REF><VALUE>DEM_FAULT_PENDING_COUNTER</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-FOREIGN-REFERENCE-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementSystemTemplateDiagnosticDataElementRef</DEFINITION-REF><VALUE-REF DEST="DIAGNOSTIC-DATA-ELEMENT">/DiagnosticExtract/DEM/DiagnosticExtendedDataRecord/ExtendedData/FaultPendingCounter</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE><br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[Dem-search_pattern18-DemDataElementInternalData-DEM_AGED_COUNTER]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="654cc654-d4b1-3dff-b5f3-f6f921176c5e"><SHORT-NAME>EDR_01_AgedCounter</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">AgedCounter</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataSize</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataType</DEFINITION-REF><VALUE>UINT8</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementEndianness</DEFINITION-REF><VALUE>OPAQUE</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementStoreNonVolatile</DEFINITION-REF><VALUE>true</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementUsePort</DEFINITION-REF><VALUE>USE_DATA_INTERNAL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementInternalData</DEFINITION-REF><VALUE>DEM_AGED_COUNTER</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-FOREIGN-REFERENCE-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementSystemTemplateDiagnosticDataElementRef</DEFINITION-REF><VALUE-REF DEST="DIAGNOSTIC-DATA-ELEMENT">/DiagnosticExtract/DEM/DiagnosticExtendedDataRecord/ExtendedData/AgedCounter</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="654cc654-d4b1-3dff-b5f3-f6f921176c5e"><SHORT-NAME>EDR_01_AgedCounter</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">AgedCounter</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataSize</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataType</DEFINITION-REF><VALUE>UINT8</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementEndianness</DEFINITION-REF><VALUE>OPAQUE</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementStoreNonVolatile</DEFINITION-REF><VALUE>true</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementUsePort</DEFINITION-REF><VALUE>USE_DATA_INTERNAL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementInternalData</DEFINITION-REF><VALUE>DEM_AGED_COUNTER</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-FOREIGN-REFERENCE-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementSystemTemplateDiagnosticDataElementRef</DEFINITION-REF><VALUE-REF DEST="DIAGNOSTIC-DATA-ELEMENT">/DiagnosticExtract/DEM/DiagnosticExtendedDataRecord/ExtendedData/AgedCounter</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE><br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[Dem-search_pattern19-DemDataElementInternalData-DEM_AGINGCTR]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="4f7ae86f-ec83-34eb-879d-bd59cc3b8006"><SHORT-NAME>EDR_01_AgeingCounter</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">AgeingCounter</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataSize</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataType</DEFINITION-REF><VALUE>UINT8</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementEndianness</DEFINITION-REF><VALUE>OPAQUE</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementStoreNonVolatile</DEFINITION-REF><VALUE>true</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementUsePort</DEFINITION-REF><VALUE>USE_DATA_INTERNAL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementInternalData</DEFINITION-REF><VALUE>DEM_AGINGCTR</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-FOREIGN-REFERENCE-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementSystemTemplateDiagnosticDataElementRef</DEFINITION-REF><VALUE-REF DEST="DIAGNOSTIC-DATA-ELEMENT">/DiagnosticExtract/DEM/DiagnosticExtendedDataRecord/ExtendedData/AgeingCounter</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="4f7ae86f-ec83-34eb-879d-bd59cc3b8006"><SHORT-NAME>EDR_01_AgeingCounter</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">AgeingCounter</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataSize</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataType</DEFINITION-REF><VALUE>UINT8</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementEndianness</DEFINITION-REF><VALUE>OPAQUE</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementStoreNonVolatile</DEFINITION-REF><VALUE>true</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementUsePort</DEFINITION-REF><VALUE>USE_DATA_INTERNAL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementInternalData</DEFINITION-REF><VALUE>DEM_AGINGCTR</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-FOREIGN-REFERENCE-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementSystemTemplateDiagnosticDataElementRef</DEFINITION-REF><VALUE-REF DEST="DIAGNOSTIC-DATA-ELEMENT">/DiagnosticExtract/DEM/DiagnosticExtendedDataRecord/ExtendedData/AgeingCounter</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE><br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[Dem-search_pattern20-DemDataElementInternalData-DEM_OCCCTR]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="5ce75aed-e810-3c22-97e3-9f8b3a807614"><SHORT-NAME>EDR_01_FaultOccurrenceCounter</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">FaultOccurrenceCounter</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataSize</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataType</DEFINITION-REF><VALUE>UINT8</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementEndianness</DEFINITION-REF><VALUE>OPAQUE</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementStoreNonVolatile</DEFINITION-REF><VALUE>true</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementUsePort</DEFINITION-REF><VALUE>USE_DATA_INTERNAL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementInternalData</DEFINITION-REF><VALUE>DEM_OCCCTR</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-FOREIGN-REFERENCE-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementSystemTemplateDiagnosticDataElementRef</DEFINITION-REF><VALUE-REF DEST="DIAGNOSTIC-DATA-ELEMENT">/DiagnosticExtract/DEM/DiagnosticExtendedDataRecord/ExtendedData/FaultOccurrenceCounter</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="5ce75aed-e810-3c22-97e3-9f8b3a807614"><SHORT-NAME>EDR_01_FaultOccurrenceCounter</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">FaultOccurrenceCounter</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataSize</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataType</DEFINITION-REF><VALUE>UINT8</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementEndianness</DEFINITION-REF><VALUE>OPAQUE</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementStoreNonVolatile</DEFINITION-REF><VALUE>true</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementUsePort</DEFINITION-REF><VALUE>USE_DATA_INTERNAL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementInternalData</DEFINITION-REF><VALUE>DEM_OCCCTR</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-FOREIGN-REFERENCE-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementSystemTemplateDiagnosticDataElementRef</DEFINITION-REF><VALUE-REF DEST="DIAGNOSTIC-DATA-ELEMENT">/DiagnosticExtract/DEM/DiagnosticExtendedDataRecord/ExtendedData/FaultOccurrenceCounter</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE><br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[Dem-search_pattern21-DemDataElementInternalData-DEM_FAULT_PENDING_COUNTER]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="375c6477-1d91-3c2c-bf2d-3ce2a98f1c2f"><SHORT-NAME>EDR_01_FaultPendingCounter</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">FaultPendingCounter</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataSize</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataType</DEFINITION-REF><VALUE>UINT8</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementEndianness</DEFINITION-REF><VALUE>OPAQUE</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementStoreNonVolatile</DEFINITION-REF><VALUE>true</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementUsePort</DEFINITION-REF><VALUE>USE_DATA_INTERNAL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementInternalData</DEFINITION-REF><VALUE>DEM_FAULT_PENDING_COUNTER</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-FOREIGN-REFERENCE-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementSystemTemplateDiagnosticDataElementRef</DEFINITION-REF><VALUE-REF DEST="DIAGNOSTIC-DATA-ELEMENT">/DiagnosticExtract/DEM/DiagnosticExtendedDataRecord/ExtendedData/FaultPendingCounter</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="375c6477-1d91-3c2c-bf2d-3ce2a98f1c2f"><SHORT-NAME>EDR_01_FaultPendingCounter</SHORT-NAME><LONG-NAME><L-4 L="FOR-ALL">FaultPendingCounter</L-4></LONG-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataSize</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementDataType</DEFINITION-REF><VALUE>UINT8</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementEndianness</DEFINITION-REF><VALUE>OPAQUE</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementStoreNonVolatile</DEFINITION-REF><VALUE>true</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementUsePort</DEFINITION-REF><VALUE>USE_DATA_INTERNAL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementInternalData</DEFINITION-REF><VALUE>DEM_FAULT_PENDING_COUNTER</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-FOREIGN-REFERENCE-DEF">/MICROSAR/Dem/DemGeneral/DemDataClass/DemDataElementSystemTemplateDiagnosticDataElementRef</DEFINITION-REF><VALUE-REF DEST="DIAGNOSTIC-DATA-ELEMENT">/DiagnosticExtract/DEM/DiagnosticExtendedDataRecord/ExtendedData/FaultPendingCounter</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE><br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[Os-search_pattern22-OsIsrInterruptSource-211]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="ac87d5ab-22ea-44df-a6cd-279ff87bc071"><SHORT-NAME>EthIsr_EthernetCnt_MCU_Ctrl_ad7672f0_EthInterruptServiceRoutine_Q0Rx</SHORT-NAME><ANNOTATIONS><ANNOTATION><LABEL><L-4 L="FOR-ALL">/ActiveEcuC/Eth</L-4></LABEL><ANNOTATION-ORIGIN>DV:OsInterruptServiceRoutine</ANNOTATION-ORIGIN><ANNOTATION-TEXT><P><L-1 L="FOR-ALL">PLAIN_TEXT</L-1></P><P><L-1 L="FOR-ALL">ISR for Ethernet Module (EthernetCnt_MCU_Ctrl_ad7672f0).</L-1></P></ANNOTATION-TEXT></ANNOTATION></ANNOTATIONS><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Os/OsIsr</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrInterruptPriority</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrCategory</DEFINITION-REF><VALUE>CATEGORY_2</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrInterruptType</DEFINITION-REF><VALUE>EXTERNAL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrInterruptSource</DEFINITION-REF><VALUE>211</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrStackSize</DEFINITION-REF><VALUE>4096</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrEnableNesting</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrUsesFpu</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrInitialEnableInterruptSource</DEFINITION-REF><VALUE>true</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="ac87d5ab-22ea-44df-a6cd-279ff87bc071"><SHORT-NAME>EthIsr_EthernetCnt_MCU_Ctrl_ad7672f0_EthInterruptServiceRoutine_Q0Rx</SHORT-NAME><ANNOTATIONS><ANNOTATION><LABEL><L-4 L="FOR-ALL">/ActiveEcuC/Eth</L-4></LABEL><ANNOTATION-ORIGIN>DV:OsInterruptServiceRoutine</ANNOTATION-ORIGIN><ANNOTATION-TEXT><P><L-1 L="FOR-ALL">PLAIN_TEXT</L-1></P><P><L-1 L="FOR-ALL">ISR for Ethernet Module (EthernetCnt_MCU_Ctrl_ad7672f0).</L-1></P></ANNOTATION-TEXT></ANNOTATION></ANNOTATIONS><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Os/OsIsr</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrInterruptPriority</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrCategory</DEFINITION-REF><VALUE>CATEGORY_2</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrInterruptType</DEFINITION-REF><VALUE>EXTERNAL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrInterruptSource</DEFINITION-REF><VALUE>211</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrStackSize</DEFINITION-REF><VALUE>4096</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrEnableNesting</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrUsesFpu</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrInitialEnableInterruptSource</DEFINITION-REF><VALUE>true</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE><br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[Os-search_pattern23-OsIsrInterruptSource-212]</td>
- <td class="col-duration">0.00</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="bbd60c48-9047-4133-894a-60441bc77432"><SHORT-NAME>EthIsr_EthernetCnt_MCU_Ctrl_ad7672f0_EthInterruptServiceRoutine_Q0Tx</SHORT-NAME><ANNOTATIONS><ANNOTATION><LABEL><L-4 L="FOR-ALL">/ActiveEcuC/Eth</L-4></LABEL><ANNOTATION-ORIGIN>DV:OsInterruptServiceRoutine</ANNOTATION-ORIGIN><ANNOTATION-TEXT><P><L-1 L="FOR-ALL">PLAIN_TEXT</L-1></P><P><L-1 L="FOR-ALL">ISR for Ethernet Module (EthernetCnt_MCU_Ctrl_ad7672f0).</L-1></P></ANNOTATION-TEXT></ANNOTATION></ANNOTATIONS><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Os/OsIsr</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrInterruptPriority</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrCategory</DEFINITION-REF><VALUE>CATEGORY_2</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrInterruptType</DEFINITION-REF><VALUE>EXTERNAL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrInterruptSource</DEFINITION-REF><VALUE>212</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrStackSize</DEFINITION-REF><VALUE>4096</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrEnableNesting</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrUsesFpu</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrInitialEnableInterruptSource</DEFINITION-REF><VALUE>true</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="bbd60c48-9047-4133-894a-60441bc77432"><SHORT-NAME>EthIsr_EthernetCnt_MCU_Ctrl_ad7672f0_EthInterruptServiceRoutine_Q0Tx</SHORT-NAME><ANNOTATIONS><ANNOTATION><LABEL><L-4 L="FOR-ALL">/ActiveEcuC/Eth</L-4></LABEL><ANNOTATION-ORIGIN>DV:OsInterruptServiceRoutine</ANNOTATION-ORIGIN><ANNOTATION-TEXT><P><L-1 L="FOR-ALL">PLAIN_TEXT</L-1></P><P><L-1 L="FOR-ALL">ISR for Ethernet Module (EthernetCnt_MCU_Ctrl_ad7672f0).</L-1></P></ANNOTATION-TEXT></ANNOTATION></ANNOTATIONS><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Os/OsIsr</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrInterruptPriority</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrCategory</DEFINITION-REF><VALUE>CATEGORY_2</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrInterruptType</DEFINITION-REF><VALUE>EXTERNAL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrInterruptSource</DEFINITION-REF><VALUE>212</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrStackSize</DEFINITION-REF><VALUE>4096</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrEnableNesting</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrUsesFpu</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Os/OsIsr/OsIsrInitialEnableInterruptSource</DEFINITION-REF><VALUE>true</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES></ECUC-CONTAINER-VALUE><br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_custom_pattern_case[Os-search_pattern26-OsTaskStackSize-4096]</td>
- <td class="col-duration">0.01</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="log"> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 86, in get_detail_element
- logging.info(match_string)
- Message: '<ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="58148371-9b63-4bcf-b7c6-f2803b132fd8"><SHORT-NAME>User_BSW_ETH_Task_Core0</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Os/OsOS/OsStackSummary/OsStack</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsOS/OsStackSummary/OsStack/OsStackSize</DEFINITION-REF><VALUE>4096</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Os/OsOS/OsStackSummary/OsStack/OsStackType</DEFINITION-REF><VALUE>TASK_EXTENDED_STACK</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/Os/OsOS/OsStackSummary/OsStack/OsStackCore</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/OsCore0</VALUE-REF></ECUC-REFERENCE-VALUE><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-CHOICE-REFERENCE-DEF">/MICROSAR/Os/OsOS/OsStackSummary/OsStack/OsStackUser</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/User_BSW_ETH_Task_Core0</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- --- Logging error ---
- Traceback (most recent call last):
- File "C:\Users\haojiang\AppData\Local\Programs\Python\Python39\lib\logging\__init__.py", line 1086, in emit
- stream.write(msg + self.terminator)
- OSError: [WinError 6] 句柄无效。
- Call stack:
- File "D:\01_Work\Python_Venv\pytest_src\all.py", line 10, in <module>
- pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\config\__init__.py", line 164, in main
- ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 315, in pytest_cmdline_main
- return wrap_session(config, _main)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 268, in wrap_session
- session.exitstatus = doit(config, session) or 0
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 322, in _main
- config.hook.pytest_runtestloop(session=session)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\main.py", line 347, in pytest_runtestloop
- item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 111, in pytest_runtest_protocol
- runtestprotocol(item, nextitem=nextitem)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 130, in runtestprotocol
- reports.append(call_and_report(item, "call", log))
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 219, in call_and_report
- call = call_runtest_hook(item, when, **kwds)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 258, in call_runtest_hook
- return CallInfo.from_call(
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 338, in from_call
- result: Optional[TResult] = func()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 259, in <lambda>
- lambda: ihook(item=item, **kwds), when=when, reraise=reraise
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\runner.py", line 166, in pytest_runtest_call
- item.runtest()
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 1761, in runtest
- self.ihook.pytest_pyfunc_call(pyfuncitem=self)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_hooks.py", line 265, in __call__
- return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
- return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\pluggy\_callers.py", line 39, in _multicall
- res = hook_impl.function(*args)
- File "D:\01_Work\Python_Venv\pytest_venv\lib\site-packages\_pytest\python.py", line 192, in pytest_pyfunc_call
- result = testfunction(**testargs)
- File "D:\01_Work\Python_Venv\pytest_src\testcase\test_case.py", line 49, in test_custom_pattern_case
- res = check_module_param_check(PROJECT, module_name, item, search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 96, in check_module_param_check
- cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 61, in do_param_check
- match_element = get_match_element_function(check_items, **search_pattern)
- File "D:\01_Work\Python_Venv\pytest_src\Base\ModuleCfgCheck.py", line 83, in get_detail_element
- logging.info(f'Find Valid Element: {match_string}')
- Message: 'Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="f1791f5e-fb68-418b-84a0-2264197262be"><SHORT-NAME>User_BSW_ETH_Task_Core0</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Os/OsTask</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskActivation</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskPriority</DEFINITION-REF><VALUE>10</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskSchedule</DEFINITION-REF><VALUE>FULL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskStackSharing</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskStackSize</DEFINITION-REF><VALUE>4096</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskType</DEFINITION-REF><VALUE>EXTENDED</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskUsesFpu</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/Os/OsTask/OsTaskAccessingApplication</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/SystemApplication_OsCore0</VALUE-REF></ECUC-REFERENCE-VALUE><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/Os/OsTask/OsTaskAccessingApplication</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/SystemApplication_OsCore1</VALUE-REF></ECUC-REFERENCE-VALUE><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/Os/OsTask/OsTaskEventRef</DEFINITION-REF><ANNOTATIONS><ANNOTATION><ANNOTATION-ORIGIN>DV:RTE</ANNOTATION-ORIGIN></ANNOTATION></ANNOTATIONS><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/Rte_Ev_Cyclic2_User_BSW_ETH_Task_Core0_0_1s</VALUE-REF></ECUC-REFERENCE-VALUE><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/Os/OsTask/OsTaskEventRef</DEFINITION-REF><ANNOTATIONS><ANNOTATION><ANNOTATION-ORIGIN>DV:RTE</ANNOTATION-ORIGIN></ANNOTATION></ANNOTATIONS><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/Rte_Ev_Cyclic2_User_BSW_ETH_Task_Core0_0_20ms</VALUE-REF></ECUC-REFERENCE-VALUE><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/Os/OsTask/OsTaskEventRef</DEFINITION-REF><ANNOTATIONS><ANNOTATION><ANNOTATION-ORIGIN>DV:RTE</ANNOTATION-ORIGIN></ANNOTATION></ANNOTATIONS><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/Rte_Ev_Cyclic2_User_BSW_ETH_Task_Core0_0_40ms</VALUE-REF></ECUC-REFERENCE-VALUE><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/Os/OsTask/OsTaskEventRef</DEFINITION-REF><ANNOTATIONS><ANNOTATION><ANNOTATION-ORIGIN>DV:RTE</ANNOTATION-ORIGIN></ANNOTATION></ANNOTATIONS><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/Rte_Ev_Run_CpCddEthSwc_RCtCddEthSwc_Process5ms</VALUE-REF></ECUC-REFERENCE-VALUE><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/Os/OsTask/OsTaskEventRef</DEFINITION-REF><ANNOTATIONS><ANNOTATION><ANNOTATION-ORIGIN>DV:RTE</ANNOTATION-ORIGIN></ANNOTATION></ANNOTATIONS><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/Rte_Ev_Run_CpCddEthSwc_RCtCddEthSwc_Process100ms</VALUE-REF></ECUC-REFERENCE-VALUE><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/Os/OsTask/OsTaskEventRef</DEFINITION-REF><ANNOTATIONS><ANNOTATION><ANNOTATION-ORIGIN>DV:RTE</ANNOTATION-ORIGIN></ANNOTATION></ANNOTATIONS><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/Rte_Ev_Run_CpCddEthSwc_RCtCddEthSwc_RecvDoIPEthActvn</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE>'
- Arguments: ()
- <br/> -------------------------------Captured log call-------------------------------- <br/>INFO root:ModuleCfgCheck.py:86 <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="58148371-9b63-4bcf-b7c6-f2803b132fd8"><SHORT-NAME>User_BSW_ETH_Task_Core0</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Os/OsOS/OsStackSummary/OsStack</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsOS/OsStackSummary/OsStack/OsStackSize</DEFINITION-REF><VALUE>4096</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Os/OsOS/OsStackSummary/OsStack/OsStackType</DEFINITION-REF><VALUE>TASK_EXTENDED_STACK</VALUE></ECUC-TEXTUAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/Os/OsOS/OsStackSummary/OsStack/OsStackCore</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/OsCore0</VALUE-REF></ECUC-REFERENCE-VALUE><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-CHOICE-REFERENCE-DEF">/MICROSAR/Os/OsOS/OsStackSummary/OsStack/OsStackUser</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/User_BSW_ETH_Task_Core0</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE>
- INFO root:ModuleCfgCheck.py:83 Find Valid Element: <ECUC-CONTAINER-VALUE xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UUID="f1791f5e-fb68-418b-84a0-2264197262be"><SHORT-NAME>User_BSW_ETH_Task_Core0</SHORT-NAME><DEFINITION-REF DEST="ECUC-PARAM-CONF-CONTAINER-DEF">/MICROSAR/Os/OsTask</DEFINITION-REF><PARAMETER-VALUES><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskActivation</DEFINITION-REF><VALUE>1</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskPriority</DEFINITION-REF><VALUE>10</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskSchedule</DEFINITION-REF><VALUE>FULL</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskStackSharing</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-INTEGER-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskStackSize</DEFINITION-REF><VALUE>4096</VALUE></ECUC-NUMERICAL-PARAM-VALUE><ECUC-TEXTUAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-ENUMERATION-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskType</DEFINITION-REF><VALUE>EXTENDED</VALUE></ECUC-TEXTUAL-PARAM-VALUE><ECUC-NUMERICAL-PARAM-VALUE><DEFINITION-REF DEST="ECUC-BOOLEAN-PARAM-DEF">/MICROSAR/Os/OsTask/OsTaskUsesFpu</DEFINITION-REF><VALUE>false</VALUE></ECUC-NUMERICAL-PARAM-VALUE></PARAMETER-VALUES><REFERENCE-VALUES><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/Os/OsTask/OsTaskAccessingApplication</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/SystemApplication_OsCore0</VALUE-REF></ECUC-REFERENCE-VALUE><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/Os/OsTask/OsTaskAccessingApplication</DEFINITION-REF><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/SystemApplication_OsCore1</VALUE-REF></ECUC-REFERENCE-VALUE><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/Os/OsTask/OsTaskEventRef</DEFINITION-REF><ANNOTATIONS><ANNOTATION><ANNOTATION-ORIGIN>DV:RTE</ANNOTATION-ORIGIN></ANNOTATION></ANNOTATIONS><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/Rte_Ev_Cyclic2_User_BSW_ETH_Task_Core0_0_1s</VALUE-REF></ECUC-REFERENCE-VALUE><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/Os/OsTask/OsTaskEventRef</DEFINITION-REF><ANNOTATIONS><ANNOTATION><ANNOTATION-ORIGIN>DV:RTE</ANNOTATION-ORIGIN></ANNOTATION></ANNOTATIONS><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/Rte_Ev_Cyclic2_User_BSW_ETH_Task_Core0_0_20ms</VALUE-REF></ECUC-REFERENCE-VALUE><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/Os/OsTask/OsTaskEventRef</DEFINITION-REF><ANNOTATIONS><ANNOTATION><ANNOTATION-ORIGIN>DV:RTE</ANNOTATION-ORIGIN></ANNOTATION></ANNOTATIONS><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/Rte_Ev_Cyclic2_User_BSW_ETH_Task_Core0_0_40ms</VALUE-REF></ECUC-REFERENCE-VALUE><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/Os/OsTask/OsTaskEventRef</DEFINITION-REF><ANNOTATIONS><ANNOTATION><ANNOTATION-ORIGIN>DV:RTE</ANNOTATION-ORIGIN></ANNOTATION></ANNOTATIONS><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/Rte_Ev_Run_CpCddEthSwc_RCtCddEthSwc_Process5ms</VALUE-REF></ECUC-REFERENCE-VALUE><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/Os/OsTask/OsTaskEventRef</DEFINITION-REF><ANNOTATIONS><ANNOTATION><ANNOTATION-ORIGIN>DV:RTE</ANNOTATION-ORIGIN></ANNOTATION></ANNOTATIONS><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/Rte_Ev_Run_CpCddEthSwc_RCtCddEthSwc_Process100ms</VALUE-REF></ECUC-REFERENCE-VALUE><ECUC-REFERENCE-VALUE><DEFINITION-REF DEST="ECUC-REFERENCE-DEF">/MICROSAR/Os/OsTask/OsTaskEventRef</DEFINITION-REF><ANNOTATIONS><ANNOTATION><ANNOTATION-ORIGIN>DV:RTE</ANNOTATION-ORIGIN></ANNOTATION></ANNOTATIONS><VALUE-REF DEST="ECUC-CONTAINER-VALUE">/ActiveEcuC/Os/Rte_Ev_Run_CpCddEthSwc_RCtCddEthSwc_RecvDoIPEthActvn</VALUE-REF></ECUC-REFERENCE-VALUE></REFERENCE-VALUES></ECUC-CONTAINER-VALUE><br/></div></td></tr></tbody>
- <tbody class="passed results-table-row">
- <tr>
- <td class="col-result">Passed</td>
- <td class="col-name">testcase/test_case.py::test_canif_dlc_check_case</td>
- <td class="col-duration">0.48</td>
- <td class="col-links"></td></tr>
- <tr>
- <td class="extra" colspan="4">
- <div class="empty log">No log output captured.</div></td></tr></tbody></table></body></html>
|