Docsity

Software Test Automator Accredited Certification Program ASTAC Practice Exam, Exams of Technology

Toggle sidebar
bg1
Software Test Automator Accredited Certification
Program ASTAC Practice Exam
**Question 1.** Which of the following best describes the primary reason for
automating regression tests?
A) To replace manual testing entirely
B) To reduce execution time and increase consistency
C) To eliminate the need for test planning
D) To guarantee zero defects
Answer: B
Explanation: Automation speeds up repetitive regression runs and ensures the
same steps are performed each time, improving consistency while freeing testers
for new test design.
**Question 2.** In the test automation pyramid, which layer typically contains the
highest number of test cases?
A) UI tests
B) Service/API tests
C) Unit tests
D) Performance tests
Answer: C
Explanation: Unit tests are numerous, fast, and low‑cost, forming the base of the
pyramid; UI tests are fewer due to higher maintenance overhead.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Software Test Automator Accredited Certification Program ASTAC Practice Exam and more Exams Technology in PDF only on Docsity!

Program ASTAC Practice Exam

Question 1. Which of the following best describes the primary reason for automating regression tests? A) To replace manual testing entirely B) To reduce execution time and increase consistency C) To eliminate the need for test planning D) To guarantee zero defects Answer: B Explanation: Automation speeds up repetitive regression runs and ensures the same steps are performed each time, improving consistency while freeing testers for new test design. Question 2. In the test automation pyramid, which layer typically contains the highest number of test cases? A) UI tests B) Service/API tests C) Unit tests D) Performance tests Answer: C Explanation: Unit tests are numerous, fast, and low‑cost, forming the base of the pyramid; UI tests are fewer due to higher maintenance overhead.

Program ASTAC Practice Exam

Question 3. Which metric is most appropriate for calculating the ROI of a test automation effort? A) Number of test cases written B) Percentage of code coverage achieved C) Reduction in manual testing hours multiplied by hourly cost D) Number of bugs found during automation Answer: C Explanation: ROI compares cost savings (e.g., manual hours avoided) against automation investment; reduction in manual effort directly reflects financial benefit. Question 4. A system under test has many tightly coupled modules making it hard to isolate functionality. Which testability improvement should you suggest? A) Increase UI test coverage B) Introduce dependency injection to decouple components C) Add more data‑driven tests D) Use a larger test environment Answer: B

Program ASTAC Practice Exam

Explanation: Data‑Driven frameworks separate test data from test logic, allowing the same steps to run with multiple data sets. Question 7. When evaluating an automation tool, which factor is least likely to affect long‑term maintenance cost? A) Community support size B) License cost C) Language compatibility with the team’s expertise D) Ability to generate screenshots on failure Answer: D Explanation: While helpful, screenshot capability does not significantly impact maintenance cost compared to licensing, community support, and language alignment. Question 8. Which design principle promotes low coupling and high cohesion in an automation framework? A) Single Responsibility Principle B) Open/Closed Principle C) Liskov Substitution Principle D) Interface Segregation Principle

Program ASTAC Practice Exam

Answer: A Explanation: The Single Responsibility Principle ensures each class/module has one reason to change, fostering low coupling and high cohesion. Question 9. In risk‑based test automation, which factor should be given the highest priority? A) Tests that run fastest B) Tests covering high‑impact business functionality C) Tests that are easiest to automate D) Tests written by senior engineers Answer: B Explanation: High‑impact business functions carry greater risk; automating them first maximizes risk mitigation. Question 10. Which technique helps maintain realistic test data while protecting sensitive information? A) Using production database directly B) Data masking on non‑production copies C) Hard‑coding credentials in scripts D) Storing raw data in version control

Program ASTAC Practice Exam

Answer: B Explanation: Hard‑coded environment details require updates in many places when environments change, increasing maintenance effort. Question 13. Which HTTP method is idempotent and typically used to update a resource partially? A) POST B) GET C) PATCH D) CONNECT Answer: C Explanation: PATCH applies partial modifications and, like PUT, is idempotent (multiple identical requests yield the same result). Question 14. When automating a REST API that returns JSON, which validation technique ensures the response schema is correct? A) Checking the HTTP status code only B) Using JSON Schema validation against the response body C) Verifying the response size in bytes D) Counting the number of lines in the response

Program ASTAC Practice Exam

Answer: B Explanation: JSON Schema defines expected structure, data types, and required fields; validating against it ensures schema correctness. Question 15. Which tool is primarily used for SOAP web service testing and supports WSDL‑driven test generation? A) Postman B) SoapUI C) Rest Assured D) JMeter Answer: B Explanation: SoapUI is designed for SOAP services, can import WSDL files, and generate request templates automatically. Question 16. In Selenium, which locator strategy is generally the most resistant to UI changes? A) Absolute XPath B) CSS Selector based on class names C) ID attribute when it is static D) Link text

Program ASTAC Practice Exam

Answer: C Explanation: POM encapsulates page elements and actions in classes, keeping test scripts clean and maintainable. Question 19. When automating a web page containing an <iframe>, which Selenium command is required before interacting with elements inside it? A) driver.switchTo().frame() B) driver.navigate().refresh() C) driver.findElement(By.tagName("iframe")) only D) No extra command is needed Answer: A Explanation: Selenium must switch the context to the iframe; otherwise, element searches target the main document. Question 20. Which CI tool natively supports pipeline‑as‑code using a Jenkinsfile? A) Azure DevOps B) GitLab CI C) Jenkins D) CircleCI

Program ASTAC Practice Exam

Answer: C Explanation: Jenkins uses a Jenkinsfile written in Groovy to define declarative or scripted pipelines. Question 21. In a CI pipeline, which stage should run after the build but before deployment to verify that the application functions correctly? A) Linting stage B) Unit test stage C) Integration test stage D) Performance test stage Answer: C Explanation: Integration tests validate that combined components work together, fitting between build and deployment phases. Question 22. Which headless browser option allows Chrome to run without a UI while still supporting most Selenium commands? A) chrome://headless B) --headless Chrome flag C) PhantomJS driver D) HtmlUnit driver

Program ASTAC Practice Exam

Answer: C Explanation: Environment issues (e.g., misconfigured test server, network outage) cause failures not caused by the application itself. Question 25. Which automation metric best reflects the proportion of functional requirements covered by automated tests? A) Flakiness rate B) Test coverage percentage C) Mean time to detect (MTTD) D) Execution time per test Answer: B Explanation: Test coverage measures how many requirements or code paths are exercised by automated tests. Question 26. Which of the following is a key benefit of running tests in parallel using Selenium Grid? A) Reduced test script complexity B) Elimination of flaky tests C) Faster overall feedback by utilizing multiple nodes simultaneously D) Automatic generation of test data

Program ASTAC Practice Exam

Answer: C Explanation: Parallel execution distributes tests across multiple machines, decreasing total run time. Question 27. A flaky test intermittently fails due to timing issues. Which mitigation strategy is most appropriate? A) Increase the test’s timeout value dramatically B) Add explicit waits for the specific element condition C) Disable the test permanently D) Remove all assertions from the test Answer: B Explanation: Targeted explicit waits address the root cause (element not ready) without unnecessarily slowing down the suite. Question 28. In performance testing, which metric indicates the maximum number of requests the system can handle per second before response time degrades? A) Latency B) Throughput C) Concurrency D) Error rate

Program ASTAC Practice Exam

Answer: B Explanation: SAST tools that include dependency scanning compare libraries against vulnerability databases, flagging insecure versions. Question 31. In role‑based access control (RBAC) automation, what should a test verify for a user with “Viewer” role? A) Ability to edit records B) Ability to delete records C) Ability to read records but not modify them D) Ability to create new users Answer: C Explanation: A Viewer role typically has read‑only permissions; tests must confirm that write actions are prohibited. Question 32. Which mobile automation tool uses the WebDriver protocol and can test both native and hybrid apps? A) Espresso B) XCUITest C) Appium D) Calabash

Program ASTAC Practice Exam

Answer: C Explanation: Appium implements the WebDriver API, supporting iOS, Android, native, hybrid, and mobile web testing. Question 33. When testing a native iOS app, which framework provides the most direct access to UI elements without a server component? A) Appium B) XCUITest C) Selenium Grid D) Robotium Answer: B Explanation: XCUITest is Apple’s native UI testing framework, running directly on the device without a separate server. Question 34. Which strategy helps ensure test scripts remain functional across multiple device screen sizes? A) Hard‑coding pixel coordinates for clicks B) Using relative locators based on accessibility IDs or resource IDs C) Running tests only on the largest device D) Ignoring UI validation

Program ASTAC Practice Exam

Answer: B Explanation: Tight coupling makes maintenance difficult; a good framework keeps data and logic separate. Question 37. Which of these tools is specifically designed for generating visual performance reports from JMeter results? A) Grafana B) Allure C) JMeter HTML Dashboard D) Extent Reports Answer: C Explanation: JMeter’s HTML Dashboard provides charts and graphs summarizing performance metrics. Question 38. When using REST Assured for API testing, which method validates that a JSON response contains a field “status” with value “SUCCESS”? A) .body("status", equalTo("SUCCESS")) B) .statusCode(200) C) .extract().path("status") D) .when().get("/endpoint")

Program ASTAC Practice Exam

Answer: A Explanation: The body matcher asserts the value of a JSON field directly. Question 39. Which Selenium command retrieves the text of a web element? A) getAttribute("text") B) getText() C) innerHTML() D) textContent() Answer: B Explanation: WebElement.getText() returns the visible text of the element. Question 40. In continuous delivery, what is the main purpose of a “smoke test” stage? A) To perform exhaustive functional testing B) To verify that the build is stable enough for further testing C) To measure performance under load D) To check code style compliance