Question 1
What is the key principle behind Data-Driven Testing (DDT)?
Testing different browsers simultaneously
Automating UI components only
Using only positive test cases
Separating test data from test logic
Question 2
Which of the following is NOT typically used as a data source in DDT?
XML files
Excel spreadsheets
SQL injection logs
CSV files
Question 3
In Keyword-Driven Testing, what is the role of the "keyword"?
Defines test output
Acts as a placeholder for script comments
Connects database with the test case
Represents actions or operations to perform
Question 4
Which of the following is a major advantage of using a Data-Driven Framework in Selenium?
Tests must be hardcoded for each data set
Data updates require changing test scripts
Adding test data requires no script change
Supports manual testing only
Question 5
What is the role of Apache POI in Selenium Data-Driven Testing?
Reading Excel files
Parsing JSON data
Rendering web elements
Managing browser sessions
Question 6
Which annotation in TestNG allows you to link a test with external data?
@BeforeTest
@Test
@DataProvider
@Factory
Question 7
Which of the following is a disadvantage of Data-Driven Testing?
Requires high scripting expertise
Low test coverage
Code duplication
Only supports positive test cases
Question 8
In a Selenium-based DDT example, what happens when the username and password combination is invalid?
Login fails and an error message appears
Login is successful
Test is skipped
System crashes
Question 9
What does ExcelUtils.java do in the TestNG DDT example?
Automates test result logging
Reads Excel files to provide test data
Manages browser drivers
Runs multiple test cases in parallel
Question 10
How does a Data-Driven Framework improve test scalability?
By adding more classes to the test suite
By enabling test reusability for multiple data inputs
By separating test logic and increasing test script size
By avoiding use of test tools
There are 10 questions to complete.