Content text Ôn Kiểm Thử
8. What are the advantages of the Page Object Model in automated testing? ○ a. Reduces code duplication and improves maintainability ○ b. Allows separation of test logic from page elements ○ c. Provides better test coverage and readability ○ d. All of the above 9. Which wait mechanism would you use in Selenium to ensure an element is interactable before performing an action? ○ a. Implicit Wait ○ b. Explicit Wait ○ c. Static Wait ○ d. Dynamic Wait 10. What is the role of a test automation framework? ○ a. To structure and organize automated test cases ○ b. To increase the dependency on manual testing ○ c. To provide reusable components for test scripts ○ d. a and c 11.How can you retrieve the title of the current page in Selenium WebDriver? ○ a. driver.getTitle() ○ b. driver.getPageTitle() ○ c. driver.retrieveTitle() ○ d. driver.getPageHeader() 12. What is the significance of using assertions in automated testing? ○ a. They validate expected results against actual outcomes. ○ b. They are used to perform UI interactions. ○ c. They help in detecting issues early in the test run. ○ d. a and c 13. Which of the following statements describes the utility of a test management tool? ○ a. It allows for tracking test cases and reporting test execution results. ○ b. It automates the creation of test scripts. ○ c. It integrates test cases with continuous integration systems. ○ d. a and c 14. How would you clear text from an input field in Selenium? ○ a. driver.findElement(By.id("elementId")).clear() ○ b. driver.findElement(By.id("elementId")).reset() ○ c. driver.findElement(By.id("elementId")).clearText()
1. Which of the following is a benefit of using record and playback in test automation? ● a. Helps users understand automation tools better ● b. Increases reusability and ease of maintenance ● c. Allows test data to be stored separately for better management ● d. All of the above 2. What are the main advantages of a keyword-driven testing approach? ● a. Reduces long-term maintenance costs ● b. Independent of specific tools or languages ● c. Enables storing test data in separate files for improved manageability ● d. All of the above 3. Which of these statements describes the value of test automation? ● a. Shortens test execution time ● b. Allows resources to focus on finding defects ● c. Significantly increases the cost and time for regression testing ● d. Allows scalability and reusability of tests with proper design 4. What capability does Selenium Grid provide? ● a. Only supports testing on iOS and Android devices ● b. Enables parallel testing across multiple machines with different browsers and OS ● c. Runs tests sequentially on various platforms ● d. Limited to testing only on mobile devices 5. Which are common pitfalls in test automation? ● a. Lack of flexibility and control ● b. Ensures comprehensive test coverage ● c. Poor scalability and difficulty in maintenance ● d. Complexity due to a mismatch between technology and human skills 6. In Selenium WebDriver, which method terminates all browser windows associated with the session?