Selenium Automation Framework: Data Driven, Keyword Driven & Hybrid (medium)
30 Questions
1 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which class is used to read an object repository file?

  • HSSFWorkbook
  • XSSFWorkbook
  • Properties
  • ReadObject (correct)

Which method is used to perform a click operation?

  • getText()
  • get()
  • click() (correct)
  • sendKeys()

Which object type is used to find an element by its name?

  • XPATH
  • CSS
  • NAME (correct)
  • CLASSNAME

Which method is used to get the text of an element?

<p>getText() (B)</p> Signup and view all the answers

What is the file extension for an Excel file?

<p>.xls (C)</p> Signup and view all the answers

What is the object type used to find an element by its CSS selector?

<p>CSS (D)</p> Signup and view all the answers

What is the object type used to find an element by its partial link text?

<p>PARTIALLINK (D)</p> Signup and view all the answers

Which library is capable of reading and writing both XLS and XLSX file formats of Excel?

<p>POI (D)</p> Signup and view all the answers

What is the purpose of the Keyword Driven Framework in Selenium?

<p>To separate keywords for common set of functions and instructions (D)</p> Signup and view all the answers

What is the role of the driver script Execute.java in the Selenium Framework?

<p>To call ReadGuru99ExcelFile.java (A)</p> Signup and view all the answers

Why is an object repository created in the Selenium Framework?

<p>To help with code maintenance (A)</p> Signup and view all the answers

What does the UIOperation class do in the Selenium Framework?

<p>Performs actions corresponding to keywords (A)</p> Signup and view all the answers

What is the purpose of the object.properties file in the Selenium Framework?

<p>To store the object repository (A)</p> Signup and view all the answers

What is the role of the ReadGuru99ExcelFile.java script in the Selenium Framework?

<p>To read data from an Excel sheet (C)</p> Signup and view all the answers

Which type of framework is used to separate data sets from the test case in Selenium?

<p>Data Driven Framework (A)</p> Signup and view all the answers

What are the benefits of using a Selenium automation framework?

<p>All of the above (D)</p> Signup and view all the answers

Which library is commonly used to read or write Excel files in Selenium Webdriver?

<p>POI (C)</p> Signup and view all the answers

What is the purpose of a Selenium automation framework?

<p>To make code maintenance easy and efficient (D)</p> Signup and view all the answers

Which type of framework allows modifying data sets for specific functionality without changing the code?

<p>Data Driven Framework (B)</p> Signup and view all the answers

What are the main types of frameworks created by Selenium WebDriver?

<p>All of the above (D)</p> Signup and view all the answers

What is the purpose of separating data sets from the test case in Selenium?

<p>To easily modify data sets without changing the code (D)</p> Signup and view all the answers

Which type of test framework can be achieved using TestNG's data provider?

<p>Data Driven (A)</p> Signup and view all the answers

What are the advantages of a Hybrid Driven framework in Selenium?

<p>All of the above (D)</p> Signup and view all the answers

What file needs to be replaced in a Hybrid Driven framework?

<p>HybridExecuteTest.java (C)</p> Signup and view all the answers

What does the HybridExecuteTest.java file contain?

<p>Code for Hybrid Driven framework (D)</p> Signup and view all the answers

What is the purpose of the perform function in the HybridExecuteTest.java file?

<p>To perform operations on the UI (B)</p> Signup and view all the answers

What is the purpose of the getDataFromDataprovider function in the HybridExecuteTest.java file?

<p>To read test data from an Excel file (C)</p> Signup and view all the answers

What type of files are used to maintain test cases in a Hybrid Driven framework?

<p>Excel files (B)</p> Signup and view all the answers

What is the complete pictorial representation of a Hybrid Driven framework?

<p>Hybrid Driven Framework (D)</p> Signup and view all the answers

What are the three types of test frameworks that can be created using Selenium WebDriver?

<p>Data Driven, Keyword Driven, and Hybrid Frameworks (C)</p> Signup and view all the answers

More Like This

Use Quizgecko on...
Browser
Browser