SlideShare ist ein Scribd-Unternehmen logo
1 von 31
AUTOMATED HARDWARE TESTINGAUTOMATED HARDWARE TESTING
USING PYTHONUSING PYTHON
1
Name : YUVARAJA RAVI
Reg No : 13PEES1005
course : M.TECH EMBEDDED
2
NAME : YUVARAJA.R
REGISTER NUMBER : 13PEES1005
LANGUAGE : EMBEDDED C & PYTHON
PROJECT INCHARGE : K.Bhaskar B.Tech., M.E.(Ph.D)
ABSTRACTABSTRACT
Design a Embedded Prototype test hardware
interact with Python software shows presence
of defects in UUT. Python test script can
download the test cases to the target system
one by one, receive test output, compare with
specifications then verify it, and generate log
files. Log files inside test steps results are
stored as PASS/FAIL.
It’s a cost effective test system for SS
Electronic hardware manufacturers
3
TESTINGTESTING
Testing is an organized process to verify
the behavior, performance, and reliability
of a device
It ensures a device or system to be as
defect-free as possible
Testing is a manufacturing step to ensure
that the manufactured device is defect
free
4
HARDWARE TESTINGHARDWARE TESTING
  A common test platform (CTP), also called an open test
standard (OTS), is a set of specifications defining test methods
for diverse components of computer and electronic systems
to be marketed as complete products. The intent of a CTP is
to ensure consistency in hardware and software test
procedures from the conceptual and design phases through
manufacture and distribution.
 Computers, computer peripherals and electronic systems
often contain complex devices, circuits, programs and
interfaces. These must all work together in a variety of
applications and conditions. A CTP can be part of an overall
quality assurance program. A common standard can reduce
the cost of test equipment, optimize the use of available test
equipment, increase production efficiency and minimize
training costs.
5
EXISTING SYSTEMEXISTING SYSTEM
 Testing is carried out manually by test engineers.
Consuming a lot of time and effort huge for spending
the time for testing.
 NI Lab View designing a ATE .But measurements are
taken by reputed instruments or NI PXI only
 PXI HW and its software is huge amount.
 Certified engineer only able to access the software
 Add-on software needed for Test case and Report
generation .
6
PROPOSED SYSTEMPROPOSED SYSTEM
 To overcome the existing problem, we construct Embedded
hardware test module to measure the
 Resistance test applied to signal traces (short/open)
 Voltage /current measure with help of analog pins.
 IO pins used to trigger the on/off or control the hw.
 Protocols testing are done by the test hardware.
 Tested data packets serially communicated to the Python scritps
 Python scripts collect the complied data's then compare with test
case input and generate the test reports..
7
PROJECT – ENTIRE SYSTEMPROJECT – ENTIRE SYSTEM
8
SERIAL INTERFACE
EMBEDDED TEST HW DESIGNEMBEDDED TEST HW DESIGN
 Atmega 8-bit AVR controller used for Embedded Test
Hardware system.
 Necessity to test the every protocols chips, Analog and
Digital IC.
 Current, Voltage and Resistance measurements using 10bit
ADC
 I2C >> | TEMP | EEPROM | SENSORS | DEVICES |
 UART >> RS232 <<
 RS485 >> 75176-IC <<
 RS422 >> 75176-IC <<
9
HW DESIGN – VOLTAGE ,CURRENT &HW DESIGN – VOLTAGE ,CURRENT &
RESISTANCE MEASUREMENTRESISTANCE MEASUREMENT
Voltage measured by using AVR
Controller 10bit ADC
Current measurement taken by ACS712
Current sensor IC.
Constant current probing to the voltage
net through voltage divider circuit.
Impedance measured by the ADC.
10
HW DESIGN – PROTOCOLS TESTING-I2CHW DESIGN – PROTOCOLS TESTING-I2C
 I2C (Inter-Integrated Circuit, pronounced "I squared
C") is also a synchronous protocol.I2C uses only 2
wires, one for the clock (SCL) and one for the data
(SDA). That means that master and slave send data
over the same wire, again controlled by the master.
11
HW DESIGN – PROTOCOLSHW DESIGN – PROTOCOLS
TESTING-UART / SERIALTESTING-UART / SERIAL
  Serial communication is the process of sending data
one bit one by one sequentially, over a
communication channel.
 UART communication of Full duplex TX and RX
communication through the COM devices.
12
HW DESIGN – PROTOCOLSHW DESIGN – PROTOCOLS
TESTING – RS485TESTING – RS485
 RS-485 allows multiple devices (up to 32) to
communicate at half-duplex on a single pair of
wires, plus a ground wire (more on that later),
at distances up to 1200 meters (4000 feet)
 RS485 Differential communication through A <-
> B Signal lines.
13
HW DESIGN – PROTOCOLSHW DESIGN – PROTOCOLS
TESTING – RS422TESTING – RS422
 Serial, balanced and differential are the keywords for the RS422
interface standard. Serial means, that the information is sent bit by
bit on a single transmission line, just like with RS232. Balanced
differential is what makes RS422 different from RS232
14
SW Design - PYTHONSW Design - PYTHON
Python is a clear and powerful object-
oriented programming language,
comparable to Perl, Tcl and Java.
It’s a FOSS Programming language.
Runs on many different computers and
operating systems: Windows, MacOS,
many brands of Unix, OS/2
Python Code can be grouped into
modules and packages
15
SOFTWARE DESIGN - PYTHONSOFTWARE DESIGN - PYTHON
An open source software used to Automate
the Hardware Testing
UNITTEST module supports test automation,
sharing of setup and shutdown code for tests,
aggregation of tests into collections, and
independence of the tests from the reporting
framework.
AUTOMATED HARDWARE TESTING 16
UNIT TEST MODULE CONCEPTSUNIT TEST MODULE CONCEPTS
 Test Fixture : It represents the preparation needed to perform one
or more tests, and any associate cleanup actions. This may involve,
for example, creating temporary or proxy databases, directories, or
starting a server process.
 Test Case: is the smallest unit of testing. It checks for a specific
response to a particular set of inputs. Unit test provides a base
class, Test Case which may be used to create new test cases.
 Test Suite: Test suite is a collection of test cases, test suites, or
both. It is used to aggregate tests that should be executed together.
 Test Plan: Test plan is a document detailing the objectives, target
market, internal beta team, and processes for a specific beta test for
a software or hardware product. The plan typically contains a
detailed understanding of the eventual workflow.
AUTOMATED HARDWARE TESTING 17
SW –Development FlowSW –Development Flow
AUTOMATED HARDWARE TESTING 18
Requirements & Test CaseRequirements & Test Case
RelationshipRelationship
AUTOMATED HARDWARE TESTING 19
UUT Code SampleUUT Code Sample
Def ScaledInput(data):
rc = NO_ERR
scaled_data = data
if data >= DATA_MIN and data <= DATA_MAX:
scaled_data = (data * data_scale) + data_offset
if scaled_data > SCALE_MAX:
scaled_data = SCALE_MAX
rc = ERR_MAXSCALE
elif scaled_data < SCALE_MIN:
scaled_data = SCALE_MIN
rc = ERR_MINSCALE
else:
rc = ERR_OVER
return (rc, scaled_data)
AUTOMATED HARDWARE TESTING 20
Function code getting one input argument
Function Returning two o/p values
Function with argument code tableFunction with argument code table
AUTOMATED HARDWARE TESTING 21
A unit test is constructed such that all possible
inputs are used to force the execution to traverse
all possible paths. In the case of ScaledInput(), we
can see that there are three obvious input test
cases. Too low,
Too high,
Within range.
Test Case Function Flow chartTest Case Function Flow chart
AUTOMATED HARDWARE TESTING 22
Test Step Flow ChartTest Step Flow Chart
AUTOMATED HARDWARE TESTING 23
PYTHON SCRIPTPYTHON SCRIPT
TEST CASETEST CASE
Each automatic test case
contains assigned Python
script that is executed by
Executor application. Figure
presents general flow chart
for writing automatic scripts for
functional testing.
24
PYTHON TEST RESULTPYTHON TEST RESULT
25
ADVANTAGESADVANTAGES
Boards, components and interface cable
separately tested in modes of test case.
Manual testing has been reduced
Locating the Hardware(components) and
software bugs using test reports.
Low Cost (Pursuing software’s are Open
source)
Reduced human efforts
26
DISADVANTAGESDISADVANTAGES
Embedded controllers are single task at a
instant. So measuring data goes to the pc
with delay. Output data packets compared
with test case help of Python Script. So
report generating time taken more.
27
CONCLUSIONCONCLUSION
 Automatic hardware testing using Python is a ATE
technique to increase throughput without a
corresponding increase in cost, by performing tests on
protocols are handling and test without error. It has
been shown quantitatively to reduce test cost more
effectively than low-cost ATE. Because it reduces all
test cost contributors, and not only capital cost of ATE.
 In this paper, we described the AHT using python
strategy adopted for hardware testing and protocols
testing without measuring instruments .
28
FUTURE ENHANCEMENTFUTURE ENHANCEMENT
In this project in future we can add a
FPGA or CPLD used to get the data
packets at instant of time without delay.
Parallel Testing method introduces to
test the multiple boards at same instant
time.
29
BASE PAPERSBASE PAPERS
 [1] Jambunatha, K .,Design and implement Automated Procedure to upgrade
remote network devices using Python, Advance Computing Conference (IACC),
2015 IEEE International, Bangalore, June 2015.
 [2] Karmore, S.P.; Mabajan, A.R., Universal methodology for embedded system
testing., Computer Science & Education (ICCSE), 2013 8th International Conference
on Year: 2013,IEEE Conference Publications, 26-28 April 2013
 [3] Kovacevic, M.; Kovacevic, B.; Pekovic, V.; Stefanovic, D., Framework for
automatic testing of Set-top boxes., Telecommunications Forum Telfor (TELFOR),
22ndYear: 2014
 [4] Kim H. Pries, Jon M. Quigley-Testing Complex and Embedded Systems-CRC
Press (2010)
 [5] Python Programming Language, URL http://python.org/.
30
THANK YOUTHANK YOU
31

Weitere ähnliche Inhalte

Was ist angesagt?

SOC Verification using SystemVerilog
SOC Verification using SystemVerilog SOC Verification using SystemVerilog
SOC Verification using SystemVerilog Ramdas Mozhikunnath
 
Functional verification techniques EW16 session
Functional verification techniques  EW16 sessionFunctional verification techniques  EW16 session
Functional verification techniques EW16 sessionSameh El-Ashry
 
Jtag presentation
Jtag presentationJtag presentation
Jtag presentationklinetik
 
Cadence GenusTutorial------------ .pdf.pdf
Cadence GenusTutorial------------ .pdf.pdfCadence GenusTutorial------------ .pdf.pdf
Cadence GenusTutorial------------ .pdf.pdfSamHoney6
 
UVM: Basic Sequences
UVM: Basic SequencesUVM: Basic Sequences
UVM: Basic SequencesArrow Devices
 
01 Transition Fault Detection methods by Swetha
01 Transition Fault Detection methods by Swetha01 Transition Fault Detection methods by Swetha
01 Transition Fault Detection methods by Swethaswethamg18
 
Top 20 best automation testing tools
Top 20 best automation testing toolsTop 20 best automation testing tools
Top 20 best automation testing toolsQACraft
 
Behavior driven development (bdd)
Behavior driven development (bdd)Behavior driven development (bdd)
Behavior driven development (bdd)Rohit Bisht
 
Acceptance testing
Acceptance testingAcceptance testing
Acceptance testingCOEPD HR
 
Session 8 assertion_based_verification_and_interfaces
Session 8 assertion_based_verification_and_interfacesSession 8 assertion_based_verification_and_interfaces
Session 8 assertion_based_verification_and_interfacesNirav Desai
 
5 black box and grey box testing
5   black box and grey box testing5   black box and grey box testing
5 black box and grey box testingYisal Khan
 

Was ist angesagt? (20)

Vlsi testing
Vlsi testingVlsi testing
Vlsi testing
 
SOC Verification using SystemVerilog
SOC Verification using SystemVerilog SOC Verification using SystemVerilog
SOC Verification using SystemVerilog
 
Functional verification techniques EW16 session
Functional verification techniques  EW16 sessionFunctional verification techniques  EW16 session
Functional verification techniques EW16 session
 
Jtagppt
JtagpptJtagppt
Jtagppt
 
Jtag presentation
Jtag presentationJtag presentation
Jtag presentation
 
Cadence GenusTutorial------------ .pdf.pdf
Cadence GenusTutorial------------ .pdf.pdfCadence GenusTutorial------------ .pdf.pdf
Cadence GenusTutorial------------ .pdf.pdf
 
UVM: Basic Sequences
UVM: Basic SequencesUVM: Basic Sequences
UVM: Basic Sequences
 
CPU Verification
CPU VerificationCPU Verification
CPU Verification
 
Uvm dac2011 final_color
Uvm dac2011 final_colorUvm dac2011 final_color
Uvm dac2011 final_color
 
dft
dftdft
dft
 
01 Transition Fault Detection methods by Swetha
01 Transition Fault Detection methods by Swetha01 Transition Fault Detection methods by Swetha
01 Transition Fault Detection methods by Swetha
 
Top 20 best automation testing tools
Top 20 best automation testing toolsTop 20 best automation testing tools
Top 20 best automation testing tools
 
Behavior driven development (bdd)
Behavior driven development (bdd)Behavior driven development (bdd)
Behavior driven development (bdd)
 
Test Automation in Agile
Test Automation in AgileTest Automation in Agile
Test Automation in Agile
 
Automation Testing
Automation TestingAutomation Testing
Automation Testing
 
Acceptance testing
Acceptance testingAcceptance testing
Acceptance testing
 
Scan insertion
Scan insertionScan insertion
Scan insertion
 
Session 8 assertion_based_verification_and_interfaces
Session 8 assertion_based_verification_and_interfacesSession 8 assertion_based_verification_and_interfaces
Session 8 assertion_based_verification_and_interfaces
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
5 black box and grey box testing
5   black box and grey box testing5   black box and grey box testing
5 black box and grey box testing
 

Andere mochten auch

Automated Regression Testing for Embedded Systems in Action
Automated Regression Testing for Embedded Systems in ActionAutomated Regression Testing for Embedded Systems in Action
Automated Regression Testing for Embedded Systems in ActionAANDTech
 
Automated Testing for Embedded Software in C or C++
Automated Testing for Embedded Software in C or C++Automated Testing for Embedded Software in C or C++
Automated Testing for Embedded Software in C or C++Lars Thorup
 
Python Testing Fundamentals
Python Testing FundamentalsPython Testing Fundamentals
Python Testing Fundamentalscbcunc
 
Testing in-python-and-pytest-framework
Testing in-python-and-pytest-frameworkTesting in-python-and-pytest-framework
Testing in-python-and-pytest-frameworkArulalan T
 
An Overview of User Acceptance Testing (UAT)
An Overview of User Acceptance Testing (UAT)An Overview of User Acceptance Testing (UAT)
An Overview of User Acceptance Testing (UAT)Usersnap
 
Robot Framework Dos And Don'ts
Robot Framework Dos And Don'tsRobot Framework Dos And Don'ts
Robot Framework Dos And Don'tsPekka Klärck
 
Automated Acceptance Testing from Scratch
Automated Acceptance Testing from ScratchAutomated Acceptance Testing from Scratch
Automated Acceptance Testing from ScratchExcella
 
C to C++ Migration Strategy
C to C++ Migration Strategy C to C++ Migration Strategy
C to C++ Migration Strategy Colin Walls
 
Robot framework 을 이용한 기능 테스트 자동화
Robot framework 을 이용한 기능 테스트 자동화Robot framework 을 이용한 기능 테스트 자동화
Robot framework 을 이용한 기능 테스트 자동화Jaehoon Oh
 
Softwarequalitätssicherung mit Continuous Integration Tools
Softwarequalitätssicherung mit Continuous Integration ToolsSoftwarequalitätssicherung mit Continuous Integration Tools
Softwarequalitätssicherung mit Continuous Integration ToolsGFU Cyrus AG
 
Python in telecommunications (in 7 minutes)
Python in telecommunications (in 7 minutes)Python in telecommunications (in 7 minutes)
Python in telecommunications (in 7 minutes)iMasters
 
C++ and Embedded Linux - a perfect match
C++ and Embedded Linux - a perfect matchC++ and Embedded Linux - a perfect match
C++ and Embedded Linux - a perfect matchVinícius Tadeu Zein
 
Yuva Home automation project
Yuva Home automation projectYuva Home automation project
Yuva Home automation projectYuvaraja Ravi
 
Protocol Aware Ate Semi Submitted
Protocol Aware Ate Semi SubmittedProtocol Aware Ate Semi Submitted
Protocol Aware Ate Semi SubmittedEric Larson
 
A Statistician's View on Big Data and Data Science (Version 3)
A Statistician's View on Big Data and Data Science (Version 3)A Statistician's View on Big Data and Data Science (Version 3)
A Statistician's View on Big Data and Data Science (Version 3)Prof. Dr. Diego Kuonen
 
Python Ireland Nov 2010 Talk: Unit Testing
Python Ireland Nov 2010 Talk: Unit TestingPython Ireland Nov 2010 Talk: Unit Testing
Python Ireland Nov 2010 Talk: Unit TestingPython Ireland
 
Python testing using mock and pytest
Python testing using mock and pytestPython testing using mock and pytest
Python testing using mock and pytestSuraj Deshmukh
 

Andere mochten auch (20)

Python in Test automation
Python in Test automationPython in Test automation
Python in Test automation
 
Automated Regression Testing for Embedded Systems in Action
Automated Regression Testing for Embedded Systems in ActionAutomated Regression Testing for Embedded Systems in Action
Automated Regression Testing for Embedded Systems in Action
 
Automated Testing for Embedded Software in C or C++
Automated Testing for Embedded Software in C or C++Automated Testing for Embedded Software in C or C++
Automated Testing for Embedded Software in C or C++
 
Python Testing Fundamentals
Python Testing FundamentalsPython Testing Fundamentals
Python Testing Fundamentals
 
Testing in-python-and-pytest-framework
Testing in-python-and-pytest-frameworkTesting in-python-and-pytest-framework
Testing in-python-and-pytest-framework
 
An Overview of User Acceptance Testing (UAT)
An Overview of User Acceptance Testing (UAT)An Overview of User Acceptance Testing (UAT)
An Overview of User Acceptance Testing (UAT)
 
Robot Framework Dos And Don'ts
Robot Framework Dos And Don'tsRobot Framework Dos And Don'ts
Robot Framework Dos And Don'ts
 
Automated Acceptance Testing from Scratch
Automated Acceptance Testing from ScratchAutomated Acceptance Testing from Scratch
Automated Acceptance Testing from Scratch
 
C to C++ Migration Strategy
C to C++ Migration Strategy C to C++ Migration Strategy
C to C++ Migration Strategy
 
Python Programming Essentials - M39 - Unit Testing
Python Programming Essentials - M39 - Unit TestingPython Programming Essentials - M39 - Unit Testing
Python Programming Essentials - M39 - Unit Testing
 
Robot framework 을 이용한 기능 테스트 자동화
Robot framework 을 이용한 기능 테스트 자동화Robot framework 을 이용한 기능 테스트 자동화
Robot framework 을 이용한 기능 테스트 자동화
 
Softwarequalitätssicherung mit Continuous Integration Tools
Softwarequalitätssicherung mit Continuous Integration ToolsSoftwarequalitätssicherung mit Continuous Integration Tools
Softwarequalitätssicherung mit Continuous Integration Tools
 
Python in telecommunications (in 7 minutes)
Python in telecommunications (in 7 minutes)Python in telecommunications (in 7 minutes)
Python in telecommunications (in 7 minutes)
 
Mock testing mit Python
Mock testing mit PythonMock testing mit Python
Mock testing mit Python
 
C++ and Embedded Linux - a perfect match
C++ and Embedded Linux - a perfect matchC++ and Embedded Linux - a perfect match
C++ and Embedded Linux - a perfect match
 
Yuva Home automation project
Yuva Home automation projectYuva Home automation project
Yuva Home automation project
 
Protocol Aware Ate Semi Submitted
Protocol Aware Ate Semi SubmittedProtocol Aware Ate Semi Submitted
Protocol Aware Ate Semi Submitted
 
A Statistician's View on Big Data and Data Science (Version 3)
A Statistician's View on Big Data and Data Science (Version 3)A Statistician's View on Big Data and Data Science (Version 3)
A Statistician's View on Big Data and Data Science (Version 3)
 
Python Ireland Nov 2010 Talk: Unit Testing
Python Ireland Nov 2010 Talk: Unit TestingPython Ireland Nov 2010 Talk: Unit Testing
Python Ireland Nov 2010 Talk: Unit Testing
 
Python testing using mock and pytest
Python testing using mock and pytestPython testing using mock and pytest
Python testing using mock and pytest
 

Ähnlich wie Automated hardware testing using python

AtifBhatti resume
AtifBhatti resumeAtifBhatti resume
AtifBhatti resumeAtif Bhatti
 
System Development for Verification of General Purpose Input Output
System Development for Verification of General Purpose Input OutputSystem Development for Verification of General Purpose Input Output
System Development for Verification of General Purpose Input OutputRSIS International
 
Radio Frequency Test Stands for Remote Controllers
Radio Frequency Test Stands for Remote ControllersRadio Frequency Test Stands for Remote Controllers
Radio Frequency Test Stands for Remote ControllersUjjal Dutt, PMP
 
Lorenzo 1210 features
Lorenzo 1210   featuresLorenzo 1210   features
Lorenzo 1210 featuresMark Chien
 
Michael_Joshua_Validation
Michael_Joshua_ValidationMichael_Joshua_Validation
Michael_Joshua_ValidationMichaelJoshua
 
WriteNow! ISP Programmer Series
WriteNow! ISP Programmer SeriesWriteNow! ISP Programmer Series
WriteNow! ISP Programmer Seriesrns-usa
 
Star Test Topology for Testing Printed Circuits Boards
Star Test Topology for Testing Printed Circuits BoardsStar Test Topology for Testing Printed Circuits Boards
Star Test Topology for Testing Printed Circuits BoardsIRJET Journal
 
Rohan Narula_Resume
Rohan Narula_ResumeRohan Narula_Resume
Rohan Narula_ResumeRohan Narula
 
Peter Vinh Resume
Peter Vinh ResumePeter Vinh Resume
Peter Vinh ResumePeter Vinh
 
Printed circuit board (PCB) FUNCATIONAL TEST BENCH.pptx
Printed circuit board (PCB) FUNCATIONAL TEST BENCH.pptxPrinted circuit board (PCB) FUNCATIONAL TEST BENCH.pptx
Printed circuit board (PCB) FUNCATIONAL TEST BENCH.pptxNeometrix_Engineering_Pvt_Ltd
 
NI Compact RIO Platform
NI Compact RIO PlatformNI Compact RIO Platform
NI Compact RIO Platformjlai
 
AdaCore Paris Tech Day 2016: Eric Perlade - Verification Solutions
AdaCore Paris Tech Day 2016: Eric Perlade - Verification SolutionsAdaCore Paris Tech Day 2016: Eric Perlade - Verification Solutions
AdaCore Paris Tech Day 2016: Eric Perlade - Verification Solutionsjamieayre
 

Ähnlich wie Automated hardware testing using python (20)

AtifBhatti resume
AtifBhatti resumeAtifBhatti resume
AtifBhatti resume
 
System Development for Verification of General Purpose Input Output
System Development for Verification of General Purpose Input OutputSystem Development for Verification of General Purpose Input Output
System Development for Verification of General Purpose Input Output
 
STS_Flyer
STS_FlyerSTS_Flyer
STS_Flyer
 
veera (updated)
veera (updated)veera (updated)
veera (updated)
 
Radio Frequency Test Stands for Remote Controllers
Radio Frequency Test Stands for Remote ControllersRadio Frequency Test Stands for Remote Controllers
Radio Frequency Test Stands for Remote Controllers
 
Yegammai_CV
Yegammai_CVYegammai_CV
Yegammai_CV
 
Lorenzo 1210 features
Lorenzo 1210   featuresLorenzo 1210   features
Lorenzo 1210 features
 
Avionics Test Station Setup
Avionics Test Station Setup Avionics Test Station Setup
Avionics Test Station Setup
 
Michael_Joshua_Validation
Michael_Joshua_ValidationMichael_Joshua_Validation
Michael_Joshua_Validation
 
Karthik-CV
Karthik-CVKarthik-CV
Karthik-CV
 
JTAG
JTAGJTAG
JTAG
 
WriteNow! ISP Programmer Series
WriteNow! ISP Programmer SeriesWriteNow! ISP Programmer Series
WriteNow! ISP Programmer Series
 
Star Test Topology for Testing Printed Circuits Boards
Star Test Topology for Testing Printed Circuits BoardsStar Test Topology for Testing Printed Circuits Boards
Star Test Topology for Testing Printed Circuits Boards
 
Rohan Narula_Resume
Rohan Narula_ResumeRohan Narula_Resume
Rohan Narula_Resume
 
Peter Vinh Resume
Peter Vinh ResumePeter Vinh Resume
Peter Vinh Resume
 
Printed circuit board (PCB) FUNCATIONAL TEST BENCH.pptx
Printed circuit board (PCB) FUNCATIONAL TEST BENCH.pptxPrinted circuit board (PCB) FUNCATIONAL TEST BENCH.pptx
Printed circuit board (PCB) FUNCATIONAL TEST BENCH.pptx
 
NI Compact RIO Platform
NI Compact RIO PlatformNI Compact RIO Platform
NI Compact RIO Platform
 
AdaCore Paris Tech Day 2016: Eric Perlade - Verification Solutions
AdaCore Paris Tech Day 2016: Eric Perlade - Verification SolutionsAdaCore Paris Tech Day 2016: Eric Perlade - Verification Solutions
AdaCore Paris Tech Day 2016: Eric Perlade - Verification Solutions
 
WCDMA_FAST_507-08
WCDMA_FAST_507-08WCDMA_FAST_507-08
WCDMA_FAST_507-08
 
40120140504013
4012014050401340120140504013
40120140504013
 

Kürzlich hochgeladen

HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 

Kürzlich hochgeladen (20)

HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 

Automated hardware testing using python

  • 1. AUTOMATED HARDWARE TESTINGAUTOMATED HARDWARE TESTING USING PYTHONUSING PYTHON 1 Name : YUVARAJA RAVI Reg No : 13PEES1005 course : M.TECH EMBEDDED
  • 2. 2 NAME : YUVARAJA.R REGISTER NUMBER : 13PEES1005 LANGUAGE : EMBEDDED C & PYTHON PROJECT INCHARGE : K.Bhaskar B.Tech., M.E.(Ph.D)
  • 3. ABSTRACTABSTRACT Design a Embedded Prototype test hardware interact with Python software shows presence of defects in UUT. Python test script can download the test cases to the target system one by one, receive test output, compare with specifications then verify it, and generate log files. Log files inside test steps results are stored as PASS/FAIL. It’s a cost effective test system for SS Electronic hardware manufacturers 3
  • 4. TESTINGTESTING Testing is an organized process to verify the behavior, performance, and reliability of a device It ensures a device or system to be as defect-free as possible Testing is a manufacturing step to ensure that the manufactured device is defect free 4
  • 5. HARDWARE TESTINGHARDWARE TESTING   A common test platform (CTP), also called an open test standard (OTS), is a set of specifications defining test methods for diverse components of computer and electronic systems to be marketed as complete products. The intent of a CTP is to ensure consistency in hardware and software test procedures from the conceptual and design phases through manufacture and distribution.  Computers, computer peripherals and electronic systems often contain complex devices, circuits, programs and interfaces. These must all work together in a variety of applications and conditions. A CTP can be part of an overall quality assurance program. A common standard can reduce the cost of test equipment, optimize the use of available test equipment, increase production efficiency and minimize training costs. 5
  • 6. EXISTING SYSTEMEXISTING SYSTEM  Testing is carried out manually by test engineers. Consuming a lot of time and effort huge for spending the time for testing.  NI Lab View designing a ATE .But measurements are taken by reputed instruments or NI PXI only  PXI HW and its software is huge amount.  Certified engineer only able to access the software  Add-on software needed for Test case and Report generation . 6
  • 7. PROPOSED SYSTEMPROPOSED SYSTEM  To overcome the existing problem, we construct Embedded hardware test module to measure the  Resistance test applied to signal traces (short/open)  Voltage /current measure with help of analog pins.  IO pins used to trigger the on/off or control the hw.  Protocols testing are done by the test hardware.  Tested data packets serially communicated to the Python scritps  Python scripts collect the complied data's then compare with test case input and generate the test reports.. 7
  • 8. PROJECT – ENTIRE SYSTEMPROJECT – ENTIRE SYSTEM 8 SERIAL INTERFACE
  • 9. EMBEDDED TEST HW DESIGNEMBEDDED TEST HW DESIGN  Atmega 8-bit AVR controller used for Embedded Test Hardware system.  Necessity to test the every protocols chips, Analog and Digital IC.  Current, Voltage and Resistance measurements using 10bit ADC  I2C >> | TEMP | EEPROM | SENSORS | DEVICES |  UART >> RS232 <<  RS485 >> 75176-IC <<  RS422 >> 75176-IC << 9
  • 10. HW DESIGN – VOLTAGE ,CURRENT &HW DESIGN – VOLTAGE ,CURRENT & RESISTANCE MEASUREMENTRESISTANCE MEASUREMENT Voltage measured by using AVR Controller 10bit ADC Current measurement taken by ACS712 Current sensor IC. Constant current probing to the voltage net through voltage divider circuit. Impedance measured by the ADC. 10
  • 11. HW DESIGN – PROTOCOLS TESTING-I2CHW DESIGN – PROTOCOLS TESTING-I2C  I2C (Inter-Integrated Circuit, pronounced "I squared C") is also a synchronous protocol.I2C uses only 2 wires, one for the clock (SCL) and one for the data (SDA). That means that master and slave send data over the same wire, again controlled by the master. 11
  • 12. HW DESIGN – PROTOCOLSHW DESIGN – PROTOCOLS TESTING-UART / SERIALTESTING-UART / SERIAL   Serial communication is the process of sending data one bit one by one sequentially, over a communication channel.  UART communication of Full duplex TX and RX communication through the COM devices. 12
  • 13. HW DESIGN – PROTOCOLSHW DESIGN – PROTOCOLS TESTING – RS485TESTING – RS485  RS-485 allows multiple devices (up to 32) to communicate at half-duplex on a single pair of wires, plus a ground wire (more on that later), at distances up to 1200 meters (4000 feet)  RS485 Differential communication through A <- > B Signal lines. 13
  • 14. HW DESIGN – PROTOCOLSHW DESIGN – PROTOCOLS TESTING – RS422TESTING – RS422  Serial, balanced and differential are the keywords for the RS422 interface standard. Serial means, that the information is sent bit by bit on a single transmission line, just like with RS232. Balanced differential is what makes RS422 different from RS232 14
  • 15. SW Design - PYTHONSW Design - PYTHON Python is a clear and powerful object- oriented programming language, comparable to Perl, Tcl and Java. It’s a FOSS Programming language. Runs on many different computers and operating systems: Windows, MacOS, many brands of Unix, OS/2 Python Code can be grouped into modules and packages 15
  • 16. SOFTWARE DESIGN - PYTHONSOFTWARE DESIGN - PYTHON An open source software used to Automate the Hardware Testing UNITTEST module supports test automation, sharing of setup and shutdown code for tests, aggregation of tests into collections, and independence of the tests from the reporting framework. AUTOMATED HARDWARE TESTING 16
  • 17. UNIT TEST MODULE CONCEPTSUNIT TEST MODULE CONCEPTS  Test Fixture : It represents the preparation needed to perform one or more tests, and any associate cleanup actions. This may involve, for example, creating temporary or proxy databases, directories, or starting a server process.  Test Case: is the smallest unit of testing. It checks for a specific response to a particular set of inputs. Unit test provides a base class, Test Case which may be used to create new test cases.  Test Suite: Test suite is a collection of test cases, test suites, or both. It is used to aggregate tests that should be executed together.  Test Plan: Test plan is a document detailing the objectives, target market, internal beta team, and processes for a specific beta test for a software or hardware product. The plan typically contains a detailed understanding of the eventual workflow. AUTOMATED HARDWARE TESTING 17
  • 18. SW –Development FlowSW –Development Flow AUTOMATED HARDWARE TESTING 18
  • 19. Requirements & Test CaseRequirements & Test Case RelationshipRelationship AUTOMATED HARDWARE TESTING 19
  • 20. UUT Code SampleUUT Code Sample Def ScaledInput(data): rc = NO_ERR scaled_data = data if data >= DATA_MIN and data <= DATA_MAX: scaled_data = (data * data_scale) + data_offset if scaled_data > SCALE_MAX: scaled_data = SCALE_MAX rc = ERR_MAXSCALE elif scaled_data < SCALE_MIN: scaled_data = SCALE_MIN rc = ERR_MINSCALE else: rc = ERR_OVER return (rc, scaled_data) AUTOMATED HARDWARE TESTING 20 Function code getting one input argument Function Returning two o/p values
  • 21. Function with argument code tableFunction with argument code table AUTOMATED HARDWARE TESTING 21 A unit test is constructed such that all possible inputs are used to force the execution to traverse all possible paths. In the case of ScaledInput(), we can see that there are three obvious input test cases. Too low, Too high, Within range.
  • 22. Test Case Function Flow chartTest Case Function Flow chart AUTOMATED HARDWARE TESTING 22
  • 23. Test Step Flow ChartTest Step Flow Chart AUTOMATED HARDWARE TESTING 23
  • 24. PYTHON SCRIPTPYTHON SCRIPT TEST CASETEST CASE Each automatic test case contains assigned Python script that is executed by Executor application. Figure presents general flow chart for writing automatic scripts for functional testing. 24
  • 25. PYTHON TEST RESULTPYTHON TEST RESULT 25
  • 26. ADVANTAGESADVANTAGES Boards, components and interface cable separately tested in modes of test case. Manual testing has been reduced Locating the Hardware(components) and software bugs using test reports. Low Cost (Pursuing software’s are Open source) Reduced human efforts 26
  • 27. DISADVANTAGESDISADVANTAGES Embedded controllers are single task at a instant. So measuring data goes to the pc with delay. Output data packets compared with test case help of Python Script. So report generating time taken more. 27
  • 28. CONCLUSIONCONCLUSION  Automatic hardware testing using Python is a ATE technique to increase throughput without a corresponding increase in cost, by performing tests on protocols are handling and test without error. It has been shown quantitatively to reduce test cost more effectively than low-cost ATE. Because it reduces all test cost contributors, and not only capital cost of ATE.  In this paper, we described the AHT using python strategy adopted for hardware testing and protocols testing without measuring instruments . 28
  • 29. FUTURE ENHANCEMENTFUTURE ENHANCEMENT In this project in future we can add a FPGA or CPLD used to get the data packets at instant of time without delay. Parallel Testing method introduces to test the multiple boards at same instant time. 29
  • 30. BASE PAPERSBASE PAPERS  [1] Jambunatha, K .,Design and implement Automated Procedure to upgrade remote network devices using Python, Advance Computing Conference (IACC), 2015 IEEE International, Bangalore, June 2015.  [2] Karmore, S.P.; Mabajan, A.R., Universal methodology for embedded system testing., Computer Science & Education (ICCSE), 2013 8th International Conference on Year: 2013,IEEE Conference Publications, 26-28 April 2013  [3] Kovacevic, M.; Kovacevic, B.; Pekovic, V.; Stefanovic, D., Framework for automatic testing of Set-top boxes., Telecommunications Forum Telfor (TELFOR), 22ndYear: 2014  [4] Kim H. Pries, Jon M. Quigley-Testing Complex and Embedded Systems-CRC Press (2010)  [5] Python Programming Language, URL http://python.org/. 30