nerdexam
ISTQB

CT-AI · Question #23

You have been developing test automation for an e-commerce system. One of the problems you are seeing is that object recognition in the GUI is having frequent failures. You have determined this is…

The correct answer is A. It could identify the objects multiple ways and then determine the most commonly used and stable. The syllabus discusses using AI-based tools to reduce GUI test brittleness: "AI can be used to reduce the brittleness of this approach, by employing AI-based tools to identify the correct objects using various criteria (e.g., XPath, label, id, class, X/Y coordinates), and to…

Specific Approaches to Testing AI-based Systems

Question

You have been developing test automation for an e-commerce system. One of the problems you are seeing is that object recognition in the GUI is having frequent failures. You have determined this is because the developers are changing the identifiers when they make code updates. How could AI help make the automation more reliable?

Options

  • AIt could identify the objects multiple ways and then determine the most commonly used and stable
  • BIt could modify the automation code to ignore unrecognizable objects to avoid failures.
  • CIt could dynamically name the objects, altering the source code, so the object names will match
  • DIt could generate a model that will anticipate developer changes and pre-alter the test automation

How the community answered

(45 responses)
  • A
    71% (32)
  • B
    18% (8)
  • C
    2% (1)
  • D
    9% (4)

Explanation

The syllabus discusses using AI-based tools to reduce GUI test brittleness: "AI can be used to reduce the brittleness of this approach, by employing AI-based tools to identify the correct objects using various criteria (e.g., XPath, label, id, class, X/Y coordinates), and to choose the historically most stable identification criteria."

Topics

#AI-assisted testing#GUI automation#object recognition#test reliability

Community Discussion

No community discussion yet for this question.

Full CT-AI Practice