Add office photos
Employer?
Claim Account for FREE

Carelon Global Solutions

4.0
based on 2.8k Reviews
Filter interviews by

Viral Mafia Interview Questions and Answers

Updated 19 Sep 2024
Popular Designations

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 more
Ans.

A 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

Add your answer

Q2. What is Testng and how it is helpful to the project

Ans.

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

Add your answer

Q3. How to use request specification using rest assured

Ans.

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")

Add your answer

Q4. Write a program to reverse a string with using any string functions

Ans.

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

Add your answer
Discover Viral Mafia interview dos and don'ts from real experiences

Q5. What are the frameworks you have worked on?

Ans.

I have worked on various testing frameworks such as Selenium, JUnit, TestNG, and Cucumber.

  • Selenium

  • JUnit

  • TestNG

  • Cucumber

Add your answer

Q6. Explain serialisation and de serialisation in API automation

Ans.

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

Add your answer

Q7. Explain couple of best practices you have implemented

Ans.

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

Add your answer

Q8. Explain OOps concepts

Ans.

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

Add your answer

Q9. Explain OOPS Concepts in java?

Ans.

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

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Viral Mafia

based on 4 interviews in the last 1 year
2 Interview rounds
Technical Round
HR Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top QA Engineer Interview Questions from Similar Companies

3.9
 • 13 Interview Questions
4.8
 • 13 Interview Questions
3.9
 • 12 Interview Questions
3.8
 • 11 Interview Questions
4.9
 • 10 Interview Questions
3.8
 • 10 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter