Bharti Airtel
10+ Udly Engineers Interview Questions and Answers
Q1. How to achieve parallel execution of test cases in testNG?
Parallel execution of test cases in TestNG can be achieved using TestNG's parallel attribute in the testng.xml file.
Set the 'parallel' attribute in the testng.xml file to 'methods', 'classes', or 'tests' to specify the level of parallelism.
Use the 'thread-count' attribute to specify the number of threads to be used for parallel execution.
Ensure that the test classes are thread-safe to avoid any conflicts during parallel execution.
Q2. Write test cases of an API that creates User's profile by accepting First name, Last name and mobile number
Test cases for API creating User's profile with First name, Last name, and mobile number
Verify that a user profile is created successfully with valid First name, Last name, and mobile number
Test with invalid First name (empty, special characters, numbers)
Test with invalid Last name (empty, special characters, numbers)
Test with invalid mobile number (empty, alphabets, special characters, less than 10 digits)
Verify that duplicate profiles are not created for the same mobile num...read more
Q3. What are the reasons for 500 - Internal Server Error
500 Internal Server Error is a generic error message indicating a problem with the server.
Server misconfiguration
Server overload
Programming errors in server-side code
Database connection issues
Insufficient server resources
Q4. Write a program to reverse the words in a string I/P: My name is abc O/P: abc is name My
Program to reverse words in a string
Split the input string into an array of words
Reverse the array of words
Join the reversed array back into a string
Q5. Write a program to count the character in a string
A program to count the characters in a string
Iterate through each character in the string and increment the count for each character
Use a hashmap to store the count of each character
Handle edge cases like empty string or null input
Q6. Amazon: Add Cart feature - Write Selenium code
Use Selenium to automate adding items to cart on Amazon website.
Locate the 'Add to Cart' button on the product page using Selenium's findElement method
Click on the 'Add to Cart' button to add the item to the cart
Verify that the item has been successfully added to the cart by checking the cart contents
Q7. UI test cases of Upload document
UI test cases for uploading a document
Verify that the 'Upload' button is functional
Check if the correct file types are allowed for upload
Ensure that the progress bar is displayed during upload
Confirm that the document is successfully uploaded and visible on the UI
Q8. UI test cases of a Form
UI test cases for a Form
Verify all required fields are displayed
Test validation messages for invalid inputs
Check if form submission is successful
Test the functionality of reset button
Q9. Explain automation framework
Automation framework is a set of guidelines, tools, and processes used to automate testing of software applications.
Automation framework provides structure and guidelines for creating and executing automated tests.
It helps in organizing test scripts, managing test data, and generating test reports.
Examples of automation frameworks include Selenium, TestNG, and Cucumber.
Frameworks can be data-driven, keyword-driven, or hybrid in nature.
Q10. Test cases of Login API
Test cases for Login API
Verify valid username and password login successfully
Verify invalid username and password combination fails to login
Verify login with empty username or password fails
Verify login with special characters in username or password fails
Q11. Regression vs Sanity
Regression testing ensures existing functionality still works after changes, while sanity testing checks if new functionality works as expected.
Regression testing is performed to make sure that new code changes do not adversely affect existing functionality.
Sanity testing is a cursory testing to make sure that the new functionality is working as expected.
Regression testing is usually automated and covers a wide range of test cases.
Sanity testing is usually done manually and f...read more
Interview Process at Udly Engineers
Reviews
Interviews
Salaries
Users/Month