IT Analyst Grade C2
10+ IT Analyst Grade C2 Interview Questions and Answers
Q1. Explain testing framework which you used in your project
We used the Selenium testing framework for our project.
Selenium is an open-source testing framework used for web applications.
It supports multiple programming languages like Java, Python, etc.
We used Selenium WebDriver to automate our tests.
It allows us to write test scripts for different browsers like Chrome, Firefox, etc.
We also used TestNG framework for test management and reporting.
Q2. How to inspect static and dynamic drop-down in selenium
To inspect static and dynamic drop-down in Selenium, we can use the Select class and wait for the element to be visible.
Use the Select class to interact with drop-downs
For static drop-downs, locate the element and use the Select class to select the desired option
For dynamic drop-downs, wait for the element to be visible before interacting with it
Use the 'SelectBy' methods to select options by value, index, or visible text
Q3. What is overloading and overriding in Java
Overloading is using the same method name with different parameters. Overriding is replacing a method in a subclass.
Overloading is a compile-time polymorphism
Overloading is used to provide different implementations of the same method
Overriding is a runtime polymorphism
Overriding is used to provide a different implementation of a method in a subclass
Overriding requires inheritance
Example of overloading: public void print(int num), public void print(String str)
Example of overri...read more
Q4. How to set priorities and grouping in testng
TestNG allows setting priorities and grouping of test cases for efficient test execution.
Use the 'priority' attribute to set the execution order of test methods.
Use the 'groups' attribute to group test methods based on common characteristics.
Use the 'dependsOnGroups' attribute to specify the order of group execution.
Use the 'dependsOnMethods' attribute to specify the order of method execution.
Use the 'enabled' attribute to disable certain test methods from execution.
Example: ...read more
Q5. Describe the business flow , eccomerce domain knowledge.
Business flow in ecommerce involves various stages from product listing to order fulfillment.
Ecommerce business flow includes product listing, shopping cart, checkout, payment processing, and order fulfillment.
Product listing involves creating product pages with descriptions, images, and pricing.
Shopping cart allows customers to add products to their cart and proceed to checkout.
Checkout involves collecting customer information and shipping details.
Payment processing involves...read more
Q6. Write code to capture screenshot in selenium
Code to capture screenshot in Selenium
Create an object of the TakesScreenshot interface
Use the getScreenshotAs() method to capture the screenshot
Save the screenshot to a file using the File class
Example: TakesScreenshot ts = (TakesScreenshot)driver; File screenshotFile = ts.getScreenshotAs(OutputType.FILE);
Example: FileUtils.copyFile(screenshotFile, new File("C:\\screenshot.png"));
Share interview questions and help millions of jobseekers 🌟
Q7. Explain realtime experience scenarios, with examples
Realtime experience scenarios involve immediate response to events or data.
A stock trading platform that updates prices in real-time
A traffic monitoring system that adjusts traffic signals based on current traffic flow
A weather app that provides up-to-the-minute weather information
A sports app that provides live scores and updates
A security system that alerts authorities immediately upon detecting a breach
Q8. How to add js in Drupal?
To add js in Drupal, create a custom module or add it to the theme's .info file.
Create a custom module and add the js file in the module's .info file
Add the js file to the theme's .info file
Use the drupal_add_js() function in a custom module or theme template file
Use the Libraries API module to manage js libraries
Ensure that the js file is added after the jQuery library
Q9. What is inheritance in java
Inheritance is a mechanism in Java where one class acquires the properties and behaviors of another class.
It allows code reusability and saves time
The class that is inherited is called the superclass or parent class
The class that inherits from the superclass is called the subclass or child class
The subclass can access all the public and protected methods and fields of the superclass
Example: class Dog extends Animal {}
Example: class Labrador extends Dog {}
Q10. What is Purchase order?
A purchase order is a document issued by a buyer to a seller, indicating types, quantities, and agreed prices for products or services.
A purchase order is a legally binding document
It specifies the details of the products or services being purchased
It includes quantities, prices, delivery dates, and terms of payment
It serves as a record of the transaction between the buyer and seller
Q11. What is Purchase requisition?
A purchase requisition is a document used to request goods or services for purchase.
It is a formal request made by a department or individual within a company to the purchasing department.
It includes details such as quantity, description, and estimated cost of the items or services needed.
Once approved, the purchase requisition serves as authorization for the purchasing department to proceed with the purchase.
It helps in controlling and tracking purchases within an organizati...read more
Q12. What is event bubbling?
Event bubbling is the propagation of an event from the innermost element to the outermost element in the DOM tree.
Events triggered on a child element will also trigger on its parent elements
Can be controlled using event.stopPropagation()
Helps in reducing code redundancy
Example: Clicking on a button inside a div will also trigger the click event on the div
Q13. Annotations used in testng
Annotations in TestNG are used to provide additional information about the test methods and classes.
Annotations can be used to mark a method as a test method using @Test
Annotations can be used to set the priority of a test method using @Test(priority = 1)
Annotations can be used to group test methods using @Test(groups = {"smoke", "regression"})
Annotations can be used to run a method before or after a test using @BeforeTest or @AfterTest
Annotations can be used to run a method ...read more
Q14. Explain page ojbect model
Page Object Model is a design pattern used in test automation to create an object repository for web UI elements.
It helps in reducing code duplication and improves code maintainability.
Each web page is represented as a separate class and all the elements on that page are defined as variables in that class.
The methods in the class perform actions on those elements.
It makes test scripts more readable and easier to maintain.
Example: Selenium WebDriver uses Page Object Model for ...read more
Interview Questions of Similar Designations
Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month