
Deloitte


10+ Deloitte Sdet (Software Development Engineer in Test) Interview Questions and Answers
Q1. 4) How to send the values without using sendkeys method?
Values can be sent without using sendkeys method by directly manipulating the DOM or using JavaScriptExecutor.
Use JavaScriptExecutor to execute JavaScript code to set values of input fields.
Find the element using appropriate locators and then use JavaScriptExecutor to set the value.
Example: driver.executeScript("document.getElementById('elementId').value='text'");
Q2. 13) What is requestSpecification? What is serialization and how to achieve this?
requestSpecification is a class in RestAssured library used to define the request details for API testing.
It is used to set the base URI, path, headers, query parameters, etc. for the API request.
It allows customization of the request before sending it.
Serialization is the process of converting an object into a format that can be stored or transmitted.
In API testing, serialization is used to convert Java objects into JSON or XML format for API request or response.
To achieve s...read more
Q3. 15) What are the things need to post a value in server?
To post a value in a server, you need to consider the endpoint, request method, headers, body, and authentication.
Identify the endpoint where the value needs to be posted
Choose the appropriate request method (e.g., POST)
Set the necessary headers (e.g., Content-Type)
Construct the body payload with the value to be posted
Handle authentication if required (e.g., API key, token)
Q4. 16) What are the exception you are facing in selenium automation?
Common exceptions in Selenium automation include NoSuchElementException, TimeoutException, and StaleElementReferenceException.
NoSuchElementException occurs when an element cannot be found in the DOM.
TimeoutException occurs when a command takes longer than the timeout value to complete.
StaleElementReferenceException occurs when an element is no longer attached to the DOM.
Other exceptions include ElementNotVisibleException, ElementNotSelectableException, and WebDriverException.
Q5. 12) What is rest-assured? How to handle the certificate issues in rest-assured?
Rest-assured is a Java-based library used for testing RESTful APIs.
Rest-assured simplifies the testing of RESTful APIs by providing a domain-specific language (DSL) for writing tests.
To handle certificate issues in rest-assured, we can use the relaxedHTTPSValidation() method to bypass SSL certificate validation.
We can also import the certificate into the truststore and use it for SSL validation.
Q6. 10) How to implement the test automation framework?
Test automation framework can be implemented by following these steps:
Identify the testing requirements
Choose the appropriate tools and technologies
Design the framework architecture
Develop and integrate the framework components
Create test scripts and execute them
Integrate with CI/CD pipeline
Maintain and update the framework regularly
Q7. 6) Why windowHandles method return type is set?
The windowHandles method returns a set of window handles as a set of strings.
The windowHandles method is used to retrieve all the window handles of the current session.
The return type is set because it ensures that each window handle is unique and there are no duplicates.
The set data structure allows for efficient retrieval and manipulation of window handles.
Example: Set
handles = driver.getWindowHandles();
Q8. 17) Where did you faced arrayIndexOutOfBoundary exception in your project?
I faced arrayIndexOutOfBoundary exception while accessing an array element beyond its size.
The exception occurred when trying to access an array element at an index greater than or equal to its size.
To fix it, I checked the array size before accessing its elements.
I also made sure to properly initialize the array with the correct size.
Example: String[] arr = new String[5]; arr[5] = "hello"; // throws exception
Q9. 9) How to rerun the failed cases in testng?
Failed test cases can be rerun in TestNG using the 'rerun-failed.xml' file.
Create a new XML file named 'rerun-failed.xml'
Add the failed test cases to the XML file using the 'include' tag
Run the 'rerun-failed.xml' file using TestNG
Q10. 18) What is jenkins? Explain the git pipeline?
Jenkins is an open-source automation server that helps to automate parts of the software development process.
Jenkins is used for continuous integration and continuous delivery (CI/CD) of software projects.
It can be integrated with Git to create a pipeline for building, testing, and deploying code.
The Git pipeline in Jenkins involves creating a Jenkinsfile that defines the stages of the pipeline, such as checkout, build, test, and deploy.
Jenkins can also be used to automate ta...read more
Q11. 7) How to priority our test cases in testng?
Test cases can be prioritized in TestNG using priority attribute.
Add priority attribute to @Test annotation
Test cases with lower priority value will be executed first
Priority can be any integer value, default is 0
Q12. 8) How to achieve the parallel testing?
Parallel testing can be achieved by dividing test cases into smaller chunks and running them simultaneously on multiple machines.
Divide test cases into smaller chunks
Use a test framework that supports parallel testing
Run tests on multiple machines or virtual machines
Ensure tests do not interfere with each other
Aggregate test results from all machines
Q13. 19) Explain the git flow in your project?
Git flow is a branching model for software development.
Git flow consists of two main branches: master and develop.
Feature branches are created off of develop and merged back into it.
Release branches are created off of develop for preparing a new release.
Hotfix branches are created off of master to fix critical issues in production.
Git flow helps to maintain a structured and organized workflow for development.
Example: git flow init, git flow feature start
, git flow release st...read more
Q14. 11) Difference between http and https?
HTTP is a protocol for transmitting data over the internet, while HTTPS is a secure version of HTTP that encrypts the data.
HTTP stands for Hypertext Transfer Protocol, while HTTPS stands for Hypertext Transfer Protocol Secure.
HTTP operates on port 80, while HTTPS operates on port 443.
HTTP is not secure and data is transmitted in plain text, while HTTPS uses SSL/TLS encryption to secure the data transmission.
HTTPS is commonly used for secure transactions, such as online bankin...read more
Q15. 21) Explain the extent reports config?
Extent Reports Config is a Java library used for generating interactive HTML reports for test automation results.
Extent Reports Config is used to customize the look and feel of the generated reports.
It allows users to add or remove report sections, change report themes, and configure report settings.
Users can also add custom logos, CSS, and JavaScript to the reports.
Extent Reports Config can be integrated with various testing frameworks like TestNG, JUnit, and Cucumber.
It pro...read more
Q16. 5) Collections used in selenium
Collections used in Selenium include List, Set, and Map.
List is used to store a collection of elements in a specific order.
Set is used to store a collection of unique elements.
Map is used to store a collection of key-value pairs.
Examples include List
, Set , and Map .
Q17. 14) Status codes in API's?
Status codes are used in API's to indicate the outcome of a request.
Status codes are three-digit numbers that are returned by the server in response to a client's request.
They indicate whether the request was successful or not, and if not, what went wrong.
Some common status codes include 200 (OK), 404 (Not Found), and 500 (Internal Server Error).
Q18. 20) Explain the excel reading?
Excel reading involves extracting data from an Excel file using programming languages.
Excel files can be read using libraries like Apache POI, OpenPyXL, and xlrd.
Data can be extracted from specific cells or entire sheets.
Excel files can be read in various formats like .xls, .xlsx, and .csv.
More about working at Deloitte







Reviews
Interviews
Salaries
Users/Month

