
Nagarro


Nagarro Senior Test Engineer Interview Questions and Answers
Q1. Explain testng annotations and how will we use annotation in our framework
TestNG annotations are used to control the flow of test methods and provide additional information about the test methods.
TestNG annotations are used to mark methods as test methods, setup methods, teardown methods, etc.
Annotations like @Test, @BeforeMethod, @AfterMethod, @BeforeClass, @AfterClass, @BeforeSuite, @AfterSuite are commonly used in TestNG framework.
Annotations help in organizing and prioritizing test methods, setting dependencies between test methods, and control...read more
Q2. What is overriding and where it is used in automation framework
Overriding is a concept in object-oriented programming where a subclass provides a specific implementation of a method that is already provided by its superclass.
Overriding allows a subclass to provide a specific implementation of a method that is already provided by its superclass
It is used in automation frameworks to customize or extend the functionality of existing methods or classes
In automation testing, overriding can be used to modify the behavior of test methods inheri...read more
Q3. Explain rest assured and write a code for post and verify the response
Rest Assured is a Java library for testing RESTful APIs. It simplifies API testing by providing a fluent interface to make HTTP requests and validate responses.
Rest Assured is commonly used in API automation testing to validate the functionality of RESTful APIs.
It allows testers to easily make HTTP requests, set headers, parameters, and body, and validate the response.
Here is an example code snippet for posting data and verifying the response using Rest Assured: given(). cont...read more
Q4. Java code for sorting without using built in function
Sorting array of strings in Java without using built-in functions
Create a custom sorting algorithm like bubble sort, selection sort, or insertion sort
Compare each pair of strings and swap them if necessary to sort in ascending order
Repeat the process until the array is fully sorted
Q5. What is testng listener
TestNG listener is an interface that allows users to customize the test execution process.
TestNG listeners can be used to perform actions before or after a test method is run.
Listeners can be used to generate logs, take screenshots, or perform other custom actions during test execution.
Examples of TestNG listeners include ITestListener, ISuiteListener, and IInvokedMethodListener.
Q6. Explain ci/cd pipeline using jenkins
CI/CD pipeline using Jenkins automates the process of integrating code changes and deploying them to production.
Jenkins is a popular automation server used for CI/CD
CI/CD stands for Continuous Integration/Continuous Deployment
In a CI/CD pipeline, code changes are automatically built, tested, and deployed
Jenkins pipelines can be defined using a Jenkinsfile which specifies the stages and steps of the pipeline
Example: Checkout code from version control, build code, run tests, de...read more
Q7. Explain automation framework
Automation framework is a set of guidelines, rules, and tools that help in creating and executing automated tests.
Automation framework provides structure and guidelines for creating automated tests
It helps in organizing test scripts, data, and results
Frameworks can be data-driven, keyword-driven, or hybrid
Examples of automation frameworks include Selenium WebDriver, TestNG, and Robot Framework
Q8. Explain bdd hooks and tags
BDD hooks and tags are used in Behavior-Driven Development to set up preconditions and execute actions before or after scenarios, and to categorize and filter scenarios.
BDD hooks are used to set up preconditions and execute actions before or after scenarios
Tags are used to categorize and filter scenarios based on certain criteria
Hooks can be used to perform setup and teardown actions, such as initializing test data or closing resources
Tags can be used to run specific subsets ...read more
Q9. Explain bdd background keyword
BDD background keyword is used to define common preconditions for all scenarios in a feature file.
Used at the beginning of a feature file to define common preconditions
Helps in setting up the initial state for all scenarios in the feature file
Reduces duplication of steps in scenarios by defining them once in the background
More about working at Nagarro







Interview Process at Nagarro Senior Test Engineer

Top Senior Test Engineer Interview Questions from Similar Companies








Reviews
Interviews
Salaries
Users/Month

