• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

SoftwareTestingo - Jira Selenium Protractor Testing SDLC Agile Methodology

Java Selenium Tutorial & Testing Interview Questions

  • Home
  • Interview Questions
  • Java
  • Java Programs
  • Test Cases
  • Selenium
  • Manual Testing
  • Difference
  • Search
SoftwareTestingo » Interview Questions » CTS Cognizant Interview Questions For Testers

CTS Cognizant Interview Questions For Testers

Last Updated on: January 4, 2021 By Softwaretestingo Editorial Board

Cognizant Technology Solutions Overview

  • www.cognizant.com
  • Teaneck, NJ (US)
  • 10000+ employees
  • 1994
  • Public (CTSH)
  • Consulting
  • ₹500+ billion
  • Accenture

What We Are Learn On This Post

  • Cognizant 2nd round Interview Questions
  • Cognizant Bangalore 4yr Experience Position
  • Cts (Cognizant) Bangalore Selenium Java Profile ( Sep – 2019)
  • CTS Interview Questions Shared By Sayed
  • Cognizant Interview Questions For Manual Testing
  • CTS Cognizant First Round Program Questions [29/06/19]
  • CTS May 2019 Selenium Interview Questions
  • Latest CTS Testing Interview Questions
  • CTS Interview Questions For 1-3 yrs Experience
  • Cognizant Hyderabad Selenium java InterviewExperience 2Years
  • Cognizant Experience Testing Interview Questions
  • CTS Cognizant F2F Interview Questions for 2 to 5 Years
  • CTS Cognizant Interview Questions For Java Selenium Testers
  • Cognizant  Selenium WebDriver Interview Questions
  • Cognizant Chennai Technical testing Questions
  • CTS Automation Testing Interview Questions for 4 plus experience
  • Cognizant Selenium Interview Questions & Answers
  • CTS Cognizant  Selenium Interview Questions – May  2018
  • Cognizant Selenium Questions
  • Cognizant interview questions – May 2018
  • CTS Cognizant Hyderabad Interview Questions
  • CTS Cognizant Manual Interview Questions
  • CTS Cognizant Latest Interview Questions
  • CTS Cognizant Interview Questions For Freshers
  • CTS Technical Round Interview Questions
CTS Cognizant Selenium Automation Interview Questions: In this post, we are share and update regularly the latest interview questions of CTS Cognizant testing both manual and automation interview questions updates. for more updates visit regularly our blog for more updates.

Cognizant 2nd round Interview Questions

  • About urself
  • Tell Cucumber options
  • Hooks in cucumber
  • Cucumber reports
  • Why Background keyword used
  • About Git –command you can use to write a commit message?
  • How to resolve conflicts while committing code
  • How to get a particular branch code from git
  • Pull, push, fetch, and other commands
  • BitBucket
  • Program to retrieve Excel data
  • Which jar ur using for Excel
  • Properties file – how to retrieve data from property file code syntaxes
  • Collections(HashMap lo put anedi lekapothe em vadatav)
  • Set, List – difference (how you used in selenium)
  • Abstract and encapsulation difference
  • Interface and Abstract class difference and what keywords used for both in order to inherit?
  • ‘if we don’t want to change the variable value then what should we use – final keyword
  • A class with a parameterized constructor with 2 arguments(username, password). From the main class, how should you call this constructor?
  • Program: Web table with 3 columns and 4 rows. I need 2nd column rows to be sorted and get the 4th-row value
  • Steps to connect to DB and retrieve data from DB – Code steps
  • API – How to retrieve data for a child from parent tag
  • What are the exceptions faced while API testing

Cognizant Bangalore 4yr Experience Position

Written Test:

  • Print numeric values from the string
  • Print common elements from two arrays
  • Print possible combinations of a given string
  • Write the XPath based on first name and last name
  • Get all the values from the drop-down and print duplicates

First Round:

  • Swapping of two integer’s with and without using a third variable
  • About get request using rest assured framework by providing with URL JSON data and authentication and validate the proper response and particular value using key
  • Types of locators
  • Name some of the libraries in python as I have mentioned python in my resume.
  • Where do u maintain test data?
  • Bug tracking tool
  • Introduction

Second Round:

  • Reverse the string without using loops and without using predefined functions like string buffer or builder
    Ans: told in python
    After I said that we can do that in python he asked me to write that in a single line.
  • Print triangle pattern like 1,12112321 etc not remembered exact output but he asked about triangle pattern.
  • An array consists of the number of elements that may be repeated and not sorted also.

The output should be :

  • Pair two elements such that the difference in pair should be 1 and element once paired shouldn’t be paired with other elements.
  • Can we overload and override the main method?
  • Can abstract class have final private modifiers?
  • Can we extend the interface class?
  • Can we implement two interfaces?
  • What is the constructor and Types of constructors?
  • Explain oops concepts.
  • What is the use of constructor?
  • Can we write a static modifier in an abstract class?

Third Round:

  • Introduction
  • Explain the following and preceding sibling
  • How do you sort the list without using predefined methods?
  • Explain System.out.println
  • Explain webDriver driver = new chromeDriver()
  • Difference between rest and soap
  • How do u modify JSON data and also provide authentication for an API request?
  • Difference between Python and java
  • Get the particular element from the third row and third column in a web table if the rows and columns are changing dynamically when you refresh the page.
  • About SQL queries
  • What is a self join?
  • What left join
  • How do you automate API test cases?
  • How do you handle windows authentication popup?

Technical manager round:

  • Gone through the skills which I have mentioned in my resume.
  • Write the logic for the split function.
  • Sort the string-like India, Japan, Europe, etc in ascending order.
  • They asked me about status codes 504,204,400 and also some certifications used in security. as I have mentioned API testing in my resume.
  • Asked me about project-related questions

Source: FB Group

Cts (Cognizant) Bangalore Selenium Java Profile ( Sep – 2019)

Company Name: Cognizant (CTS)
Experience Level: 2 Years
Location:  Bengaluru
Mode: F2F
Rounds: 2 rounds
Date: Sep – 2019

First Round:

  • Features of Java.
  • Explain four pillars of OOPS.
  • What is static and non-static?
  • What is the final keyword?
  • DIfference between this and super?
  • What is the difference between length and length() in Java?
  • What is an abstract class?
  • What is the interface?
  • DIfference between List and Set?
  • What is the use of the Map?
  • How do you launch a browser in Selenium?
  • How to delete cookies?
  • Write a program to find the duplicates in an array.
  • There is an array of numbers and a number key. The array contains that key. Rearrange array in an order where left side elements of a key are smaller than key and right side elements are greater than key.

Second Round:

  • Annotations in TestNG
  • Which reporting tool you used in Framework?
  • Explain the flow of your framework?
  • What is your contribution to your framework?
  • What is StaleElementException?
  • What are the waits available in Selenium?
  • Limitations of Selenium?
  • If not Selenium, which tool you will prefer?
  • Difference between Actions and Action?
  • How do you handle keystrokes in Selenium?
  • How do you handle alerts in Selenium?
  • You have a link to the main window. When you click on that link, it opens 3 new windows. One of the windows consists of an iframe. How you will navigate there?
  • There are five tabs on the home page of a Website. You need to navigate to each tab and verify the page is loaded. Write optimal logic.
  • What is dry run in Cucumber?
  • Annotations in Cucumber

Interviewers asked questions from Java and Selenium. Both rounds were 45 minutes long. First-round consists of Java questions mainly. The second round focused on Selenium.

Source: Makeseleniumeasy

CTS Interview Questions Shared By Sayed

  • What are Different types of locators are available in selenium?
  • What are the severity and priority?
  • Explain your framework
  • Difference between findElement and findElements
  • Write sorting program
  • Write Swapping of numbers
  • What is a retrospective meeting?
  • Write dynamic x path
  • Explain about the bug life cycle and if the developer is not accepting that bug then who to resolve that issue
  • Without having attribute write the XPath for text
  • Why string is immutable
  • Why you are using a file buffer reader

Source: SoftwareTestingo Comment

Cognizant Interview Questions For Manual Testing

  • Brief about urself?
  • Explain about automation cycle?
  • Explain the automation framework?
  • How do you handle multiple windows?
  • How do you handle alert popups?
  • How do you handle frames?
  • Explain about oops concepts?
  • What is the difference between collections and ArrayList?
  • What is the difference between the list and set?
  • What is the difference between the final and the finally?
  • Where do you store this framework?
  • Where do you store the script and data regarding the framework?
  • Where do you write the test cases?
  • Where do you create the framework?
  • Automation test life cycle
  • Where do you store the framework related data?

CTS Cognizant First Round Program Questions [29/06/19]

Thanks To Sagarika, for Sharing the interview Questions. She is attending for the QA position at Cognizant company [manyata tech park Bangalore]. If you want to share like her then you can comment in the comment section or you can use our contact us page. The First round is the programming round and here are the questions:

  • Write a method that returns boolean to check elements present on a webpage.
  • Program-related to webtable.
  • Write a program using a hashmap to add and retrieve data and print it in the console.
  • Write a program using exception handling to click on a button.

CTS May 2019 Selenium Interview Questions

  • Issues faced in ie browser
  • Write code for scroll horizontally
  • Write a code for handling multiple windows that has an upload option in the second window
  • Have u used an action class? Where u have used Action class? Write code for the same
  • What is multilevel inheritance? Where u have used in your framework
  • Difference between JUnit and TestNG
  • How do u perform parallel testing in TestNG?
  • Explain ur role in the current project
  • What about your productivity
  • When will u do regression testing?
  • How will u start work when there is a story assigned to u
  • What is a retrospective meeting?
  • If a sprint is 2 weeks, what about the automation life cycle

Latest CTS Testing Interview Questions

  • What is the test design you have used to write test cases?
  • Explain SDLC?
  • What are your roles and responsibilities for automation?
  • Why Set<Iterator> you have used for handling window Handles
  • What kind of dependencies you have added in the Maven and for what
  • Explain driver.getWindowHandles() in detail,how it will function.
  • what is the glue in BDD cucumber?
  • How you do parallel testing in BDD cucumber?
  • Explain the Maven Install command in Maven?

Latest Updated on 03.03.2019

CTS Interview Questions For 1-3 yrs Experience

Exp- 1-3 yrs
Here are the Questions

Selenium Questions

  • Tell me about your roles and responsibilities.
  • What framework u use. (We use DataDriven, told the same).
  • Explain your framework.
  • What jars you use for data-driven (We use apache poi to read and write to excel.)
  • What is @DataProviders
  • Tell me some more annotations in TestNG
  • What is Maven and how u use it in your project?
  • How u use Jenkins in your project.
  • Questions about XPath.
    Scenario: when we have many same Xpaths and we need to select a particular one. what we do.
  • Questions about window handles and Iframe.
  • Questions about JS executor
  • How you can scroll using JS.
  • What is the Page Object Model? How are you using it in your project?
  • How you take a screenshot of the failed test case?
Read Also: Severity and Priority examples

Java Questions

  • What is Abstraction? How to achieve abstraction.
  • Explain public static void main()
  • Difference b/w List & set, HashSet & Hashtable,throw & throws,checked & unchecked exceptions
  • How you do customize sorting in HashSet.
  • Final vs finally vs finalize
  • What are the different types of polymorphism?
  • What is the diff b/w WebDriver Listener and TestNG Listener
    Ans: Both are an interface but WebDriver listener is triggered when you call webdriver methods like findElement, click, etc example-afterClickOn; beforeFindBy. TestNG Listener is triggered when TestNG methods are executed such as onTestFailure onFinish.
  • Explain about API restful automation?
  • What is get, post in rest API?
  • FrameWork and advantage of PageFactory classes
Read Also: SVN interview questions

Cognizant Hyderabad Selenium java InterviewExperience 2Years

1st technical round:

  • Tell me about yourself
  • What are the selenium components and which components are you using?
  • How do you inspect elements?
  • What are those locators?
  • Write syntax for XPath?
  • Write a syntax to initialize the webdriver?
  • Explain absolute and relative XPath with an example
  • Explain your project and framework
  • How do you get the data from the excel sheet?
  • Where do you use java in selenium webdriver
  • What is oops?
  • Explain abstraction concept with an example
  • Explain inheritance concept with an example
  • Explain method overloading and overriding with an example
  • Example inheritance with an example
  • What is an interface? Explain with a live example
  • Write a basic selenium script
  • Explain the defect life cycle
  • Write a syntax to select a value from the drop-down
  • Write syntax to get the text from the table
  • What are hashmap and HashSet? Explain?
  • Where do you use a hashmap?
  • What is the exception you get in selenium?
  • What is implicitly wait, explicitly wait, webdriver wait, Thread.sleep
  • Write syntax for the webdriver wait
  • Difference between implicitly, explicitly, webdriver wait and thread sleep
  • Which framework are you using in your project?
  • Are you using any integration tools?
  • What is Jenkins?
  • Where do you upload test results?
  • What is retesting and regression testing?
  • What is smoke testing?
  • How do you get to know if the developer has fixed the issues or not?
  • What are the roles and responsibilities?
  • Which java &amp; selenium version are you using?
  • How do you handle if XPath is changing dynamically?
  • Have you ever written test cases in your projects?
  • Asked Some selenium questions

Cleared the first round and qualified for the 2nd technical round

Check Also: Infostretch Interview Questions

2nd technical round:

  • Tell me about yourself
  • What is performance testing? ( I have mentioned in my resume )
  • For which functionality you did performance testing in your project?
  • What is the response time?
  • Which language do you use for appium testing? ( I have mentioned in my resume)
  • Did you write test scripts for mobile automation?
  • Can we use the same code in the appium which is developed for the web app?
  • What is Jenkins?
  • What is the layout in Jenkins?
  • What is GIT & SVN?
  • Difference between GIT & SVN
  • Does Jenkins require a local system for CI?
  • Asked some basic java questions

Cleared 2nd round and qualified for HR round

Filled application form which contains education details, current employment details, CTC details, Address, pan, Aadhar number, phone number & email

3rd round: HR

  • Can you introduce yourself?
  • What are the tools you know except selenium?
  • Where is your company located?
  • Where do you live?
  • Where are you from?
  • Graduation details, when did you join your current organization? Notice period?
  • You are expecting CTC ** okay fine.

Cognizant Experience Testing Interview Questions

  • Core Java concepts with examples in your framework? like interface, abstraction method overloading and overriding
  • Why ArrayList instead of an array?
  • WAP to find out the second minimum and second maximum numbers from an array without sorting the array?
  • How You debug your code manually or using any automation for that?
  • Duplicate elements in a string program?
  • Which type is used in collections to add all the primitive data types?
  • Manual testing concepts like bug life cycle, an agile methodology which is following in your organization?
  • Explain the architecture of your framework and why that approach was taken instead of others?
  • What u implemented in Ur framework (native selenium API methods or page classes or reporting like questions)
  • What is the future of selenium?
  • Why cucumber and concepts from BDD framework basics
  • Questions on version controlling (svn or git) basics

CTS Cognizant F2F Interview Questions for 2 to 5 Years

FACE to FACE Interview Questions
  • Super most class for error and exception
  • How to fetch data last row from webtable. (webtable is Dynamically changing)
  • Difference between hashmap and hash table
  • How to configure proxy explicitly.
  • What do you do on a daily basis?
  • How to validate the colors in selenium
  • How to handle Ajax UI.
  • How do you manage both manual and automation?
  • How do you handle dynamic web elements?
  • Upload file using Auto-It.
  • More questions on BDD cucumber-like Datatable vs scenario outline.
  • Hooks and tags
  • Explain the project framework

The Client Round interview Questions

  • How to handle merge conflict in GiT
  • Selenium grid
  • Oops concept
  • Pom
  • BDD
  • Data table vs scenario outline with example keyword
  • Normal scenario vs scenario outline
  • Parallel execution
  • Agile concepts.
  • Story estimation.
  • How to handle Duplicate feature file

CTS Cognizant Interview Questions For Java Selenium Testers

  • What are the class and objects?
  • How to call a function of a class without creating an object?
  • what is Encapsulation, Abstraction?
  • What is Abstract class and Interface? Difference b/w them?
  • what is polymorphism?
  • Diff b/w list and set?
  • what is HashMap?
  • Diff b/w Array and ArrayList?
  • How to synchronize collection classes?
  • How to reverse a string? write code
  • How to Verify palindrome or not?
  • what is inheritance?
  • what is overloading and overriding?
  • Diff b/w normal method and a static method?
  • Diff b/w String and StringBuffer?
  • why main() is declared as static?
  • Diff b/w while and do-while?
  • what is the use of sleep()?
  • what is an Exception? How to handle Exceptions?
  • How to find duplicate characters from a given string?

IMP concepts in JAVA for the interview:

  • String class and its functions
  • Collections

Cognizant  Selenium WebDriver Interview Questions

  • How to read data from Excel? asked to write sample code
  • Diff b/w selenium RC and web driver?
  • which selenium web driver version you have used in your project?
  • what is JavascriptExecuter?
  • How to find Invisible elements on a web page? write sample code
  • How to verify whether an element is present or not on a web page? write code
  • How will you generate reports in your project?
  • How to generate logs?
  • what is POM?
  • How to handle dynamically changing ids/elements?
  • Diff b/w Assert and Verify?
  • What are XPath and its types?
  • what are the methods you have seen in XPath?
  • How to generate dynamic XPath?
  • What are the types of waits in selenium webdriver?
  • How to handle multiple windows/frames(switching b/w windows, frames)?
  • what is Automation? why Automation? when to start Automation? how to identify which scenarios to be automated?
  • How to select a value in the DropDown list? what are the different ways to select?
  • what is a Select class? when to use?
  • what is the Alert interface? when to use?
  • what are click(),sendKeys(),findElements() methods?
  • How to read Properties file in selenium?
  • How to upload files in selenium?
  • How to handle popup windows?
  • How to handle Mouse hover?
  • How to handle duplicate elements?
  • What are the Actions class and its methods?
  • How to perform the Drag and Drop operation?
  • How to capture screenshots in webdriver? write code
  • Tell me some Exceptions you have faced in selenium? How you handle them?
  • What are the Framework and its advantages?
  • what is the Hybrid framework, Data-Driven framework, KeyBoard Driven framework?
  • what is the Selenium Grid?
  • What is TestNG?and its annotations?
  • what is @dataProvider annotation? what is the return type of this annotation?
  • Explain your project framework architecture?
  • what are the difficulties/challenges you have faced while Automation?
  • Have integrated selenium with other tools like Maven, Jenkins, etc..?
  • Have you conducted cross-browser testing using TestNG?
  • How to conduct cross-browser testing Parallels in TestNG?
  • What is parameterization in TestNG?
  • Have you involved in your project framework development?
  • How to handle internationalization using selenium webdriver?
  • what are SDLC and STLC?
  • what are the defects you have found while automating your application?
  • what is the Defect life cycle?
  • Your Roles in the project?
  • write a code to open an application in the firefox browser?
  • write a code to read data from excel?
  • what is a maven?
  • Which framework have you used in your project?

IMP concepts in selenium webdriver for an interview:

  • XPath’s
  • Your project framework
  • TestNG

Cognizant Chennai Technical testing Questions

  • How do you get the text value from the drop-down
  • How to get all the links from the webpage
  • How do you manage reports in your framework
  • Explain abt parallel testing
  • Difference between before test and before a method
  • Difference between interface and abstract class
  • What is data binding

CTS Automation Testing Interview Questions for 4 plus experience

Cognizant Selenium Automation Testing Interview Questions:

1st Round

  • About yourself
  • Write down your project framework structure
  • What is POM.xml
  • What are the annotations in TestNG and it’s the sequence
  • When your @BeforeSuite will execute?
  • How to do grouping in TestNG?
  • Difference between ImpliciteWait and Explicit wait.
  • Suppose one element is there, which will appear after 20 sec. We have given an explicit wait of 10 sec to that element and an implicit wait of 20 sec in that class, then what will happen? will it show an exception or what?
  • How to prioritize the TestNG classes using testng.xml? How many ways to do it?
  • Write down any test script that you are currently working on in your company.
  • Difference between Abstract class and Interface
  • What are the Access specifiers in Java?
  • Difference between Default and Protected
  • Write down the hierarchy of collection
  • Difference between Map and Set. Additional questions related to Map and Set
  • What are the Testing levels and in which role you are currently?
  • Do you know about BDD?

2nd Round:

  • Given one String like “My name is ABC” and asked to reverse “ABC is named My”
  • Given 3-4 scenarios, like password should accept 6-10 character, only one Alphabet asked to write down the Regular Expression
  • How to find the broken links on the web page, asked to write it on paper
  • What is encapsulation?
  • What is Abstraction?
  • Where did you use Abstract class in your project and why didn’t you go for Interface?
  • Difference between Abstract class and Interface
  • Difference between Access specifier and Access modifier
  • Can we write only concrete methods in Abstract class?
  • If we can write only concrete methods, why to declare it as abstract?
  • Can we have a Constructor in Abstract class?

Cognizant Selenium Interview Questions & Answers

  • Explain ur framework
  • Difference between interface and abstract
  • Write a program to print a pyramid
  • Write selenium script to login
  • What is assert
  • Assert vs verify
  • Iframe
  • Switch between frame

CTS Cognizant  Selenium Interview Questions – May  2018

  • What is a string? Write code to reverse the string as mentioned in the output?
    Given String: Selenium Web driver is an open-source tool
  • Output String: tool source open is Web driver Selenium
  • Write code to print the given pattern?
    1 2 3 4 5 6 7
    1 2 3 4 5 6
    1 2 3 4 5
    1 2 3 4
    1 2 3
    1 2
    1
  • Write code to print “A1B2C3D4E5………..Z26”?
  • Why string is immutable in nature?
  • What is the difference between Final, Finally & Finalize?
  • Write a code to print the missing numbers between five inputs provided by the user at runtime using scanner class?
    Example: With the help of Scanner class, we have to take five inputs(u can take any random number) Like 5, 45, 50, 52, 91
    Now you have to print the missing numbers between all the numbers. Like 6 to 44 then 46 to 49 than 51 than 53 to 90.
    But if the user entered the number, not in any order Like 5, 2, 98, 50, 16
    so first you have to sort it in some order & then print the missing numbers
  • What is the difference between the array & array list?
  • What is the difference between hashmap & linked hash map?
  • What is the difference between String, String buffer & String Builder?
  • What is the difference between interface, class & abstract class?
  • Can an interface have a concrete class?
  • What is a Checked & Unchecked exception?
  • How to handle checked exceptions?

Cognizant Selenium Questions

  • How to launch browsers(IE,  Chrome & Mozilla). write code?
  • Write code to establish a JDBC connection?
  • How to read a .txt file? Write code?
  • How to read a property file & excel file? Write code?
  • What is a TestNG framework? what are the features of the TestNG framework?
  • What is the listener in TestNG? List those listeners which you used in your company?
  • Write code to take the screenshot?
  • How to perform parameterization?
  • Explain your last company project framework?
  • What is the Page Object Model(POM)? what is the advantage and disadvantage of POM?
  • What is the Page factory? How to create an object of the class using page Factory class, Write code?
  • What is Alert, frame in selenium web driver? Write code?
  • How to refresh the web page?
  • What is the difference between get() & navigate().to() method?
  • What is Maven?
  • What are the dependencies in Maven? Tags in the POM.xml file for adding dependencies?
  • What is a repository in Maven? Types?
  • What is the Cucumber framework?
  • What is the feature file & step definition in cucumber?
  • What are tags & hooks in cucumber?
  • What are the keywords used in the feature file? What is the use of the keyword “background” in a feature file?
  • How to run a test case for multiple data in cucumber? how to pass multiple data for a test case in step definition?
  • How to run test cases for more than one tag name in cucumber?

Manual Questions:

  • Difference between regression & retesting?
  • If you have 500 test cases to execute. and in a week, you can execute only 100 test cases. And you have only 3 weeks to execute all the test cases. and all are critical in nature. So what will be the approach?
  • What is agile?

General Question:

  • Introduce yourself?

Cognizant interview questions – May 2018

  • Why you use static keywords in Java?
  • Write a method to print hello and call it from the main method?
  • Write a program to print the values of an array using any loop?
  • What is the difference between FOR and FOR each loop?
  • What is the difference between static and instance variables?
  • What is function overloading? Can we overload the main method?
  • What do public and void mean in public static void main()?
  • Why do we write a string[]args in the main method?
  • Can we keep any name instead of args?
  • Can we write [] in front like  []a?
  • What will be the output of FOR loop
    For(sopln”welcome”; sopln”to”;sopln”java”)?
  • What is a string class? Why is the string called immutable?
  • What is the string buffer class?
  • Write code to read data from excel?
  • What is the difference between findelements and findelement?
  • Will findelements throw an error when the element is not found?
  • What is an explicit wait?
  • What is a fluent wait?
  • Different explicit wait conditions in selenium?
  • Can we write our own conditions for explicit wait??
  • What is the difference between smoke and sanity testing?
  • What is Kanban?
  • Which agile methodology do you use?
  • Who is the one who leads the agile team?
  • What is the difference between product backlog and sprint backlog?
  • What do the product owner and scrum master do?
  • What is web services testing?
  • Which testing have you performed?
  • Soap and UI testing?
  • Different types of HTTPS code?
  • What does 1 series stand for similarly 2,3 and 4 series in HTTPS code stand for?
  • Write a program for factorial?
  • Write a program to find prime no. Or not?
  • All string related programs are asked?
  • What is the difference between smoke and sanity testing?
  • What is regression testing?
  • What is exploratory testing?
  • What have you used JIRA for only logging defects or other tasks to have u performed?
  • Explain the framework you have used?
  • What is your role in this framework explain it in detail?
  • Whats is build.xml?
  • What is the port no? We use and why is it used?
  • Appium related queries?
  • TestNG related questions
  • Data providers?
  • 3 Scenarios are given we need to write code to automate it?
  • Where did u use the collection in your project?
  • Where did u use the hashmap in ur project?
  • Where did u use multithreading in ur project?

CTS Cognizant Hyderabad Interview Questions

  • How to switch from frame to main window tel syntax?
  • What is the difference between pom and page factory?
  • Where does automation fit into the testing flow?
  • What are the challenges that you faced while automating test cases?
  • Scenario: there is a submit button on the page it has an id property. by using id we got element not found an exception, how will you handle this situation. what might be the problem in this case.
  • Scenario: if the submit button contains one of 3 frames on a page, how will you handle this?
  • If an element is loaded by taking much time how to handle this situation in selenium.
  • What is the problem with thread.sleep in code?
  • What is the concept of the selenium grid?
  • When we execute test cases in the grid where results will be stored in node or hub?
  • Difference b/w quit and close.
  • Scenario: manually u opened a firefox browser window with Gmail login, now with selenium you opened a firefox browser window with Facebook login. what happens when we use the quit method? will it close all windows including Gmail one?
  • What all annotations used in TestNG in ur project?
  • If we wanna do data-driven with testng what are all annotations required?
  • Is it possible to pass test data through a testng.xml file, if yes how?
  • How to run specific kinds of test cases using TestNG?
  • How to prioritize test cases in TestNG?
  • What are all interfaces available in selenium?
  • Actions are class or interface?
  • Why are we using TestNG? what are the benefits we get using TestNG? cant we execute test cases in order without using TestNG?
  • Explain polymorphism in java.
  • Scenario: der are two methods in the same class with the same name with different arguments and different access modifiers. like
    public void m1(int a){}
    private void m1(string b){}
    is it overloading or not?
  • What are the types of inheritance in java?
  • Is multiple inheritances is possible in java? tel reasons.
  • Is multi-level inheritance is possible in java? give reason.
  • Scenario: There are 10 pages in the same window, an image is present on any page out of ten pages in the same window.
    how will you validate this scenario?
  • How to check the image is loaded correctly or not on the page?
  • Scenario: the same image is present on ten pages how do you check same the image present on each page or not. how will you validate this scenario?
  • What is the purpose of sikuli?
  • Is it possible to compare two images with sikuli?
  • How do you compare the image in some path of drive and image on the page?
  • Tell syntax for the sikuli code.
  • How to handle the file upload window in selenium?
  • Scenario: There are ten dropdowns on the page with the same name.. in one of the dropdowns I have an option called its employee how to select that particular option out of ten dropdowns on a page? what is your approach?
  • Write code for the DB connection.
  • Explain ur project structure and flow.
  • How do u handle exception handling in selenium?
  • Explain runtime and compile-time polymorphism.
  • Write a code for multiple handling windows.
  • Scenario: der is grid table 1st column contains links to the same names in all rows.
    The 2nd column contains the different names for those links present in the 1st column. now based on the 2nd column click on the required link in the 1st column how will you do it.
  • How do you handle synchronization in selenium?
  • How to generate user-defined exceptions, write syntax.
  • Difference between throw and throws keyword.
  •  Scenario:
    <table>
    <tr>
    <td>
    <td>
    now based on 2nd td tag find tr tag element. write xpath for it.
  • What is auto it? how will you execute auto it codes in selenium?
  • How to handle elements like Ajax?
  • How to handle elements which have no attribute inside the tag?
  • What is a protractor?
  • What are the locators present in the protractor?
  • Explain oops concepts.
  • Difference b/w sikuli and auto it.

CTS Cognizant Manual Interview Questions

  • Can you write a dynamic XPath
  • What framework is used in your project
  • Can you write a build.Xml
  • Write a query for self-join
  • A flex board is produced from the factory how do you test that
  • Write a code where there are 2 set’s of a key-value pair, print the value only if keys and values are the same
  • Have you worked on Unix?
  • What are the advantages of the pom framework in selenium?
  • As a QA engineer do you think knowing the backend process is important?
  • What is nonfunctional testing?
  • Using which keyword we acquire the behavior of one class to another class
Selenium Questions: IBM Selenium Interview Questions
  • Login page with Username, Password, confirm password, captcha, registration textboxes. Can we automate this page and how?
  • Difference between the read and readkey
  • OOPS concept, Abstract Class, and Interface
  • Difference between Assert and Verify
  • How to print the title and error message “User already exists” from a window popup
  • Difference between @BeforeClass & @BeforeTest
  • How to take the screenshot
  • Type of locators
  • Explain Selenium Grid
  • Automation Framework
  • How many jar files to be included in Selenium?
  • Supported browsers in Selenium
More Interview FAQ: Verifone Selenium Faq
  • How do you handle dynamics objects on a webpage?
  • How do you handle an untrusted SSL certificate in Webdriver?
  • What is the difference between the before method and beforetest?
  • How to verify a particular image and its size on a webpage? (Web page has got many images out of which you have select particular one)
  • What is the use of DesiredCapabilities in Selenium WebDriver?
  • How do you know the Remote m/c details? Like OS, browser details.
  • How do you find out active elements?

CTS Cognizant Latest Interview Questions

  • What are the POM frameworks and their advantage?
  • What is Maven (a bit in-depth)
  • Is it possible to interact with MS Office Package using Java?
  • How do U chk the file size (Ex if file size s 2MB)
  • There is a lengthy sentence,  and the length of the final output should be 3. How will you do it?
  • Question on Window Handles (switching b/w windows)
  • How to handle dynamic XPath
  • What is StringBuffer and StringBuilder?
  • What is a constructor?

CTS Cognizant Interview Questions For Freshers

  • SDLC  & STLC
  • Bug life cycle
  • Smoke and Sanity Testing
  • Regression testing,Functional,retesting,compatibility testing
  • About projects
  • Test plan and Test case selenium questions:-
  • Framework
  • Ant
  • Jenkins
  • XPath
  • How to integrate Jenkins with GitHub?
  • How to start the QC server?
  • Bug tracking tool
  • How to create a Graphical report?
  • write a code(script) for the given test case(around 10 to 15 lines code)
  • how to execute a parallel test case? (write code)
  • how to execute your script on chrome and IE? (code)
  • pop-ups and frames(some codes like how to handle a file download pop-up ) SQL:-
  • DDL, DML, TCL, DCL commands and query
  • view and index
  • joins
  • constrain (keys)
  • How to create a package and procedure in pl/SQL?

You Can Check the Latest Java Interview Questions For Java Interview. so just prepare yourself guys those who are searching for a job as an Experience ok. And don’t comment. Just prepare

CTS Technical Round Interview Questions

Core Java

  • Tell me the internal flow of the Set implementation class with one example
  • In HashMap if a hashing collision occurs then how to resolve it.
  • Can we add a duplicate in a set and map if yes why write one code?
  • Read data from file find the duplicate word and count them and sort them in descending order
  • Where to use Comparable and where to use Comparator did you ever used in your project
  • What is bubble sort can you write one program. .?
  • Can I write try to block single means without using try-catch or try-finally
  • What is the Executor framework?
  • How many ways we can create a thread and which one best approach and why
  • JDK version you are using in your project and why (be careful on that question coz they indirectly ask u the advantages of version or latest features added in New version )

JDBC

  • Difference between Statement and PreparedStatement
  • They give one DB schema and ask me to retrieve data from DB bypassing id

JSP

  • Life cycle
  • List down the implicit object
  • What is the use of the c tag library?

Spring

  • What is RowMapper when we have to use it write sample code not completely just give sm hints with flow
  • What is ResultSet Extractor where exactly we have to use
  • If in my Spring bean configuration file I configure the same bean with the same id 2 times then what is the problem and how to resolve it (contender)
  • Spring MVC Flow as per your Project
  • Spring transaction, why and how to work on it
  • How u handle Exception in your Project just give some brief idea on it with annotation

Web services

  • WSDL, what are the elements and just explain the role of each section verbally
  • What is Rest,
  • Difference between Soap and Rest
  • Write one Resource method using HTTP method Post
  • Which Response u provide to the presentation layer and how to bind JSON Response
  • Difference between @QuerryParm and @PathPatm which one best and where to use. ..

HR Round

  • Tell me about u. .not professional details just tell me personal details
  • Tell me about your payroll company
  • Expected CTC
  • Why that much any reason
  • Notice Period, is it negotiable?

About Cognizant

Cognizant is an American multinational corporation that provides IT services, including digital, technology, consulting, and operations services. It is headquartered in Teaneck, New Jersey, United States.

    Filed Under: Interview Questions

    Reader Interactions

    Comments

    1. Bikash says

      July 26, 2018 at 9:44 PM

      Mphasis Limited Selenium Java Interview – Interviewed on 26th July 2018

      1. Where you can use List, where you can use Map.
      2. How to iterate in an Array List.
      3. What is method overloading / Method overriding, Where you have implemented in Selenium Code.
      4. Tell the structure of the Framework.
      5. Have you involved in framework from scratch or just modifying the existing framework.
      6. Where you are keeping the project code locally or some other repository.
      7. What are the dependencies you have added while set up for your framework.
      8. What are the different annotations present in testNG.
      9. What is Polymorphism. Explain where you have implemented in your project.
      10. How to do re-execute the failed test-cases.
      11. Interface- how to achieve 100% multiple inheritance.
      12. What is the AutoIT & Sikuli.

      Reply
      • SoftwareTesting Blog says

        August 1, 2018 at 10:40 AM

        Thanks, Bikash for your contribution and make this community healthy

        Reply
    2. Bikash says

      July 26, 2018 at 9:45 PM

      Nokia – Interview on 24th July 2018
      1. What is WebDriver.
      2. What is single slash , double slash difference.
      3. Dif. between Implicit wait and Explicit wait.
      4. For right Click which method to be used.
      5. Kinds of locators, most preferred , why?
      6. What is Test Plan
      7. What are Abstraction, Inheritance, and Polymorphism.
      8. What is Method overriding?
      9. Have you involved in Test Estimation.
      10. Risk Mitigation Plan. Why it is necessary.
      11. What all types of testing a QA tester do?
      12. How to exclude a class from execution.
      13. If one test is not given with priority tag, and two others have given with priority tag then
      Tell the sequence of execution.
      14. If no priority is not there, the sequence of Execution if three methods are there.
      15. How many WebDriver to be instantiated for Cross browser testing.
      16. How much you rate in SQL- 2nd Highest Salary, Dif. bet del/drop/truncate.
      17. Framework Explanation.
      18. Given 1 minute – told me to think -different scenarios to be taken into consideration for testing.
      19. What is the Sanity Test & how do you do that. and how frequently.
      20. What are the types testing are there.
      21. If can skip a test method.
      22. Worked in any other automation tool.
      23. What purpose ALM you have used in your project.
      24. Dif. between String ,StringBuffer. Out of String Buffer & builder which one is thread safe.

      Reply
      • SoftwareTesting Blog says

        August 1, 2018 at 10:39 AM

        Thanks, Bikash for your contribution and make this community healthy

        Reply
    3. Sonali says

      February 13, 2019 at 4:56 PM

      Thanks For All CTS interview Questions

      Reply
    4. Syed says

      September 12, 2019 at 6:01 PM

      1.what is Different types of locators are available in selenium
      2.what is severity and priority
      3.Explain about your frame work
      4.Difference between find element and find elements
      6.Write sorting program
      7.Write Swapping of numbers
      9.whats retrospective meeting
      10.write dynamic x path
      11.explain about bug life cycle and if developer is not accept that bug then who to resolve that issue
      12.with out having attribute write the xpath for text
      13.y string is immutable
      14. y you are using file buffer reader

      Reply
      • Softwaretestingo Admin says

        September 12, 2019 at 6:05 PM

        Thanks, Syed For your contribution, also we update the list.

        Reply
    5. Ashish says

      October 29, 2019 at 12:39 PM

      My experience of interview questions for automation test engineer(

      Reply

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    Primary Sidebar

    Join SoftwareTestingo Telegram Group

    Tutorials Important Links

    • Software Testing Jobs
    • Manual Testing Tutorial
    • Selenium Tutorial
    • Core Java Tutorial
    • TestNG Tutorial
    • Java Programs
    • Selenium Programs
    • Manual Test Cases
    • Interview Tips
    • Contact US
    • www.softwaretestingo.com

    Important Links

    • Software Testing Interview Questions
    • Agile Interview Questions
    • Manual Testing Interview Questions
    • Testing Interview Questions
    • Selenium Interview Questions
    • Selenium Real Time Interview Questions
    • Selenium WebDriver Interview Questions
    • Automation Framework Interview Questions
    • Appium Interview Questions
    • TestNG Interview Questions
    • Java Interview Questions
    • Core Java Interview Questions

    Categories

    Copyright © 2021 SoftwareTestingo.com ~ Contact Us ~ Sitemap ~ Privacy Policy