Test Automation Engineer study guide
SUT Interfaces: GUI vs API vs CLI
A Test Automation Engineer must select the correct interface level of the System Under Test (SUT) to automate. GUI (Graphical User Interface) testing simulates user clicks, API (Application Programming Interface) testing bypasses the UI to test business logic directly, and CLI (Command Line Interface) testing interacts with the system via terminal commands.
Practical example
Following the Test Automation Pyramid: GUI tests are brittle, slow, and expensive to maintain. They should be reserved for end-to-end user journeys. API tests are fast, reliable, and decoupled from frontend changes. They should form the bulk of the automated integration tests. CLI tests are critical for backend systems, server configurations, and batch processing jobs where no UI exists.
Exam scenario and common trap
Scenario: A team's test suite takes 12 hours to run because they validate database entries by navigating through 10 UI screens. The Trap: "Use a faster Selenium grid." The Correct Answer: Shift the testing down the pyramid. Use an API call or a direct DB query to validate the data in milliseconds. UI testing should only validate UI functionality.
Related syllabus sections cover this topic. Reference sections: 2.1.1, 5.1.3. See the official ISTQB syllabus for exam scope. Examples are independent; QA-ace is not affiliated with ISTQB.