Automated Hardware Testing Using Python
Automated Hardware Testing Using Python
USING PYTHON
Name
: YUVARAJA RAVI
Reg No : 13PEES1005
course
: M.TECH EMBEDDED
1
NAME
YUVARAJA.R
REGISTER NUMBER
13PEES1005
LANGUAGE
PROJECT INCHARGE
ABSTRACT
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.
Its a cost effective test system for SS
Electronic hardware manufacturers
3
TESTING
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 TESTING
A
EXISTING SYSTEM
Testing
PROPOSED SYSTEM
SERIAL INTERFACE
EMBEDDED TEST HW
DESIGN
Atmega
11
HW DESIGN PROTOCOLS
TESTING-UART / SERIAL
Serial
12
HW DESIGN PROTOCOLS
TESTING RS485
RS-485
13
HW DESIGN PROTOCOLS
TESTING RS422
14
SW Design - PYTHON
Python
An
UNITTEST
modulesupports 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
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.
17
SW Development Flow
18
19
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)
20
21
22
23
PYTHON SCRIPT
TEST 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
ADVANTAGES
Boards,
26
DISADVANTAGES
Embedded
27
Automatic
CONCLUSION
28
FUTURE ENHANCEMENT
In
Parallel
Testing method
introduces to test the multiple
boards at same instant time.
29
BASE PAPERS
30
THANK YOU
31