Carelon Global Solutions
Viral Mafia Interview Questions and Answers
Q1. how to access amazon page directly directly with out using driver.get how to get the last secong window in selenium (get window handles) how to select mulptiple values in drop downs swap numbers between without...
read moreA list of questions asked in a QA Engineer interview covering topics such as Selenium, Java, and TestNG.
Accessing Amazon page without using driver.get
Getting the last second window in Selenium using getWindowHandles()
Selecting multiple values in drop downs
Swapping numbers without using a third variable
Working with collections and strings
Removing spaces in a string
Printing words in a sentence on separate lines
Understanding exceptions and using throw vs throws
Working with inter...read more
Q2. What is Testng and how it is helpful to the project
TestNG is a testing framework for Java that helps in organizing and running test cases efficiently.
TestNG allows for grouping of test cases, prioritizing them, and running them in parallel.
It provides annotations for setting up preconditions and postconditions for test cases.
TestNG generates detailed test reports and logs for easy debugging and analysis.
It supports data-driven testing using parameters and data providers.
TestNG integrates seamlessly with build tools like Maven...read more
Q3. How to use request specification using rest assured
Request specification in Rest Assured is used to define the request details like base URI, path, headers, etc.
Create a RequestSpecification object using given() method
Set base URI using baseUri() method
Set path using basePath() method
Add headers using header() method
Add query parameters using queryParam() method
Example: given().baseUri("https://api.example.com").basePath("/users").header("Authorization", "Bearer token").queryParam("name", "John")
Q4. Write a program to reverse a string with using any string functions
Program to reverse a string without using string functions
Create a function that takes a string as input
Initialize an empty string to store the reversed string
Iterate through the input string in reverse order and append each character to the new string
Return the reversed string
Q5. What are the frameworks you have worked on?
I have worked on various testing frameworks such as Selenium, JUnit, TestNG, and Cucumber.
Selenium
JUnit
TestNG
Cucumber
Q6. Explain serialisation and de serialisation in API automation
Serialisation is the process of converting an object into a format that can be easily stored or transmitted, while deserialisation is the reverse process.
Serialisation is used to convert complex data structures into a string format that can be sent over a network or stored in a file.
De-serialisation is the process of converting the serialized data back into its original form.
In API automation, serialisation is often used to convert request and response data into JSON or XML f...read more
Q7. Explain couple of best practices you have implemented
Implemented automated testing and code reviews for better quality assurance
Implemented automated testing using Selenium for regression testing
Introduced code reviews to catch bugs early in the development process
Utilized continuous integration tools like Jenkins to automate testing processes
Q8. Explain OOps concepts
Object-oriented programming concepts focus on creating objects that interact with each other to solve complex problems.
Encapsulation: Bundling data and methods that operate on the data into a single unit (object)
Inheritance: Allowing a new class to inherit properties and behavior from an existing class
Polymorphism: Objects of different classes can be treated as objects of a common superclass
Abstraction: Hiding the complex implementation details and showing only the necessary ...read more
Q9. Explain OOPS Concepts in java?
OOPS concepts in Java refer to the principles of Object-Oriented Programming such as Inheritance, Encapsulation, Polymorphism, and Abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Polymorphism: Ability of a method to do different things based on the object it is acting upon.
Abstraction: Hiding the implementation details and showing only the necessa...read more
Top HR Questions asked in Viral Mafia
Interview Process at Viral Mafia
Top QA Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month