Differences
  • Placement 360 CourseExplore
  • Software Testing - Day 34

    Last Updated :
    Discuss
    Comments

    Question 1

    What is the key principle behind Data-Driven Testing (DDT)?

    • A

      Testing different browsers simultaneously

    • B

      Automating UI components only

    • C

      Using only positive test cases

    • D

      Separating test data from test logic

    Question 2

    Which of the following is NOT typically used as a data source in DDT?

    • A

      XML files

    • B

      Excel spreadsheets

    • C

      SQL injection logs

    • D

      CSV files

    Question 3

    In Keyword-Driven Testing, what is the role of the "keyword"?

    • A

      Defines test output

    • B

      Acts as a placeholder for script comments

    • C

      Connects database with the test case

    • D

      Represents actions or operations to perform

    Question 4

    Which of the following is a major advantage of using a Data-Driven Framework in Selenium?

    • A

      Tests must be hardcoded for each data set

    • B

      Data updates require changing test scripts

    • C

      Adding test data requires no script change

    • D

      Supports manual testing only

    Question 5

    What is the role of Apache POI in Selenium Data-Driven Testing?

    • A

      Reading Excel files

    • B

      Parsing JSON data

    • C

      Rendering web elements

    • D

      Managing browser sessions

    Question 6

    Which annotation in TestNG allows you to link a test with external data?

    • A

      @BeforeTest

    • B

      @Test

    • C

      @DataProvider

    • D

      @Factory

    Question 7

    Which of the following is a disadvantage of Data-Driven Testing?

    • A

      Requires high scripting expertise

    • B

      Low test coverage

    • C

      Code duplication

    • D

      Only supports positive test cases

    Question 8

    In a Selenium-based DDT example, what happens when the username and password combination is invalid?

    • A

      Login fails and an error message appears

    • B

      Login is successful

    • C

      Test is skipped

    • D

      System crashes

    Question 9

    What does ExcelUtils.java do in the TestNG DDT example?

    • A

      Automates test result logging

    • B

      Reads Excel files to provide test data

    • C

      Manages browser drivers

    • D

      Runs multiple test cases in parallel

    Question 10

    How does a Data-Driven Framework improve test scalability?

    • A

      By adding more classes to the test suite

    • B

      By enabling test reusability for multiple data inputs

    • C

      By separating test logic and increasing test script size

    • D

      By avoiding use of test tools

    There are 10 questions to complete.

    Take a part in the ongoing discussion