This is collection for testing in javascript using protractor karma etc
This implementation was done for control of a simple automated system using a Programmable Logic Controllers (PLC)
A glace view of our idea is designing a new innovative idea which can monitor the flow of power supply to the existing plug sockets. As in India demand for electricity is increasing day by day, there is a need to implement an idea in order to meet th
IIT kharagpur NPTEL course on Hardware Modelling using VerilogFull description
Software Testing is a process of finding errors while executing a program so that we get a zero defect software. It is aimed at evaluating the capability or usability of a program. Software testing is an important means of accessing quality of softwa
deep Learning book, Chatbot, image processingFull description
deep Learning book, Chatbot, image processingFull description
This project work is taken up, which is aimed to design and develop one automated machine that can be used for drilling the PCB (printed circuit board). In PCB drilling machines, the locatio…Full description
Supermarket is a form where wide variety of product items is available. The main purpose of supermarkets is to provide availability of all the products and save the time of the customers but sometimes customer gets frustrated while waiting in the que
In the contemporary world, the technologies are sharply developed, but still the hygiene in our country is under hazards. The abstract of project is to provide clean and hygienic toilets or washrooms. All the public toilets should be clean and hygien
Election commission still uses manual system during election for vote casting in this modern age of digitalization. In parliamentary elections it is consider introducing Electronic voting machines EVM though Evm is not entirely automated and has many
Excel in soil testing
Chapter No. 1 Understanding the Penetration Testing Methodology Utilize Python scripting to execute effective and efficient penetration tests For more information: http://bit.ly/1jxcFZoFull description
Programacion de computadora mediante PythonDescripción completa
Descripción completa
Full description
Mario Essert, Domagoj Ševerdija, Ivan Vazler Digitalni udžbenik Python - osnove - Odjel za matematiku Sveučilišta Josipa Jurja Strossmayera Osijek, 2007. Sadržaj Sadržaj 1 Python interpreter 1...
PythonDescripción completa
python programmingDescrição completa
With so much of our lives computerized, it is vitally important that machines and humans can understand one another and pass information back and forth. Mostly computers have things their way we have to and talk to them through relatively crude devic
Accessing Abaqus Database Using Python Scripting
SQL Automated queries errors
TESTING Testing Testing is an organi1ed organi1ed !ro$ !ro$ess ess to )eri% t"e be"a)ior( !er%orman$e( and re'iabi'it o% a de)i$e It ens*res a de)i$e or sstem to be as de%e$t2%ree as !ossib'e Testing Testing is a man*%a$t*ring man*%a$t*ring ste! ste! to ens*re t"at t"e man*%a$t*red de)i$e is de%e$t %ree
HARDWARE TESTING A $ommon test !'at%orm 4CTP5( a'so $a''ed an o!en test standard 4OTS5( is a set o% s!e$i+$ations de+ning test met"ods %or di)erse $om!onents o% $om!*ter and e'e$troni$ sstems to be mar6eted as $om!'ete !rod*$ts& T"e intent o% a CTP is to ens*re $onsisten$ in "ard#are and so%t#are test !ro$ed*res !ro$ed*res %rom %rom t"e $on$e!t*a' and design !"ases t"ro*g" man*%a$t*re and distrib*tion& Com!*ters( $om!*ter !eri!"era's and e'e$troni$ sstems o%ten $ontain $om!'e7 de)i$es( $ir$*its( !rograms !rograms and inter%a$es& T"ese m*st a'' #or6 toget"er in a )ariet o% a!!'i$ations and $onditions& A CTP $an be !art o% an o)era'' 8*a'it ass*ran$e !rogram& A $ommon standard $an
E:ISTING SYSTEM Testing Testing is $arried $arried o*t man*a'' b test test engineers& Cons*ming a 'ot o% time and e0ort "*ge %or s!ending t"e time %or testing& NI ,ab ;ie# designing a ATE &B*t meas*rements are ta6en b re!*ted instr*ments or NI P:I on' P:I HW and its so%t#are is "*ge amo*nt& Certi+ed engineer on' ab'e to a$$ess a $$ess t"e so%t#are Add2on so%t#are needed %or Test Test $ase $as e and Re!ort generation &
PROPOSED SYSTEM
To o)er$ome t"e e7isting !rob'em( #e $onstr*$t Embedded "ard#are test mod*'e to meas*re t"e Resistan$e test a!!'ied to signa' tra$es 4s"ort-o!en5 ;o'tage -$*rrent meas*re #it" "e'! o% ana'og !ins& IO !ins *sed to trigger t"e on-o0 or $ontro' t"e "#&
Proto$o's testing are done b t"e test "ard#are& Tested Tested data !a$6ets !a$6ets seria'' seria'' $omm*ni$ated to t"e Pt"on s$rit!s Pt"on s$ri!ts $o''e$t t"e $om!'ied data
PRO=ECT > ENTIRE SYSTEM
PYTHON TEST GUI
DEVICE UNDER TEST
SERIAL INTERFACE
EMBEDDED TEST HW DESIGN Atmega ?2bit A;R $ontro''er *sed %or Embedded Test Test Hard#are Hard#are sstem& sstem& Ne$essit to test t"e e)er !roto$o's $"i!s( Ana'og and Digita' IC& C*rrent( ;o'tage and Resistan$e meas*rements *sing @bit ADC IC TEMP EEPROM SENSORS DE;ICES UART RS FF RS? @J2IC FF RS @J2IC FF
HW DES DESIGN IGN > ;O, ;O,T TAGE (CUR (CURRENT RENT K RESISTANCE MEASUREMENT
I2C 4Inter2Integrated Cir$*it( !rono*n$ed LI s8*ared CL5 is a'so a sn$"rono*s !roto$o'&IC *ses on' #ires( one %or t"e $'o$6 4SC,5 and one %or t"e data 4SDA5& T"at means t"at master and s'a)e send data o)er t"e same #ire( again $ontro''ed b t"e master&
HW DESIGN > PROTOCO,S TESTING2UART TESTING2UAR T - SERIA, Serial communication is t"e !ro$ess o% sending data one bit one b one one se8*entia''( o)er a communication $"anne'& UART $omm*ni$ation o% .*'' d*!'e7 T: and R: $omm*ni$ation t"ro*g" t"e COM de)i$es&
HW DESIGN > PROTOCO,S TESTING > RS? RS-485 allow multi!le "e#ice $u! to %2& to communicate at 'al(-"u!le) on a in*le !air o( wire+ !lu a *roun" wire $more on t'at later&+ at "itance u! to ,2 meter $4 (eet& RS485 .i/erential communicatio c ommunication n t'rou*' 0 1- 3 Si*nal line
HW DESIGN > PROTOCO,S TESTING > RS
Seria'( ba'an$ed and di0erentia' are t"e 6e#ords %or t"e RS inter%a$e standard& Seria' means( t"at t"e in%ormation is sent bit b bit on a sing'e transmission 'ine( *st 'i6e #it" RS& Ba'an$ed di0erentia' is #"at ma6es RS di0erent %rom RS
SW Design 2 PYTHON Pt"on is a $'ear and !o#er%*' obe$t2 oriented !rogramming 'ang*age( $om!arab'e to Per'( T$' and =a)a& It/s a .OSS Programming 'ang*age& R*ns on man di0erent $om!*ters and o!erating sstems Windo#s( Ma$OS( man brands o% Uni7( OS- Pt"on Code $an be gro*!ed into mod*'es and !a$6ages
SO.TWARE SO.TW ARE DESIGN DESIGN 2 PYTHON An o!en so*r$e so%t#are *sed to A*tomate t"e Hard#are Testing
UNITTEST mod*'e s*!!orts test a*tomation( s"aring o% set*! and s"*tdo#n $ode %or tests( aggregation o% tests into $o''e$tions( $o''e$tions( and inde!enden$e o% t"e tests %rom t"e re!orting %rame#or6&
UNIT TEST MODU,E CONCEPTS
Tet i)ture It re!resents t"e !re!aration needed to !er%orm one or more tests( and an asso$iate $'ean*! a$tions& T"is ma in)o')e( %or e7am!'e( $reating tem!orar or !ro7 databases( dire$tories( or starting a ser)er !ro$ess&
Tet Cae6 is t"e sma''est *nit o% testing& It $"e$6s %or a s!e$i+$ res!onse to a !arti$*'ar set o% in!*ts& Unit test !ro)ides a base $'ass( Test Case #"i$" ma be *sed to $reate ne# test $ases&
Tet Suite6 Test s*ite is a $o''e$tion o% test $ases( test s*ites( or bot"& It is *sed to aggregate tests t"at s"o*'d be e7e$*ted toget"er& toget"er&
SW >De)e'o!ment .'o#
Re8*irements K Test Case Re'ations"i!
UUT Code Sam!'e Def ScaledInput(data):
Fun!"#n #$% &%!!"n& #n% "n'u! ()&u*%n!
rc = NO_ERR scaled_data = data if data >= DATA_MIN and data <= DATA_MA: scaled_data = (data ! data_scale) " data_#ffset if scaled_data > S$A%E_MA: scaled_data = S$A%E_MA rc = ERR_MAS$A%E elif scaled_data < S$A%E_MIN: scaled_data = S$A%E_MIN rc = ERR_MINS$A%E else: rc = ERR_O&ER return (rc' scaled_data)
Fun!"#n R%!u)n"n& !+# #,' -(.u%/
.*n$tion #it" arg*ment $ode tab'e
A *nit test is $onstr*$ted s*$" t"at a'' !ossib'e in!*ts are *sed to %or$e t"e e7e$*tion to tra)erse a'' !ossib'e !at"s& In t"e $ase o% S$a'edIn!*t45( #e $an see t"at t"ere are t"ree ob)io*s in!*t test $ases& $ases& Too 'o#( 'o#( Too Too "ig"( Wit"in range&
$"art
Test T est Ste! .'o# .'o# C"art
PYTHON SCRIPT TEST CASE Ea$" a*tomati$ test $ase $ontains assigned Pt"on s$ri!t t"at is e7e$*ted b E7e$*tor a!!'i$ation& .ig*re !resents genera' o# $"art %or #riting a*tomati$ s$ri!ts %or %*n$tiona' testing&
PYTHON TEST RESU,T
AD;ANTAGES Boards( $om!onents and inter%a$e $ab'e se!arate' tested in modes o% test $ase& Man*a' testing "as been red*$ed ,o$ating t"e Hard#are4$om!onents5 and so%t#are b*gs *sing test re!orts& ,o# Cost 4P*rs*ing so%t#are/s are O!en so*r$e5 Red*$ed "*man e0orts
DISAD;ANTAGES Embedded $ontro''ers are sing'e tas6 at a instant& So meas*ring data goes to t"e !$ #it" de'a& O*t!*t data !a$6ets $om!ared #it" test $ase "e'! o% Pt"on S$ri!t& So re!ort generating time ta6en more&
CONC,USION
A*tomati$ "ard#are testing *sing Pt"on is a ATE te$"ni8*e to in$rease t"ro*g"!*t #it"o*t a $orres!onding in$rease in $ost( b !er%orming tests on !roto$o's are "and'ing and test #it"o*t error& It "as been s"o#n 8*antitati)e' to red*$e test $ost more e0e$ti)e' t"an 'o#2$ost ATE& Be$a*se it red*$es a'' test $ost $ontrib*tors( and not on' $a!ita' $ost o% ATE&