EPAM Systems
Brandlytics Media & Technologies Interview Questions and Answers
Q1. What is the process to find duplicate names from a string array and print those that start with the letter 'B'?
Identify and print duplicate names from a string array that start with 'B'.
1. Create a string array with names, e.g., ['Bob', 'Alice', 'Bill', 'Bob', 'Bobby'].
2. Use a HashMap or dictionary to count occurrences of each name.
3. Iterate through the array and check for names starting with 'B'.
4. Print names that have a count greater than 1, e.g., 'Bob' and 'Bill' if they are duplicates.
Q2. What is the output of below code public class Test { public static void main(String[] args) { int I = 0; try { throw new NullPointerException(); // Exception is thrown } catch (Exception e) { I++; } finally { +...
read moreQ3. Have you worked with custom exceptions? What exceptions have you encountered, and can you explain what a StaleElementReferenceException is?
Q4. What is the difference between regression testing and smoke testing?
Regression testing checks existing features after changes, while smoke testing verifies basic functionality post-deployment.
Regression testing ensures that new code changes do not adversely affect existing functionalities.
Smoke testing is a preliminary test to check if the basic functions of an application work.
Example of regression testing: After a new feature is added, testing all existing features to ensure they still work.
Example of smoke testing: After a new build is dep...read more
Q5. What is the background of Behavior Driven Development (BDD)?
BDD is a software development approach that enhances collaboration between developers, testers, and non-technical stakeholders.
Originated from Test Driven Development (TDD) to improve communication.
Focuses on defining behavior in simple language, often using Gherkin syntax.
Encourages collaboration through examples and scenarios, e.g., 'Given a user is logged in, when they click logout, then they should see the login page.'
Tools like Cucumber and SpecFlow facilitate BDD by all...read more
Q6. What tags have you used in the runner class?
In a runner class, tags help organize and filter test cases for execution in automation testing frameworks.
Tags are used to categorize tests, e.g., @smoke, @regression.
They allow selective execution, e.g., running only @smoke tests.
Tags can be combined, e.g., @regression and @critical.
In Cucumber, tags are specified in the feature file, e.g., @login.
In TestNG, tags can be implemented using groups in XML configuration.
Q7. What are the annotations used in TestNG?
TestNG annotations are used to define test methods, configuration, and grouping in automated testing.
@Test: Marks a method as a test method. Example: @Test public void testMethod() {}
@BeforeSuite: Executes before the entire test suite. Example: @BeforeSuite public void setupSuite() {}
@AfterSuite: Executes after the entire test suite. Example: @AfterSuite public void teardownSuite() {}
@BeforeTest: Executes before any test method in the specified test tag. Example: @BeforeTest ...read more
Q8. Explain the waits and write code for explicit wait
Waits in automation testing manage timing issues between code execution and web element availability.
Implicit Wait: Sets a default wait time for the entire session. Example: driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
Explicit Wait: Waits for a specific condition to occur before proceeding. Example: WebDriverWait wait = new WebDriverWait(driver, 10);
Fluent Wait: Similar to explicit wait but allows polling at regular intervals. Example: new FluentWait<>(dri...read more
Interview Process at Brandlytics Media & Technologies
Top Qa Automation Testing Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month