HCLTech
10+ Arrowcon Energy Interview Questions and Answers
Q1. how to handle if element xpath is different in ios and android apps
Use platform-specific locators or conditional statements to handle different element xpaths in iOS and Android apps.
Use platform-specific locators like accessibility id for iOS and resource id for Android
Implement conditional statements to switch between different xpaths based on the platform
Utilize Appium's platformName capability to identify the platform and adjust the element xpath accordingly
Q2. "Hello world" java program to print the count of letter 'l'
A Java program to count the occurrences of the letter 'l' in the string 'Hello world'.
Create a Java program with a main method.
Initialize a String variable with the value 'Hello world'.
Use a loop to iterate through each character in the string and count the occurrences of the letter 'l'.
Print the count of 'l' at the end.
Q3. what is the diff between comparator and comparable
Comparator is an interface used to sort objects, while Comparable is an interface used to compare objects for natural ordering.
Comparator is used to define custom sorting logic for objects, while Comparable is used for natural ordering based on the class's implementation of compareTo() method.
Comparator can be used to sort objects of different classes, while Comparable is implemented within the class itself.
Example: Sorting a list of custom objects based on a specific attribu...read more
Q4. how to handle notifications in mobile automation
Handle notifications in mobile automation by using automation tools to interact with notifications, verify content, dismiss or respond to them.
Use automation tools like Appium or Espresso to interact with notifications
Verify the content of notifications by extracting text or images
Dismiss notifications to continue with test execution
Respond to notifications if required for test scenarios
Handle different types of notifications such as push notifications, in-app notifications, ...read more
Q5. what is pom.xml and how to mention dependencies
pom.xml is a configuration file used in Maven projects to define project settings and dependencies.
pom.xml stands for Project Object Model XML
It is used in Maven projects to manage project configuration, build settings, and dependencies
Dependencies are mentioned inside the <dependencies> tag in pom.xml
Each dependency is specified with <groupId>, <artifactId>, and <version>
Q6. How to improve the performance of bottom performers.
Identify root cause, provide training, set clear expectations, offer support and feedback.
Identify the root cause of poor performance
Provide training and development opportunities
Set clear expectations and goals
Offer support and feedback regularly
Consider reassigning tasks or roles if necessary
Q7. "Hello world" java program to print output as "olleH dlrow"
Reverse the characters of each word in a given string
Split the input string into an array of words
Reverse each word in the array
Join the reversed words back into a single string
Q8. what is lamda expression
Lambda expression is a concise way to represent an anonymous function in programming languages.
Lambda expressions are used to create small, inline functions without a formal definition.
They are commonly used in functional programming languages like Python, Java, and C#.
Lambda expressions can be used to simplify code and make it more readable.
Example: (x, y) -> x + y is a lambda expression that takes two parameters and returns their sum.
Q9. what is contructor chaining
Constructor chaining is the process of calling one constructor from another constructor in a class.
Allows reusing code and avoiding duplication
Can be achieved using 'this' keyword in the constructor
Helps in initializing objects with different parameters
Q10. different TestNG annotations and order
TestNG annotations include @Test, @BeforeMethod, @AfterMethod, @BeforeClass, @AfterClass, @BeforeSuite, @AfterSuite
@Test - denotes a test method
@BeforeMethod - runs before each test method
@AfterMethod - runs after each test method
@BeforeClass - runs before the first test method in the current class
@AfterClass - runs after the last test method in the current class
@BeforeSuite - runs before all tests in the suite
@AfterSuite - runs after all tests in the suite
Interview Process at Arrowcon Energy
Top Senior Quality Analyst Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month