SlideShare a Scribd company logo
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

More Related Content

What's hot (20)

Intel DPDK Step by Step instructions
Intel DPDK Step by Step instructionsIntel DPDK Step by Step instructions
Intel DPDK Step by Step instructions
Hisaki Ohara
 
UVM: Basic Sequences
UVM: Basic SequencesUVM: Basic Sequences
UVM: Basic Sequences
Arrow Devices
 
Uboot startup sequence
Uboot startup sequenceUboot startup sequence
Uboot startup sequence
Houcheng Lin
 
Introduction to System verilog
Introduction to System verilog Introduction to System verilog
Introduction to System verilog
Pushpa Yakkala
 
VLSI Design Flow
VLSI Design FlowVLSI Design Flow
VLSI Design Flow
Dr. A. B. Shinde
 
Qualcomm Hexagon SDK: Optimize Your Multimedia Solutions
Qualcomm Hexagon SDK: Optimize Your Multimedia SolutionsQualcomm Hexagon SDK: Optimize Your Multimedia Solutions
Qualcomm Hexagon SDK: Optimize Your Multimedia Solutions
Qualcomm Developer Network
 
Timers and counters
Timers and countersTimers and counters
Timers and counters
codingallrounders
 
Blinking Of LEDs On LPC2148 ARM 7 TDMIS Based Microcontroller
Blinking Of LEDs On LPC2148 ARM 7 TDMIS Based MicrocontrollerBlinking Of LEDs On LPC2148 ARM 7 TDMIS Based Microcontroller
Blinking Of LEDs On LPC2148 ARM 7 TDMIS Based Microcontroller
Omkar Rane
 
Top 10 verification engineer interview questions and answers
Top 10 verification engineer interview questions and answersTop 10 verification engineer interview questions and answers
Top 10 verification engineer interview questions and answers
tonychoper2706
 
Linux I2C
Linux I2CLinux I2C
Linux I2C
KaidenYu
 
Encoder decoder
Encoder decoderEncoder decoder
Encoder decoder
dennis gookyi
 
SoC Design
SoC DesignSoC Design
SoC Design
VinChip Systems - VinTrain VLSI Academy
 
System-on-Chip
System-on-ChipSystem-on-Chip
System-on-Chip
Lars Jacobs
 
System verilog assertions
System verilog assertionsSystem verilog assertions
System verilog assertions
HARINATH REDDY
 
U Boot or Universal Bootloader
U Boot or Universal BootloaderU Boot or Universal Bootloader
U Boot or Universal Bootloader
Satpal Parmar
 
Risc and cisc
Risc and ciscRisc and cisc
Risc and cisc
dipaknandankar
 
BeagleBone Black Bootloaders
BeagleBone Black BootloadersBeagleBone Black Bootloaders
BeagleBone Black Bootloaders
SysPlay eLearning Academy for You
 
Uvm presentation dac2011_final
Uvm presentation dac2011_finalUvm presentation dac2011_final
Uvm presentation dac2011_final
sean chen
 
U boot porting guide for SoC
U boot porting guide for SoCU boot porting guide for SoC
U boot porting guide for SoC
Macpaul Lin
 
U boot-boot-flow
U boot-boot-flowU boot-boot-flow
U boot-boot-flow
BabuSubashChandar Chandra Mohan
 

Viewers also liked (20)

Automated Python Test Frameworks for Hardware Verification and Validation
Automated Python Test Frameworks for Hardware Verification and ValidationAutomated Python Test Frameworks for Hardware Verification and Validation
Automated Python Test Frameworks for Hardware Verification and Validation
Barbara Jones
 
AUTOMATED TESTING USING PYTHON (ATE)
AUTOMATED TESTING USING PYTHON (ATE)AUTOMATED TESTING USING PYTHON (ATE)
AUTOMATED TESTING USING PYTHON (ATE)
Yuvaraja Ravi
 
Python in Test automation
Python in Test automationPython in Test automation
Python in Test automation
Krishnana Sreeraman
 
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
AANDTech
 
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 Fundamentals
cbcunc
 
Embedded System Test Automation
Embedded System Test AutomationEmbedded System Test Automation
Embedded System Test Automation
GlobalLogic Ukraine
 
Testing in-python-and-pytest-framework
Testing in-python-and-pytest-frameworkTesting in-python-and-pytest-framework
Testing in-python-and-pytest-framework
Arulalan 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'ts
Pekka Klärck
 
Automated Acceptance Testing from Scratch
Automated Acceptance Testing from ScratchAutomated Acceptance Testing from Scratch
Automated Acceptance Testing from Scratch
Excella
 
C to C++ Migration Strategy
C to C++ Migration Strategy C to C++ Migration Strategy
C to C++ Migration Strategy
Colin Walls
 
Python Programming Essentials - M39 - Unit Testing
Python Programming Essentials - M39 - Unit TestingPython Programming Essentials - M39 - Unit Testing
Python Programming Essentials - M39 - Unit Testing
P3 InfoTech Solutions Pvt. Ltd.
 
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 Tools
GFU 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
 
Mock testing mit Python
Mock testing mit PythonMock testing mit Python
Mock testing mit Python
Timo Stollenwerk
 
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
Vinícius Tadeu Zein
 
Yuva Home automation project
Yuva Home automation projectYuva Home automation project
Yuva Home automation project
Yuvaraja Ravi
 
Protocol Aware Ate Semi Submitted
Protocol Aware Ate Semi SubmittedProtocol Aware Ate Semi Submitted
Protocol Aware Ate Semi Submitted
Eric Larson
 
Automated Python Test Frameworks for Hardware Verification and Validation
Automated Python Test Frameworks for Hardware Verification and ValidationAutomated Python Test Frameworks for Hardware Verification and Validation
Automated Python Test Frameworks for Hardware Verification and Validation
Barbara Jones
 
AUTOMATED TESTING USING PYTHON (ATE)
AUTOMATED TESTING USING PYTHON (ATE)AUTOMATED TESTING USING PYTHON (ATE)
AUTOMATED TESTING USING PYTHON (ATE)
Yuvaraja Ravi
 
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
AANDTech
 
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 Fundamentals
cbcunc
 
Testing in-python-and-pytest-framework
Testing in-python-and-pytest-frameworkTesting in-python-and-pytest-framework
Testing in-python-and-pytest-framework
Arulalan 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'ts
Pekka Klärck
 
Automated Acceptance Testing from Scratch
Automated Acceptance Testing from ScratchAutomated Acceptance Testing from Scratch
Automated Acceptance Testing from Scratch
Excella
 
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 Tools
GFU 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 match
Vinícius Tadeu Zein
 
Yuva Home automation project
Yuva Home automation projectYuva Home automation project
Yuva Home automation project
Yuvaraja Ravi
 
Protocol Aware Ate Semi Submitted
Protocol Aware Ate Semi SubmittedProtocol Aware Ate Semi Submitted
Protocol Aware Ate Semi Submitted
Eric Larson
 
Ad

Similar to Automated hardware testing using python (20)

AtifBhatti resume
AtifBhatti resumeAtifBhatti resume
AtifBhatti resume
Atif 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 Output
RSIS International
 
STS_Flyer
STS_FlyerSTS_Flyer
STS_Flyer
Hank Lydick
 
veera (updated)
veera (updated)veera (updated)
veera (updated)
Veeranna Babu
 
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
Ujjal Dutt, PMP
 
Yegammai_CV
Yegammai_CVYegammai_CV
Yegammai_CV
Yegammai Ramanathan
 
Lorenzo 1210 features
Lorenzo 1210   featuresLorenzo 1210   features
Lorenzo 1210 features
Mark Chien
 
Avionics Test Station Setup
Avionics Test Station Setup Avionics Test Station Setup
Avionics Test Station Setup
Vijayananda Mohire
 
Michael_Joshua_Validation
Michael_Joshua_ValidationMichael_Joshua_Validation
Michael_Joshua_Validation
MichaelJoshua
 
Karthik-CV
Karthik-CVKarthik-CV
Karthik-CV
Karthikbabu Janardhanan
 
JTAG
JTAGJTAG
JTAG
zomrolion
 
WriteNow! ISP Programmer Series
WriteNow! ISP Programmer SeriesWriteNow! ISP Programmer Series
WriteNow! ISP Programmer Series
rns-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 Boards
IRJET Journal
 
Rohan Narula_Resume
Rohan Narula_ResumeRohan Narula_Resume
Rohan Narula_Resume
Rohan Narula
 
Peter Vinh Resume
Peter Vinh ResumePeter Vinh Resume
Peter Vinh Resume
Peter 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.pptx
Neometrix_Engineering_Pvt_Ltd
 
NI Compact RIO Platform
NI Compact RIO PlatformNI Compact RIO Platform
NI Compact RIO Platform
jlai
 
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
jamieayre
 
WCDMA_FAST_507-08
WCDMA_FAST_507-08WCDMA_FAST_507-08
WCDMA_FAST_507-08
Sean McMahon
 
40120140504013
4012014050401340120140504013
40120140504013
IAEME Publication
 
AtifBhatti resume
AtifBhatti resumeAtifBhatti resume
AtifBhatti resume
Atif 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 Output
RSIS 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 Controllers
Ujjal Dutt, PMP
 
Lorenzo 1210 features
Lorenzo 1210   featuresLorenzo 1210   features
Lorenzo 1210 features
Mark Chien
 
Michael_Joshua_Validation
Michael_Joshua_ValidationMichael_Joshua_Validation
Michael_Joshua_Validation
MichaelJoshua
 
WriteNow! ISP Programmer Series
WriteNow! ISP Programmer SeriesWriteNow! ISP Programmer Series
WriteNow! ISP Programmer Series
rns-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 Boards
IRJET Journal
 
Rohan Narula_Resume
Rohan Narula_ResumeRohan Narula_Resume
Rohan Narula_Resume
Rohan Narula
 
Peter Vinh Resume
Peter Vinh ResumePeter Vinh Resume
Peter Vinh Resume
Peter 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.pptx
Neometrix_Engineering_Pvt_Ltd
 
NI Compact RIO Platform
NI Compact RIO PlatformNI Compact RIO Platform
NI Compact RIO Platform
jlai
 
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
jamieayre
 
Ad

Recently uploaded (20)

Rearchitecturing a 9-year-old legacy Laravel application.pdf
Rearchitecturing a 9-year-old legacy Laravel application.pdfRearchitecturing a 9-year-old legacy Laravel application.pdf
Rearchitecturing a 9-year-old legacy Laravel application.pdf
Takumi Amitani
 
Montreal Dreamin' 25 - Introduction to the MuleSoft AI Chain (MAC) Project
Montreal Dreamin' 25 - Introduction to the MuleSoft AI Chain (MAC) ProjectMontreal Dreamin' 25 - Introduction to the MuleSoft AI Chain (MAC) Project
Montreal Dreamin' 25 - Introduction to the MuleSoft AI Chain (MAC) Project
Alexandra N. Martinez
 
IOt Based Research on Challenges and Future
IOt Based Research on Challenges and FutureIOt Based Research on Challenges and Future
IOt Based Research on Challenges and Future
SACHINSAHU821405
 
Introduction to AI agent development with MCP
Introduction to AI agent development with MCPIntroduction to AI agent development with MCP
Introduction to AI agent development with MCP
Dori Waldman
 
Irja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus - Beyond Pass and Fail - DevTalks.pdfIrja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus
 
Structural Design for Residential-to-Restaurant Conversion
Structural Design for Residential-to-Restaurant ConversionStructural Design for Residential-to-Restaurant Conversion
Structural Design for Residential-to-Restaurant Conversion
DanielRoman285499
 
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journeyRigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Yannis
 
Research_Sensitization_&_Innovative_Project_Development.pptx
Research_Sensitization_&_Innovative_Project_Development.pptxResearch_Sensitization_&_Innovative_Project_Development.pptx
Research_Sensitization_&_Innovative_Project_Development.pptx
niranjancse
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
djiceramil
 
Airport_Substation_With_Diagrams (2).pptx
Airport_Substation_With_Diagrams (2).pptxAirport_Substation_With_Diagrams (2).pptx
Airport_Substation_With_Diagrams (2).pptx
BibekMedhi2
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
djiceramil
 
Flow Chart Proses Bisnis prosscesss.docx
Flow Chart Proses Bisnis prosscesss.docxFlow Chart Proses Bisnis prosscesss.docx
Flow Chart Proses Bisnis prosscesss.docx
rifka575530
 
Week 6- PC HARDWARE AND MAINTENANCE-THEORY.pptx
Week 6- PC HARDWARE AND MAINTENANCE-THEORY.pptxWeek 6- PC HARDWARE AND MAINTENANCE-THEORY.pptx
Week 6- PC HARDWARE AND MAINTENANCE-THEORY.pptx
dayananda54
 
The first edition of the AIAG-VDA FMEA.pptx
The first edition of the AIAG-VDA FMEA.pptxThe first edition of the AIAG-VDA FMEA.pptx
The first edition of the AIAG-VDA FMEA.pptx
Mayank Mathur
 
May 2025: Top 10 Read Articles Advanced Information Technology
May 2025: Top 10 Read Articles Advanced Information TechnologyMay 2025: Top 10 Read Articles Advanced Information Technology
May 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
IntroSlides-June-GDG-Cloud-Munich community [email protected]
IntroSlides-June-GDG-Cloud-Munich community gathering@Netlight.pdfIntroSlides-June-GDG-Cloud-Munich community gathering@Netlight.pdf
IntroSlides-June-GDG-Cloud-Munich community [email protected]
Luiz Carneiro
 
Third Review PPT that consists of the project d etails like abstract.
Third Review PPT that consists of the project d etails like abstract.Third Review PPT that consists of the project d etails like abstract.
Third Review PPT that consists of the project d etails like abstract.
Sowndarya6
 
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbbTree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
RATNANITINPATIL
 
22PCOAM16 _ML_Unit 3 Notes & Question bank
22PCOAM16 _ML_Unit 3 Notes & Question bank22PCOAM16 _ML_Unit 3 Notes & Question bank
22PCOAM16 _ML_Unit 3 Notes & Question bank
Guru Nanak Technical Institutions
 
First Review PPT gfinal gyft ftu liu yrfut go
First Review PPT gfinal gyft  ftu liu yrfut goFirst Review PPT gfinal gyft  ftu liu yrfut go
First Review PPT gfinal gyft ftu liu yrfut go
Sowndarya6
 
Rearchitecturing a 9-year-old legacy Laravel application.pdf
Rearchitecturing a 9-year-old legacy Laravel application.pdfRearchitecturing a 9-year-old legacy Laravel application.pdf
Rearchitecturing a 9-year-old legacy Laravel application.pdf
Takumi Amitani
 
Montreal Dreamin' 25 - Introduction to the MuleSoft AI Chain (MAC) Project
Montreal Dreamin' 25 - Introduction to the MuleSoft AI Chain (MAC) ProjectMontreal Dreamin' 25 - Introduction to the MuleSoft AI Chain (MAC) Project
Montreal Dreamin' 25 - Introduction to the MuleSoft AI Chain (MAC) Project
Alexandra N. Martinez
 
IOt Based Research on Challenges and Future
IOt Based Research on Challenges and FutureIOt Based Research on Challenges and Future
IOt Based Research on Challenges and Future
SACHINSAHU821405
 
Introduction to AI agent development with MCP
Introduction to AI agent development with MCPIntroduction to AI agent development with MCP
Introduction to AI agent development with MCP
Dori Waldman
 
Irja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus - Beyond Pass and Fail - DevTalks.pdfIrja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus
 
Structural Design for Residential-to-Restaurant Conversion
Structural Design for Residential-to-Restaurant ConversionStructural Design for Residential-to-Restaurant Conversion
Structural Design for Residential-to-Restaurant Conversion
DanielRoman285499
 
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journeyRigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Yannis
 
Research_Sensitization_&_Innovative_Project_Development.pptx
Research_Sensitization_&_Innovative_Project_Development.pptxResearch_Sensitization_&_Innovative_Project_Development.pptx
Research_Sensitization_&_Innovative_Project_Development.pptx
niranjancse
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
djiceramil
 
Airport_Substation_With_Diagrams (2).pptx
Airport_Substation_With_Diagrams (2).pptxAirport_Substation_With_Diagrams (2).pptx
Airport_Substation_With_Diagrams (2).pptx
BibekMedhi2
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
djiceramil
 
Flow Chart Proses Bisnis prosscesss.docx
Flow Chart Proses Bisnis prosscesss.docxFlow Chart Proses Bisnis prosscesss.docx
Flow Chart Proses Bisnis prosscesss.docx
rifka575530
 
Week 6- PC HARDWARE AND MAINTENANCE-THEORY.pptx
Week 6- PC HARDWARE AND MAINTENANCE-THEORY.pptxWeek 6- PC HARDWARE AND MAINTENANCE-THEORY.pptx
Week 6- PC HARDWARE AND MAINTENANCE-THEORY.pptx
dayananda54
 
The first edition of the AIAG-VDA FMEA.pptx
The first edition of the AIAG-VDA FMEA.pptxThe first edition of the AIAG-VDA FMEA.pptx
The first edition of the AIAG-VDA FMEA.pptx
Mayank Mathur
 
May 2025: Top 10 Read Articles Advanced Information Technology
May 2025: Top 10 Read Articles Advanced Information TechnologyMay 2025: Top 10 Read Articles Advanced Information Technology
May 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
Third Review PPT that consists of the project d etails like abstract.
Third Review PPT that consists of the project d etails like abstract.Third Review PPT that consists of the project d etails like abstract.
Third Review PPT that consists of the project d etails like abstract.
Sowndarya6
 
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbbTree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
RATNANITINPATIL
 
First Review PPT gfinal gyft ftu liu yrfut go
First Review PPT gfinal gyft  ftu liu yrfut goFirst Review PPT gfinal gyft  ftu liu yrfut go
First Review PPT gfinal gyft ftu liu yrfut go
Sowndarya6
 

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