Skip to content

Test Automation — question 2 of 10

Write a real answer. It is graded against the question's rubric, and the mastery movement is computed by the same engine the product uses. Scoring here is deterministic rather than model-written, so this page costs nothing to run and nothing is saved. In a track built from your own posting, the same rubric is graded by the model, which is what produces feedback about your reasoning rather than about coverage.

You've written an automated test script for a voltage regulator board: it opens a connection to a power supply, sets a voltage, reads back a current from a multimeter, and prints PASS or FAIL directly in the same function using a hardcoded threshold. Your manager asks you to add a second board variant that needs a different multimeter model and a different pass threshold. What's wrong with the current script's structure, and how would you restructure it before bolting on the new variant?

How sure are you?

Being confidently wrong costs more mastery than admitting a guess — that is deliberate, and it is how misconceptions get found.

Neither is graded, and nothing here is recorded.