Add office photos
CGI Group logo
Engaged Employer

CGI Group

Verified
4.0
based on 4.6k Reviews
Video summary
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Automation Engineer
Clear (1)

CGI Group Automation Engineer Interview Questions and Answers

Updated 4 Sep 2024

Q1. what framework you are using in your project?

Ans.

We are using the Selenium framework for automation testing in our project.

  • Selenium is a popular open-source automation testing framework

  • It supports multiple programming languages like Java, Python, C#, etc.

  • Selenium WebDriver is used for automating web applications

  • It provides features for browser automation, testing across different browsers, and parallel test execution

Add your answer
right arrow

Q2. how to handle multiple tabs in selenium

Ans.

Handling multiple tabs in Selenium involves switching between tabs and performing actions on each tab.

  • Use getWindowHandles() to get a set of window handles

  • Switch to a specific tab using switchTo().window(handle)

  • Perform actions on the tab

  • Close the tab if needed using driver.close()

Add your answer
right arrow

Q3. why we use try and catch

Ans.

Try and catch blocks are used in programming to handle exceptions and prevent the program from crashing.

  • Try block is used to enclose the code that might throw an exception

  • Catch block is used to handle the exception thrown in the try block

  • It prevents the program from crashing and allows for graceful error handling

  • Can also include finally block to execute code regardless of whether an exception is thrown

Add your answer
right arrow

Q4. difference between findelement and findelements

Ans.

findelement returns the first matching element on a webpage, findelements returns a list of all matching elements.

  • findelement returns a single WebElement, findelements returns a list of WebElements

  • findelement throws NoSuchElementException if no element is found, findelements returns an empty list

  • Example: driver.findElement(By.id("exampleId")) vs driver.findElements(By.className("exampleClass"))

Add your answer
right arrow
Discover CGI Group interview dos and don'ts from real experiences

Q5. Explain about the framework structure

Ans.

Framework structure refers to the organization and layout of the automation framework components.

  • Framework structure includes modules, libraries, test scripts, configuration files, and test data.

  • It follows a hierarchical structure with layers such as driver scripts, reusable libraries, and test cases.

  • Frameworks can be structured as linear, modular, data-driven, keyword-driven, or hybrid.

  • Example: In a data-driven framework, test data is separated from test scripts for easy mai...read more

Add your answer
right arrow

Q6. what is inheritance

Ans.

Inheritance is a concept in object-oriented programming where a class can inherit attributes and methods from another class.

  • Allows a class to inherit attributes and methods from another class

  • Promotes code reusability and reduces redundancy

  • Creates a parent-child relationship between classes

  • Derived class can access the properties and methods of the base class

  • Example: Class 'Car' can inherit from class 'Vehicle'

Add your answer
right arrow

Q7. explain about hashmaps

Ans.

Hashmaps are data structures that store key-value pairs and allow for efficient retrieval of values based on keys.

  • Hashmaps are also known as dictionaries, maps, or associative arrays.

  • They use a hash function to map keys to indices in an underlying array.

  • Hashmaps offer constant-time average case complexity for insertion, deletion, and lookup operations.

  • Example: HashMap map = new HashMap<>(); map.put("key", 123); int value = map.get("key");

Add your answer
right arrow

More about working at CGI Group

Back
Awards Leaf
AmbitionBox Logo
Top Rated Company for Women - 2024
Awards Leaf
Awards Leaf
AmbitionBox Logo
Top Rated IT/ITES Company - 2024
Awards Leaf
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos

Interview Process at CGI Group Automation Engineer

based on 3 interviews
Interview experience
3.0
Average
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Automation Engineer Interview Questions from Similar Companies

HCLTech Logo
3.5
 • 10 Interview Questions
View all
Recently Viewed
SALARIES
Yalamanchili Software Exports
DESIGNATION
SALARIES
Novac Technology Solutions
INTERVIEWS
CGI Group
No Interviews
SALARIES
Novac Technology Solutions
SALARIES
Yalamanchili Software Exports
No Salaries
SALARIES
Novac Technology Solutions
SALARIES
Novac Technology Solutions
SALARIES
Yalamanchili Software Exports
INTERVIEWS
CGI Group
No Interviews
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

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