Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Java Selenium Cucumber Automation Testing- Exam Questions Answered Correctly Latest Update

Rating
-
Sold
-
Pages
9
Grade
A+
Uploaded on
21-12-2024
Written in
2024/2025

Java Selenium Cucumber Automation Testing- Exam Questions Answered Correctly Latest Update Selenium - Answers automated testing framework used to validate web applications across different browsers and platforms Difference from Whitebox / Blackbox / Greybox testing - Answers White Box Testing is software testing technique in which internal structure, design and coding of software are tested to verify flow of input-output and to improve design, usability and security. Black Box Testing is a software testing method in which the functionalities of software applications are tested without having knowledge of internal code structure, implementation details and internal paths. Grey Box Testing or Gray box testing is a software testing technique to test a software product or application with partial knowledge of internal structure of the application. Cucumber - Answers Cucumber is a testing tool that supports Behavior Driven Development (BDD) framework. It defines application behavior using simple English text, defined by a language called Gherkin Gherkin - Answers It uses plain language to describe use cases and allows users to remove logic details from behavior tests; it is used in the feature files. What is a feature file? - Answers A Feature File is an entry point to the Cucumber tests. This is a file where you will describe your tests in Descriptive language (Like English). It is an essential part of Cucumber, as it serves as an automation test script as well as live documents. What is defect/bug lifecycle? - Answers The purpose of Defect life cycle is to easily coordinate and communicate current status of defect which changes to various assignees and make the defect fixing process systematic and efficient. What are steps when dealing with a feature file? - Answers file must be declared with .feature Feature and Scenario must be declared What is the purpose of a runner file? - Answers To run a group of feature files and the associated step files. Cucumber uses @RunWith Junit annotation from Junit framework to run. What is @CucumberOptions? - Answers This annotation tells Cucumber a lot of things like where to look for feature files, what reporting system to use, and which tags to use. What is TDD? - Answers Software development process relying on software requirements being converted to test cases before software is fully developed, and tracking all software development by repeatedly testing the software against all test cases. What is ATDD? - Answers Acceptance Test Driven Development (ATDD) aims to help a project team flesh out user stories into detailed Acceptance Tests that, when executed, will confirm whether the intended functionality exists. What is BDD? - Answers (BDD) is a branch of Test Driven Development (TDD). BDD uses human-readable descriptions of software user requirements as the basis for software tests. How to use a datatable? - Answers feature file must be created and feature and scenario must be declared data table is represented as | name1 | name2 | name3 | under a gurken keyword such as When DataTable must be imported into the objects page and steps file and used as a parameter in the corresponding method or step and retrieved using the row and column What is automation testing? - Answers Test automation is the practice of running tests automatically, managing test data, and utilizing results to improve software quality. What are the main advantages of using Test Automation? - Answers Faster Feedback Cycle. Without test automation, feedback for newly developed features can take a while. Team Saves Time. Reduced Business Expenses. How will you find an element using Selenium? - Answers Elements are found using locators. ID, Name, Linktext, Partial Linktext, Tag Name, Class Name, DOM Locator, CSS Selector, Xpath Difference between an implicit wait and an explicit wait? - Answers Implicit waits are used to provide a default waiting time between each consecutive test step/command across the entire test script. Explicit waits are used to halt the execution until the time a particular condition is met or the maximum time has elapsed What is the difference between verify and assert commands? - Answers If the assert fails the application will stop running and any code after the assert will not execute unless surrounded in a try/catch block. AtEquals(expected, actual) Verify aka softassert will not stop the app from running if it fails softAtEquals(expected, actual) must use assertAll() at end of test to view assertion results What are the features of TestNG and list some of the functionality in TestNG which makes it more effective? - Answers TestNG is a testing framework inspired from JUnit and NUnit with new features and easy to use, this can be used for both Unit Testing and End to End testing. Features of Using TestNG are: Test cases can be grouped easily and prioritized easily. Generating HTML report of test runs. Parallel execution of test cases is possible. It allows defining dependent test cases and each test case is independent to other test case. Test logs can be generated. Parameterization is possible. Test cases can be executed on multiple browsers. It can be easily integrated with Maven, Jenkins etc. Assert class is used for verification in TestNG framework. What order should locators be used in? - Answers ID, Name, Linktext, Partial Linktext, Tag Name, Class Name, DOM Locator, CSS Selector, Xpath What are the JUnits annotations linked with Selenium? - Answers @BeforeClass. @Before. @Test. @After. Explain how you can login into any site if it's showing any authentication popup for password and username? - Answers Pass the username and password with url What is Page Object Model (POM)? - Answers Design pattern used in Selenium to separate test code and page specific code such as locators. List the advantages of Webdriver over Selenium Server? - Answers Open Source. Language Support. Works Across Multiple OS. Cross Browser Compatibility Testing. Supports Multiple Frameworks and Languages. . What is JUnit? - Answers JUnit is a Java framework for unit testing. Some of the annotations for JUnit, which are within the package are: Test - declares a method as a test method BeforeClass - declares a setup method that runs once, before all other methods in the class Before - declares a setup method that runs before each test method After - declares a tear-down method that runs after each test method AfterClass - declares a tear-down method that runs once, after all other methods in the class What is Mocking? - Answers Mocking is a way to test the functionality of a class in isolation. Mocking does not require a database connection or properties file read or file server read to test a functionality. Mock objects do the mocking of the real service. A mock object returns a dummy data corresponding to some dummy input passed to it. What is Mockito? - Answers Mockito is a mocking framework, Java-Based library that is used for effective unit testing of Java applications. Mockito is used to mock interfaces so that a dummy functionality can be added to a mock interface that can be used in unit testing. Mention 5 different exceptions you had in Selenium web driver? - Answers WebDriverException NoAlertPresentException NoSuchWindowException NoSuchElementException TimeoutException What is the difference between getWindowhandles() and getwindowhandle() ? - Answers getwindowhandles(): It is used to get the address of all the open browser and its return type is SetString getwindowhandle(): It is used to get the address of the current browser where the control is and return type is string What is the difference between get() and navigate() in selenium? - Answers get(): It is responsible for loading the page and waits until the page has finished loading. It also cannot track the history of the browser. navigate(): It is only responsible for redirecting the page and then returning immediately. It tracks the browser history and can perform back and forth in the browser. What are regular expressions? How you can use regular expressions in Selenium ? - Answers A regular expression is a special sequence of characters that helps you match or find other strings or sets of strings You can use regular expressions in locators to find elements such as _element_by_xpath("//input[contains(@name,'sel')]").

Show more Read less
Institution
Java Selenium Cucumber Automation
Course
Java Selenium Cucumber Automation

Content preview

Java Selenium Cucumber Automation Testing- Exam Questions Answered Correctly Latest Update
2024-2025



Selenium - Answers automated testing framework used to validate web applications across different
browsers and platforms

Difference from Whitebox / Blackbox / Greybox testing - Answers White Box Testing is software testing
technique in which internal structure, design and coding of software are tested to verify flow of input-
output and to improve design, usability and security.



Black Box Testing is a software testing method in which the functionalities of software applications are
tested without having knowledge of internal code structure, implementation details and internal paths.



Grey Box Testing or Gray box testing is a software testing technique to test a software product or
application with partial knowledge of internal structure of the application.

Cucumber - Answers Cucumber is a testing tool that supports Behavior Driven Development (BDD)
framework. It defines application behavior using simple English text, defined by a language called
Gherkin

Gherkin - Answers It uses plain language to describe use cases and allows users to remove logic details
from behavior tests; it is used in the feature files.

What is a feature file? - Answers A Feature File is an entry point to the Cucumber tests. This is a file
where you will describe your tests in Descriptive language (Like English). It is an essential part of
Cucumber, as it serves as an automation test script as well as live documents.

What is defect/bug lifecycle? - Answers The purpose of Defect life cycle is to easily coordinate and
communicate current status of defect which changes to various assignees and make the defect fixing
process systematic and efficient.

What are steps when dealing with a feature file? - Answers file must be declared with .feature



Feature and Scenario must be declared

What is the purpose of a runner file? - Answers To run a group of feature files and the associated step
files. Cucumber uses @RunWith Junit annotation from Junit framework to run.

, What is @CucumberOptions? - Answers This annotation tells Cucumber a lot of things like where to look
for feature files, what reporting system to use, and which tags to use.

What is TDD? - Answers Software development process relying on software requirements being
converted to test cases before software is fully developed, and tracking all software development by
repeatedly testing the software against all test cases.

What is ATDD? - Answers Acceptance Test Driven Development (ATDD) aims to help a project team flesh
out user stories into detailed Acceptance Tests that, when executed, will confirm whether the intended
functionality exists.

What is BDD? - Answers (BDD) is a branch of Test Driven Development (TDD). BDD uses human-readable
descriptions of software user requirements as the basis for software tests.

How to use a datatable? - Answers feature file must be created and feature and scenario must be
declared



data table is represented as | name1 | name2 | name3 | under a gurken keyword such as When



DataTable must be imported into the objects page and steps file and used as a parameter in the
corresponding method or step and retrieved using the row and column

What is automation testing? - Answers Test automation is the practice of running tests automatically,
managing test data, and utilizing results to improve software quality.

What are the main advantages of using Test Automation? - Answers Faster Feedback Cycle. Without test
automation, feedback for newly developed features can take a while.



Team Saves Time.



Reduced Business Expenses.

How will you find an element using Selenium? - Answers Elements are found using locators.



ID, Name, Linktext, Partial Linktext, Tag Name, Class Name, DOM Locator, CSS Selector, Xpath

Difference between an implicit wait and an explicit wait? - Answers Implicit waits are used to provide a
default waiting time between each consecutive test step/command across the entire test script.

Written for

Institution
Java Selenium Cucumber Automation
Course
Java Selenium Cucumber Automation

Document information

Uploaded on
December 21, 2024
Number of pages
9
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$8.89
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TutorJosh Chamberlain College Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
465
Member since
1 year
Number of followers
16
Documents
32426
Last sold
3 days ago
Tutor Joshua

Here You will find all Documents and Package Deals Offered By Tutor Joshua.

3.4

74 reviews

5
26
4
16
3
14
2
1
1
17

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions