PCB assembly testing: electrical test, AOI and functional test
What each test actually catches, what it does not, and how to specify a functional test that produces a repeatable pass or fail.

Testing is one of the easiest places to create false confidence. A line item that says “tested” can mean a bare-board connectivity check, an automated optical inspection, a power-on check, or a full functional test with firmware and a fixture. Those are not interchangeable.
Bare-board electrical test
Electrical test on the fabricated board checks the copper: opens, shorts and, depending on the fixture, net continuity. It happens before assembly and catches fabrication defects.
Our fabrication schedule includes an electrical test fee on 4 and 6 layer boards. On 1 and 2 layer boards there is no separate fee in the published calculator.
Electrical test does not tell you whether the design is correct. A board can pass connectivity and still have a swapped pin in the schematic.
AOI after assembly
Automated optical inspection compares the assembled board against a reference image or programmed checks. It catches missing parts, wrong orientation, shifted components, tombstoning and many solder defects.
AOI is fast and consistent, but it cannot see under a BGA or inside a QFN thermal pad. Those packages need X-ray or a deliberate functional check.
X-ray
X-ray inspection is used for BGA, uBGA, QFN and other hidden-joint packages. It can reveal voids, bridging and missing balls. It is not a replacement for a design that is electrically testable.
For prototypes with BGAs, agree the inspection requirement before the build. “We will look at it” is not a criterion.

X-ray inspection is how hidden BGA joints are checked.
Functional test
Functional test powers the board and exercises its actual behaviour. It is the closest thing to the customer's real acceptance test, which is exactly why it needs a definition.
A useful functional test package contains:
- A test procedure with numbered steps
- Pass/fail limits for each measurement
- Fixture or harness drawings, if used
- Firmware and programming instructions
- Expected current draw and supply rails
- Any interface or communications checks
Without limits, the result depends on who is testing. With limits, it is repeatable.
What functional test can miss
A functional test only covers what it exercises. A board with an untested connector, an unused sensor channel or a marginal timing path can pass and still fail in the field. Define the test around the failure modes that matter, not around what is easy to measure.
A sensible test plan for a prototype
For a first article, a practical plan is often:
- Visual inspection and AOI after reflow.
- X-ray on BGA/QFN if present.
- Power-on with current-limit supply and a check of each rail.
- Firmware load and a basic communications check.
- A small number of functional checks that exercise the main interfaces.
- Record the results against the board serial or reference.
That is enough to catch most assembly mistakes without building a full production fixture for ten boards.
Who writes the procedure
The design owner should define what “working” means. The assembly house can help turn that into a test procedure and can run it, but it should not invent the acceptance criteria for your product.
If you do not have a procedure yet, start with the power rails and the interfaces you will use in the first demo. A simple, honest test is better than a comprehensive test that nobody can reproduce.
Put it in the quote
Tell us at quote time:
- Whether electrical test is required on the bare board
- Whether AOI or X-ray is required after assembly
- Whether functional test is required
- Who supplies the fixture, firmware and procedure
Then the price and the schedule reflect the real work. Use the assembly calculator for the build, and add the test requirements in the project notes. The file checklist covers the documentation that goes with them.
Keep reading
All articles
FilesThe Gerber and BOM checklist we run before every PCB build
Most first-article problems are not manufacturing problems. They are missing data. This is the checklist that catches them before a machine is programmed.
Read article
CapabilitiesSMT, through-hole, fine pitch and BGA: how complexity changes assembly
The board does not know it is a prototype. Every package on it adds a process requirement, and those requirements are what the quote is really pricing.
Read article
Lead time10-day vs 15-day PCB assembly: where the time actually goes
Lead time is not one machine running faster. It is file review, procurement, stencils, programming, queue and test. Knowing the sequence is how you protect a deadline.
Read article