0% found this document useful (0 votes)
2K views218 pages

Q&A List

The document contains details of various companies and their locations. It lists 61 entries with fields for location, company, question number and row ID. The companies listed are spread across various cities in India, USA, Canada and Malaysia and represent industries like technology, banking, healthcare etc.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views218 pages

Q&A List

The document contains details of various companies and their locations. It lists 61 entries with fields for location, company, question number and row ID. The companies listed are spread across various cities in India, USA, Canada and Malaysia and represent industries like technology, banking, healthcare etc.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 218

LOCATION COMPANY Q.NO.

ROW ID
AR, USA Walmart 1 2_W
AR, USA Walmart 2 2_W
AR, USA Walmart 3 2_W
AR, USA Walmart 4 2_W
AR, USA Walmart 5 2_W
AR, USA Walmart 6 2_W
AR, USA Walmart 8 2_W
AR, USA Walmart 9 2_W
AR, USA Walmart 10 2_W
AR, USA Walmart 11 2_W
AR, USA Walmart 12 2_W
AR, USA Walmart 13 2_W
AR, USA Walmart 14 2_W

Hyderabad Rishennya software services1 3_R


Hyderabad Rishennya software services2 3_R

Bangalore Synechron technologies 1 4_S


Bangalore Synechron technologies 2 4_S
Bangalore Synechron technologies 3 4_S
Bangalore Synechron technologies 4 4_S
Bangalore Synechron technologies 5 4_S
Bangalore Synechron technologies 6 4_S
Bangalore Synechron technologies 7 4_S
Bangalore Synechron technologies 8 4_S
Bangalore Synechron technologies 9 4_S
Bangalore Synechron technologies 10 4_S
Bangalore Synechron technologies 11 4_S
Bangalore Synechron technologies 12 4_S
Bangalore Synechron technologies 13 4_S
Bangalore Synechron technologies 14 4_S
Bangalore Synechron technologies 15 4_S
Bangalore Synechron technologies 16 4_S
Bangalore Synechron technologies 17 4_S
Bangalore Synechron technologies 18 4_S
Bangalore Synechron technologies 19 4_S
Bangalore Synechron technologies 20 4_S

Bangalore General Electric 1 5_G


Bangalore General Electric 2 5_G
Bangalore General Electric 3 5_G
Bangalore General Electric 4 5_G
Bangalore General Electric 5 5_G

Bangalore GE Healthcare 1 6_G


Bangalore GE Healthcare 2 6_G
Bangalore GE Healthcare 3 6_G
Bangalore GE Healthcare 4 6_G

Kolkata PricewaterhouseCoopers 1 7_P


Kolkata PricewaterhouseCoopers 2 7_P
Kolkata PricewaterhouseCoopers 3 7_P
Kolkata PricewaterhouseCoopers 4 7_P
Kolkata PricewaterhouseCoopers 5 7_P
Kolkata PricewaterhouseCoopers 6 7_P
Kolkata PricewaterhouseCoopers 7 7_P

Bangalore Harman 1 8_H


Bangalore Harman 2 8_H
Bangalore Harman 4 8_H
Bangalore Harman 6 8_H
Bangalore Harman 7 8_H
Bangalore Harman 8 8_H
Bangalore Harman 9 8_H
Bangalore Harman 10 8_H
Bangalore Harman 11 8_H

PA, USA Highmark 1 9_H


PA, USA Highmark 2 9_H
PA, USA Highmark 3 9_H
PA, USA Highmark 4 9_H
PA, USA Highmark 5 9_H
PA, USA Highmark 6 9_H
PA, USA Highmark 7 9_H
PA, USA Highmark 8 9_H

Bangalore Thermo Fisher Scientific 1 10_T


Bangalore Thermo Fisher Scientific 2 10_T
Bangalore Thermo Fisher Scientific 3 10_T
Bangalore Thermo Fisher Scientific 4 10_T
Bangalore Thermo Fisher Scientific 5 10_T
Bangalore Thermo Fisher Scientific 6 10_T
Bangalore Thermo Fisher Scientific 7 10_T
Bangalore Thermo Fisher Scientific 8 10_T
Bangalore Thermo Fisher Scientific 9 10_T
Bangalore Thermo Fisher Scientific 10 10_T
Bangalore Thermo Fisher Scientific 11 10_T
Bangalore Thermo Fisher Scientific 12 10_T
Bangalore Thermo Fisher Scientific 13 10_T

Bangalore Wells Fargo 1 11_W

Mumbai Jio 1 12_J

Bangalore Fossil 1 13_F


Bangalore Fossil 2 13_F

Mi, Canada Canadian Tire Bank 1 14_C


Mi, Canada Canadian Tire Bank 2 14_C
Mi, Canada Canadian Tire Bank 3 14_C
Mi, Canada Canadian Tire Bank 4 14_C
Mi, Canada Canadian Tire Bank 5 14_C
Mi, Canada Canadian Tire Bank 6 14_C
Mi, Canada Canadian Tire Bank 7 14_C

Delhi Pure software 1 15_P


Delhi Pure software 2 15_P
Delhi Pure software 3 15_P
Delhi Pure software 4 15_P
Delhi Pure software 5 15_P

LA, USA Eharmony 1 16_E

Bangalore Publicis Sapient 1 17_P


Bangalore Publicis Sapient 2 17_P
Bangalore Publicis Sapient 3 17_P
Bangalore Publicis Sapient 4 17_P
Bangalore Publicis Sapient 5 17_P

Kolkata Cognizant 1 18_C

Chennai Photon interactive 1 19_P


Chennai Photon interactive 2 19_P
Chennai Photon interactive 3 19_P
Chennai Photon interactive 4 19_P
Chennai Photon interactive 5 19_P
Chennai Photon interactive 6 19_P
Chennai Photon interactive 7 19_P
Chennai Photon interactive 8 19_P
Chennai Photon interactive 9 19_P
Chennai Photon interactive 10 19_P
Chennai Photon interactive 11 19_P
Chennai Photon interactive 12 19_P
Chennai Photon interactive 13 19_P
Chennai Photon interactive 14 19_P
Chennai Photon interactive 15 19_P
Chennai Photon interactive 16 19_P
Chennai Photon interactive 17 19_P
Chennai Photon interactive 18 19_P
Chennai Photon interactive 19 19_P
Chennai Photon interactive 20 19_P
Chennai Photon interactive 21 19_P
Chennai CNSI 1 20_C

Pune Wipro 1 21_W


Pune Wipro 2 21_W

Bangalore MResult 1 23_M


Bangalore MResult 2 23_M
Bangalore MResult 3 23_M
Bangalore MResult 4 23_M
Bangalore MResult 5 23_M
Bangalore MResult 6 23_M
Bangalore MResult 7 23_M

Hyderabad HCL 1 24_H


Hyderabad HCL 2 24_H
Hyderabad HCL 3 24_H

Mumbai Accenture 1 25_A


Mumbai Accenture 2 25_A
Mumbai Accenture 3 25_A
Mumbai Accenture 4 25_A
Mumbai Accenture 5 25_A
Mumbai Accenture 6 25_A
Mumbai Accenture 7 25_A

Hyderabad HCL 1 26_H


Hyderabad HCL 2 26_H
Hyderabad HCL 3 26_H
Hyderabad HCL 4 26_H
Hyderabad HCL 5 26_H
Hyderabad HCL 6 26_H
Hyderabad HCL 7 26_H
Hyderabad HCL 8 26_H
Hyderabad HCL 9 26_H

Pune Synechrone 1 27_S


Pune Synechrone 2 27_S
Pune Synechrone 3 27_S
Pune Synechrone 4 27_S
Pune Synechrone 5 27_S
Pune Synechrone 6 27_S
Pune Synechrone 7 27_S

Hyderabad Tessla 1 28_T


Hyderabad Tessla 2 28_T
Hyderabad Tessla 3 28_T
Hyderabad Tessla 4 28_T
Bangalore Blume Global 1 29_B
Bangalore Blume Global 2 29_B
Bangalore Blume Global 3 29_B
Bangalore Blume Global 4 29_B
Bangalore Blume Global 5 29_B
Bangalore Blume Global 6 29_B
Bangalore Blume Global 7 29_B

Hyderabad Inspire infosol 1 30_I

Bangalore FIS global 1 31_F


Bangalore FIS global 2 31_F
Bangalore FIS global 3 31_F
Bangalore FIS global 4 31_F
Bangalore FIS global 5 31_F
Bangalore FIS global 6 31_F
Bangalore FIS global 7 31_F
Bangalore FIS global 8 31_F
Bangalore FIS global 9 31_F
Bangalore FIS global 10 31_F
Bangalore FIS global 11 31_F
Bangalore FIS global 12 31_F

SFO, USA Roberthalf 32 32_R


personal Intrest
TX, USA and interview 33 33_P
preparation
Pune 34 34

Seattle,WA Walgreens 35 35_W

Foster City, USA Visa Inc 36 36_V

Pleasanton USA GMC 37 37_G

hyderabad Servicenow 38 38_S

Pune Betsol 39 39_B

Pune Betsol 40 40_B

Seattle,USA Walgreens 41 41_W

Noida, Gurugram NA 42 42

Bhopal Isc 43 43_I

Toronto Canada Health Canada 44 44_H


Pune Betsol 45 45_B
Pune Betsol 46 46_B

Penang, Malaysia Jabil 47 47

chennai Olam 48 48_O

Toronto RBC 49 49_R

Pune Tech Mahindra 50 50_T

Pune Globant 51 51_G

USA Atlanta Cognizant 52 52_C

Pune Globant 53 53_G

Charlotte,NC Wells Fargo 54 54_W

Seattle Amazon 55 55_A

Hyderabad CUBIC 56 56_C

Pune Betsol 57 57_B

Mumbai BrowserStack 58 58_B

Hyderabad Hexagon 59 59_H

Mumbai Sports Interactive 60 60_S

Pune UBS 61 61_U


Hyderabad Medtronics 62 62_M

Hyderabad Duff and Phelps 63 63_D

Pune Nice Interactive Solutions 64 64_N

Noida Velocis System Pvt Ltd 65 65_V

Gurugram Northcorp Software Pvt. Ltd 66 66_N

Hyderabad CA Technologies 67 67_C


Pune Xento 68 68_X

Pune Neova Solutions 69 69_N


Bangalore Subex 70 70_S

Hyderabad Black knight india solution 71 71_B

Hyderabad Microsoft Teams 72 72_M

NA NA 73 73_N

Pune TSYS 74 74_T

Noida Monotype 75 75_M

Noida Monotype 76 76_M

Singapore DBS Bank 77 77_D

Singapore DBS Bank 78 78_D

Charlotte NC Wells Fargo 79 79_W

Charlotte, NC, USA Lending Tree 80 80_L

Austin, TX Quest global // Apple 81 81_Q

Austin, TX Apple 82 82_A

Melno Park, CA Cognizant// Etrade 83 83_C

Melno Park, CA Etrade 84 84_E

Charlotte, NC Truist Financial 85 85_T

Chennai Synechron Technologies 86 86_S

Bangalore Fibnolabs 87 87_F

Pune Allianz Technology 88 88_A

Sfo Apple 89 89_A


Arizona, AZ BofA 90 90_B

Toronto,Canada TCS 91 91_T

Royal Bank Of Canada


Toronto,Canada 92 92_R
(RBC)
Goomo Technologies,
Global foundries,
Bengaluru 93 93_M
PureSoftware
Mphasis,
Singapore DBS Bank 94 94_D
Kolkata Lee & Nee Softwares 95 95_L

Bengaluru Vedantu 96 96_V

Bengaluru Wissen Technology 97 97_W

Bengaluru Value Labs 98 98_V


FIGmd DLTLabs 99 99_D

Hyderabad UHG 100 100_U

Coimbatore Cognizant 101 101_C


Hyderabad Legato healthcare 102 102_L

R System
Noida ,India 103 103_R
International Limited

Bangalore Moolya Software 104 104_M

Chicago Synechron 105 105_S


Trivandrum Infosys 106 106_I
Hyderabad Capgemini 107 107_C
austin tx texas mutual 108 108_T

Noida TSYS 109 109_T

Hyderabad Prolifics 110 110_P

Pune Scrum star 111 111_S

Kolkata Intelliest 112 112_I

Bangalore Sony, Ntt, Dell 113 113_S

Bangalore Signzy 114 114_S


San Jose Exabeam 115 115_E

Bangalore Capgemini (C2H role) 116 116_C

Gurgaon Lucid 117 117_L

Gurgaon Axtria 118 118_A

hyderabad Prutech solutions 119 119_P

Pune Cognizant 120 120_C

Bangalore ITC Infotech 121 121_I


Pune Cognizant 122 122_C

Hyderabad dot com weaver 123 123_D

Nuance
Pune 124 124_N
Communications Ltd

CA, USA Mphasis 125 125_M

Hyderabad Capgemini 126 126_C

Bangalore FIS 127 127_F

Arizona walmart 128 128_W

Chandrapur Vertical software 129 129_V


Pune Vertical software 130 130_V

coimbatore cognizant 131 131_C

Pune Amdocs 132 132_A

Bangalore Mystifly pvt Ltd 133 133_M

Pune Tech Mahindra 134 134_T

Soft
Chennai 135 135_S
Suave Technologies

Hyderabad Deloitte 136 136_D

Pune LMS solution 137 137_L

Toronto torontotestconsultant.com138 138_T

Cardiff ABVL 139 139_A


CHENNAI ACCENTURE 140 140_A

Pune Zocdoc 141 141_Z

Bengaluru Capgemini 142 142_C

Pune , india Capgemini , Pune 143 143_C


Canada Concentrix.com 144 144_C

Coimbatore PSG software technology 145 145_P

Hyderabad Salesforce hackearth exam146 146_S

Dublin EIDA Solutions 147 147_E


Sanfrancisco, CA Clear labs 148 148_C

Mumbai Citus Tech 149 149_C

NA Societe Generale 150 150_S

Noida BirlaSoft 151 151_B

NA API 152 152_A

Mumbai Tech Mahindra 153 153_T

Bangalore Cap Gemini 154 154_C

Gurgaon Toffee Insurance 155 155_T


Gurgaon Toffee Insurance 156 156_T

Bangalore Publicis Sapient 157 157_S

(California) Walmart 158 158_W

Bangalore IQVIA 159 159_I

Chennai TCS 160 160_T

Rogers
Delhi 161 161_R
Appium Questions

Bangalore Capgemini 162 162_C

Chennai Indium Software 163 163_I

Noida AppSierra 164 164_A

Pune Quickheal 165 165_Q

Bangalore Harman 166 166_H

Pune Amdocs 167 167_A

Mumbai Morgan Stanley 168 168_M


Ust gloabl
for adobe cilent
Bangalore 169 169_U
trivendurum
(specflow selenium c#)
Chennai Amdocs 170 170_A

Bangalore Mphasis ltd 171 171_M


Mumbai Synchreon 172 172_M

Hyderabad Infosys 173 173_H

Mumbai LnT 174 174_M

Mumbai Capegemini 175 175_M

Pune Tech Mahindra 176 176_P


Bangalore Many 177 177_B

Hyderabad Snithik Technologies 178 178_H

Gurgaon MakeMyTrip 179 179_G

Bangalore ABC 180 180_B

Pune Amdocs 181 181_P

Mumbai Citus Tech 182 182_C

Bangalore SCB 183 198_S

Indore Eworkplaceapps 184 199_E

Hyderabad EPAM 185 200_E

Mumbai IBM 186 201_I

Bangalore Accenture 187 202_A

Mumbai Live pages infotech 188 203_L

Bangalore IQVIA 189 204_I


QUESTION
Difference between Abstration and interface
What is encapsulation
Explain about synchronization in selenium
Difference between throw and throws
What are the exceptions you have faced (how can you resolve no such element exception)
Method to get the page title
How to handle multiple windows on browser
Explain about Page object model and advantages
Difference between submit and click in selenium
What are the selenium libraries that you have used and explain one
Explain the code of launching browser
Explain about testNg annotations
Difference between after suite and before suite

Oops concepts
What is data Driven testing

Explain about your framework?


Have you used POM in your framework?
What is Page Factory?
Suppose you have 7 pages in your application then to achieve POM what u will do?
Have you used interface in your framework other then selenium interfaces?
What are all the selenium interfaces?
Synchronization in selenium? syntax for implicit wait
How u will handle popup window ?other then get window handle
What is Listeners?
How u will handle alert?
How to get system date and time?
How to connect to database?
Exceptions in selenium?
Suppose u have class and abstract class in class there is a user defined constructor and main method which o
get execute
Primitives andfirst?
Non Primitives datatypes in java? String is primitive or non primitive
What is Hashmap ? Can we store objects in hash map and how to retrieve them?
What is Jenkins?
What is the use of Pom.xml?
What is the use of testng.xml?
Annotation used in page object model?

Ways to find broken links in selenium (except using HTTPURL Connection)


Why did you choose selenium?
Test scenarios for Amazon search results page
Test scenarios for Screen sharing in an app
How will you test a button which is enabled only for 5 minutes in a day.

How u handle dynamic drop-down list dynamically with a scenario


(OOPS
entire program
concept they
with asked to write)
programs
About bug life cycle
Diff annotations in testng

Tell something about yourself


What strategies you followed while building a Selenium framework from scratch?
How can we scroll to end of an page in dynamically loading page?
Related to above question, if I ask you to find one element while scrolling and then stop when found, how would
handle
As a Teamit? Lead, how you will evaluate your team's performance
What's the difference between Test Plan and Test Strategy
If there are 3 test cases with method names as "banana", "cat" & "apple" in respective order, which test call will e
first and why?
Roles and responsibilities
Explain wyat you done in SQL testing
Explain What you done in API testing?
Explain different types of deffect management ?
Explain Bug cycle
Explain How you handle exception
What is xpath?Type of X path.Explain each type
What is Wait selenium,Diffrernt type of waits,Explain each waits
How you convert string "HELLO" into String "hello"

How do we identify the web elements?


How does Selenium work?
We have a login functionality of banking application. We need to test following scenario. User logs into user acc
checks
We have login functionality. What do you start to test this functionality with? (Manual testing question)
savings account
What is the balance.
difference How do
between you automate
functional testingthis
andtest?
regression testing? (Manual testing question)
Have you worked with single layer application?
Can you tell me about architecture of the application you worked?
What is relative Xpath? How do we build it? Where do you start it?

How do you perform parallel testing in selenium?


Which framework do you use in current company?
Can you describe scrum ceremony?
What are the oops concepts ?
Explain overriding and method over loading .
What is difference between constructor and interface ?
Why do you need geckodriver ?
What is difference between explicit wait and implicit wait ?
Class A have 3 method , class B have 2 ,class B inherited class A, how do you call method of class A by creatin
of class
What areB annotation
? in testNG ?
How many suits can be there in testNG , what if I run all the suits ?
As lead,how do you define quality of product before release?
in testNG, do we have multiple suit in one XML file and what if I want to run all suits ?

In a web page there are several Pop-up, but we don't when the pop-up will appear, in this case how we will han
Pop-up using Selenium WebDriver (Java)
Suppose you are the leam QA and 1 new member join your team and at the same time you have a deadline to me
2 or 3 days so how will you involve that new member in team so that you can utilise him/her to meet deadlines?
Java- Write a Java program to print 1234 1234 in two rows.
Selenium- In a online shopping application after placing a order, a success message will be displayed with a we
number. How to fetch and print the Weborder number from that success message. The success message can
language. (The weborder number can be displayed anywhere in the success message depending on the langu
Explain Set and Map in Java.
If proper Xpath, cssSelector and ID are not available, how do you identify an object.
Explain how BDD works with Cucumber.
How do you set the test data in BDD.
How do you manage test execution using TestNG.
Explain inner join and outer join in SQL.
Explain implicit and explicit wait..

Different types of Waits available in Webdriver


Different types of Navigation Commands
How to handle frame
How to handle Alerts
Difference between findelement and findelements

As a QA where do you see yourself in next 6 months

How to find broken links in web page using selenium (including frames).
How will you handle dynamic payloads in API.
How to download a file using selenium.
How will you handle dependencies in Maven at run time.
How to fetch coupon code from image file.

How do you manage a set of Data Tables in selenium?

About yourself.
About project.
Source code management tool.
How will you resolve the conflicts.
What is static and final in java?
How will you prevent tge override method in java
Explain about collections.
Cucumber tags and Annotations
How will you pass values in your project?
What is hooks and explain hooks.
What is background??
How will u run the method again and again in testng?
How the methods run in the order??
Parallel tests about class method and tests.
What is actions class and the methods in actions??
What is the difference between build and perform?
Difference between find element and find elements and its return type.
Explain concepts in collections and relate to ur project.
Consider u have checkbox and I want to click the checkbox , how will u find the element is present or not at the
time should
Attributes ofnot
cssget any exceptions.(element may or may not present).
selector.
Program to find the found of special character, numbers, capital letter and small letter in a given string.
What is Owasp concurrent testing

Write a program that reads objects from property file in page object model framework.
How to handle windows pop with selenium without using auto it.

What's the fastest locator in Selenium?


What does ::(double colon) in sibling xpaths represent?
What's the dependency to read/write excel documents in Selenium?
What's the difference between imports and extends?
Why do we use extends when we have imports options ?
How to add/remove test cases in Testng.xml?
How to add waits in Selenium?

Move all zeroes to end of array- Given an array of integers,Move the all zero's to end of the array. Push all the ze
givenall
Print array to the endcharacter
the duplicate of the array.
and their count in the given string.
Example
Example 1:
1: INPUT:
INPUT : myArray={2,5,0,4,2,7,0,0,1,9,4}
String str="hcl-tech"
Reverse a string preserving space positions.---OUTPUT ---OUTPUT:
INPUT:h-2,c-2 myArray={2,5,4,2,7,1,9,4,0,0,0}
: "Java is a programming language" ---OUTPUT : "egau gn a
lgnimmargor pasiavaJ"
Can we over load main method in java?
Explain about final class?
Test life cycle
How to handle drop down using selenium ?
Using selenium can we automate desktop application's ?
About vmodel?
How many locators available in selenium and explain each and every one ?

Difference between Given and When in cucumber feature file


What is the purpose of Background in feature file
Can i give login username and password in And will it work?
Which reporting standard you use in framework
Logic to reverse a string
i have seven checkboxes in a page every time my script should check last but one checkbox
What exception will program throw when i use findelements and it do not identify element in a web page
Jenkins CI/CD
Explain BDD framework in your project

Selenium webdriver architecture


Explain automation framework
Why Testng is used if there is cucumber used in your framework
Java program to find word count from the given string String s= "my name is umesh";
Which catch block will get execute first.
There ares1=
6. String two"hello";
catch String
blockss2="hello";
in first catch block have exception e and second catch block have arithmetic expect
will expect
If(s1==s2)
String arithmetic
then tell
s ="hello"; exception
me if it's true or
s.concate("world"); in try block then which catch block will get execute first?
false.
What is the output?
What do you mean by Enumeration in implicit wait?
Give example for Run time polymorphism?
Fluent wait?
Testng?
Explain Bug life cycle
Write test cases in given scenario
What is compatibility testing
Difference between water fall model and agile methodology
Explain your project
write the xpath for given scenario
Sql query to find out total salary for all employee department wise

How can you handle if application is opening in seperate tab in same browser

Explain about project and work experience.


Explain about the usage of Jira ? How add testcases and defects?
Worked on any other defect tracking tool? Do you know about Hp ALM?If explain
Explain about the framework used in your project
How do read data in data drivern framework? Write a program to read data from Excel sheet
Write a program to check if a number is palindrome
Explain how to get the 5 th child window.
What is polymorphism?
Difference between API and webservices
How did you write testcase using soap UI for API testing
Do you know about testing framework ? Write an XML to run scripts?list of API methods
Different annotations in testing in order

How do you automate localization testing -diff languages in UI What are the tools used and how did you do

I am getting the below error in eclipse and could not able to run any class. Error: Could not find or load main cla
learning_Java.Callbyvalueandcallbyref Caused by: java.lang.ClassNotFoundException:
learning_Java.Callbyvalueandcallbyref
How do you write your script in selenium

why do you need to do Automation for API testing? Generally API changes occur every 3 to 4 months. You can d
manually right?
1: I have a string ALPHABET, write a program to reverse it in java.
2: How do you capture specific response value and pass to other request.
1: How to handle multiple endpoint in SOAPUI?

1. explain framework implemented in project.


2. explain how did u achieve polymorphism in your project
3. consider
1)What i am new
are your rolesinto
andyour project teamas
responsibilities and explain
manual how oops concept implemented in project
tester?
4. explain webdriver waits
2)what are your roles and responsibilities as Automation test engineer?
5. whatare
3)what do you do as part of
the challenges automation
you faced as a automation test engineer?
What
6. howare
manytesttest
design techniques
automation scripts did u automate till now
4)What is @dataprovider
5)syntax to perform parallel testing in TestNG and what do you write in
1.Difference between
<suite tag> also what doTDDyou
(Test-Driven)
mention inand BDD(Behavior
double Driven)
quotes like Testing
parallel =" "
2.how will u decide what tests to automate?
3.What are some best practices u learnt and how much difference it made in testing career?Explain the before a
1) API Framework
situations
2) How to open browser in New Private Window using script
4.What language
3) Approach to doyour currentTesting
Integration web application is developed?
5.How
4) API Testing- If found any error (which iswithout
to avoid NoSuchElementException using try/catch
not as expected) how youblock
willand with solve
(tester) try/catch
that block?
(how do you contribu
6.How to handle web tables
5) Cucumber- Hook and Profiling whose values change dynamically?
7.What dependencies
Which Test strategy did u you
add to
usePOM for reporting?
in your last project?
8.How will you handle dependencies in Maven at run time.
9.What is DoD, DoR in agile?
10.How many test cases in ur regression testSuite? How much time it will take to execute?
11.If your Testsuite takes 1 and half to run, what u will do to reduce the time ?
Java
1: what is String Pool.
2: what is difference between String Builder and String Buffer?
3: What are different memory types in JVM
1)What
4: what are is the your difference
roles and between
responsibilities ArrayListas and manual
Vectortester
2)what
5: what are
are your
the types
roles of
and
1)What are your roles and responsibilities as manual tester exceptions
responsibilities in Java as Automation test engineer
6: what
3)what is clone
challenges and you where faced did
2)what are your roles and responsibilities as Automation test engineer in you
your use Automation career
Web
4)What
3)what Services
challenges you
challenges you faced faced in in your
api testing Automation career
1.
7: Tell
whatme
5)when doabout
kind youof serviceyourself
automate level and Roles
testing
in current and
u have
sprint Responsibilities
next sprint?of previous project?
performed
or
4)What
2.What challenges
areyour all the drawbacks you faced in api
in Selenium? testing
8: Explain
5)when do you Rest automate automation in current framework sprint or next sprint?
3.How
9: tokind execute parallel test using Test NG?
i have 2 excel files one excel file forencountered
what of error codes u have qa and another in Rest for prod
4.
10: Pros
what and is cons
201 codeof Implicit
meant
i need to pass the workbook name dynamically during executing wait
for and Explicit wait
5.How
Selenium
wat ever to workbook
check whether name web
i given elementit should is enabled
readfind and orwrite
Disabled without using
that workbook name isEnabled method? It's not hidden el
After
but
ASSIGNMENT
11: you
Explain haveweb run
QUESTION a full regression test, and new regression bugs, which bugs would you prioritize. Bugs t
beoz the code isdriver
samearchitecturefor qa and prod
suggest
6.Difference
This
12: round
what that functionality
between
comprises @Factory
a practicalhas regressed,
and technical@DataProvider?or
testbugs that that
thetheappear
candidate in new features?
is expected to complete in 2 hours.
instead ofiscreating
web driver new project for prod i will just pass workbook name dynamically
7.@Factory
13:
1. Inhow to handle
Selenium, explain howalert with
to get real
in time
selenium
text value example? from text-box if gettext() is not working?
8.How
14: wetoare
Objective:
2. If how toconfigure
Runhandle
using an correct Grid node
Automation
multiple andbut
Test
windows
locator hub?
sessionin selenium
still on BrowserStack’s
getting element not found infrastructure.
error then how u will resolve this error?
10.each
15: what time
are grid
the
3. Why we prefer explicit wait instead url
types will of change
Locators how to
of resolve
in selenium fluent wait? this What
problem? are the disadvantages of fluent wait?
1.
11. One testsuite
Enrlolment()method, trialexecuted wewithofneed error more duringpass night-hours
20automate
paramaters but now ansame
inputtestsuite getting executed without any e
Create
16:
4.
will
Explain
Without
be
a free
your
different
implicit
approach
account
wait typesselenium
to
on
debug
XBrowserStack
Path
script
it?
locators
will to
work or not? thisas test case for that
using any test case, as perlanguage
programming coding guidelin
of you
pass
17:
5. only
Did you
Today 10
weuse parameters
have Robot
executed classsomein test
in seleniummethod.
testswithout How
- explain
using will
maven, you pass
butfrom those
tomorrow parameters,
when we cannot split the
you see that someone deleted all task as differ
2. Write
methods?
Using SQLHow
Selenium, query do load to the
you create
return new
flipkart.com table
theexperience
values desktop inside
: home any
theyou data
page. existing
Search for the table?
product
18:
1) Explain
Describe
dependencies your
INS from selenium
Testing .pom process automation
file then in that framework
case will be able to execute tests or"Samsung
not Galaxy S10" on that
3.
the
19:
1.
2) Twowhat
Explain
How priority(0)
13.Parallel=instances
searchdid are results
you different
difference TestNG
automate click explain
states
between methods
on
the ofabout
"Mobiles" Bug
Method
screen will-this?ingive
?Bug compile
categories.
Lifecycle
Overriding error orOverloading
& Method not?
5.
4. Today
What we
ifTypeWindowshave executed
popup some
occurs tests
during using
test maven,
execution but after
and due that accidentally
tocode
thatoverloading
can't someone
execute deleted
automated all dependen
tests, how
14.How
Apply
20:
2.
3)
from
1.
how
Open
What
Why
the
.pom do
is
did
notepad you
following
file
CSS
youof
thenidentify
do
and
framework
locator infilters
multi
write
that the
faster
web
(in
browser
did
case filters
program
than youelements?
next-day
Xpath?
section
testing
for method
use ? canonyou
will the
you leftable
overriding
please
be hand and
write
to side):
method
the
execute tests assuming
or not specific objects - how did uyow
resolve
15.Which
Brand:
21:
3.
for how
Write
the this
Samsung
drop is
doobject
code error?
most
you to take
down faster
create
? is screen
What xpath
user shot
inyou
is the or
Rest css?
in
benefit selenium
Assured of using a95%framework -what
describe the components thatwith
you writing
used with cod
6.
2. In
Even Page though CSSmodel once
faster than create
Xpath loginpage.java
,why do class
of the companies is the use first thing
XPath ? you start initially
16
Select
TestNG
4. what
Write
examples
you aisprogram
Flipkart
initiating thewriting
difference
assured tosomething
which between
has dynamic
into XPATH
a page and
payload CSS?
class? to create user and store the response and use response to g
3.What
17. What are all the
theStandard
different Guidelines
ways and rules from to bethe followed formenu
any automation project framework?
Sort
22:Testng
1.How
created
3A)
7.
4. What
1)What
What
the
Did to
you
is
are
entries
user
factors
annotations
cover work
default
your
with
character
on
will polling
roles you
Price
API and time-> High
keyboard
testing in,tohow XPATH
tooperation
explicit
responsibilities
consider for
Low.
didwait
giving
writing?
you as automate
and
manual
estimate in implicit
to
context
the
tester
a API validation
wait?
automation
utilizing user-defined
- explain
project? with codekeyword?
examples
18.What
Read
23:why
2.Consider
5.
3B) Explain
Did the Test
you isset StaleElementException
thisof snippet
NG
difference
work results
on DB that show
between
testing interface
, what and
up on
kindhowpage
and of will 1.handle
abstract
databases it?
class
, how did you automate ? explain with code samples
2)what
5.
19. What
Error are
willisworkyour
happen
throwing roles ifas and
implicit responsibilities
Element and not explicit found as
wait
but Automation
iswhen
usedthis test check
I together?
go on and engineer
Andthatwhyelement
does it happenis available in the web page? T
Create
24:grouping
Web
6.
4) how
Did a
driver
many
you list with
of test
driver=new
interfacesthecases
with following
chrome
did
calculation u useparameters,
driver();
in
testing framework
? and print the console.
This
3)what
6. How
element was have first
challenges round
you you
handled telephonic
facedSingle ininterview
your
initialisationAutomation ofscriptcareer
Webdriver in your framework?
25:how
what
7.
5) Do does
Write
4)What you aisprogram
to not
execute
the
have
challenges
hidden
above failed
to
experience you
so
code
find no
test
how
faced on need
cases
snippet many
Java
in
to?using
api mean?
use
links
talk
testing
Java
test
are
about ng
redirected
practical executor?
in automation
500 error
applicationHow do
framework
page you solve
of super classthis?and sub-class in your code
7.How
20.Any
Product
26:how
3.where have
other
to Name
can passyouways
"Dynamic handledto
parameters Execute downloading
Polymorphism" parallel of different
Execution
in Test NG in Selenium WebDriver be observed? browser
TestNg? drivers without manual intervention?
8. Explain
question
 a={2,3,0,0,5,0,8}
5)when on
doofyou fluent
you wait
Polymorphism
automate in current sprint or next sprint?
7. find no
21.how do duplicates
set inbetween
a Nggiven String without using Loops and collection.
Programming
Display
27:explain
4.What
9.
6)
 1. Explain
6)How
8.Is Give
write
catch
Price
is
example
do a the
the
code
you
Question
listeners
difference
mandatory
challenges
selectof put
to athe in
complex:browser
Test
all
multiple
in 0
try
faced
at SQL
the
catchvalues
and
while "/" and
query
end
?
grid
working
from
node
"//"
thatdrop
in
you information?
xpath?
in automation
developed - talk about the business elements there
down?
22.how
Test
Link
5.In
7) to
28:Screenshot do
scenarios
Product
selenium,
have you you
worked execute
to
ifDetails
you bewith
question covered
want Pageusing
again
to access headless
: aligned -the mode?
inelement
TestNG that has the textsetups
"This element has an ID that for
changes every tim
 2.
9.what
23.HowUse
7)While data
performing
will
many structure
happentest cases youto BDD/AGILE
ifparallel solve testing
exclude
were thecatch problem
in can
testng you
and describe
what
use do you
only thewrite
Try andcode inon
suite
finally? in alike
tag, BDD whatenvironment
do you mentionyour in script
parallel=
visit:
Please https://www.sportsadda.com/
29:questions
page
1.Reverse is configure
loaded" a on
string in such
Build
it ,then
using that
Management
which
regularthethere same
of theToolsmoke
test
following
expression(Javascript) and
case Regression
is
willrun youin use? test
parallel suite?
different desktop browser / OS combinations
 3.
what Afterdo coding
you , dry run
mention "and calculate complexity of the
the page
code.that accepts cookies)
24.What
Click
the
6.In 5page
2.Open on gotisObject
parallels
facebook it/Cookies yourin
parallel=instances
ofModel
application
"? trial
button(visible
free
Framework in?browser
account at the
(POM), onbottom
how
and BrowserStack
do you
from of intialize
console Automate
the elements
change theproduct. of a page
Darkmode to be
to light used in the runner cla
mode
25.What
30:
(name First
3.Difference of will
REST
the be executed
Framework
PageObjects
between when
class
async,await,call you
is suite
"SignupPage.java"
back, in parallel?
promises and the dirver object name is "driver").
 1.what
One
Optional: are
Ad pops roles
Configure up and
which awould responsibilty
needs
Jenkins CItouse be locally
job in
closedcurrent by project?
automation
31:Error
7.What
4.Protractor kind codes of asserted
tools
Architecture you for the for this
automation test and run thesetests?
of regression parallels from Jenkins.
 2.There
Java
I tried Programs
with is product
Selenium : around say amazon
butinhave8 programs restaurant.
noResponses
clue somehow to Code
are what
close is itmodified
is the to add 
output andzipcode
few arefield which whenof
like optimization entered
the code.gives nea
32:Explain
8.what
5. PropertiesAll ofhow the
you 2classes
capture
used inJSONJava
confi.js Collection
file Framework have?
restaurants.
26.What is the Writeoutput? test cases to test? Interviewer kept asking to give more and more test cases. Something inte
33:Jars
9.What isfor the your REST
difference Framework
between a checked and unchecked
6.
1.
was IHow
don't do
expecting
Explain
String
Move
wantyou
method
st1="Jabil";
ahead
to
get
which
without
use any
alllogin.
the
overridingI could third
values not
with
partyfrom
give
the
reporting(extents/Allure).
drop-down
the
sample correctcode. cases isexception?
box which
test How
defined canby you build our own customised reports to
Select.
34:Questions
10.Why
stakeholders is it around
important
understand Agile
to and
override
this! SAfe model
hashCode() - sprints
when andoverride
you delivarables equals()?
 3.what
2. Write
String
RHS are
a program
st2="Jabil"; the challenges as follows: you faced in yourscorecardproject ?
4.
InputDoI Scores
35:estimation
7.If want
you
- a[1,2,3] to widget:
have
of stories
executeany
Click
the on
question only very
forone us
first
specific
?
match test case without touching the code/package.json/conf.js/Jenkins .H
Click
-- Core onthatMatch
Java info
Questions tab any around
you
Suppose
Output
do
-
1.st1.equals(st2); there
b[2*3,
from a JIRA/
1*3, page 1*2]withmanagement one OOPs button concepts
if tool
click?on that button new tab opens and click button on that new tab ag
36:Explain
8.
tab Howopens do about
you
how Plan?setup collectionsthe Jenkins
to read the text for the third tab- mean in classes
Azure? and ? interfaces
3. What
2.st1==st2;
37:where is did Test you use in your framework
9.
4. Why
What are protractor is async in nature? Why they built in that manner?
38:asked
10.As a senior to various
explain
QA
git
briefly
engineer
commands? about
how do your you selenium
evaluate automation
your junior frameworkperformance?
5.
1.
27. What
Why
Query
39:Explain dois to explicit
we implement
select
about wait
static in selenium?
distinct Abstract
values &fromInterfacestudent class table; and How did you implement it in your project? Give me a cod
11.Practical
6. How to automate : Using POM
calendar write a login pass and
feature of make my trip website through failed scenarios and find the bug in the login module and show th
Selenium
40:questions
1)
in What
the is Webaround
report. Container static variable
7. Write
41:question
2) OSI test around
Model- cases
7API's
layers forauto login boxing functionality
in Java of make my trip website.
12.
1)
8. Protractor
When
Explain ypu your decide
framework. to stop the pattern
testing for the below scenarios, They have shared RDP file and logged in that an
28.
3) Develop
42:String
How to change Page
manipulations Object
port ofinmeans design
SQL Java
2)
9.
my what
Explain
screen
43:Method does velocity
to verification
them.
overriding inMavensprint.
and projectthen
overloading wasdifferences
already created.
4) Scenario:
3) Difference If we have
between assert 50 pages n verify how you will verify each and every page when open, the url should be htt
10.
5) What
44:Write
Different is
a java regression
ways code to handle bug.
- givenhidden a String s ="11223356677"; find the first non repeating one
elements?
4)
url: What isinsame origin
https://www.annauniv.edu/department/index.php#policy
45:waits
6) Top down selenium
model
5) how to click on hyperlink
46:code
7) How you for verify
explicit the wait war(patch) is successfully up or not while deploying the same on server.
6)
Case How
47:return 1:to handle
Navigate
type ofto web thebased
until() URL and popup
in wait.until() printinthe Title ofwait
Explicit the page
7)
Case Can 2:webdriver
48:Write a Selenium code given scenario use for mobile application
8)
1. Whatwill
Click
How
49:Login onwill be the
toDerpartment
you
web handle
page highcertificate
availabilityusing testing means for a software tester
selenium?
2. Mouseover
Multiple
50:click on Login ButtonInheritance
on Faculty in Java?
of Civil Engineering
3. Click on
What
51:Handle areInstitute
the capabilities
Stale Elementfor Ocean in Management
reference Selenium? exception
4. How
Print will
the you title create framework for Login Functionality?
What
5. How will you get all the links from in
are the challenges you faced web web services and rest api using soapui tool
page?
6. Which
Case3. framework
Print you have
all the options used ininyour
available framework?
the Quick link section
8) How to handle
4. Explain different non types reproducible
of exceptions issues in java
9) How will you execute
5. I need to do login and logout for 100 Testcases in Jira testcases. How will you achieve it?
10)
1)How
6. CanExplain
hashcomplete
constructor map works beflow of framework
internally
overloaded and howwhy?
Explain its generate hash code?
1.
11)
2) Risk
which
what in was agile
is better
the role CSS of or
you Xpath
in your automation project?
7.
1.
2. Explain
Suppose
if one user dataprovider
you moves cometotoanother with example
office insprint the morning,then what due it istocalled
any critical reason you have to run test suites but your ID
12) how
3)Explain do each you handle
and every dynamic
component webelements of framework in detail ?
2.
3.
13)Consider
Bdd is
Explain behavioryour
alluse team
Testofcase dependent is new
design to
or the organization,
independent
techniques used with an example planning to build for a newthatsoftware
Test case andyouforhave
that applied
you have thetorespe
write
4)what is the pom.xml file?
3.
4.
14)What
Explain is the
most
Bug difference
important between
things to click()
define function
in a bug in webelement interface and click() function in Actions class?
5)what
Create
Coding awas Feature
questions the Life whole
file
Cycle
onif a dayinyou
Interview
detail spent
Bit
w.r.ttoany resolve of thethe project
issueyou have worked
by debugging the code?
4.
5.
15)What
Whom
how istotothe approachdifference
contact you between
deferredare unable Actions
defect, to deferredclass and
understand defect Action
the interface?
requirements
means it'sand accepted by record?
Dev or rejected?
6)For
Write example they are 10 records how will you delete 9 records fetch 1st
1.
5.
6. Find
Is
Day itJava
the
possible
to day methods
middlework node of the
to change linked list
behavior of a test at runtime?
7)Difference
Code
2. Find should
ifquestions
a string between
be are executable
can ETL
be and SQL
made ?
pallindrome bylocator,
changing only
6. Consider
Mphasis
Coding Interviewyou only
Questions
on Interview allowed Bit to use css how willone youcharacter return 1 if yes elseof
find the parent/grandparent return
a web0.element
8)How
1.
3.
7. Tell
Generate
Move
When selenium
me all about
cucumber
zeros
determining grid
yourself?
in an works?
report
array
length with
of n screenshots
any size given to right
array side.
a, a.length is used and to find the length of any Arraylist al, al.siz
1st
1.
2. round
Find
9)String
What the s=web
are middle
"a1b1c11111b1c1"
the node of
deliverables linked
you list
write
are logic responsible for, in your current role?
1.
8.
1) Have
complete is
you heard Service?
framework about Explain
lazy
explaination with
initialization? an
and example?
it'sby If yes,
tools where it is used and what are the advantages?
2.
3. Find
let’s if a string can be made pallindrome changing only forone character returnare1parameters.
if yes else return 0.and
2.
1. Suppose
Face
9.
2)
3. Have tosay
Navigate
framework
Move face
you
all
you
Iever
zeros
have
to
on
code
have afor planned
service whichfor 100return testcase
schedule execution,flights
https://www.dbs.com/about-us/who-we-are/awards-accolades/default.page?productId=jxeaw
zoom:
used
in an Maven
login
array of SureFire
n size to plug-in?
right side.If yes, where some
available
and why? reasonon
based you input not able to execute
Can you tell spr
me
4.
3.
2.
1.
10.Based
Write
Validate
Explain
Consider a onprogram
the above
the
you total
solution haveanswer,
to find
number
of
to Sprint
duplicate
attempted
write of planned
awards
test/suite numbers
questions incompleted
displayed
for from
on
different a on
Interviewthetest
file.(answered
page stories
Bit.
environments(dev, is 22. are
with carry
sorting forwarded
technique)
preproduction, or moved
production) to backlog?
and pass d
3)
Non
5. code
How to you
repetitive
do readones- data from
manage defectExcelinand alm? that should get sent to UI i.e., for un, PW fields
4.
3.
2.
4) Immediate
Validate
Discussion
String a=about question,
all
"I on about
Love the award
Java" is
alternate there
name any
and
solutions. other
caption easy of process
the awards to find duplicates?
mentioned in the below table and print in the cucumb
Face
1.
6.
5. What
ExplaintoName
Difference
Award face
all will you
between zoom:
defect doframework
Caption to optimize
lifecycle?
arraylist
of the and awardyour set? framework to run them in parallel using Selenium Grid/ Browser Stack?
3.
O/p
1. Tell
Java
Explain me about
Love
the I test
solution of attempted you have
questions worked. on Interview Bit.
2.
7.
6.
1.
A
4. How
Can
Is
What
World
How is
tell
hashmap
do is automation
First about
static
we any
thread
share in java?
Euromoney of
drivers Salesforce
achievements
safe? accrossyou Lightning
framework. different
have done in automation? from classic
5)
2.
8. String
Discussion
Can you a= "I
tell Love
about
me Java" alternate solutions.
7.
2.
The
5.
O/pWhy
WhatBanker
avaJ itisevoL
ispage not
this Bank Iword ofthe
thread
object in difference
the safe
java?
andYear based
page2018 between
on answer
factory bddabove
model. and tdd? question.
3.
9.
8.
3. Tell
What
Global me you
is
Finance about have
reflection
finally test
and
Bestdone framework
in with
java?
where
Bank in in
dothe you
your
we World have
projects
use? 2018 worked. (bdd or tdd)?
6)
4.
10.String
HowHowdo a we
do = you
"abc-2019"
share launch drivers accross
aExcellence
mobile app framework.
in real
Appium?
9.
4. What
Euromoney
O/p is polymorphism?
method
Awards over For Explain
loading? with time example?
5.
11.
10.
5. What
GlobalWho
How
What is
is is page
responsible
polymorphism
Finance the object
importance
World's and
for
is page
app
achieved
of
Best testng
Banks factory
launches in Java?
framework?model.
and packages / library configurations in your project?
[abc]
12. What ison adifferent
test plan and what are thequestion, steps
11.
6.
[2019]
1.
Based
What
Global
What
Automate
are
Finance
you the
above
need
below World's
to
answer
testng
test
use Best immediate
annotations?
Investment
a webservice?
case using Bankstoand
BDD concepts,
create
what is amethod
Derivatives
Java
test plan?
and
overloading and method overriding?
Providers
Selenium
13.
12.
7. HowWhy
Lets can you
say youIhave
have used
configure10 linessoap of
tests ui
testand
in postman
steps,
testng? now tools
I have in same
failure project?
step at line 5, how can you get failure step logged a
7)
2. Practical usage ofaboutStringBuffer
13.What
14.
8. Can
Haveyou
What
isyou
is
the
maven?
difference
explain
used Ireporter between
different
in testng soap and
components
and in restful
which you webserives?
created in framework?
scenario?
3.
1.
15.WhatLaunch
Have isyou 401 URL mean?
created :https://www.dbs.com/sustainability/dbs-stronger-together-fund?pid=splitter-dbs-group
14.
9.
2nd Apart
What are from profilesdata in any
provider
maven? web services, framework?
annotation any other ways Explain? to pass the parameters to test ?
4.
16.
15.If
Read everything
and
Where
Have write
you you workedrunsuccessful
is
the table
your on in excel
automation
unix? what
Based code
sheet. scripts?
on we can see
answer, what incommand
response? is used to find a word in a file?
10.
1)
5. What
String
What is is
name 500cucumber? = "Madhu";
error code?
17.
16.
11. How
What will
are
does you
common configure
testplan autosys Jenkins
includes? commands job? used?
name.toUpperCase();
1.Tell
6. What meyou about past experience briefly
18.
17.
12. Whatis
How
Syso("name"); are exploratory
will
different
challengesschedule testing?
testingyou thehave deployments?
techniques faced you
during havetesting? usedparallel,
to test ainfeature?
2.
7.
19.
1. What
Can
Tell me is
will
tell priority
about be
about your
pastIn testng?
approach
selenium experience When
grid to test
concept
? tests are
strategies?
that configured
you have used in your which
previous priority tests are executed?
project?
18.
13. What
How
Telephonic
O/P?
3. What is is
you regression
will
interview
dependency be an :findtesting?
asset
Round
in testng?to
1 the team?
8.
20.
2. Write
HowCan a
you
will program
yougivedesign to
somebetween abasic a palindrome
framework commands number?
to validateused in
wemaven service? project?
19.
7
2)
4. What
years
Explain
What isTestNG
experience
is difference
invocationcount in detail ifinayou smoke
testng? and sanity testing?
9.
21.
3. In
How tight
What will sprint
are you schedule,
thevalidate
challenges dynamic new requirement
faces
response? in your projects? is added, how will you handle this situation?
20.
1.What
3)
5. key=
Given is
isaare
fruit, the stored
complex
value
webservice procedure?
= "apple"; task you and
scenario haveasked doneto in write
Testng? all possible test scenarios?
10.
4. What
What isyou your
serialization strengths? and deserialization?
21.
1.
2.
key=
6. If Have
Difference
Have fruit,
there you value
is a anytime
between
executed
service= "mango"; invoked
A Scenario
testcases
and stored
service andparallel?
B procedure
Scenario
in which in testcase?
outline
service inBCucumber
accepts input framework
parameter from service A output respons
2nd
5.
2. Is
22. round:
there
Write
Background any
acompare
query specific
to
keyword find utility
2nd
in to import
highest
Cucumber. to
salary?
What’s serialize thewhen object?
3.
7. How
Using
What to
any would Collection be thebelowhow
output list
to has
print
of same
the
below set
values
code ofthevalues use of it? using equals methodHashMap<String, is failed ? String> hm = n
6.
23.How
3.Can Any
[{name:“ wewould
knowledge
overload
one”, you
artists: validate
aon maingrpc?
[“a1”, the
method
“a2”] complex
Cassandra?
}, ? Saygiven
{name:“ json
Class
one”, response?
Aartists:
hasarray. one main
[“a2”, method
“a1”] } and Class B has another main method. Ho
Ans
8.
1. -
Write
ExplainUse a MultiMaps
code
about find
data latest
driver version
framework from with input
cucumber? Input Array= [2.18.2, 1.18.2, 2.13.4,
7.
4. By
Coding sharing
Difference task: your
between
implementscreen List a can
and
logic you
Set for write
validatinga pojo class?
the correct behavior of a jukebox ?
4)
9.
2. There
What
What are
are
is the @Test1
Enums?tool set and @Test2
usedHow for methods
your current in TestNG,
project? but there are methods in Test1 which gets executed only if T
8.
5. Write
What
Provided a program
is abstract
2 locators(1CSS to reverse
class? a to
1XPath) string?calland abstract
asked like methods Are they from another class
syntactically correct? Or what are they refers to?
5)
3. How
10.Can to
static rerun class failed be TestCases?
able to change?
6. Have
9.
6)
What
Can
What
Explain we you
is
is how the
call done
theare difference
ado
difference
any configurations
subclass
you approach
between
constructor
between checkedinfrom
selenium
Testing
ur project?
process
and
webunchecked
superclass automation
if you are
exceptions?
constructor?
inand 1 ofState
daymobile the reason
automation?
sprint
4.
10.How
7. In What
a webtests is the
table priority configured
difference
, there aTest50 in
between
linkstesting? close
intoyou
column and quit
Ainand in selenium?
Column B has names ofallbanks correspondingly . Say i need to
7)
5. Which
Explain
What language
isfrom which
the purpose do you choose
ofinversion Suites control automate?
run Automation,i.e.,
tool? ways, to type content onto the do you run P1,P2,P3 siutes
11.
8. Apart
Database send akeys,
connection is there
selenium any different editable field?
8)
6. If you
Explain were the given
priorities chance
of the to develop
Locators you a framework
applied in what
your framework
project, how you
do will
you be choose(BDD(Cucumber),
decide POM) w
9. What
9) Which
Explain
are the git commands
framework
Regression you Testinguse inw.r.t you
your have
project
Manual
used?
and ?How do you handle
Automation testing, testwhatdata is in your
the framework ( Excel Apache POI
Approach
7. How do you resolve a conflict?
10.
Some
10) How more
Explain to performquestions
smoke VS Parallel
askedexecution
Sanity inbased
detail onofSTAR our format.
testcases
8.
11What
is the difference
join inbetween
1) What isisVs smoke,regression system and integration testing?
11) What
throw anthrowsinner SQLand ? sanity testing
9. Whatis
2)What
12.What are the inbound
collection? and ?outbound
difference between forset testing?
and list
12)
10. finallyis
What is
black
importance
difference
box testing
between severity and priority?
3)On youriswebpage
13. Difference
13) what finalize between youboundaryhave 4 seperate value analysis tables then
and how will you partitioning?
equivalence traverse through those tables and select the
4)How
14. What
14) why many are exceptions
final two
is needed components did you handle?
Jenkins is integrated with?
5)When
15) why code did
Jenkins you to gothandle these exceptions?(NoElementfoundException)
1.Describe
1) Write
6)Webdriver
how for and whether
Initialization
Maven the
some
code?
belowtext is items using selenium
highlighted and underlined on a webpage?
-iframe
2) What is background in cucumber?
7)Define
Pure
-windows software excel Interview initialization code for Oracle Client w.r.t Automation using Selenium Webdriver with Java
Questions
Different
3) Difference
8)Types ofways xpath to method?Siblings
between automate and, OTP keywords
but using locator selenium?
in cucumber?
1) Explain
-table
4) What is your
scenario current outline? project
9)How
2) will Framework
you manage codeapproach conflict from your project
5) Explain
-Alerts
Write skeleton of test basic runner?
3)
6) How to scroll down a page?location to another location in UI in the same page using Webdriver
How
2.What do
is you
java shift
script from
executor one
4)
7) challenges
3.what
How to areclick static in Scrumvariables
1.what
5) How is Ahandle
to andright AAMouseWCAGclick standard
of mouse?
hovering infinalize?
Webdriver
4.what
1. Consider
8) Difference is the difference
username
between testing and between
final, password
finally, overloading
fields with and overriding
submit button in a page, on submission you will not get confirm
2.Why
6) String is accessibility
reverse program necessary
5.What
9) Explain is axecore
about library
git rebase, Git clone?
3.Why
How
7) to
InThere are
take
a Drop-down, different
a screenshot (HTML)tags
therewith are of used
failed
several test scripts
options, andin TestNG
I needthe to select INDIA, howthe to achieve
6.how
10)
4.What can isyou
scenarios do will
a sentence parallel youkind test many
consider executionspaces
for writing using
(don’t selenium
smoke know pack for count) between
accessibility words using Webdriver
testing
8) Explain
7.What are interface,
actions what of methods it contains
I/P Example:
5.Which locator My would NameyouIsprefer Ram to locate elements using selenium
9) Explain Method
8.Types
Write
6.how ado ofyou
method waits toinoverriding
handle selenium
change auto itpopulating
to only one dropspace down between the words them
10)
O/P:Explain
Mywill name Polymorphism
ishandle
Ram dynamic tables
7.how you
11)
11) How
Canwill wedidexecute you extract a java data in yourwithout
program framework main method?
8.How you handle scroll bars
12) What is Xpath and
12) If we declare the main method as private what explain what situations you will usehappen?Xpath and type of xpath commonly used in your framewo
13) findElement Vs findElements
13) How to check whether the array is empty and null?
14) How do
14 Write some youexample handle Ajax SQL callsqueries andon dowhere,
you hard order code by, thegroup value
by?or do you extract from somewhere
15) Explain about Jenkins?
7. Explain
How would the you different type of waits.links, in the webpage?
6.
8. Is
Whatis possible
isgetthen-th use to check
initialize
of
the
Java Script
broken
a variable executor? present in an Interface ?
7. How
Can to
we call a element
non-static using
variable XPath
in and method?
static CSS?
9. What
Is are theacommon
webDriver class or selenium
interface? exceptions?
8. Explain Authentication in API testing.
10. How
Whatis will you handle
isstringify
returned StaleElementReference Exception?
9. What in by
Rest driver().manage()
Assured? ?
11. What are is the typesbetween
difference of locators in selenium?
Authorization and Authentication?
10. What are listeners?
12. How
What will
is you get the
difference color ofValidation
between an element, and using selenium?
Verification?
11.
13. Differentiate
Which locator between
is preferred get() in and navigate().to()
testing industry and why?
12. What is the next step to be taken, if developer rejects the Open defect?
14. What
What Whatwill will
Explain beDefect
are driver.findElements()
your next
the challenges
Life Cyclesteps of if developer
using return? not accepting the Bug?
the selenium?
13.
15. What
What will
are driver.getWindowHandels()
the API status codes, you return?
have come across?
Explain the process of Testcase review.
14. How
16. What will you get all the values in a dropdown, using selenium?
Write are Testcasesthe Rest toAssured
test Facebook http methods? live.
15. How will you perform drag
17. How will you connect to a Database, using Java? Write and drop of an element from theFrame1
code.to Frame2?
16.
1
18. How
Explain will
method
Writeisaselendroid?you handle
overriding Authentication
and method
code to reverse the code, without using the built-in method. popup in
overloading selenium?
1.
17.What
How will you
2.Difference between automate put and Windowspost based application?
2. How
3.Differencedo you switch from native to webview using appium?
Round
3. Explain 2: thebetween desired
run and compile
capabilities needed
polymorphism
to invoke a app in appium?
4.bug
1. Write life cycle
aappium
Java code to identify, if the pair ofusing?
strings are an Anagram or not
4. Which
5.scenario based version currently you are
Q:
HowThey will asked howtest cass
to automate the cases list element /elements using the java in Page Object Model.
5. What
6.sql -outerisyouthere-execute
default portfailed number test in appium in Selenium,
server? until they passed
For eg: goto joins goibibo.com
6. How program
7.Java will you skip reverse a particular
string test in testng?
Enter
7. I have thedifferent
delhi (Source set ) username
8.what
Enter the is test
Mumbai( runner in cucumber password that i need to pass the value to a test How to achieve this?
of
Destination)
8. Explain the challenges that you faced in appium?
How
Get ato handle
list the list
ofgit5 commands.
flights forwhich are opened autosuggestion down.
next Friday...
9. Explain
The locators should
10. Tell me the procedure for pulling be generic that itthe should
codeselectfrom anext Fridayrepository
particular wheneverin we gitexecute
to your the test.
local machine.
Looking
11. forward for your response is highly appreciated.
If weFordoanot string have "Welcome
a select to in amoolya"
dropdown writeand a code in java to print
the dropdown the repeated
elements are hiddencharacter
then how andcandisplay how many
you access the
12. Given arraylist =[2,5,1,10,20,20,15] Sort them in descending order
Regards,
1.Define
13. WriteSTLC? a code to print in the following sequence: 1 2 3 4 hi 6 7 8 9 hi .........1000
Anand
2.Difference
14. I need Kumar to between
automatetest a scannercase and apptes scenario.
in mobile. What is your approach in appium?
3.Define your role in your company.
15. I need to run the testcases in 50 mobiles in parallel mode using appium. How will you achieve this?
4.How
16. How willwill you you create
automate a BDDOTP framework
number fetching from scratch. from a sms using appium?
5. Tell me
Round 1. Qa round how you created your organization framework.What are the main components.
6.Testng
1.Test case annotations.
and test scenarios difference
Missing
7.If you
1. Login
How topage question
created
retrytest any
failed proof
test of concept at your firm.
2. case 20casesscenarios in JMeter asked
8.Stale
Is there
2. Black
3. How toandexception
anysend helping
white email documents
boxnotifications
testing or only iffor
tips Servicenow
retry Automation
build is failed using selenium java ?
In jenkins
9.
3. How
1. User many
What
friendly
Api testing. is type
scrum of
parser exception
and used kanban?
for in selenium
handling you
soap have
xml faced.
response
10.
2. Upcasting example thator you implemented in your selenium code.
Round
what
11. HowisIs2.the
webdriver
Senior
you reporting QA a class
implemented tool/reports interface
overriding
then with
you,interfaces
used which class
postman
in your
isor
implementing methods
rest api testing
framework. tool ? of webdriver?
3. Example
1.Explaining qa of lifemethod
cycle overloading in selenium.
8.
2. Example
4. AgileCan process of dynamic
we take screenshot and static polymorphism
in headless mode? you impleemnted in your framework.
9.What
5.
3.
1. Test
call are
Have
case
by the
you main
worked
on videoand
reference components
on jenkins?
linkcall by value in BDD
Have framework.
you triggered headless mode from jenkins.
1.
6.
4. How
Test to
Return minimize
scenarios type the
of window?
driver.getwindowhandle
on app increase views on YouTube and getwindowhandles?
2. limitations ofthe testng
2.
7. Howwhat
Round3. toproduct
takeis fluent screen
managerwait? shot of complete screen?
3. write a single line of code to select the drop-down using UFT
3.
8. How to
How remove
do
1. Project explanation you duplicates?
manage branches of code in you project?
4.
9. How to
Have remove
you
2. How you over comes obstacles all
done the
mac special
os testingcharacters
in thewithproject fromgiven
RPA. string? to you
5.
10.
3. How
1. Basic
how to to
What scroll
findisanout
manual the
testing window
in system
element till it
in a .out.print
questions found
webpageln? webelemnt?
whose id keeps on changing on every refresh.
11.
Round
2.how What
4.
do you isgetalert()
textinofdriver a popup .switchTo()?
box
1.
12.
CtoHow
round can
What you is change
super the
interface value of const ininterface
of webdriver JavaScript?
3.what
1. Q.are Writeframeworks
a program u have
to merge used two sorted arrays?
2.
1.
13.How
1Jmeter to
What fetch
Expected
relatedkind the
of ip address
framework
exceptions
questions of
you
annotationa link?
have
spike testing endurance worked?
in testng. Experience
testing load in developing framework?
testing stress Utilities used in framewor
testing (terminology)
Input:
3. How a[]
to =get{1,3,5,7,9}
count b[]={2,4,6,8}
of broken link on a web page?
2.
14.
2.Zipf's Which
How
law IDE
to using
check andfor Selenium,
run failed Eclipse.
test cases Which of selenium
project. version worked on?
Output:
4. Which C[]={1,2,3,4,5,6,7,8,9}
is better Xpath or CSS Selector?
3.
15. Basic
How setup
toon map for selenium,
objects howfrom do you initialize the driver?
where Why webdriverisdriver= new webdriver() not -->
used
3.Test
2. cases
How to do railway
parallel testcoming
tracks execution. a json response the response very big (country--> city1 c
4.
16.
4.How Why Why we
Upcasting
do you need and
test enduranceto initialize
down castingbrowser
of railway in driver
java
tracks again if it uses memory again?
3. implicit wait was
anot
javaused
instead of explicit wait in your project. (I mentioned explicit wait was used
5.
5.WhatHow
17. Is
aremap to
you enterpartdata
alooking inSignzy
of collection?
in alertWhat boxishaving
hashmap? username/password?
4.
6. What
Types is selenium
of Xpaths, grid,
what how
is dynamic do you have
Xpath? like tests configured
Diff Appium?
of Absolute path for diff
and browsers?
Dynamic Xpath?
18.
5. HowHave to you
run worked
failed test on cases
any device
in testing
selenium?
How
7.
19. do I debug
WebDriver
Have you a bug
Waits
performed that
and theiryou
BDD found,
types?
testing? weather
How to apply explicit wait on anor
that bug is product bug your automation
advertisement thatscript bug
is dynamically chan
6.
8. How
How to
dowas run
youthe failed
read test
theissue cases
excelthat again
sheet without knowing which ones have failed?
20. What last youcontents
got whenand which dependency
executing script or youdo you as
check usefirst
for parameter.
excel?
7.
9. Problems
How toyou getfaced
data while from parallel test execution?
21.
8. AnyHave showstopper worked onexcel
issues docker in
sheetand that
product?
has n no of rows and sheet, how to handle this with array?
Kubernetes?
10. Soft and Hard assertions. Syntax for it. Have you used them in your project with 100 test cases?
1.tell
9. me about yourself automation/
11. Bugs Pagefaced Objectduring model. What is it. I have 5 pages, login page then home page and then other pages.
2.do
10. you Whathaveisknowledge
lambdadynamic of any performance testing.and which tool you have used
expression?
12.
3.choose How anyoneto define manual or automation array. and tell me reason why you choosed?
13. Diff. between
4.what is data conversion testing? array and array list.
14.
5.what is DiffAPI between
testing?array list and linked list.
6.how you done cross Appium?
browser testing and how many browser you have used?
"1: Limitations of using
7.which
2: how to find DOM elementyou
test management have in
used?
or xPath a mobile application
3: whatdo
1. How arewe
the possible
delete errors
cookies one
from might
local fileencounter using Appium
system? (Basically at the time of opening browser, cookies must not
4: what are the most difficult scenarios to test with Appium?"
2. How to copy array elements from one array to another array, without using for loop.
3. What are matrix parameters in REST API and how do we validate using REST-ASSURED?
4. How do we submit file as payload using REST-ASSURED?
13.explain severity and priority and High severity with low priority, low severity and high priority?
14.what is data driven tetsing?
1)What is Webdriver?
15.what
2)Explaintest plan contains?
Selenium Architecture (want to open browser and type google.com) flow of this in Selenium how it is b
16.how to classified
3)What is TestNg a defect?
17.Explain about agile
4)How do we pass values methodology?
in testng?
18.Tell
5)How me
can coulmns
we write contains
and declarein testcase template?
How tuo run only 100 tets case customized exception
19.What are the
6)What is Select? types of testing?
7)How to handle dropdown without using List how can we select the dropdown values
1. How will you run tet scripts from the command line without using Eclipse/TestNG?
8)How do we pass values through dataprovider and whats the return type for the same.
2. Given
1. How will you add
aasserts
string suppose new test class to the sortstep definition by drag and dropusing
only ?
White
9)Which
3. What
Rats:
are have yousahil.Please
the components used and through
in Jenkins ?
it inassert
alpahbetical
can we order
send without
the customized exception or message if the v
any
1st
10)In inbuilt.
year-Gives
your project birth haveto 2yourats, 2nd
used year-Give
or created birth to
customized 3 rats, 3rd year
exception. -Dies
1. Which
4. What is the explicit waitissyntax for restrictive
web page and to get loaded?
1. What isAccess difference Modifier between thegroup
most id and artifact why
id ?
5. a[]
Capgemini
2. Explain
Write= {1, webdriver
a 3,2,5,4};
code to getarchitecture?
Automation Highest
Profile 5number
Years usingLocation)
(Pune array
2.
Black
3. Explain
Rats:1st retryyear anlyser -Giverscode birthin to 3 rats, 2nd year-dies
6. How to willhighlight
you identify
=================================
b[]={7,6,9,8,10}; any option
elements selenium?
in Appium?
3
4. Write what
Howtwo is syntax
to resolve of AND
merge in BDD
conflict?
1.
Given
4 tothe o/p for
arrays merge below code:
this two arrays into single array without using inbuilt
5.how
input:
String
methods Difference
s1
generate
= new between html
String("abc");gitreports
fetch and git pull?
5
Input
6. interface
consists
Difference concept
of 2 space
between in java8 separated
linkedlist by positive integers N,K where n represents years and K represents numb
and arraylist?
String
output: s2 = new String("abc");System.out.println(s1 == s2); False
7.
3. Write
StringBuffer
Employee a programsb1
-> = to reverse
new each wordSystem.out.println(s1.equals(sb1));
StringBuffer(s1);
emp_name,emp_id,emp_salary on string using collection. False
Difference
8. Significance betweenof 300population
status code.of white rats and black rats
String
if emp_name s3 = "abc";
is A s3.intern();
and
1.when you will get a bug what you will do? id is 1 System.out.println(s1
salary is 1 ==s3); False
similarly
2.
input:3 If you5want upto run emp_name same Test Z idcases
26 salary 26.
in different Environment . How you will do that?
2.
Find
o/p:35 What out all
the OOps
emp_nameConcept has
whose been
salary used is in below
maximum Pgm:
without using max function
1.what is Regression and Retesting 2.what are the locators used in selenium
public
input:4 class
10write BaseClass{
3.Different
1. SupposeHow to functions
ahave
test10 used
cases inonXpath
ethernet4.What areinthe
port PC?intereface used in selenium
private
4. Integer we myIntegerValue; frames and locators
on the 10th
o/p:200
5.What
2. Which istools
testing are lifeused cycle for 6.Which
network testing? youframe
used there
muchare multiple
during checkboxes
finding of elements
public
with voidname testMethod(){ (Method Overriding)
7.Where do you used inheritance in selenium. 8.What is difference betweensame
same how to check whether it is selected or not(id , xpath all are Hash Map and Hash Set
System.out.println("Inside
for
Write these
Test
Explanation:White checkboxes)
cases forrats and
computer Test
how Method");
do we
uSb go towhile
port(hardware that 10thand frame.
software both).
9.What
1. defect type cycleof exception you came across testing. 10.What is meant by Thread.
}Initial no of rats:5
11.Explain
2. difference thebetween
test metrices relative 12.How
and absoluteyou perform double click
private
5. For void
the showMethod(){
above
1st
13.Explain
3. RTMyear-5+5*2=15 about same Rest servicesexample 14.What how to select is single thattoncheckboxes
class in java.using mouse in Selenium
System.out.println("Inside
(id
2nd xpath or any
year=15+5*3+10*2=50 other locators Show isMethod");
same for all 4 checkbox)
15.What is Sanity and Smoke Testing 16.Difference between put and patch
}3rd year=50+10*3+35*2-5=145 //initial 5 rats die
17.What Test plan document contains 18.How to handle multiple windows
}6.What UNIX commands you have used can you please tell me
19.How do you scrolldown in selenium 20.Different types of Oops you worked on.
public
Black class DerivedClass extends BaseClass{ //( Inheritance)
rats:
21.What is meant by RTM 22.Can we overide constructs
public
1st void testMethod(){ (Method Overriding)
year-5+5*3=20
23.Explain
1.how to manageabout super junk data in java 24.differencs
passing through between array and array List
System.out.println("inside
2nd tear=20+15*3-5=60 derived
//initial test
5 rats die Jenkins
method");
will
}2.how will we run test data more than 1L with testNG
3rd year=60+45*3-5*3=180
3.test
public
DP, [05.10.20case addition
19:47] method input and// output
void showMethod(){ (Methodfor database
Overriding)
System.out.println("Inside
Hi,
1.what can
difference anyone
is collection.
inreturnhelp
population with derived
these
ofwindow show
questions?
white and method");
blackmethod.
rats:
}1,
What Introduce
2.Tell
180-145=35
is
me the about
yourself?
TESTNG type annotations.
of handle
2.
DP,You ahave
}Write program limited to resources,
printwhat a prime and
number have 100 fromtest 1 tocases,
100 in What
reversecriteria you use to
string. prioritize that to execute tes
[05.10.20
3.String String19:47]= "ABC;"; is the out put
3.
How
1. How
Writeto would
use
a code you
delay (any priorities
in project.
language Tests?
you are proficient in) such that when passed two arrays of names,
With
4.howtest automation
to retrieve databeing from newlyexcel using introduced on a large project across multiple scrum teams,
dataprovider. howit would
will return
you an
e
When
5.what will
is you
the get
Recovery null point
scenario exception
in UFT? error.
4.
3.
For You
Write got
example, one API
Output for to
the test,
below addcode:new employee given scenario is
Please
6.working consider the
of testng.xml following:
file?
email
@test id , password and re-enter password, how would you validate backend testing.
7.how:(priority
Input to run multiple0) {} method in parallel .
@test
Array (priority
1 - {‘Ava’,1){}
a. Understand ‘Emma’,
the ‘Olivia’} % potential in each scrum team.
automation
5. Do you
@test
Array (priority have2){}
2 - {‘Olivia’, any question
‘Sophia’, ‘Emma’}to ask to me.
@test
Output (priority -1){}
b. How would you feedback any containing
: should return an array missed automation Ava, Emma, Olivia, and Sophia
opportunities to the in any order.
team?
@test (priority 0){}
=====
2.Write
c. How would a codeyou (anycommunicate
language you yourare findings
proficient toin)
the toSenior
checkTestthe biggest
Automationpalindrome
Analyst?in a given array.
4.
ForWrite
example:a program Ind12ia45 to print in below format
Explain
op-
Input: the concept
Indiamy1245
Array -between
{aaa, aba, of Duck
adda,Typing acdea, inaeda
Python }
1. Difference findelement and findelements
========
Output : The biggest palindrome is adda
2. Which locator is preferable ? What is the criteria to use the locators ?
3.
5. There's a webelement
git diff 6.Binary no. program Button 7. it'sWrite
id is a abc how will
syntax you3rd
to find create xpath
highest ?
salary. 8.Desired Capabilities Syntax
4. Order of TestNg annotations
9. Open the google chrome and write a xpath of "I'm Feeling Lucky"
5.
10.HowHowdo toyou
Setup communicate
and execute with excel file
testcases inin data driven
different framework
Virtual Machine.? ?
11. How to Convert Hashmap to Array 12. What is hashmap? 13. How HasMap work Internally.
14. diff b/w /, // 15. How Failed TC will rerun Automatically.
What is the use of constructor in java

Test scenario and test cases for selecting colleges based on the department, year, semester for NGO donation

Kadane's algorithm = find the largest sum of the sub-array in a given array of integers

What is wrapper services and its benefits


}15) classwhat Dog doextends
youWeb mean Animal{
by Test Dog(){runner System.out.println("dog
in groovy scripting is created"); } }
Using Selenium driver, please develop a test that navigates to https://www.expedia.com/ searches any qu
16) what is the Rest service architecture
class
17) whatTestSuper4{
is the soap service architecture
2. Using Postman, create a request that sends a GET request to the open weather map API. Here’s the API URL: ht
public
18) what staticis the void soap main(String
ui work hirarchy args[]){
Dog
19) d=new
how toa setDog(); and getfor property
3.
}20)Create framework API testusing automation, groovyAdd scripting3 assertions for validating response for Query to verify a Grap
1. what
Brief introdo you about mean self by jsonsluper and xmlholder
1. Why protractor? When we have selenium
21)
4.
2. howand
Using to
Googleconvert json you
Translate toAPI,
Hashmapcreate a CLI tool tooverriding
take as an input a JSON file projects
and a language, and
willreturns JSON v
}22)How
2. What
whatado
are where
the protractor
you mean
have
by aData
used
related
source
Over
locators? loading,
Data Sink and Data
scenarios in your
Source loop and why do we use it
or where you use?
3.
3. Write
If answered program above, to find factorial
then a overriding
question from of a number using recursion
1.
23)What
4. how is meant
tothe handle by
usepage SSL
of method
in SoapUI file
properties and ahow locatordoesspecific
JVM decide how at to run
write a syntax
time which of it and to
method where
call we use.
Note:
1.what
17.automate
2. Give To is
anaremeBDD they
exampletheand asked
explain and
of method about
inusing Locator
detail about
PageObject
overriding Repeater.
feature
in your When
file
frameworkand we use
gherkin it?syntax
24)
5.
4.About what
Explain Tag the the
Name different
framework locator type
structure
and?syntaxof properties
that ofyou in SoapUI
had
it? example
When inwe your how
use you projects
testing declare using groovy scripting
2.Explain
3.
25)
How What
What
do is
you
about
ismethod
the
runner
main
perform overloading
thing
class
Automation while andAPI
Code give an
automation.
Review/ Walk of
Throughinit?
iteach your project
6.
5.
3.use
4. Scenario:
What
are
ofisbackground
an
the
There testng
interface
annotations
areindynamiccucumber?
and how alert
have
andpopus
you
explanation
used in a webit in
for
page.
your Which we project
in
of
framework
your
it never know when the pop arise. How do yo
26)
7.
it? what
Pom.xml and do you mean
its?use by Webservices and why do we use Webservices.
4.Cucumber
5. What isisobjecttags class And how to
and name some run different object combinations
class methods of tags when multiple tags are present
27)
8.
6. Inwhat
Jenkins
a chrome, the its
and difference
the xpath isbetween
use working soap
fine Outline
forand Rest.
specific element where as In IE the same xpath for the web element
5.difference
6. What isdo btw
abstract scenario and scenario
28)
9. what
Any
Iworking.
appeared
6.Differenceexperience
How you
forbtwdo mean
Selenium
you inclass
hooks BDD bywith
handle
and
UDDI
& Tags
why
.and
IE? what
Python
in
doprofile.
we use do you it mean by WSDL.
7.
29)
10. What
1)What what
Report isare
is use difference
the
generation
the difference different in interface
type
techniques of and
HTTP
that abstract
Methods.
you have class used.
7. How to asserts in between protractor? tuple and list?
8.
30)
11. How
2)Wherehow will
Reverse to you
parse
a handle
string a list several
from a open
json for windows
example through
there is selenium
jsoncellandinthere are multiple IDs how you will parse all the
8. How towe fetch setthe python valuehome? or data from an Excel for specific a row?
9.
json
12. What
3)What and
How class
how
will
is the you does
you
the project will
switch
difference the getwindoeshandles
parse
to a
between a particular
desired help window I'd method
from
and dir function? that belong
json. to
9.
10. Where
What methods arelocated
available in yourin actionscompany class and andhow alert you process with it?
class
13. How
4)Explain
10. Which will you
framework.
is better iteratemerge through
or rebase? the windows
11.
14.
5)What How
Return iscan type
the youofperform window database
handles validation .pycthat if your UI data has been updated correctly in the database or
11.
1. Howall
Print
through to willdifference
titles
selenium run
of the theweb testbetween
without.py
pages using andjenkins extension?
for every one hour?
15.
1. Types
What are ofthewaits. concepts u hv worked on?
2.
12.
16.
call
How
Some
Api canof youOOPs
(https://jsonplaceholder.typicode.com/todos/1
the rerun only
webdriver failed
wait scripts in your framework{
functions
For
2. API
Test
"userId": :-
Order 1, in TestNG
13. Locators
17. What are oops concepts and give an example of each in your project
1)what
3. Data
"id": 1, is the diffence
Provider in TestNG? between how put it works? and post? what is the return type?
18.
2)what
4. Write
what are
is the xpath
environment
constructor? of an element
variables?
why is it in
used? any of
where the uwebsite
cannot use constructor?
"title":
Q1) "delectus
Difference among aut autem",mobile Native, Web and Hybrid apps?
3)what
5.
1) What are
"completed":
how is
to extarctcollections
inheritance?
false data from in
Can postman?
we use
aiswebtable inheritance
? in Interface?
Q2)
6. Name the language that used to write tests in Appium? What all frameworks that are supported by Appium
}Q3)What is multiple inheritance?
Difference between Appium and Calabash? Prerequisites to use Appium? How do you setup Appium?
7. What is the return type of getWindowHandles?
Q4) Advantages and disadvantages of Appium?
8. Whatisisworkflow
3,how the return type of hashmpas?
Q5) What is Appiumand approach
inspector andofhow workingit works? towards your frameworks,ci/cd/reporting
9. What is
4.report the abstract
duplicates method? of an cn
array we of write static array
integers methods in abstract
[7,5,3,2,3,1] reportclass?
3 the design of the Appium?
Q6) How data exchange function between your test and the App? Explain
10. can the
5.Write we sql create queries constructor(from of abstract
student table class?
)
Q7) How u
11. how can you findreports
generate the DOM ofelement
ur Framework? or X path how in casedo reportof a mobile
pass/fail application?
of a step?
Q8) Name the types
12. what are collections and hashmaps? of errors that you can face in Appium?
Q9)
1.WhatWhat
13. tell are
me are the
the the most of
different
syntax difficult
status
hashmaps. scenarios
codeHow you that seen
do uone while
print might face while
working
the output with testing
API Testing?
of hashmaps? Appium?
Q10)
2.What What is is
cross an Appium
browser package
testing ?master?
how you How
14. where do u store ur data of ur framework? how to do u work wit excel sheet with ur framework?had can you
implemented create an
in Appium
your Package?
project?
Q11)
15. how What is theteardown
TestNG underlying API that Appium follows?
works?
Q12)
16. whatHow can you
is findElements? inspect elements
when u JavaScript?can thatuse are present
it and why?in the Native Android App and IOS app?
Using
Q13) Selenium
Write the can we automate
command that will allow you to identify objects uniquely when there are multiple objects within th
17. why is string immutable?
Q14) Mention the method with which you can scroll down in App?
18. What are the annotations u used in TestNG?
Q15) Give
1.Explain the difference between emulator and simulator? Which approach is the best? Testing on real devices
19. Can we
1. What isabout writeyourself
difference non-abstract
between API methods testinginand Interface?
Webservice Testing
2.Explain
2. What are about your Ceremonies
the Agile current project you follow in your project
3.Explain Cucumber Framework
3. How you have implemented Jenkins in your project
4.Explain
4. Write Python PageObjectModel
program to read data from text file and convert it into JSON format
5.Entrance
5. Script scenarioBrowser
to Launch of Automation testing
Which
6.Which webservices
framework mostly
have you usedused inin banking
in domain?
1. How
6. Design
1. to
WebDriver reverseis Class for
Framework individual
or Interface
api words
testing ayour
string project
7.Diff
"Hello
7. b/w
world"
Git Commands frames as using & iframes
"olleh
you dlrow"
are using in day to day life
2.send request curl commands
8.Tell
2. How
8. Python meto one
get scenario
the
programusing frequency
to print in your selenium
ofand
Given the duplicate
Pattern project where in
elements you thehave
array used
andpolymorphism
print the duplicate elements
3.write a program yeild lambada function
9.Have
1-How
1 you
do youused keep interface
your in
test your
data selenium
file in bdd project
project ,
1. Explainare
10.What
2-how Selenium
functional architecture
& Non functional testing in api testing,
2 3Nametolocators handle serialization and deseriazation
2.
11.What
3-why will do in your Testplan
4 6 do
5Name you not use extent report in your specflow project,
3.
12.what
Specflow
4-how do types
is1- STLC
you how of& XPath
create SDLC
to reduce
custom scopereport binding
in specflow,
7
4. 8 9 10
Difference between list and tuple
13.Tracebility
2- why to
5-what we
is transfer Matrix
use partial
dependency class
injectionand where
concept, we use partial class in specflow.
9.
5. How
Whatis are sets in files
python? from one server to another server
3
10.what
6-whatWhat the glue
will base
be file class
output for
of context
below in specflow,
command on Linux
6.
4 Name
how some
to“This
make modules
custom in python
attribute
7-can
grep
7. -8we
Purpose
useisscenario
of Data”
init() method | Given withoutTextfor " then",your framework
5 why we
8-what is theuseteam POCOvelocity,class in specflow
8.
6 Oopsdo
what isconcepts
tagging in different
feature file
9-how u handle locator for different browsers for the same element,
9.
7 how toleft
Outer usejoin, explain
external feature file in your project
10-Describe your framework,
8 how todo
11-how createu design custom hybrid report in specflow with out extent report
framework,
9 what isdo
12-how testtrail
u handle parallel testing and cross browser testing
1.
10What
areshare the implications of setting real world scenario for a load test and basic schedule for stress test in lo
how to data dynamically in specflow
2. What kind of testing
11 dependency injection concept by constructor be done to book tatkal ticket at 11:00 am in load runner
3. What will you do
12 what is base class of step context when the client has not given throughput and respose time for a new Performance Testing s
13 give one exp of try finally flavour.
14 default pooling time of explicit wait
"Questions:
1)What are different types of waits?
2)What is difference between implicit and explicit wait?
"1. What is the difference between Agile Scrum and KANBAN? Explain with a practical example.
3)What are different object locators in selenium?
2. How to click on all the links in a webpage
4)Which
3. Whyme do object
we use locator is preffered?
Protractor and how is it different from Selenium?
"1.Tell
5)what is about
difference Automation
between Experience,
hash map framework and hash table?
4.
2.What Questions the key features that youthe
on Framework, explain automated you are using in your current company."
6)What are is interface?
in
7)OOPS you project? Concepts
"1.Tell me your Project structure
3.What
2.If I amis
8)what is HashMap,What
difference
unable to click onisathe
between function
interface
button on aand webpageabstract class?
to
9)Exception
and add an element
It is highlighting handling hash map.
properly using locator?what will be
"Technical
4.What
10)how is round 1 the
toArrayList?
reverse words in the string?eg: i like program language java to java language program like i
your approach
1.What
How
11)Using
"Interview to all
add tools
hash element
questions:- you
map,how have
in toused
arraylist?
find no forof automation?
occurences of awill
character in the string?
3.If I want to pass the parameters using testNG what be the approach
2.What
5.Difference
12)can is cross
main between
method browser be testing
abstraction
over loaded,can and interface
main method overided
4.Lets say I want to upload my resume just like naukri.com one windows open.How will you automate that part?
3.What
6.If
13)which
Java:- you is want cross
access to run browseronly
modifiers testing
sanitycan ube testcases
used in interface?
5.What
How to are
automate Listener OTP and where
instatic
Selenium have
code used listener
4.What
·from
14)access if I want
Regression
stringBuffer modifiers tosuite,how
&call in java
StringBuilder variables
would
and its you outside
do
scope? that package
in your framework"
5.How
·7.How
15)What do
would
static isyou youmaintain
difference
methods locate repository
the hidden
between scenario element and scenario outline?
6.Suppose
present
·16)can
"1. Why mainin
do we
Interface I have
webpage?
method
need a
&abstract newbewrite
to machine
overloaded?
class .exe whilewhat all things
giving the chrome driver path
are
8.Program
17)can
2.
· When required main to for
convert
method BDD
do you get NoSuchElement
Encapsulation framework?
first
be letter
overrided?
and instance where to uppercase
and you’ve in used
a word
StaleElementReference
it exceptions?
7.What
9.TestNG
3.
·"1)Difference How is difference
annotation
do youbetween
Lambda check logs
Expression between
in Sequencefor BDD
an and TestNG
application?
8.Suppose my-fclient overload and
requirement overloading
is like execution should not stop even your test cases are failed,what will be y
4.
Selenium:- What does mean in the tail -f command?"
2)Can we override static method
·approach
3)Can different
weisoverload locators static methodand those sceanrios
9.Suppose
·"1) What Different I have
TDD & BDD 100
exception scenarios
encountered infile
selenium
1.
4)Given unix command
the code Ito to get
want to 2nd row
make itand from
immutable toHow do DDD
I achieve
are
·2) Howdivided can
Regular into
we 5
login functionalities
expression with different I want
usernames using & BDDit public cl
2.
Employee
execute built inonly interfaces2 scenarios in javawhat will be your approach
3)
·3.
"1. What
unix Type
Difference is extent
command of waitbetween reports
to list Test
the directory
Plan and Test
{10.How
4)
·4. 1 Example
How you to have
of
get Givenused
link &3
count Encapsulation
Thenintool
page andStrategy.
abstraction
2.
String
in Explain
how
your to
name; read
Test
framework the
management
application.properties, name utilities used
5)
·5. SDLC Relative and Absolute xpathjava
3.
public
11.What Challenges
how toisautomate
String id;
method faced the
in testing.
API using
overloading and overrriding
6)
4. What
Explain is Maven?
agile Why
methodology. we use it?
6.
private
12.If how I odouble
want read to from
salary;
fetch excel
my test sheet data without touching my testcases
API
Framework:-
5. Que
How Employee(String
batch
7.
public
·13.What
1)
what
Explain
isiscore
Framework filloexecution
HTTP
difference
class
methods?
main
is between
name, done
components
. hive
String id, and oracle db
What
6.
8.
double Explain
The isleft the
salary)tabledifference
Automation has 100 in UI
Framework and
records, GUI?used.Explain
right table withhas 50 examples.
records, if we do left join what is the outcome
·14.What
2)
7.
9.
{Technical
difference
select
is Page
Annotations
Continuous name
between ObjectPUT
Integration
from table
and&Page
.A -
POST?
select
factory
name from Table B , will this quesry work in hive ?
·3) When Helper we round get
attribute 2
200 &CUT400command
status code?
1.
8.
10.what
this.name
1.What Explain
Different areis your
= type
the name; framework
use of testing
of experience. in linux
·What
4)
2.
9.
this.id
How
What
Explain
iscan
How
=
Desired
are
id; totechnical
we run
diff
database tc from
locators.
challenges
capabilities
authenticate
testing. Jenkins,correct youresponse?
ChromeOptions, have faced whatinisthedifference between them. What is string constant pool, ho
automation
5)
·3. real time
How to project
example
take and
of
screenshot how
PUT did
POST?
of you
failedovercome
tc those
10.
this.salary
2.Webdriver Types
SQL(group of =waits. by) function
salary;
driver = new ChromeDriver();
·4.
11.
}Explain What
writeProfiling
arerandom diffinexception
maven
sql queries. in selenium.
Is this a valid
SDLC?, statement
Defect/bug justify"
Domain:-
5.
12.
public Annotations
SQL(inner
String in TESTNG life? cycle,what is deferred bug?
join)
getName()
Difference
·13.
6. Testing between
Swiftmethodologies
payments DELETE,DROP & TRUNCATE?
{How Explain map in java
·online
7.
14.
return Which willskills you assessment
get
Mt103,mt192,mt195,mt202
O/pname; for locators
below program.
the
youdata have
to
from help
used tableus evaluate
rows ?" your profile for the skill Data Warehouse ETL Testing.
·1.There
class
} STLC"
a are 250 manual test cases , how will you segregate (on what basis) the regression , sanity , smoke suite
1.
2.When
{publicWriteString an application
Regression getId() ,Sanity that reads , smoke a set
testofscripts
files each containing? zero or more integers (each integer separated by
are executed
2
{ .Each
3.how
int i; will fileyou will decide
be readthat once thisand test summed
case isby a separate
feasible or good thread, up to afor
candidate maximum of 4?concurrent threads (even
automation
3
4. Finally
So you
}return id;all keep theon sums designing
of eachtest file scripts
are added when together
will you andexecute
the total
those
is printed
scriptsto? standard
which is the
output
right time to execut
5.Say
class
} you have 30 + sprints in your release how will you design your test scripts and run them ?
test
6.How
{public and Double when is Jenkins is used in your Automation?
getSalary()
7.Say
public
{ suppose
static void main(String your dev teamargs[]) deploys the build in 5th sprint , how useful is your test scripts that is designed y
8.How
a A=new
return Efficiently
salary;a(); you had used build management tools in your project ? state few ?
System.out.println(A.i);
}
}
15. O/p for below program.
class
5)Can A{ I execute multiple catch blocks without try will it give me compile time error.
6)How to achieve serialization and de serialization ??
void
7)How msg(){System.out.println(""Hello"");}
do we convert json response into pojo in restassured Can you write the code or explain
8)Can we override equals method in java
}9)Sort the list in java
10)I want to sort below employee name using key Map<Employee , Integer> map1 = new HashMap<>();
class
map1.put(newB{ Employee(""Shubham"",1000"", 1);
map1.put(new Employee(""Ritik"",2000"", 2);
void
11)Where msg(){System.out.println(""Welcome"");}
you have you used thread in selenium
12)Do you know from which package or class thread.sleep() do we get
}13)Difference between hooks and tags
14)Difference between scenario and scenario outline
class
15)Suppose C extends there A,Bare 100 feature files will there be 100 Hooks to execute??or is there any other solution
16)How to pass the data externally to feature file or how to pass data from one feature file to another in Cucum
17)Suppose while login the username and password the login button gets displayed after some time so code to
E(eclipse, IntelliJ, VScode etc.) is crashing, also you don’t have Jenkins build or any other external test runner tool in your
e automation
ective framework. What will be your first step? How will you build framework?
techniques

?
e() is used. To find the length of array variable is used whereas for arraylist function is used. Why?
nt
how
nvl end date you
would is approaching. How ?could
test this service you handle
All possible test this type of situation?
scenarios?
fferent set of data for each environment. How will you do it using maven file(Pom.xml)?
ber report in the form of a table.

nd test execution should continue with remaining steps?

se. In this scenario how you will manage test scripts. How will you calculate performance of each test?
ew HashMap <String, String>(); hm.put(“A”,”B”); hm.pu t(“A”,”C”);
w to call
1.16.4] ....Class A’s
format ismain method from Class B
like number.number.number
Test2 gets executed..So how to approach?

o select SBI bank’s corresponding link in column A , what’s the strategy to select the particular link ?

api).

buttons available in each table

ation message, how will you go about testing it.

ork
times it is repeated
elements of the dropdown .

k, as in architecture?

d?
ity2 more details) and we can't check it manually. How will handle the json.
but later we had to use Try catch)

ging on name and time every time we arrive on page?

be present even in local).


een done.

alues are not matched.

nnsure
arrayyou
containing the visibility
have clear names that appear
of the in either or activities
test automation both arrays. The the
across returned array should have no duplicates.
teams?
ery, and creates 3 assertions in the search results page. We would like you to find a boilerplate project to develop on top

tps://samples.openweathermap.org/data/2.5/weather?q=London,uk&appid=b6907d289e10d714a6e88b30761fae22. Creat

h QL API.https://graphql-weather-api.herokuapp.com/

alues into translated strings from the input language.

? Appium Limitation?

he same class name using Appium?

or simulators/emulators?

oad runner

cenario?
w to run specific stage in jenkins pipeline, in ArrayList,Single linked list and double linked list which one you preffer and wh

e?
y a space), sums each file and then adds the sums to produce a total.
n if there are more than 4 separate integer files).
e test scripts and what is the time interval you run those test scripts ?

our earlier?
al test runner tool in your organization to run test. What will be your first step? How will you run test suites/cases?

hy?
e no duplicates.
project to develop on top of using Cucumber with the page object design pattern. Bonus to include automated screensho

a6e88b30761fae22. Create an assertion to verify the latitude is 51.51 and the longitude is -0.13. In addition to asserting th
ch one you preffer and why, what is hash code, write program to get all combinations of 3 number whose sum is equal to 1
est suites/cases?
e automated screenshots and email reporting. Please provide a Github link to this project in your reply email. Nice to write

n addition to asserting the latitude and longitude, please develop 3 more test cases you can test using the open weather
whose sum is equal to 10. will css and xpath differ based on browser,some thing like xpath search engine
reply email. Nice to write code to run on multiple browsers

using the open weather map API using Postman. Place the 4 test cases into a collection and export the collection as a JSO
ch engine
rt the collection as a JSON file. Upload that to a Github repository or gist, and link that in your reply email. Nice to take input
email. Nice to take input from a CSV file for the assertion.
LOCATION COMPANY Q.NO. ROW ID
AR, USA Walmart 1 2_W
AR, USA Walmart 2 2_W
AR, USA Walmart 3 2_W
AR, USA Walmart 4 2_W
AR, USA Walmart 5 2_W
AR, USA Walmart 6 2_W
AR, USA Walmart 8 2_W
AR, USA Walmart 9 2_W
AR, USA Walmart 10 2_W
AR, USA Walmart 11 2_W
AR, USA Walmart 12 2_W
AR, USA Walmart 13 2_W
AR, USA Walmart 14 2_W

Hyderabad Rishennya software servi 1 3_R


Hyderabad Rishennya software servi 2 3_R

Bangalore Synechron technologies 1 4_S


Bangalore Synechron technologies 2 4_S
Bangalore Synechron technologies 3 4_S
Bangalore Synechron technologies 4 4_S
Bangalore Synechron technologies 5 4_S
Bangalore Synechron technologies 6 4_S
Bangalore Synechron technologies 7 4_S
Bangalore Synechron technologies 8 4_S
Bangalore Synechron technologies 9 4_S
Bangalore Synechron technologies 10 4_S
Bangalore Synechron technologies 11 4_S
Bangalore Synechron technologies 12 4_S
Bangalore Synechron technologies 13 4_S
Bangalore Synechron technologies 14 4_S
Bangalore Synechron technologies 15 4_S
Bangalore Synechron technologies 16 4_S
Bangalore Synechron technologies 17 4_S
Bangalore Synechron technologies 18 4_S
Bangalore Synechron technologies 19 4_S
Bangalore Synechron technologies 20 4_S

Bangalore General Electric 1 5_G


Bangalore General Electric 2 5_G
Bangalore General Electric 3 5_G
Bangalore General Electric 4 5_G
Bangalore General Electric 5 5_G

Bangalore GE Healthcare 1 6_G


Bangalore GE Healthcare 2 6_G
Bangalore GE Healthcare 3 6_G
Bangalore GE Healthcare 4 6_G

Kolkata PricewaterhouseCoopers 1 7_P


Kolkata PricewaterhouseCoopers 2 7_P
Kolkata PricewaterhouseCoopers 3 7_P
Kolkata PricewaterhouseCoopers 4 7_P
Kolkata PricewaterhouseCoopers 5 7_P
Kolkata PricewaterhouseCoopers 6 7_P
Kolkata PricewaterhouseCoopers 7 7_P

Bangalore Harman 1 8_H


Bangalore Harman 2 8_H
Bangalore Harman 4 8_H
Bangalore Harman 6 8_H
Bangalore Harman 7 8_H
Bangalore Harman 8 8_H
Bangalore Harman 9 8_H
Bangalore Harman 10 8_H
Bangalore Harman 11 8_H

PA, USA Highmark 1 9_H


PA, USA Highmark 2 9_H
PA, USA Highmark 3 9_H
PA, USA Highmark 4 9_H
PA, USA Highmark 5 9_H
PA, USA Highmark 6 9_H
PA, USA Highmark 7 9_H
PA, USA Highmark 8 9_H

Bangalore Thermo Fisher Scientific 1 10_T


Bangalore Thermo Fisher Scientific 2 10_T
Bangalore Thermo Fisher Scientific 3 10_T
Bangalore Thermo Fisher Scientific 4 10_T
Bangalore Thermo Fisher Scientific 5 10_T
Bangalore Thermo Fisher Scientific 6 10_T
Bangalore Thermo Fisher Scientific 7 10_T
Bangalore Thermo Fisher Scientific 8 10_T
Bangalore Thermo Fisher Scientific 9 10_T
Bangalore Thermo Fisher Scientific 10 10_T
Bangalore Thermo Fisher Scientific 11 10_T
Bangalore Thermo Fisher Scientific 12 10_T
Bangalore Thermo Fisher Scientific 13 10_T

Bangalore Wells Fargo 1 11_W

Mumbai Jio 1 12_J

Bangalore Fossil 1 13_F


Bangalore Fossil 2 13_F

Mi, Canada Canadian Tire Bank 1 14_C


Mi, Canada Canadian Tire Bank 2 14_C
Mi, Canada Canadian Tire Bank 3 14_C
Mi, Canada Canadian Tire Bank 4 14_C
Mi, Canada Canadian Tire Bank 5 14_C
Mi, Canada Canadian Tire Bank 6 14_C
Mi, Canada Canadian Tire Bank 7 14_C

Delhi Pure software 1 15_P


Delhi Pure software 2 15_P
Delhi Pure software 3 15_P
Delhi Pure software 4 15_P
Delhi Pure software 5 15_P

LA, USA Eharmony 1 16_E

Bangalore Publicis Sapient 1 17_P


Bangalore Publicis Sapient 2 17_P
Bangalore Publicis Sapient 3 17_P
Bangalore Publicis Sapient 4 17_P
Bangalore Publicis Sapient 5 17_P

Kolkata Cognizant 1 18_C

Chennai Photon interactive 1 19_P


Chennai Photon interactive 2 19_P
Chennai Photon interactive 3 19_P
Chennai Photon interactive 4 19_P
Chennai Photon interactive 5 19_P
Chennai Photon interactive 6 19_P
Chennai Photon interactive 7 19_P
Chennai Photon interactive 8 19_P
Chennai Photon interactive 9 19_P
Chennai Photon interactive 10 19_P
Chennai Photon interactive 11 19_P
Chennai Photon interactive 12 19_P
Chennai Photon interactive 13 19_P
Chennai Photon interactive 14 19_P
Chennai Photon interactive 15 19_P
Chennai Photon interactive 16 19_P
Chennai Photon interactive 17 19_P
Chennai Photon interactive 18 19_P
Chennai Photon interactive 19 19_P
Chennai Photon interactive 20 19_P
Chennai Photon interactive 21 19_P
Chennai CNSI 1 20_C

Pune Wipro 1 21_W


Pune Wipro 2 21_W

Bangalore MResult 1 23_M


Bangalore MResult 2 23_M
Bangalore MResult 3 23_M
Bangalore MResult 4 23_M
Bangalore MResult 5 23_M
Bangalore MResult 6 23_M
Bangalore MResult 7 23_M

Hyderabad HCL 1 24_H


Hyderabad HCL 2 24_H
Hyderabad HCL 3 24_H

Mumbai Accenture 1 25_A


Mumbai Accenture 2 25_A
Mumbai Accenture 3 25_A
Mumbai Accenture 4 25_A
Mumbai Accenture 5 25_A
Mumbai Accenture 6 25_A
Mumbai Accenture 7 25_A

Hyderabad HCL 1 26_H


Hyderabad HCL 2 26_H
Hyderabad HCL 3 26_H
Hyderabad HCL 4 26_H
Hyderabad HCL 5 26_H
Hyderabad HCL 6 26_H
Hyderabad HCL 7 26_H
Hyderabad HCL 8 26_H
Hyderabad HCL 9 26_H

Pune Synechrone 1 27_S


Pune Synechrone 2 27_S
Pune Synechrone 3 27_S
Pune Synechrone 4 27_S
Pune Synechrone 5 27_S
Pune Synechrone 6 27_S
Pune Synechrone 7 27_S

Hyderabad Tessla 1 28_T


Hyderabad Tessla 2 28_T
Hyderabad Tessla 3 28_T
Hyderabad Tessla 4 28_T
Bangalore Blume Global 1 29_B
Bangalore Blume Global 2 29_B
Bangalore Blume Global 3 29_B
Bangalore Blume Global 4 29_B
Bangalore Blume Global 5 29_B
Bangalore Blume Global 6 29_B
Bangalore Blume Global 7 29_B

Hyderabad Inspire infosol 1 30_I

Bangalore FIS global 1 31_F


Bangalore FIS global 2 31_F
Bangalore FIS global 3 31_F
Bangalore FIS global 4 31_F
Bangalore FIS global 5 31_F
Bangalore FIS global 6 31_F
Bangalore FIS global 7 31_F
Bangalore FIS global 8 31_F
Bangalore FIS global 9 31_F
Bangalore FIS global 10 31_F
Bangalore FIS global 11 31_F
Bangalore FIS global 12 31_F

SFO, USA Roberthalf 32 32_R

TX, USA
personal Intrest and interview preparation
33 33_P

Pune 34 34

Seattle,WA Walgreens 35 35_W

Foster City, USA Visa Inc 36 36_V

Pleasanton USA GMC 37 37_G

hyderabad Servicenow 38 38_S

Pune Betsol 39 39_B

Pune Betsol 40 40_B

Seattle,USA Walgreens 41 41_W

Noida, Gurugram NA 42 42

Bhopal Isc 43 43_I

Toronto Canada Health Canada 44 44_H


Pune Betsol 45 45_B

Pune Betsol 46 46_B

Penang, Malaysia Jabil 47 47

chennai Olam 48 48_O

Toronto RBC 49 49_R

Pune Tech Mahindra 50 50_T

Pune Globant 51 51_G

USA Atlanta Cognizant 52 52_C

Pune Globant 53 53_G

Charlotte,NC Wells Fargo 54 54_W

Seattle Amazon 55 55_A


Hyderabad CUBIC 56 56_C
Pune Betsol 57 57_B
Mumbai BrowserStack 58 58_B
Hyderabad Hexagon 59 59_H
Mumbai Sports Interactive 60 60_S
Pune UBS 61 61_U
Hyderabad Medtronics 62 62_M
Hyderabad Duff and Phelps 63 63_D
Pune Nice Interactive Solutions 64 64_N
Noida Velocis System Pvt Ltd 65 65_V
Gurugram Northcorp Software Pvt. Ltd 66 66_N
Hyderabad CA Technologies 67 67_C
Pune Xento 68 68_X
PUNE Neova Solutions 69 69_N
Bangalore Subex 70 70_S
Hyderabad Black knight india solution 71 71_B
Hyderabad Microsoft Teams 72 72_M
NA NA 73 73_N
Pune TSYS 74 74_T
Noida Monotype 75 75_M
Noida Monotype 76 76_M
Singapore DBS Bank 77 77_D
Singapore DBS Bank 78 78_D
Charlotte NC Wells Fargo 79 79_W
Charlotte, NC, USA Lending Tree 80 80_L
Austin, TX Quest global // Apple 81 81_Q
Austin, TX Apple 82 82_A
Melno Park, CA Cognizant// Etrade 83 83_C
Melno Park, CA Etrade 84 84_E
Charlotte, NC Truist Financial 85 85_T
Chennai Synechron Technologies 86 86_S
Bangalore Fibnolabs 87 87_F
Pune Allianz Technology 88 88_A
Sfo Apple 89 89_A
Arizona, AZ BofA 90 90_B
Toronto,Canada TCS 91 91_T
Toronto,Canada Royal Bank Of Canada 92 92_R
Bengaluru (RBC)
Goomo Technologies, 93 93_M
Singapore Global
DBS foundries,
Bank 94 94_D
Kolkata PureSoftware
Lee & Nee Softwares 95 95_L
Bengaluru Mphasis,
Vedantu 96 96_V
Bengaluru Wissen Technology 97 97_W
Bengaluru Value Labs 98 98_V
FIGmd DLTLabs 99 99_D
Hyderabad UHG 100 100_U
Coimbatore Cognizant 101 101_C
Hyderabad Legato healthcare 102 102_L
Noida ,India R System 103 103_R
Bangalore International
Moolya SoftwareLimited 104 104_M
Chicago Synechron 105 105_S
Trivandrum Infosys 106 106_I
Hyderabad Capgemini 107 107_C
austin tx texas mutual 108 108_T
Noida TSYS 109 109_T
Hyderabad Prolifics 110 110_P
Pune Scrum star 111 111_S
Kolkata Intelliest 112 112_I
Bangalore Sony, Ntt, Dell 113 113_S
Bangalore Signzy 114 114_S
San Jose Exabeam 115 115_E
Bangalore Capgemini (C2H role) 116 116_C
Gurgaon Lucid 117 117_L
Gurgaon Axtria 118 118_A
Hyderabad Prutech solutions 119 119_P
Pune Cognizant 120 120_C
Bangalore ITC Infotech 121 121_I
Pune Cognizant 122 122_C
Hyderabad dot com weaver 123 123_D
Nuance
Pune 124 124_N
Communications Ltd
CA, USA Mphasis 125 125_M
Hyderabad Capgemini 126 126_C
Bangalore FIS 127 127_F
Arizona walmart 128 128_W
Chandrapur Vertical software 129 129_V
Pune Vertical software 130 130_V
coimbatore cognizant 131 131_C
Pune Amdocs 132 132_A
Bangalore Mystifly pvt Ltd 133 133_M
Pune Tech Mahindra 134 134_T
Soft
Chennai 135 135_S
Suave Technologies
Hyderabad Deloitte 136 136_D
Pune LMS solution 137 137_L
Toronto torontotestconsultant.com 138 138_T
Cardiff ABVL 139 139_A
CHENNAI ACCENTURE 140 140_A
Pune Zocdoc 141 141_Z
Bengaluru Capgemini 142 142_C
Pune , india Capgemini , Pune 143 143_C
Canada Concentrix.com 144 144_C
Coimbatore PSG software technology 145 145_P
Hyderabad Salesforce hackearth exam146 146_S
Dublin EIDA Solutions 147 147_E
Sanfrancisco, CA Clear labs 148 148_C
Mumbai Citus Tech 149 149_C
NA Societe Generale 150 150_S
Noida BirlaSoft 151 151_B
NA API 152 152_A
Mumbai Tech Mahindra 153 153_T
Bangalore Cap Gemini 154 154_C
Mumbai Synchreon 172 172_M

Hyderabad Infosys 173 173_H

Mumbai LnT 174 174_M

Mumbai Capegemini 175 175_M

Pune Tech Mahindra 176 176_P


Bangalore Many 177 177_B

Hyderabad Snithik Technologies 178 178_H

Gurgaon MakeMyTrip 179 179_G

Bangalore ABC 180 180_B

Pune Amdocs 181 181_P

Mumbai Citus Tech 182 182_C


Bangalore SCB 183 198_S

Indore Eworkplaceapps 184 199_E


Hyderabad EPAM 185 200_E

Mumbai IBM 186 201_I

Bangalore Accenture 187 202_A

Mumbai Live pages infotech 188 203_L

Bangalore IQVIA 189 204_I


QUESTION Raj
Difference between Abstration and interface Abstract class and interface both are
What is encapsulation used
Encapsulation to achieve abstraction where
in Java is a process of we
Explain about synchronization in selenium can declare
wrapping
Synchronization meaning: code theand abstractdata together when two intoor
Difference between throw and throws methods.
a
more single components ... Interface can
unit,
Throw is a keyword which is used for example,
involved have
a capsule
to only
perform
abstract
which
any is mixed
action, methods.we of
expect Since
several theseJava
medicines 8, init can
What are the exceptions you have faced ito throw an exception explicitly
have have faced
default No
and such
static element
methods found the
also.
(how can We
components
program can create
inside to a fully
work
a function or encapsulated
together with
inside the
a
Method toyou
get resolve
the pagenotitle
such element exception
it
2)
class could
Abstract
in be
Java
.The NoSuchElementExcepti
done
class by by getting
doesn't
making all thedata
support
the page
exception) same
block
on in
title pace.
of
Java
by Selenium The
code. Throws is
is thrown co-ordination
andwhen do between
onetesting
assertion tries to
How to handle multiple windows on browser Selenium
multiple
members
these componentsWebDriver software
ofiterable
the class to private.
run paralelly Now by we
Explain about Page object model and
a keyword used
access
using
tool
Page has
Object an
TestNG.Import
builtModel as
inheritance. Interface supports
can use setter
in
inand getterthe
beyond
Assert
a
method
design its
class
methods in is
pattern the
to
called Synchronization
signature
maximum
import section: used
limit. Theto declare
`import exception
org. indicates
testng. ...
advantages
Difference between submit and click in "WebDriver.switchTo().window()"
used
multiple
Submit
set
It is and to
athere build
inheritance. 
isget
mechanism for the andata
Forms objectand
which repository
Click
in elements
it.By
involves is formore
providing for
an exception which
that
Create
method a are
WebDriver
available no more to might
object:
switch WebDriver
from one
selenium
What are the selenium libraries that you have the
Buttons
only web
SeleniumLibrary
than
get thrown by a
one setterelements
components available
orthe function while
getter
is aoverweb method,
toin in
testing
work theyou
parallel
remaining
driver=new
window
application totheto iterate
FirefoxDriver();
another
under window
test. Few an
so
othersit is very
used
Explain theexplain
and code ofone
launching browser If
can
library
with
package you
executing
enumeration. submit
make
Each for Robot
other.
demotc;
the using
code. any
class read-only
Framework element that or of
write-
Apply
easy
refer
Form,
only.It to this
to handle
itis itaas
will to
way assert
multiple
a framework
automatically the
toAutomation,
achieve data title
windows
for
find of the
Selenium
button in
Explain about testNg annotations utilizes
Generally
Import
Only
TestNG the in
Annotation
The NoSuchElementException is
page: or you Selenium
Test
org.openqa.selenium.webdriver;
single exception
may is
be tool
is
awritten internally
thrown
piece ofwe
this have
by
code
webdriver.
automation
with
hiding in
It
two also type Java
supports
components for
'submit' the
because ofgiven
differentform application
and
other click
class
programming onwill
Difference between after suite and before Import
using
which
thrown
Ans:
To get throwMultiple
is
theby inserted
@AfterSuite>> the
page following:
title exceptions
inside
Thewhat aiterator::next()
program
@AfterSuite can or be
under
it.
not
languages
1.
thrown be test.
Applicationable However,
to
such
org.openqa.selenium.chrome.chromed
by using access
Under as C#,
Test
throws. the
Java, I
datahave
Perl, PHP
suite business
By
annotated applying
use getTitle() method
understood logic
methodabout used
WebDriverWait, will
the to control
run
ofterm after
driver. Page the
webdriver the
Submit
through
and
2.
river;
flow
object Test Ruby
of can thefor
Automation
execution
wait be
for done
private
writing
a of on
data
test
Tool.
specifictest any form
members.
scripts.
methods.
time (in item
Oops concepts execution
actualTitle
Object
and clickModel hasof
= all the test
driver.getTitle();
is: methods in
Installation
import
@BeforeSuite>>
second)
the suite. of of to
an be done
Selenium
org.testng.annotations.Test;
The
element @BeforeSuite
for Button
libraries
its with
for
What is data Driven testing type
Java
publiccan
Both
annotated
visibility. Submit
these
class be done
components
methodOpenchrome using
will runMaven.
will have
{ before Add their
the
#1) It
the
own is a ...
selenium-java
speed. designWe
We
can handle
pattern
dependency
should where
write our you
in your
execution
NoSuchElementException
@BeforeSuite>>
have a separate of all The the
Java test methods
@BeforeSuite
class through
file in try-
Explain about your framework? project
scripts
@Test
the
catch
annotated suite.
blockpom.xml:
in such inside
method a wayGenericthat
will run both
method
before the the
corresponding
The
components selenium-java
voidoftest12() to each
should dependency
move
throws screen with
Exception{or
samepage
Have you used POM in your framework? @AfterSuite>>
public
execution
in the boolean
application. The
all the @AfterSuite
isElementPresent(By
Thetest methods in
What is Page Factory? supports
and
annotated
by)
the desired
{suite.
boolean running
methodspeed,
isPresent yoursoclass
will automation
that
run
= true; wefilewill
after
could
trythe not
include
project
encounter
// Initialize the
with object
all
"Element
browser Seleniumrepository
Not supported
Found" of the UI
errors
Suppose you have 7 pages in your execution
{elements
driver. as of well all the astestmethods. methods in
browsers.
which
WebDriver
the suite. will consume Ifdriver=new
you want time to runagain
ChromeDriver();testsin only
application
Have you used theninterface
to achieve POM what
in your u will
framework in a
debugging. specific
@BeforeTest>> browser,
The you
@BeforeTest can add the
do?
other then selenium interfaces?
What are all the selenium interfaces? #2) In case there are humongous web
dependency
// Open Google
annotated method for that browser
will beobject executed in your
Synchronization in selenium? syntax for elements
pom.xml
Synchronization on
file
driver.get("http://www.google.com"); a page, can the be classified into
before
repository the execution
class for a ofpageall thecan test
be
implicit
How u willwaithandle popup window ?other then  if you
two categories:
methods want offrom to run
available tests classesonly in
get window handle separated
Chrome,
// Close browser you shouldthe class add the thatfollowing
includes
What is Listeners? belonging to that folder.
methods
dependency:
1. Unconditional
driver.close(); for the corresponding page.
How u will handle alert? @AfterTest>> The @AfterTest annotated
How to get system date and time? }<dependency>
2.
method Conditional willthe beSynchronization
executedAccount after thepage
Example: If
 execution of Register
How to connect to database? has many input all the test methods of
<groupId>org.seleniumhq.selenium</g
Unconditional
available classes : fields belonging
then there could
to that
Exceptions in selenium? be
roupId>
In a class
this we just specify timeout value
folder.
RegisterAccountObjects.java
Suppose u have class and abstract class in  only.
<artifactId>selenium-java</artifactId>
We
@BeforeClass>> will make The the tool tothat
@BeforeClass wait until
class there
Primitives and is a user
Non defineddatatypes
Primitives constructorin and forms
 certain the
<version>3.X</version>
amount objectofrepository time and for the UI
then
annotated
elements on method the register will beaccountsexecuted
main
What method
java? String
is Hashmap which one
is primitive
? Canor will
wenonget execute
objectsfirst?
primitive
store in </dependency
proceed
before the further.
first method of the current
hash map and how to retrieve them? page.
What is Jenkins? class is invoked.
What is the use of Pom.xml? Examples:
@AfterClass>> Wait() The and Thread.Sleep();
@AfterClass
A separate class file
What is the use of testng.xml? annotated
RegisterAccount.java method willextending
be invoked orafter
The
the main disadvantage
execution of all the for
test themethodsabove
Annotation used in page object model? inheriting
statements RegisterAccountObjects
are, there is a chance of that
of the current
includes all the class.
methods performing
unnecessary
@BeforeMethod>> waiting The time even though
@BeforeMethod
Ways to find broken links in selenium (except different
the application actionsison the
ready. page could be
annotated
created. method will be executed
using
Why did HTTPURL Connection)
you choose selenium? before each test method will run.
Test scenarios for Amazon search results The advantages
@AfterMethod >>Theare @AfterMethod
like in a situation
#3) Besides,
where we there
interact could
for bepartya generic
page
Test scenarios for Screen sharing in an app annotated
package with method a willthird
{roperties runfile,after Excelthe
systems
execution like
of interfaces,
each test it is not
method.
How will you test a button which is enabled test
possible data,to and write Common aThecondition methods or check under
only for 5 minutes in a day. @BeforeGroups>>
a package. @BeforeGroups
for a condition.
annotated method Hererun in this
onlysituations,
once for a
How u handle dynamic drop-down list we
group have before to make the the application
execution of allto testwait
dynamically
OOPS concept with
witha programs
scenario Example: DriverFactory
for certain amounttoofthat time that by could be
cases
used belonging
very easily throughout group.
(About
entirebug
program
life cycle asked to write)
they specifying
@AfterGroups>> the timeout The value. all the
@AfterGroups
pages in the application. Here is the
annotated
link of screen method run only once for a
Conditional
group after Synchronization:
the execution of all test
shot:https://prnt.sc/tc3omf
cases belonging to that group.
We specify a condition along with
Advantages of Page Object Model:
Diff annotations in testng

Tell something about yourself


What strategies you followed while building a
Selenium
How can we framework
scroll tofrom
end scratch?
of an page in
dynamically
Related loading
to above page? if I ask you to find
question,
onea element
As Team Lead, while
howscrolling
you willand then stop
evaluate your
when
team's found, how
performance would you handle
What's the difference between Test Plan and it?
Test
If Strategy
there are 3 test cases with method names
as "banana", "cat" & "apple" in respective order,
which
Roles and testresponsibilities
call will execute first and why?
Explain wyat you done in SQL testing
Explain What you done in API testing?
Explain different types of deffect management
?
Explain Bug cycle
Explain How you handle exception
What is xpath?Type of X path.Explain each
type
What is Wait selenium,Diffrernt type of
waits,Explain
How you convert eachstring
waits"HELLO" into String
"hello"
How do we identify the web elements?
How does Selenium work?
We have a login functionality of banking
application.
We have login Wefunctionality.
need to test What
following
do you start
scenario.
to testisthis
What User logs into
the functionality user
with?account
difference between (Manual and
testing
functional
checks
question)
testing and regression testing?
Have you worked with single layer (Manual
savings
testing account balance. How do you
question)
application?
Can
automatetell
you me
this about architecture of the
test?
application you worked?
What is relative Xpath? How do we build it?
Where do you start it?
How do you perform parallel testing in
selenium?
Which framework do you use in current
company?
Can you describe scrum ceremony?
What are the oops concepts ?
Explain overriding and method over loading .
What is difference between constructor and
interface
Why do you ? need geckodriver ?
What is difference between explicit wait and
implicitA wait
Class have? 3 method , class B have 2 ,class
B inherited class A, how
What are annotation do you?call method of
in testNG
classmany
How A by suits
creating
canobject of class
be there B ? , what
in testNG
if I run
As all thedo
lead,how suits
you? define quality of product
before release?
in testNG, do we have multiple suit in one XML
file and what if I want to run all suits ?
In a web page there are several Pop-up, but
we don't when the pop-up will appear, in this
case
Suppose howyou we will
are handle
the leam the
QAPop-up using
and 1 new
Selenium WebDriver (Java)
member join your team and at the same time
you
Java- have
Writea deadline to meettoinprint
a Java program next1234
2 or 31234
days so
in two rows. how will you involve that new
member in team so that you can utilise
him/her to meet deadlines?
Selenium- In a online shopping application
after placing a order, a success message will
be displayed
Explain Set andwith
Mapa weborder
in Java. number. How to
fetch and print the Weborder
If proper Xpath, cssSelector and number
ID arefrom
not
that success
available, how message.
do you The success
identify an object.
Explain
message how
canBDD
be works
in any with Cucumber.
language. (The
How do you set the test data
weborder number can be displayed in BDD.
How do you
anywhere inmanage
the successtest execution
message using
TestNG.
Explain inner
depending onjoin
theand outer join in SQL.
language)
Explain implicit and explicit wait.

Different types of Waits available in Webdriver


Different types of Navigation Commands
How to handle frame
How to handle Alerts
Difference between findelement and
findelements
As a QA where do you see yourself in next 6
months
How to find broken links in web page using
selenium
How will you(including
handleframes).
dynamic payloads in API.
How to download a file using selenium.
How will you handle dependencies in Maven
at
Howruntotime.
fetch coupon code from image file.

How do you manage a set of Data Tables in


selenium?
About yourself.
About project.
Source code management tool.
How will you resolve the conflicts.
What is static and final in java?
How will you prevent tge override method in
java
Explain about collections.
Cucumber tags and Annotations
How will you pass values in your project?
What is hooks and explain hooks.
What is background??
How will u run the method again and again in
testng?
How the methods run in the order??
Parallel tests about class method and tests.
What is actions class and the methods in
actions??
What is the difference between build and
perform?
Difference between find element and find
elements and its return
Explain concepts type. and relate to
in collections
ur project.u have checkbox and I want to click
Consider
the checkbox
Attributes , how
of css will u find the element is
selector.
present or not at the
Program to find the found sameoftime should not
special
get any exceptions.(element
character, numbers, capital lettermay or
andmay not
small
present).
letter in a given string.
What is Owasp concurrent testing

Write a program that reads objects from


property
How file in windows
to handle page object
popmodel framework.
with selenium
without using auto it.
What's the fastest locator in Selenium?
What does ::(double colon) in sibling xpaths
represent?
What's the dependency to read/write excel
documents
What's in Selenium?
the difference between imports and
extends?
Why do we use extends when we have
imports options ? test cases in Testng.xml?
How to add/remove
How to add waits in Selenium?

Move all zeroes to end of array- Given an


arrayall
Print ofthe
integers,Move the all zero's
duplicate character and to end of
their
the array.
count in the
Reverse Push all
given
a string the zero’s
string.
preserving of a given array
space positions.
to the
Example
INPUT end
: "Java of the
1: INPUT array.
: String str="hcl-tech"
is a programming language" ------
Example
OUTPUT 1: INPUT:
:h-2,c-2
: "egau gn a lgnimmargor pasiavaJ"
Can we over load main method---OUTPUT:
myArray={2,5,0,4,2,7,0,0,1,9,4} in java?
Explain about final class?
myArray={2,5,4,2,7,1,9,4,0,0,0}
Test life cycle
How to handle drop down using selenium ?
Using selenium can we automate desktop
application's
About vmodel? ?
How many locators available in selenium and
explain each and every one ?
Difference between Given and When in
cucumber
What is thefeature
purpose fileof Background in feature
file
Can i give login username and password in
And willreporting
Which it work? standard you use in
framework
Logic to reverse a string
i have seven checkboxes in a page every time
my script
What shouldwill
exception check last but
program throwonewhen
checkbox
i use
findelements
Jenkins CI/CD and it do not identify element in
a web page
Explain BDD framework in your project

Selenium webdriver architecture


Explain automation framework
Why Testng is used if there is cucumber used
in your
Java framework
program to find word count from the
given string
Which catch String s= "my
block will get name
execute is umesh";
first.
There
6. ares1=
String two"hello";
catch String
blockss2="hello";
in first catch block
have exception
If(s1==s2) then e
telland
me second
if it's true
String s ="hello"; s.concate("world"); catch block
or false.
have arithmetic
What is the output?expections and will expect
arithmetic exception in try block then which
What
catchdo youwill
block mean
get by Enumeration
execute first? in implicit
wait?
Give example for Run time polymorphism?
Fluent wait?
Testng?
Explain Bug life cycle
Write test cases in given scenario
What is compatibility testing
Difference between water fall model and agile
methodology
Explain your project
write the xpath for given scenario
Sql query to find out total salary for all
employee department wise
How can you handle if application is opening
in seperate tab in same browser
Explain about project and work experience.
Explain about the usage of Jira ? How add
testcases
Worked onand
anydefects?
other defect tracking tool? Do
you know
Explain about
about theHp ALM?If explain
framework used in your
project
How do read data in data drivern framework?
read data
Write a program to check from Excel
if a number is sheet
palindrome
Explain how to get the 5 th child window.
What is polymorphism?
Difference between API and webservices
How did you write testcase using soap UI for
API testing
Do you know about testing framework ? Write
an XML toannotations
Different run scripts?list of API in
in testing methods
order

How do you automate localization testing -diff


languages in UI What are the tools used and
how did youthe
I am getting do below error in eclipse and
could not able to run any class.
Error:
How do Could
you not find
write or load
your scriptmain class
in selenium
learning_Java.Callbyvalueandcallbyref
Caused by:
why do you need to do Automation for API
java.lang.ClassNotFoundException:
testing? Generally API changes occur every 3
learning_Java.Callbyvalueandcallbyref
to 4 months. You ALPHABET,
1: I have a string can do it faster
write manually
a program to
right?
reverse it in java.
2:
1: How
How do you capture
to handle specific
multiple response
endpoint in SOAPUI?
value and pass to other request.
1. explain framework implemented in project.
2. explain how did u achieve polymorphism in
your
1)Whatproject
are your roles and responsibilities as
3. consider
manual i am new into your project team
tester?
and explain
2)whatarearetest howroles
your oops and
concept implemented
responsibilities as
What
in project design techniques
Automation test engineer?
4. explain
3)what arewebdriver waits you faced as a
the challenges
1.Difference
5. what do you between
do
automation test engineer? as TDD of
part (Test-Driven)
automationand
BDD(Behavior
6. how many Driven)
test
4)What is @dataprovider Testing
automation scripts did u
2.how
automate
1) will u
till
API Framework
5)syntax decide
now what tests
to perform parallel testing to automate?
in TestNG
3.What
2)
andHow
whatare some
to open
do you best
browser practices u learnt and
write inin New Private
how
Window
<suitemuch difference
using
tag> also what it
script domade in testingin
you mention
career?Explain
3) Approach
double quotes the
to do before
likeIntegration and after situations
parallel =" "Testing
4.What language your current web
4) API Testing- If found any error (which is not
Which Test is
application
as expected) strategy didwill
developed?
how you you use insolve
(tester) your that
last
project?
5.Howdo
(how toyou
avoid NoSuchElementException
contribute)
without using try/catch
5) Cucumber- Hook and Profiling block and with
try/catch block?
6.How to handle web tables whose values
1)What are your roles and responsibilities as
manual tester
2)what are
1)What are your your roles roles and and responsibilities
responsibilities as as
Automation
manual tester test engineer
3)what
2)what challenges
areabout your yourself roles youand faced in your
responsibilities
1. Tell me
Automation career and Roles and as
Automation
Responsibilities test of engineer
previous project?
4)What
3)what challenges
challenges you faced
you faced in your
in api testing
2.What
iAutomation
have 2 do
5)when are
excel all
you the
files
automatedrawbacks
one excel in in
file
current Selenium?
for sprint
qa andor
3.How tofor execute careerparallel test using Test NG?
another
next
4)What sprint? challenges prod
4. Pros and cons of you Implicit faced wait in and api testingExplicit
After
5)when
wait you dohave you run automate a full regression in current sprint test, and or
ifind
need
next new to regression
sprint? pass the workbook bugs, which namebugs would
5.How
dynamically to check during whether executing web element is
you
1. In prioritize.
enabled Selenium, or Disabled Bugs
how to that get
without suggest
text using value that from text-
isEnabled
functionality
box
method? if gettext() has
It's not hidden is regressed,
not working? or bugs that
wat
appear everinworkbook new features? nameelement i given itbut should read
6.Difference
1.
and One write testsuite that between executed
workbook @Factoryname with error and during
2. If we are using
@DataProvider?
night-hours but now correct same locator
testsuite but gettingstill
getting
7.@Factory
executed
beoz element
the code explain
without is not any
same found
witherror. for error
realqatime Whatand then willhow
example?
prod be your u
1)
will Describe
resolve INS
this Testing
error? process experience :
8.How
insteadtoofconfigure
approach to
creating debug new Grid
it? node project and forhub? prod i will
10.each
just
2) How pass did time
theyou grid
workbook
automateurl willname change
the how?to
dynamically
screen
1.
3. Why
resolve is
we this CSS prefer locator
problem?
2. Write SQL query to create new table explicit faster wait than instead Xpath? ofwithout
fluent
2.
wait?
11.
any Even What though
Enrlolment()method,
dataType are
fromofexisting CSS
the is faster
disadvantages we
table? needthan Xpath
of
more fluent ,why
pass
3)
do
wait? What
95%to ofcover the companies framework use didXPath you use ? case, ? can
1.How
20
you paramaters
please write character
as an
the input
code keyboard
for
assuming that test operation
specific
3.What
from the are theguidelines,
Standard Guidelines and rules
as
3.
to
4.
per
Two
objects
be
Without followed-context
coding
priority(0)
howimplicit did
for
menu
TestNG
you
any
wait
utilizing
code
automation
selenium
I can
methods for pass user-defined
the will
script
only
drop
project
give
will
10
down
keyword?
parameters
compile
This
? What was is error
first in test
or
round not? method.
the benefit of using a framework -telephonic How will
interview you pass
framework?
work
2.Consider
those orparameters,
not? this snippet we cannot
1.
4. Explain
describe
What difference
the
factors components
will popup youbetween considerthatsplit Method
you for
the
used task
giving withas
Web
different
4. What driver
 a={2,3,0,0,5,0,8}
Overriding if methods?driver=new
Windows
&your How chrome
do you
occurs driver();
returnduring the test
code
1)What
estimate
5.
what Today
values
execution
examples
does are
inside toand
we aMethod
the automation
havethe above
due
roles Overloading
executed
to
andproject?
code
that
responsibilities
some
snippet tests
mean? using as
 1.
2.
manual
5. write
Open
ASSIGNMENT
What a
notepad
tester
will code QUESTION
happen to and put if all 0can't
write
implicit at
programtheexecute
and end for
explicit wait
maven,
3.where
automated
 2. Use but
13.Parallel=instances
data can tomorrow
"Dynamic
tests,
structure how when
uPolymorphism"
explain
to will
solve you about
resolve the see that
this?
this
problem in error?
method
3A)
2)what
This
is
1. Did
used
How
someone round you
are
do overriding
together?
you work
your
comprises
deleted get on
roles and
And
all
all API andmethod
awhy
the testing
practical
dependencies valuesdoes ,overloading
responsibilities how technical
it
from happendid
fromdrop- youas
.pom
Selenium
14.How
 3.
3. After
Write
automate do
code WebDriver
codingthe you to
API identify
, dry
create be
run
validation observed?
the
userand web
- calculate
in Rest
explain elements? Assured
with code
Automation
test
6.
down
file How that
then
Programming
4.What have
box is the
inthewhich test
that candidate
you case
Question engineer
difference handled
isfaster
defined
will is you
: xpath expected
Single
between bybe Select.
able to
initialisation
"/" and to "//" in
15.Which
complexity
4. Write
examples atestsis
programofmost the code.
to which has or css?
dynamic
3)what
complete
of Webdriver
execute
Test
xpath? challenges
scenarios in 2 inhours.
or your
to not
be you faced
framework?
covered in
: your
 16
Supposewhat is
payload
Automation
7.How have to the
there create
career
you
difference
a page userwith
handled and between
one
store
downloading
button XPATH
the and
if click
ofbutton
visit:
5.In
CSS?
on
1. that
Why
 1.what
response
3B) https://www.sportsadda.com/
selenium,
Did you button
doare we
and roles
work ifnewyou
implement
use onand want
tab
response
DB testingopens to
Abstract
responsibilty access
to and get &clickthe
Interface
in current
created
4)What
Objective:
different challenges
Run
browser an you
Automation
drivers facedwithout in,element
Test what
api session kind
testing ofon
5. Today
Click
element
17.
on
class What
that
project?
1.Reverse
user
databases onand got
new we
that
allHow
a ,
have
it/Cookies
thehas
tab
string
how didagainexecuted
the
different
did you
usingyou button(visible
text
new "This
ways
implement
regulartab
automate
some to manual
opens tests
XPATH
it? at
in how using
the
has
your
explain toan
5)when
BrowserStack’s
intervention?
maven,
bottom
ID that do
but
of
changes the you
after pageautomate
infrastructure.
that
every thataccidentally
time in
accepts current
the page sprint
someone
cookies) is or
writing?
read
project?
 2.There the
expression(Javascript)
5.
with
1. code
Explain text
Give
is product
difference
samples
method for the
me a overriding code
saythird
between amazon tab
snippet! ?
with restaurant.
interface thefile and
sample
next
7. find
deleted
loaded" sprint?
noin all of duplicates
dependencies
itStaleElementException
,then which in of afrom
given
the .pom
followingString then
will
18.What
Code
2.Open
abstract
code. is is
modified
facebook
class to add 
application zipcode in field
browser and how
whichand
6)How
1)
in
One
you What
Create
without
that Ad
use? do
apops
case usingyou
isfree Web select
trial
next-day
up Container
Loops account
which multiple
and will
needs collection.
you values
on BrowserStack
tobe be able from
closed to to
by
will
when
from
6.
4)
2. how
Didhandle
Write entered
console
youmany
a workit?
program gives
change
interfaces
with as nearest
the did
calculation
follows: Darkmode
u restaurants.
use in
testing to light
framework?
drop
2)
8.Is
1) OSI
automate
When
execute
automation
6.In down?
catch
page Model- ypu this
testsmandatory 7
decidelayers
test
orModel case
nottest? to in using
try
stop catch any
the testing ?
19.
Write
mode
7.
7)While
3)
Error
Write
InputHow
programming
9.what
2) what -test
to aisObject
a[1,2,3]
performing
will
does change
throwing
cases
program
happen language to
verification to
port
as
find
parallel
if you
Framework
of
Element
of Interviewer
how
SQL testing
your
exclude
means many not
choice.
(POM),
catch
found
kept
inlinks
testng
how
and
but
are
Java
Ido
tried
when you
asking
3.Difference with
I to
gointialize Selenium
and
give the
check
more but
elements
and that have
more element no
of
test a clue
page howto
is? available
cases. beto
redirected
5)
what
4)
use
3)
6.
1:
used
in
Do
Output you
do
Scenario:
only
Difference
In
what
close
the
What Page
init-isyou
web
are the
have
b[2*3,
Try 500
object
String
the Ifbetween
write
andwe
between
runner
page?
error
experience
1*3,
challenges
1*2]
inclass?
have
finally?
model
Pool.
The
async,await,call
page
suite 50
assert
once
element you
onyou
tag,
pages n Java
like
is
faced then
verify what
create
not in
back,
talk
how
hidden
do
weband
Something
promises
8.
youExplain
about
3. What
Using practical
mention
will is
verify
Selenium, Testinterviewer
fluent in wait
application
Plan?
parallel=
each load andthe was "
every"? expecting
oflike
flipkart.com super
pagewhat which
class
do
when
desktopyou I
4)
2: What
loginpage.java
what
(name
so no
services
1. How
could of
need
will
not isthe
is and same
difference
giveyouto class
PageObjects
use
rest origin
handle
the apiJava what
correct policy
between
using script
certificateis
class the
soapui
test String
isfirst
executor?
cases tool
using thing
Builder Howyou
4.Protractor
9.
4. Explain
sub-class
What
mention
open,
home
5) how the
page.
to are the
inclick
url Architecture
"invarious
"? challenges
your
should
on code
gitbethe
hyperlink commands?
https.faced while
, similar question working on
start
and
Move
do
1. you
selenium?
 3.what
Explain with
String
ahead
"SignupPage.java" solve
are writing
Buffer?
the
differentwithout
this? initially...How
and
challenges login.
types ofdirver
you are
framework. faced youinname
object your
in
5.
5)
6) Properties
automation
Polymorphism
What
Different
How to is explicit
handleways you used
wait
toto
web handle inin
based confi.js
selenium?
hiddenpopup fileelements?
initiating
3: writing something into athe page class?
RHS
is
2.
1.
6.
6)
7) IWhat
Risk
How
Top
Search
Can
Scores
"driver").
20.Any
Multiple
project
Consider
don't in
to
down
are
other
?
for want
agile
webdriver automate
the
different
widget:
Inheritance
thereways
modelto use
product are
use
memory
Click4Execute
anyintables
calendar
for
on
Java?
"Samsungthird
mobile
very types
parallel
inparty
feature
first in
Galaxy
application of
JVM
match
webpage make
S10"
4:
4.
and what
scorecard
7.What
Execution
3. What
Do i you
need is
kind
are
reporting(extents/Allure).the
TestNg?
haveto ofget
the difference
tools
capabilities
any would
question
particular between
How you
in
value use
Selenium?
for can us inArrayList
?
youfor
the the
build
6)
2.
my
7)
on
8)
7. Give
if
1)How
How one
trip
that
What example
you user
website
hash
page.
will
is map
verify
be
default moves
theof
through a
works
the complex
high
polling to another
Selenium
internally
war(patch)
availability
time SQL
inwillsprint
is query
and
testing
explicit then
howthat
wait its
and
Click
21.how
4.
ourHow
second Vector
automation
ownonwill Match
do
table you
customised of secondinfo
regression
set
create tab
the browser
framework
row.
reports tests?
How to and
make foryou grid
Login node
you
what
7.
1. Write
generate developed
successfully
Suppose
means
and it is test
for
in implicit called
hash
athe cases
you up
software
wait?-
code? talk
or
come for
not about
login
to while
tester office the business
functionality
deploying
in the of
the
morning,
5: what
8.what
information?
Functionality?
achieve
stakeholders Allare of
itbehavior
through the types
classes
understand xpath of exceptions
inthis!
and Java css Collectionin Java
elements
3.
2)
On
due
NonBdd
make
samewhat
theto my
onis was
search
any
repetitive there
trip
server. website.
the
critical role
results
ones- dependent
reasonof you
click youonin oryour independent
"Mobiles"
have to in test
run
6:
3. what
Framework
22.how
5. How
Explain
7.If I want is
do
will clone have?
you
Exceptions
to execute getand
execute where
allthe the using
hierarchy did
linksone
only you
headless
from
in use
java web
specific
4.
8.
1.
WebWhat
automation
categories.
suites
What but
Services is
allthe most
your
your project?
willdifference
you important
framework.
IDE(eclipse,
doInterview
tobetween things
optimize IntelliJ, to yourdefine
VScode in a
9.What
Coding
mode?
page?
4.
test
7) have case is
questions
you different
without worked on types
touching
with of the
BDD/AGILE Bit a
exceptions checked
- can in java
you
bug
9. Explain
3)Explain
etc.)
framework
7: is crashing, velocity
each to ofrun and also in
them sprint.
every you inof component
don’t
parallel have using of
Jenkins
and
1. Iwhat
Find
23.How
Coding
6. Whichunchecked
need thekind
many
questions middle
framework
to do
code/package.json/conf.js/Jenkins
describe
5.
10.Whom
What
framework
Apply
build orthe any the
is code
contact
regression
in
followingother
service
test
login
detail
exception?
node
oncases
setups
? you
filters
external
level
Interview
ifyou
and bug. were
have
logout testing
linked
intest
are
(in
there
Bit
used
afilters
BDDfor
unable list
runner
u
100
.How have
insmoke
your
to
section tooldoonin
Selenium
performed
10.Why
2.
and
1. Find if
Regression
framework?
Create
testcases. the
a isa Grid/
it
string
Feature important
middle
How Browser
can
test node
file
will you be to
suite? Stack?
ofoverride
made
achievelinked hashCode()
pallindrome
list
it? by
you
the
your do
environment
understand
4)what left that
is
hand
organization the from
for
theuse
side): JIRA/
your
requirements
of
to pom.xml
run any
script test. management
file?
What will betool ?
2.
8: How
whenExplain
changing
24.What
2. Find
Write
Can isis
you
if
Java a automation
constructoryour
override
only Rest
one
parallel=instances
string
methods can be of
be Salesforce
automation
equals()?
character made
overloaded return framework
?pallindrome Lightning
1
Explain if yes by
8. How
Automate
6. Day
5)what
your do
to
first was day you
the
step? the setup
below
work whole
Howcharacter the
use
will day Jenkins
case
you you using
spent in Azure?
BDDto in
different
9:
elsewhat
25.What
changing
Code
why?
9. Why return
should kindfrom
willonly
protractor 0.of
bebe classic
error
executed
one executable
is codes
async whenu run
in have
return
nature? you testsuite1Whyif yes
concepts,
1. What
resolve
Brand:
suites/cases? is
the
Samsung Java
staticissue andin by Selenium
java? debugging the code?
encountered
3. Move
parallel?
else
Generate return all zeros0.thatin Restin an array of n size to right
7.
2.
1.
10:
Explain
they
6)For
What
Consider
side. what
built
example isiscucumber
you dataprovider
in
this201 need
your word
they
code
manner?
to
team report
in
aretest is
meant
with
java?
10 a
new with
example
records
webservice?
for to screenshots
the how will
3.
1.
3.
youMove
10.As Launch
delete allfinally
aFlipkart
senior zeros
9URL QA
records in
and anwhere
engineer andarray how
fetch of nwe
do dosize
1st you
use? to right
record?
Select
2.
1. What
organization,
Selenium
Java Programs is the web assured
difference
planning
Service?
: around 8 between
toExplain
build
programs awithnew soap an and
software
some are
side.
1.
evaluate
What
7)Difference Navigate
is your
:https://www.dbs.com/sustainability/dbs-
4. method between to
junior over performance?
ETL loading?and SQL ?
restful
and
example?
11:
Face for
Explain
to webserives?
that
faceoutput webyou have
driver to write
architecture automation
what
8)How
Sort
3. the
framework.
is the
selenium
entries
401 : on
https://www.dbs.com/about-us/who-we-
11.Practical What Using
stronger-together-fund?pid=splitter-dbs-
5. What is the mean?
zoom:
importance
grid
with
will
and
POM works?
Price
few are
beofwriteyour of
->which afirst
testng
High
like pass and
login to
step? Low.How
2.
12:
1. Suppose
what
Explain
optimization
Face to faceis the I
web
are/awards-accolades/default.page? have
of
on driver
solution
the zoom: a service
code. attempted return
questions
failed
group
framework?
9)String
4. If
will scenarios
everything
you s=
build "a1b1c11111b1c1"
is and
framework? find the bug
successful what write incodethe
logic login
we
schedule
13:
on
1. how
Interview
26.What
Explain
productId=jxeawnvl to flights
iswrite
the handle
the Bit. available
output?
solution alert of in based
selenium
attempted on input
questions
module
Read
6. What
Read
can
3. see and
the and
are
isinset show
different
of
response?
the the
results
difference that
table
testngerror
thatin excel
between in the
annotations?
show report.
sheet.
up
click() on page
parameters.
14:
2. how to handle Can you multipletell me how
windows would in you
12.Discussion
String
on
2. Interview st1="Jabil";
Validate
Protractor Bit.about
the total
API's alternatenumber solutions.
of awards
1.Tell me about past experience briefly
2. Tell
1. What me is about priority past In testng?experience When ? tests are
configured
2. How will parallel,
1.What is the complex task you haveto
you design in which
a framework priority tests validate
done are
in
executed?
weTell
Testng?
1. service? me about yourself?
3.
2. What
How will
Have
What is
aredependency
you you executed
the validate
deliverables in
dynamic
testcases testng? you response?
parallel?
are
Telephonic
4. What is interview
invocationcount : Round in 1
testng?
3. How
responsible
7 years to serialization
compare
experience for,toinautomate below
your current and list deserialization?
has role?same set of
Different
5. Given
Is there a ways
webservice
any specific scenario
utility OTP to using
and
import asked to to?
values
3. let’s
selenium? when
say using
you have plannedand equals method for sanity 100 is failed
1) What
write is
all possible smoke,regression test
serialize
testcase
1. Difference
testing
the
execution, object?
between forscenarios?
some reason
Scenario and BScenario you are
1.
6. Consider
If
How
[{name:“
not there
able would
one”,
to is username
a
execute service
you
artists:and validate Aand
[“a1”,andsprint password
the service
“a2”] complex
end }, {name:“ date fields
in json
which
isone”,
outline
2)What
with
service submit in
is
B Cucumber
collection?
accepts button in
input framework
difference
a page,
parameter on between
submission
from set
How
response?
artists:
approaching.
2. to
Background take
[“a2”, a screenshot
“a1”]
How keyword } could in you of failed
Cucumber.handle test this scripts
What’s type
and
you
service
in
7. list
will
TestNG
By
1.Describe
4. Coding sharing Anot output
task: howget your confirmation
to response.
implement screenathe
handle canInmessage,
logic thisyou
below for scenario
write
items how
validating a
of
the
3)Onsituation?
use your of it?
webpage you have 4 seperate
will
how
pojo
using
the
1.what
4. youyou
class?
correct
Based seleniumgo
is on will
A aboutmanage
behavior
andabove AA testing
WCAG
answer, test
of a standardit.scripts.
jukeboxSprint ?planned How will
3.Can
tables
you we
calculatethen overloadhow will
performance a main
you method
traverseofcarry each ?through
Say
test?asked Class
8. Write
-iframe
5. Provided
2.Why
incompleted
Goomo
A has oneis a
IQs program2
accessibility
main locators(1CSS
test method to
stories reverse
testing
and are anecessary
1XPath)
Class string? B and
forwarded
has
those
7.
9. What
-windows
like Are tables
would
is
they the and be select
difference
syntactically the output the
between buttons
correct?ofused below checked
Or available
code
what
3.Why
or
1st
1)
in moved
another Round
Write
each are main
code
table to different
backlog?
- Written method.
for whether (HTML)tags
Test How some to call text Class is A’s
and
-table
are
4.What
5.
Set
mainHow Aunchecked
they 30
methoddo refers
scenarios
mins you from exceptions?
to?
manage will
Class you defect
B consider in alm? for writing
highlighted
What
4)How will
HashMap<String,
10. What many bethe
is and
your
exceptionsunderlined
next steps
String>
difference did
hm on
you ifnew
=testing
between adeveloper
webpage?
handle? close not
HashMap and
-Alerts
6.
4.
2) What
smoke
1) Explain
Automate
Difference
What is
pack
is the
about for
Login difference
between
background accessibility
defectpage List
in between
lifecycle?
w.r.t and
cucumber? Appium/Selenium
Set selenium
accepting
5)When
1. Is
<String,
quit
2.What it
in did
possible
String>();
selenium?
is javathe you Bug?
to
script got extend these
executor exceptions?
Final Class?
hm.put(“A”,”B”);
web
5.Which
7.
withCan automation
tell locatorabout and
would
any mobileyou
achievements automation?
prefer toyou locate have
5.
3)
1.
11.
What itJava
Difference
Explain
3.what
7. Apart
Which
elements
is
(NoElementfoundException)
2. Is possible
are
as
from
abstract
Defect
static
language
using
abetween
language
to
send
class?
override
hm.pu
Lifecycle
variables
selenium do keys, and,
you
and
is
Howbut
Static mention
t(“A”,”C”);
there
choose
tomethod?
keywordscall
any
to
all the
abstract in
done
tools,
methods
cucumber?
6)Webdriver in automation?
libraries, from type
another
Initialization of framework
class code? used
3.
8.
2. Is
Write
different
Round
4.what
automate?
6.how it possible
Differentiate isa
1:
do code
ways,
the
you to
find
between
to
difference
handle overload
type latestautocontent
between mainonto
version
Validation
populating method?
from
and the
overloading given
drop
8.
2)
6.
4) Can
Automate
What
7)Define you
we is
excelcalltellLogin
scenario me the
API
ainitialization
subclass difference
with
outline? Java
constructor
code as between
a language frombdd
4.
and
8.
How
downWhat
input
Verification.
editable
1. What
If array.
willis
overriding
you would
field?
were
you Sanity happen,
given
re-execute Testing? a chance if multiple
failed totest inheritance
Input
develop cases Array= ain
and
5) Write
8)Types tdd?
mention
superclass skeleton
of xpath all
constructor? theofusing tools,libraries,
test
method?Siblings State
runner? reason type
locator oflike
is
3.
2. possible,
[2.18.2,
Explain
What
5.What
framework
Selenium,
7.how 1.18.2,
is
is
will V-Model
Smoke
axecore in
what
until
you Java?
2.13.4,
they
handle Testing?
library
framework 1.16.4]
passeddynamic the you .... format
Validation will
tables be is
and
9.
1 What
Explain you have donea code with 50 in your projectsA
framework
7.
6)
3.
In
How
9)How
5. What a web to
will
number.number.number
Verification.
Differentiate
6.how can
choose(BDD(Cucumber),
8.How willismethod used
scrolltable
you
difference
you
you
, overriding
down
manage
between
do HTML
handle
there
parallel between apage?
scrollRegression
POM) test
and
links
conflict
get()
why?
bars
method
inand
execution
column
andand API
(bdd
overloading
URLs,
and
Get
7) How a or
Column
list tdd)?
Credentials,
to ofclick 5 B has
flights
right names for
click DOM
next of of Structure,
banks
Friday...
mouse?
navigate().to()
9.
4. What
Differentiate
Retesting.
using are
selenium Enums?inbetween
Selenium? Smoke testing and
10.
URL
The
8)
If we How
2.Difference
was
correspondingly
locators
Difference
dostatic do
provided
not youbetween
should
between
have launch
.aSay be
select puti aneed mobile
generic
final, and
into ato
finally,post app
select
that
dropdown itinshould
finalize? SBI and
6.
4.
SomeWhat
10.Can
Regression
Explain
7.What more is
are difference
Bug actionsclass
testing.
questionsLife be
cycle between
able
asked findElement
change?
based on
Appium?
3.Difference
bank’s
select
9) Explain
the
Q:
and Explain
Theydropdown corresponding
next
asked
findElements, about between
Friday how git
elements whenever
in rebase,
to run
linkare
automate
Selenium? and
inGit compile
column
we
hiddenclone?
the execute A , STAR
then
list what’s
the
how
5. How
8.Types
format.
11. Who
polymorphism
Set
the B 30
strategy can of
is
minsInterface
we
waits
responsible
to handle
select andthe
in selenium Abstraction.
windows
for app
particular based
launches link popup?
? and
test.
10)
can
element
7. Is
1. HowThere
What you is
access
is/elements
would a sentence
you the
to check elements
using with the
the many of
java in Page
broken the spaces
links, in
6.
1)
8. How
packages
4.bug
Print islife
Database
(don’t
dropdown
possible
knowcan
all /selendroid?
cycle
the.
we
library handle
Palindrome
connection
the count)
initialize Java
configurations inWord
between
apopup?
variable
selenium inthe in your
a sentencepresent
words
Object
the
2.
in
7. How
an
Missing webpage?
Explain Model.
do
Interface
question you
the switch
?
different from
type native
ofinwaits. to webview
project?
5.scenario
and
9.
I/P Whichthier
Example: count based
framework My test
Name you cass useIsvariable your
Ram project ?
For
8.
8.
Is How
using
7. Can
Whateg:
there goto
to
appium?
we is
any get
call
the goibibo.com
n-th
a
use
helping element
non-static
of Java
documents using
Script XPath inthe
executor?
or tips and
static
for
12.
6.sql
2)
How
Write What
Print -outer
doa the
you
methodis a
few test
joins
handle int
to plan
values
changetest and in
data itwhat
an
to in are
array,
onlyyour one verify steps
space
Enter
CSS?
3. the delhi (Source )using
to Explain
method?
9. What
Servicenow
1. create
How
7.Java
each
framework
between no., toare
program athe
retry
Whether
the the
Excel
desired
Automation
(test words common
plan?
failed
reverse they
Apache
capabilities
test
them areselenium
cases
stringPOI odd, selenium
api). in needed
even,JMeter java
prime, to ?
Enter
9. Is
invoke
8. Explain the
webDriver
a app Mumbai( in
Authentication a
appium? Destination)
class or ininterface?
API
exceptions?
13.
2.
odd
10.
whatHow
8.what Why
and
How isto is you
to
the send
test
prime, performhave email
runner
reporting even used in
and
Parallel soap
notifications
cucumber
tool/reports prime uitesting.
execution and only
you postman
ofif our
retry
O/P:
1)What
How
10.
4.
9.
10. What
tools
build
My
What
Which
How to
in
is
name
is
handle
is Webdriver?
is
appium
will
same
failed stringify
you
is
returned theRam
project?
In
list
version
handle
jenkins in by which
Rest currently
Assured?are opened
driver().manage() youused are ?
testcases
with
11) Can
1.Define
2)Explain postman
autosuggestion
11. What weSTLC? execute
Selenium
is or
difference rest
down. a api
java
Architecture
between testing
program tool
(want ?
without
Authorization to open
using?
10.
StaleElementReference
14.
3.
2nd Can
User round you are
friendly listeners?
explain parser about Exception?
used different
for handling soap
11
main What
2.Difference
browser method? is
and an inner
between
type join
google.com)test in SQL
case ?flow and tes
1.
and
5.
11.
xml
1)
call
What
What
components
response
Explain
by
Authentication?
Differentiate is reference
are the
complete the
youdefault
between
types
created
and port
Framework of call number
get()
locators
in
by and
framework?
value
with inof folder
this
appium in
12.What
12)
2. If
scenario.
Selenium we
limitations
Looking
12.How
1. What is
declare
how
toforward
is black of
difference
minimize it box
isthe
testng been
forthe yourtesting
main done.
between
window? method
response ? as
Validation private
is highly and
server?
navigate().to()
selenium?
15. Have
structure youandcreated explain any
all the web tools services andthe for
13.
what
3)What
3. Difference
3.Define
write
appreciated.
Verification?
2. How will is
a happen?
yourTestNg
single
take between
role
the line in
screen your
of boundary
code company.
shot to select
of value
complete
6.
12.
1. howWhat
How
framework?
what reasonwill
to will
willfind you you
Explain?
you skip
driver.findElements()
an element
gethave a particular
theused in
color a and webpage
of test
an return?
explain in
element, whose
all
analysis
13)
4.How
4)How How
drop-down
screen? doto
will and
we
is check
you equivalence
pass
using
the create
next whether
UFTvalues
stepa BDD partitioning?
in
to the array
framework
testng?
be taken, isifemptyfrom
testng?
13.
id
using
1.
16.
the HowWhat
keeps
Where
classesselenium?
can onwill youyou
in driver.getWindowHandels()
changing change
run
your your on
framework the every
automation value refresh.of const
scripts? in
14.
and What
scratch.
5)How
Regards,
developer
3. How null? can
to are we get
rejects
remove two write components
the and
duplicates? Open declare defect? Jenkinscustomized is
7.
13. I have
return?
2.how Which
JavaScript?
17.
Round
2) How
overloading do different
will
1.some you
Qa locator
you
round vs set
text
is
configure of of
preferred
overriding username
a popup
Jenkins in
and where box
testingpassword
job? you
integrated
14
5. Write
Tell
exception
Anand
14.
4. HowExplain meKumar
to how with?
removeDefect example
you created
Life
all the CycleSQL
special queries
your on
organization where,
that
3.what
industry
2.
18. How
1.Test
have i come
How
How need are
to
case will
and
you fetch to you
and pass
frameworks
why?
will
across theget
schedule
test the
inip all value
the
u
address
scenarios
Webdriver have values
the toused
of acharacters
test
a
deployments? in
differencelink?aHow to
How
order
6)What
15.
from do
framework.What
Explain by,
string? I
is debug
group
Select?
the aby?
are
processbug the that main
of you
Testcase found,
components. weather
review.
achieve
dropdown,
14.
3.
19.
2.
3) How
HowWhat
Can
Login to
to this?
tell
pageare
get
handleusing
aboutthe
count
test selenium?
challengesofand
selenium
case
alert broken
20
popups gridoflink
scenarios using on athe
concept web
asked that
that
15)
1.
6.Testng
7)How bug
Explain What
to is
handle product
about
is
annotations. scrum dropdown bug
Jenkins? orkanban?your
without automationusing
16.
5.
8.
15. HowWrite
Explain
How
selenium?
page?
you
3.
4) Black
Writehave to and
a
Testcases
willscroll
the
used you
TestScriptwhite the
challenges
in perform
your
box
to
window
for
test
testing
any
that
drag
previous Facebook
till you
and
E-commerce
it foundfaced
drop
project? live. ofinList
an
script
2.
7.If
how
1. Howyou
webelemnt? can bug
Iswill
Q. webdriver
created
we
Write you select
a any
program
run atet
the class
proof dropdown
scriptsto or
ofmerge interface
concept
from values
two the atthenyour
sorted
appium?
element
15.
4.
20.
3. ApiWhat
Which
Can you
testing. from
are
is better
give Frame1
the APIXpath
some to
status Frame2?
or the
basic codes,
CSS commandsSelector? you have
used
scenario
which
firm.
8)How
arrays?
command
1. class
do
What after
we line is
kindpass logging
implementing
without
of values
framework into
using through application
methods
Eclipse/TestNG?
you haveofpopup
9.
16.
come
in Explain
How
maven
Round across?
2. will git
project?
Senior youcommands.QAhandle Authentication
5) Exceptions
webdriver?
8.Stale
dataprovider
Input:
2. How
worked? a[]exception
will =are and
{1,3,5,7,9}
you you add have
whats come
the
b[]={2,4,6,8}
new test returnacross
class type
to and
thefor step
10.
in
1.
16.
21. Tell
selenium?
1.tell
What
What
What
1.Explaining
what me
reason isExperience
me about
are thethe qathe
the
they
procedure
yourself
explicit
lifeRest
challenges
cycle
have
inwait developing
Assured
come
for
syntax pulling
youand http for
facesframework?
how
the
web
methods? incodeyour
3.
9.
the
from
17.
2.doHow
Output: same.
definition
Utilities
How a
youExample
many
particular
will
have youtype
C[]={1,2,3,4,5,6,7,8,9}
used by drag
in of method
of
and
framework,
repository
automate
knowledge exception
drop overloading
of asonly
in
Windows
any in
git in ? selenium
architecture?
to your
based
performance into local
page
1:
2. to
Limitations
projects?
Agile
overcome get
process themloaded?
of connect
using Appium? to a Database, using
selenium.
you
9)Which
3.
2. What
machine. have
application?
testing.and How
Which are faced.
asserts to the do
IDE
which have
parallel
components
usingtool you
for
you test used
Selenium,
have execution.
in and
Jenkins
used through
Eclipse. ?mobile
2.
2:
1.
3.
6) Explain
Java?
how
How
Test
Frames Write
to
do
case webdriver
find
we the
on
handling DOM
delete code.
video architecture?
elementcookies
link or xPath
from local in a file
4.
10.
assert
3.
4.
11. Which
Which For Can
Upcasting
Why can we
Access
selenium
a string we
implicit take
example
send screenshot
wait
Modifier
version
"Welcome the that
wascustomized
is
worked
to you
not
the moolya" in used
most
on?headless
implemented exception
instead
write
1.
3.
18.
4.
7)
How What
3.choose
HowWrite
application
system?
2nd Test
Did
mode?
in
or
of your round:
message
explicittuoyou toisruna
scenarios
selenium
difference
anyone
highlight
code
(Basically
work
wait only
if the
in into manual
on
API
100
code.
any
values
your
between
reverse
atapp the
Manual
tetsoption
project.
or
time the
increase
are case and
not
group
automation
in
ofcode,
(I
selenium?
opening
views
Automation
matched.
mentioned
id and
without ona
and
restrictive
3.
code
artifact
tell
4. How
using
3: me
what
browser, Basic
in
the tojava
id
reason
are and
resolve setup
built-in
cookies to print
the why
why for
merge
method.
possible
must ? selenium,
thenot
you repeated
choosed?
conflict?
errors be how
one
present characterdo
might evenyou in
YouTube
and
1.Tell
5.
11.
10)In
explicit Appium
How me
Have
your you
wait about you
project yourself
worked
implemented
was usedhave but on
you jenkins?
laterused we orhad Have
created toyou use
5.
and
2.
5. Write
initialize
display
Explain
4.what
Difference
encounter
local). isa the code
retry
data driver?
how
using betweento
anlyser
conversionget
many
Appium Why Highest
gittimes
codewebdriver
testing?
fetch itnumber
is
and driver=
repeated
git using
pull?
1. Explain
Round3.
2.Explain
triggered
overriding
customized
Try catch) about
product
Sdlc
headless
,interfaces and
exception. data
manager
Stlc?
modedriver
inlinkedlist
your from framework jenkins.Sort
framework. with
array
new
12.
3
4:
2. what
5.what
6. webdriver()
Given
Difference
Round
what
How isare
2:
to arraylist
syntax
API
copy the testing?
between not
most
array ANDused?
of=[2,5,1,10,20,20,15]
difficult
elements in BDD scenarios and arraylist?
from one toarray
test
cucumber?
1.
3rd
6.
8.
4. Project
Round
3.Explain
Example Return
What explanation
Bug ofis lifecycle?
type
dynamic
selenium of driver.getwindowhandle
andgrid, static
how doword you have
6.
them
4
1.
withHow
how
6.how
7. Write
1.when
to Why
in
Appium?
another towill
you descending
a
you you
we
generate
done
program
Java will
array, identify
need
code cross
get html
to
without ato
order
toreverse
bug elements
initialize
reports
browser
identify, what
using each if
you
for in
browser
testing
the Appium?
pair
will
loop. driver
andon
do?of
2.
1) What
How
Automating
4.What
and
tests is
you
is
getwindowhandles?
polymorphism configured the over
assessment tool comes
Paginations
you set
forprint used obstacles
testing?
impleemnted
diff in
browsers? for
E-comm your in
in your current
the
app,
again
13.
5
how
2.
3. If Write
interface
string
strings
What
project?
project youmanyifusing
it
are uses
a
want
are
given code
concept
browser
an
matrix
to memory
collection. to
Anagram
run you same in
you
parameters again?
java8 in
orhave
Test the
not cases following
used?
in REST inand different
APIload and
navigating
5.difference
7.
framework.
5. what
How from
tois between
fluent
run
enter 1 to
failed 2
wait?
data and
Stress
testin till
a 5
testing
cases
java and alert inhere box
sequence:
7.which
8.
how
3.
1. Significance
Environment
Have
Basic
HowHow
select do atowetest
you
manual
write
Nokia 1 . 2
validate
done How 3
management
of 4300
any
testing
a test
product hi
you 6
using 7
status
will 8 9
youdo hi
code.
REST-ASSURED?
configurations
questions
casesbranches .........1000
have
that?
on ethernet used?
in urport
testing?
8.
9.What
selenium?
having
14. I need are do
the
username/password?
to you
automatemain managecomponents
a scanner in BDD
app of
in code
4. How
project?
Round
in
2) PC?
Handling
6.What
in you
framework. do
4.is
project?
How we
soak frames
toof submit
run testing? in
failed file
details as
test cases payload
like, in using
again 1,
Frame
6.
mobile.
REST-ASSURED?
4.
Cto How round TypesWhat
tests is
are Xpaths,
your
configured approachwhat inistesting?
dynamic
in appium?
2.
9. Which
shifting
7.What
without Have one
is tools
knowing child
difference
you are done
whichused
frame between
mac for
to
ones network
another
osand bug
testing
have and testing?
child
failed? with frame
Defect? RPA.
Xpath?
15.
5. I then
What
1Jmeter need Diff
is to
the
related of runAbsolute
purpose the
questions path
testcases
of version
spike inDynamic
50
control
testing mobiles tool?
and
8.tell
10.
7.
Xpath? me What
Problems 10shifting test
is out
facedto
cases in frame
systemfor
while 2itemetc.. add
.out.print
parallel to
test cart
ln? for
in
6. parallel
WhatWhat
endurance aremode the
testing gitusing commands
load appium.
testing.switchTo()? youHow
stress willtesting
have you
used?
ecommerce
11.
execution?
7.
achieve WebDriver
this? application?
is alert()
Waits aand in driver their types? How
7.
12.
8. How
(terminology)
4th
9.how round Any do
you
What you
will isresolve
showstopper perform
super load
interfaceconflict?
issues testing ofin webdriverand that
product?
to
16.
8. apply
How
What
2.Zipf's explicit
will
isHandle
law the you wait
automate
difference on an advertisement
OTP
between number system and
1) How
stress
interface
9.
is dynamicallyBugsto
testing? faced dynamic
during elements
automation/ partially
fetching from achanging sms using onappium? name and time
========
19.How
to
12)
both run
what on
arrays. do
do you
multiple
you Themean scrolldown
browsers
returned by authentication in selenium
array should5and have
3rd
DP, year=50+10*3+35*2-5=145
[05.10.20 19:47] //initial rats
5.
20.Different
what
no
}die For arethe
duplicates. theabovetypes
types same of of Oops example
authenticationyou how while
worked to on.select API
With
5.
1, git test
IntroducediffPostman, automation
yourself? being newly introduced
that
2.
testing
21.What
16. O/p
on
Using checkboxes
a request
large for is project
meantprogram
below using
create
byacross mouse
a request
RTM multiple scrum in Selenium
that sends a
2.
GET
13)
For
(id
22.Can
class You
whatexample,
xpath have
Animal{we is or the limited
anyto
overide the
difference
other resources,
open locators
constructs weather
between and
is maphave
URI
same API.
and 100
for URL
all
teams,
Black
6.Binary
Write
Here’s rats:
Test how
the no.casesAPIwould
program URL: you
for ensure you
computer uSb have clear
test
1.
14)
4
23.Explain
1.how
visibility defect
how cases,
checkbox) to do of cycle
manageyouWhat
about
the store
test criteria
super
junk result in
data
automation you and
java use
passing usetofurther in
activities through
1st
port(hardware
groovy
Input
prioritize
2. year-5+5*3=20
https://samples.openweathermap.org/data/2.5
difference
Animal(){System.out.println("animal : the scripting
that to and
between execute software test
relative both).
cases?
andarray isabsolute
created");}
24.differencs
across
7.
Jenkins
2nd
/weather?
15)
Array Write
what 1 would a
tear=20+15*3-5=60
do
-UNIX{‘Ava’,
teams?
syntax
you
between
meanto
‘Emma’, find array
3rd
//initial
by‘Olivia’}
Test
and
highest salary.
5 ratsinwill
runner groovydie
1.what
3.
6.What
List How
RTM is collection. you
commands priorities you Tests?
have used1L can
2.how
3rd
What
scripting
Array
2.Tell
}8.Desired me2will
year=60+45*3-5*3=180
q=London,uk&appid=b6907d289e10d714a6e88b30
is the
- we return
{‘Olivia’,
about run test
type
‘Sophia’,
TESTNG dataof more
window
‘Emma’}
annotations. thanhandle with
Please
you
testNG
761fae22. please consider tellRest
Capabilities
Create the
me anservicefollowing:
Syntax
assertion
16)
method.
3.String
4. what
You got is
String the
one =API"ABC;";
to test, what add isto
architecture
the
new
verify out
employee
the
put
latitude
3.test
17)
Output
difference
class
Write what Dogcase :
ascenario is 51.51
the
should
program in addition
extends and
soap return
populationto the method
service
Animal{
print longitude
an of array
a primewhiteinput
architecture is -0.13.
and
containing
and
number blackInfrom
output
4.how
a.
given
1.9.
addition
18)
Understand
What
Open
what
to is the
to
is
retrieve
meant
the google
assertingthe
soapisby data
automation
method
chrome
ui the from
work
excel
and
latitude
hirarchy
% write
overriding andusing
potential aandxpath
longitude,inhow
Ava,
for
rats:
1
each to Emma,
database
100scrum in Olivia,
reverse
team. andstring. Sophia in any order.
dataprovider.
does
of
please "I'm
email JVM Feeling
iddevelop decide
to, password Lucky" at
3 more run
and time
testre-enter which method
password, to
19)
1.Dog(){
180-145=35
How
call
5.what Whyhowprotractor?
to use
is
set and
the delay
Recovery
get
When
in project. we cases
property
scenario have using
in
yougroovy
selenium
UFT?
can test
how
using
scripting
2.Write
2.
1.b. What
Differencewould
the aare open
code you
the
between(anyvalidate
weather
protractor language backend
map
findelement API
relatedyou usingtesting.
are locators?
and Postman.
2.
10.
When
6.working
Place How
Give
How would
an
will
the to 4 example
Setup
you
of you get
testng.xml
test andfeedback
cases ofexecute
null method
point
into file? a any missed
overriding
testcases
exception
collection in in
error.
and
20)
proficient
System.out.println("dog
3.
findelements
automation what
If answered do in) you
to mean
check
above,
opportunities by
the
is
thento jsonsluper
biggest
created");
a thequestion team? and
palindrome
from a
your
different
7.how framework
to Virtual
run multiple Machine.? method
export
xmlholder
5.
in
locator
2. What
3. Dogiven
a
Which you the
is havecollection
array.
specific
locator
method any
how to
is overloadingas
question
preferable a JSON
write ato?in parallel
file.
ask
syntax
What
and
Upload
toisof
give me. . and
it
the
an
that
21)
For
}criteria
where how to we
example: a
to toofGithub
convert
use.
use repository
json to Hashmap or
?to gist, and link that
c.
example
11.
in
22)
How
your
what
would
toreply doConvertit inthe
you
email.
you your
mean
locators
communicate
Hashmapproject
Nice by to Data take your
Array
input
source
findings
from
Data
to
aSink
Note:
3.
the
4.
12. There's
WhatSenior
What Tois me
is a Test
an they
webelement
hashmap? askedand
Automation
interface about
Button Analyst?
how Locator
it's
have id is you abc used
CSV
and
Input:
}how
Repeater. file
Data
will Array for
you Source
Whenthe- {aaa,
create assertion.
weloop aba,
use
xpathand ?why
adda,
it? do we use
acdea, aeda it }
it
13.
Explain
23)
Output inHow your
how HasMap
the
: to framework
The concept
handle biggestwork SSL ofInternally.
in DuckSoapUI
palindrome Typing is in
adda Python
4.About
4. What
5. Orderis Tagof Name
TestNg
object class locator
annotations
and and
name syntax
some of it?
object
3.
5. Create
24)
class
When Howwhat doare
TestSuper4{
we ayou
use framework
theit? different
communicate for type APIwith test
ofexcel automation,
properties file in in
class
14.
Add
SoapUI diff methods
3driven b/w
assertions
how There /, //
you for
declare validating response for
5.
data
6. Scenario:
What isis framework
abstract areclass ?using
dynamic
and why
groovy
alert scripting
popus
doautomation.
we useinit a
Query
25)
public
web Whatpage. to
static verifythevoid
Which a
main Graph thing
main(String
we QL while API
args[]){
7.
15.
26) What
How
API.https://graphql-weather-
what isdo
Failed difference
you TCmean will neverin
rerun
by interface know
Automatically.
Webservices
when
and abstract the pop
and why
Test
arise.
class scenario
How do and
you test
handle cases it? for selecting
What
api.herokuapp.com/
do
colleges
Dog
6. Inwe d=new
a isuse
chrome, thebased usethe
Webservices.
Dog(); of constructor
on theseveral
xpath department,
is working in java year,
fine for
8.
1.what
27) How what iswill BDD
is you
the and handle explain
difference in detail
between open about windows
soap and
semester
specific
Kadane's
through for
element
algorithm
selenium NGO where donations.
= find as theIn IE the
largest same sum xpath
of
feature
4.
Rest.
}for Using file and Translate
Google gherkin syntax API, create a CLI tool
the
9.
2.Explain Whatthe
sub-array web
class
about element
doesin a
runner given
the is not array working.
getwindoeshandles
class ? .andof How
integers do you
to
28)
handle take
what inas doIE? an you input mean a JSON
by UDDI file and a
what language,
do you
method
What
3.use
and is
of
returns belong
wrapper
background toservices in cucumber? andtranslated
its benefits
mean
}10.How
7.
4.Cucumber What
by tomethods useJSON
WSDL. asserts
tags are
?
values
And in
available
how
into
protractor? to in actions
run different class
strings
29)
8. How what from are thethe input
different language. type of HTTP
How
and
combinations dotoyou
alert fetch
class perform
of tags value
Automation
when or data
multiple from
Code tags an
Review/
areExcel
Methods.
17.automate
for
Walk specific
Through the
cell in page
inyoura row? and
project using PageObject
11.
present
30)Where How how tothe can you
parse perform
a listlocated database
from a in json validation
forcompany
example
9.
that if is your project
UIbtw data has been your
updated
5.difference
there
and how json
you and
process
scenario
there with areand it?multiplescenario IDscorrectly
Outline
how
in
6.Difference
you the will databaseparse btw all or
hooks
the not IDs through
&fromTagsjson selenium and how you
10.
12. Which
How can is better
you rerun merge only or rebase?
failed scripts in your
will parse a
11. How to will run the test without using jenkins particular I'd from that json.
framework
for
13. What every are one oops hour? concepts and give an
example of each in your project
"Questions:
1)What are different types of waits?
2)What
"1. Whatisisdifference the difference between between implicit Agile andScrum explicit
wait?
and KANBAN? Explain with a practical example.
3)What
2. Howme toareclick different all object locators in selenium?
abouton
the links in a webpage
"1.Tell
4)Which object Automation
locator is Experience,
preffered?
3.
2.What Why do are we theuse keyProtractor
features andyou howautomatedis it different
5)what
from is
Selenium? difference betweenthat hash map and hash
in
table?
"1.Tell you project?
me your
4.
3.What Questions onProjectFramework, structure explain the framework
6)What
2.If
you amis
I are unable
using
HashMap,What
interface?
in toyour clickcurrent onisathe button function
company." on a webpage
to add
It isan
7)OOPS Concepts element hash map. using locator?what
and
"Technical highlighting
round 1 between properly
4.What
8)what
will is
is ArrayList?
difference
be all tools you have used interface and
1.What
How
abstract
"Interview to add class? element
questions:- in arraylist? for automation?
your
2.What approachis cross browser testing and interface
5.Difference
9)Exception between
handling abstraction
3.If
3.What I want to pass the parameters using testNG
6.If
10)how
Java:- you is want
to cross
reverse to run browser
the only words testing
sanity in testcases
the string?eg: i like
what
How
4.What towill automatebe
if language the
I want tosuite,how approach
OTP instatic
Selenium code
·from
program
4.Lets Regression
stringBuffer
say I want to &call
java to
StringBuilder
upload java variables
would
mylanguage
resume you outsidedo that
program
just like
package
7.How
·like i would
static you
methods locate the hidden element
naukri.com
5.How do you one windows
maintain open.How
repository will you
present
11)Using
"1.
·automate Why Interface doinhash webpage?
thatwe part? map,how
need
&abstract to write to find
class .exe nowhileof occurences
giving the
6.Suppose
8.Program toI have
convert a new first machine what allyou’ve
things
of
chrome
·5.What a character driver
Encapsulation
are Listener in
path the string?
and
and where u have used in a
letter
instance to uppercase
where
are
word
12)can
2.
used required
When it main do for
method
you BDD
get framework?
be over
NoSuchElement loaded,can and main
listener
"1)Difference between overload and overloading
·7.What
9.TestNG
method
StaleElementReference
in
2)Can your Lambda
we
isoverided
difference
annotation
framework"
override Expression static
between
in Sequence
exceptions?
method
BDD and TestNG
8.Suppose
"1. How
13)which
3.
Selenium:- unixwe do
command access
you my client
check modifiers
tostatic requirement
logs
to getmethod 2nd row from execution
forcan an be isusedlike
application? in
file
3)Can overload
·should
interface?
"1)
4.
2. built in
4)Given
What
What not
different is
does
the
stop
TDD
interfaces
code -f & even
BDD
mean
locators your
in
in java the test
tail cases
-f command?" are
failed,what
·14)access
2)
3. How
unix can
Different
command will
modifiers
we beIto
login
exception
want
your with
list
todifferent
approach
in java
the
make
and its
encountered
directory
it immutable
scope?
usernames in selenium
How
do
9.Suppose I achieve it
I have 100 scenariosscenario and those
·15)What
using
4.
"1. how
Difference
public
DDDtoisclass
Regular &difference
read BDDexpression
the
between
Employee
between
application.properties,
Test Plan and Test name utilities used
and
sceanrios
scenario
3)
·Strategy.
5. What
how Type to outline?
isautomate
extent
of wait reports
the API using java
{4)
are 1 divided
16)can
·2.
6.
String how Example
Explain How omain
name; readtointo
Test
method
offrom
get 5link
functionalities
Given
management excel be& 3overloaded?
count Then
sheetintoolpage and I want to
execute
17)can
5)
·3.
7. SDLC
what main
Relative only
is core 2
method
and scenarios
Absolute
difference be what
overrided?xpath hive
between will be your and oracle db
public
approachChallenges String id;faced in testing.
6)
What
8. What
The is left is
the Maven?
table differencehas Why 100 inwe UI use
records,and it?
GUI?right Explain
table with
has 50 examples.
records, if we do left join what is the outcome
4.
private
10.How Explain double
you agile have methodology.
salary;used Encapsulation and from Table B , will this quesry work in hive ?
API
5. Quebatch
Framework:-
9. select
How name from
execution table is Adone- select. name
public Employee(String name, String id,
·abstraction
1)
10.what
6.
double
Explain
Explain Framework
salary)
HTTP
isAutomation
the use methods?
main of CUT components
Framework command used. in linux
in
2)
·7. your
difference framework
Annotations between PUT. & POST?
Continuous
{11.What is method Integration overloading and overrriding
3)
·8. When Helper we get
attribute 200 & 400 status code?
Different
this.name
12.If I want =to type
name;
fetch of testing
my test experience.
data without touching
4)
· How How cantowe run authenticate
tc from Jenkins correct response?
1. Explain your framework
What is Desired
2. What capabilities , ChromeOptions, what is difference between them. What is string constant pool, ho
are diff locators.
3. Types of waits.
4. What are diff exception in selenium.
5. Annotations in TESTNG
6. Testing
online skillsmethodologies
assessment to help us evaluate your profile for the skill Data Warehouse ETL Testing.
7. Which locators you have used
1.There are 250 manual test cases , how will you segregate (on what basis) the regression , sanity , smoke suite
1. Write an
2.When application
Regression that reads
,Sanity , smoke a set
testofscripts
files each containing? zero or more integers (each integer separated by
are executed
2 .Eachwill
3.how fileyou
will decide
be readthat
once
thisand summed
test case isby a separate
feasible thread,
or good up to afor
candidate maximum
automationof 4?concurrent threads (even
3 Finally
4. So youall theon
keep sums of eachtest
designing file scripts
are addedwhentogether
will youand the total
execute is printed
those scriptsto? standard output
which is the right time to execut
5.Say you have 30 + sprints in your release how will you design your test scripts and run them ?
6.How and when is Jenkins is used in your Automation?
7.Say suppose your dev team deploys the build in 5th sprint , how useful is your test scripts that is designed y
8.How Efficiently you had used build management tools in your project ? state few ?
Angeline J Deepthi
Abstraction: Abstract class:
It
Encapsulationis used to hide the implementation =================
The Process of grouping Data
details
It is used
Synchronization: and todisplay
bind data only essential
members and (1) Abstract
members
When we are and class related
testing canour have
methods bothcan be
application.
features
member
It is
Throw and throws: a such
functions
mechanism as properties
into
which a single
involves and unitmore to abstract
referred
Selenium
throw: and
as non-abstract
encapsulation
webdriver may be methods
faster
methods
prevent
than to
Throw one of
outsidersthe
component
keyword object.
is usedto access
to in work it
theparalleldirectly.
method (1) (2)
-->
when
======== Abstract
If any class
component
compared to our web application doesn't allows support Data
How
An abstractresolve class no such
can element
extend only one multiple WebDriverException
inheritance
Eg:
with
body
exception? Declaring
each
to tothrowother all the
an exception, variables in
while the hiding
as
throw
(2) it takes and
keyword
NoSuchElementException abstraction
somemethod istime used tocan can
load
to be
handover our termed
page
Method
class or
as one getabstract
private page and title?
class
using C# at a time. driver.getTitle()
(3)
as Abstract
an encapsulated class can have
component be used
final,non- to
throws
We need
driver.getTitle(); is used
to do in
add method
some signature
wait to or
created
(3)
get for webelements
exception
NoSuchFrameException
the title of a page to
object be topresentthe JVM in
To
An
Properties handle
abstract multiple
class windows
can extend on another into Selenium
final,static provides
and non-static =2Datamethods variables namely
Synchronization
declare theinexceptions
time(explicit/implicit/Fluent
browser:
the can class be to set
classified
that can
wait) and get
occur
or -->
our
Manually
(4) Encapsulation
webpage
NoAlertPresentException
getWindowHandle() and
hiding +
Page
concrete
the
two
in object
values
categories:
the statements of model:
(regular) variables. class or abstract 1.
(4)
Abstraction
At Page
Abstract
that object
time class
SeleniumModel(POM) can provide
will is
throw a Selenium
thethe
scroll
•Submit
Page
class. pass
Unconditional
page
desired
Object
and
soModel
click: URLpresent
that the
into
Synchronization:Selenium
in the
UI framework
driver. is a
throw
(5)
design
implementation
submit():
Example:
exception
keyword is used
NoSuchWindowException
getWindowHandles() pattern. We of interfacecan to inside
deal
see itwith
a
as a
method.
loads
•Used the
Instantiate data. the browser driver to the method
(6)
multiple ElementNotVisibleException
browser windows
design
An
We
Eg: abstract
can
will
void pattern
use
PageFactory
make class that
.click()
methodMath()the can
tool is to
method extensively
Seleniumhavewait
throws toboth click
library
until onin repository
(5)
=========
class TheStudent Abstract
"ELEMENTNOTVISIBLEEXCEPTION"
throw keyword where iskeywordwe store
used toisthrow all
used the to
an
new
used
abstract Chromedriver.
by the
and Selenium
concrete community
methods for (7)
webelements.
declare ElementNotInterceptableException
Abstract This class has become very
any
Page
certain
Code button
Objects
amount
to launch
ArithmeticException{} of software
of time
a handle
browser: web
and then This
{
So
System.
exception
(8) to method
match can
the
explicitly,it can
SessionNotCreatedException be
speed used of to
the
throw click oneon
•application.
proceed Get
automation the windowtests.
Means
further. { The basic
element's of the
design parent
type = 1.
popular
(6)
the getWindowHandle():
An
private
application buttonAbstractint present
age;
ora in classsome in cantheThis extend
form method
case, to itwait and
System.setProperty("webdriver.chrom
void
Ans:
window
principle
Interface:
methodAdd()
and
that print
the it.
Page Object Model in Ans:
setProperty("webdriver.chrome.driver",
exception
(9)
returns
in
another industry@Test:
TimeOutExceptionthe atTestNG
javathesecurrent
class
time
days recognizes
window
and because
implement handling as
it is afor
"button"
Eg:
e.driver", Wait()
throw
@BeforeSuite: or
new and
"pathtype of =
Theextend "submit",
Thread.Sleep();
the exe
ArithmeticException("An
annotated .click()
file\\ method Type
specific
"path
throw
test
(10) private attribute
of
case. int
the
keyword roll
condition
@Testexe
InvalidSelectorException should
no; file\\
cannot at
followed some be "submit"
propogate point
by method of time
•TestNG
Selenium
An
method Find Annotation:
the
interface willelement
followscan
works is on
forthatthe
both. a page
any central usingof Ans
number id
very
multiple
Perform that
private
,@BeforeSuit:
we easy
use the java
enter
float webdriver
to manage,
interfaces
operations
marks;
synchronization isreusability
currently
as like comes
in selenium, of
chromedriver.exe");
integer
will
@BeforeSuite:
an be
ID should
run
which before
is The
annot allbe
annotated
element divided
tests in by
this
method
locator. suite chromedriver.exe");
checked
@BeforeTest:
(11)
holding exceptions
IllegalStateException The
The method
@BeforeSuite which
object
interfaces
For
Conditional Web repository
at
element a time. should
whose
Synchronization: be created code
(7)
keyboard
which An
public and
abstract
void
helps eliminates
enter read()
to class
event duplication
can be extended of
zero!!");
have
will
•An
OOPS
for Use berun.
type=”submit”,
We
run
for loop
concepts:
controls
interface
specify
before
a on
can to a
then
conditionweballwe
iterate
only tests theinnumber
page.
extend
can
along
this
Hence,
another
with
suiteof WebDriver
under
(12)
annotated
2.
OOPS
code
using
click():
bring {
this
getWindowHandles():
Concepts?
the
the
driver=new
annotation
StaleElementReferenceException
method
keyword
AUT and
is
extends
selenium
ChromeDriver();
will
executedThis bemethod executed
Speed
before
in
//
have Initialize
}child run.
@AfterSuite: windows browser
The annotated
being created. method will driver.get("http://www.google.com");
throws:
first
the
returns before
execution any
set of testing of test
browser all belonging
the test
handling cases to that
id's
Abstraction:
each
interface.
It
use
timeoutis
WebDriver a web
test
.submit()
value,page
automation will
method.
so
driver=new that be represented
framework
tool waits
ChromeDriver(); that
to by Ans:
2.
1.
=========
sync } The
Data keybenifits
driven is if UI
is achanges
scripting in the
be
•An Get run
@AfterSuite: theafterhandles all
The tests
annotated
of inonly
all thismethod
the suite have
windows will ==========
folder.
1.
defined
that NoSuchElementException
are in the
invoked/opened folder by occurs,
the
It
a
storesis used
separate
interface
test to hide
class.
can
data the
have
in implementation
a table abstract
orthen come technique future,
Interface:
This methodThen that we is can
stores
used update
towe test input and
check
Likewise
run.
be
opened.
details runfor
Advantages:
methods
we
after
and
the can
allcondition
display
launch
tests in
only
and
firefox/IE
this suite have @AfterTest:
essential
In
throws
when public
@AfterSuit:
webdriver,
OOPS
webelements
Java
============== the
concept
void
to
keywordset write()
The
locators variable
@AfterSuite
each in
to
is (i.e.
method
browser
Java
page
used idclick
to
which
annotated
are
classes
use
/window
thexpath/ oncomes
Delegate
mainin
thecss
POM idea
spreadsheet
out if
@BeforeTest: nothing format.
happens.
The This
annotated allows method expected
button {
Synchronization
1.
setPropertyLanguage
responsibilty
under
selectors in
this result
the webpage
used:
method
annotation
etc) of
we in
in
exceptiona table
Selenium:
Java of
mentioned is System or
handling
executed in class
the afterto
run.
•automation
Print
features the
BetterWait: window
such
Maintenance as
engineers handle
properties
– toWith of
have the
and
separate first
a single method
corresponds
behind
or
(1)
spreadsheet,
perform object
Interface is
java's executed
repository
only can to
object
So
click one
have
that after
id,
oriented so
accordingly
aonly
operations singlethe abstract
control
as like
Implicit
will be run An
before implicit
any wait
test is
method to tell Variable
Yes,
the
code } Type
=======================
2. caller
We
execution
is ofname:
have
unableFramework:
for checked
used
ofto all findPage
the Behavioral-
exceptions
the Object
test web methods Model
element
@BeforeTest:
window.
methods
page objects ofto theThe annotated
object.
(orcan page classes) method forfor execution
we
programming cancan loop of all the
over the test set methods
andhave workin inon
test
WebDriver
belonging script that
to poll
the the
classesexecute
DOM for
inside tests
a certain
the }methods.
script
mouse
1)
driven Implicit
webdriver.chrome.driver
throws
design
of
on the
the click
Framework
keyword
pattern
available
web
Since
execute
wait page.
java
with isby
classes all
the 8using
page
itmethod
of can
thefactory. tests
Page As
•will
Use be run
the
Encapsulation
different before
SwitchTo anycommandtest method to switch 1.
the
each
1. Page
ClassSuite.
browserFactory and in Selenium
close. webdriver
all
amount
<test>the test
belonging tagofwebis
to
data
time pages,
run.
the
in thefunctionality
whenclasses
table.to findor
trying inside the an the default
2)
Object
signature
per
@BeforeSuit:
2.
is There
an
table
Explicit
pom,
and
Model
integrated we
are wait static
design
have
The
two
methodspattern
maintained
@BeforeSuite
possibilities
concept oftester
also
with
API. a class
for page
Here
to
It
web istheuseddesired
locator to bind window.
changes data members
will have a and
less We
(2)
2. will
Object
InInterface
the write
simplest seperate
support form class
multiple
the for every
element
@AfterTest: or elements
isThe annotated if they are
method not 3)
factory
Create
throws
for Thread.sleep()
every object
keyword
web for
page. the
can webdriver
be
Each used webpage to class
<test>
member
impact
immediately
tag
onfunctions
the run.
change
available intoina test single unitwill
scripts. to we annotated
getting
webpage.
and
We
3.
4)
3.
and
declare Data
inheritance
supplies follow
weHiding
have
Fluent
POM: launch
this
As
usethe
wait
method
Each
used
per
multiple
Exception,
again
the inputs
pom,
theissame
webpage
TestNG
browser from
we
exceptions
executed
i.e. has
listeners
have
either
aprinciples
row ainbefore
in
seperated
we of
the
be run
@AfterTest: after Theall the
annotated test methodsmethod will has
the
have
keeping
seperate a seperate
execution
provided repository
class
SwitchTo().window(windowhandling_id) of
a class
for all
incorrect the
objectsfor
functionality functionality
test cases
locator
or pageand and
prevent
This
Explicit makes outsiders
Wait: theWe code
need to cleaner
access
to define itand a more selenium
directly.
wait 4.
(3)
Webdriver
table
maintained
by Abstraction
Interface
comma, and to generate
can
itself
expects
a class have
is an
the
for logs
only
interface.
output
every or
final which
web and
belonging
be run after to the
all the classes
test inside
methods the and
defined
trying
classes
members
to members
switch to infindthe
seperate
ofthe
to the
that of
folder
different that
web
web from webpage.
element
page.test
browser cases. or we
Eg:
<test>
Declaring
maintainable
statement
belonging tag forthe
have
to
all
as the variables
Selenium
certain
run.
classes condition test into
inside
the
the be customize
5.
static
Alert.
occur
When
1)
page.
throws
Seperate
Encapsulation
@AfterSuit:
have
2. Implicit
POM
variables
inkeyword
we
Each
provided
and
theare
wait: same
webpage
classes
@AfterSuite
page
testng
testing
correctisfor
factory
row.
used our
hasreports.
every Theto
annotated
locator,
are
table
application.
a propogate
seperate
individual
same but the
class
automation
satisfied as private
until the and
implementation using
specified C#is spread
timeout windows
We
6.
(4)
Selenium have
Inheritance
Interface
Capabilities.
typically
================= of
containsthe
implemented
can't
webdriver webdriver
provide
values
may ITestListener
be the
which faster
@BeforeGroups:
<test> tag have The list of groups that Pop-up
class
only
test.
method
web
design forfor
element window
is functionality
checked
patternsexecuted related can
but be
exceptions
after
to
differsandhandled
the the members theusing
locator
in way isof
Properties
across
period. separate
If the therun.
in Webdriver class
page classes. to set the
finds and get interface 7.
Implicit
the
that Polymorphism
implementation
ContextAware.
corresponds
when java compared
webpage. wait which
based will have
of
toSeperate
boundary
to
wait
utility abstract
ourforbelow
Robot web
the
classesor methods
class partition
application
specified
which foris
this configuration method will run Listeners
execution
not available is
of anall
on interface
the
the test
web that
methods
page. modifies in
@BeforeGroups:
the
•elementvalues
Minimal Changes
within
The
of variables.
themethodDue listtoofUIgroups
timeout Updates
period
that
the – we OnStart
(5)
as
time
used
every
define
The
HasCapabilities.
input itbehaviour
takes
before
to Interface
spaces. the locators
control
individual some
throwing keyword
time
keyboard
test. to
the
when
loadis
exception
and
you to
used
ourmouse
are
page
before.
this This
configuration
Inheritance: method is guaranteed
will run to the
3.
working We
onTestSuccess
1. Suite.
Class: can with handle page of system.
this
object exceptionListeners
patterns. by
The effect of changes in the web declare
JavascriptExecutor.
or Interface
for customization
webelements to be present
code
run
before.
Its the
will
shortly
This get
process
executed.
before
method by theis
which first
guaranteed
one test class to allow actions.
4.
Webdriver
3.
By Packages:
@BeforeMethod:
wrapping Here
onTestFailure
======= printing wefluent Weinstance
provides
use
the have
@BeforeMethod
wait
@FindBy of
an withseperate
reports
APIoftry-catch
to
annotation andinto
handle
locators
Fluent will
Wait: only
Using be limited
FluentWait to the
we can (6)
OutputType.
our
Syntax:
packages An interface
webpage for test can case,extend test another
data,
method
run shortly that belongs
before thetofirst any of these java.util.Date
test logs.
annotated
block
alery
find dialogues.
elements amethod and
class, Alerts
jarto is
you executed
cannot
initialize
can print before
able to
acquires
page
define
groups
method the
is
the
classes,
that maximum
invoked.
properties
created
belongs to
for
amount and
any
automated
of time to 1.
of these A
java
Rotatable.
At
Common
utilities
Listeners
the
inspect
Download
onTestSkipped
class
webelements
current
that interface
execution
isuse-cases
time
if
date
the
blueprint
comprise
there and
only
Selenium
driver.manage().timeouts().implicitlyWait of is
using each
no
file
of
timeItcan
from
will
using
Alert
of
two
test
initelements
in
MySQL
throwwhich
inRobot
types
method
the the
functionalities
browser
wait for isatesting
condition, ofof another
those
asofwell class
web as pages.
the Connector
onTestFailedButWithinSuccessPercent
objects
(7)
(1) An
SearchContext.
exception
(30, are created.
interface
WebDriverException
TimeUnit.SECONDS); class is java.
adeal
be collection
with all of
@AfterGroups:
groups invoked. Theoverall list groups that in class: 5.
namely.
screen,
process.
2.
Test
@AfterMethod:
Add
Base
the we class:
will
reference @AfterMethod
get It will
of this annotated
jar
Polymorphism
This
frequency
this
reduces
configuration
the
withThe which method
effort
to groups
check
will
spent
for
run the The age
data
implemented
(2)
Create
the
1.
method
members
NoSuchElementException
main
""ELEMENTNOTVISIBLEEXCEPTION""
common
Webdriver object
'NoAlertPresentException'. willmethod be
and
using
for
functions
Listeners
invoked will
robot member
the always keyword
class
used
after The beto
functions
by
the
your
all the
Alert
@AfterGroups:
Its a feature that list
allows
changing test scripts due to frequent excecuted of us to that
perform java.util.Date
project
onFinish
implements
(3) (Right
NoSuchFrameException date=new
click on the java.util.Date();
project =>
condition. So toPrimitive
match first,
=the is because
speed of itthe isof a special
after.
this
a
UIsingle This
configuration
updates. method
action is guaranteed
method
in different will
ways. runto run 1. Ans:
Robot
pages.
2.
execution
interface Implicit
TestNG robot
System.out.println(date);
Build
Ex:
(4) Path
This wait
of class
Listeners
contains
=>
NoAlertPresentException
types
eachnew
Configure
a is single
aare
Robot();
test responsible
number line
predefined
method
Build
of
Path
code
for to
API's=>for
shortly after the last test method that static
application
and
(already
loading
Ans:
@BeforeClass:
execute can method
HashMap be
the or
defined)declaredthat
in
configurations
different is some
a in
@BeforeClass will
Java.
hash
actions. be
case,
globallytablecalled
from tobased
annotatedfrom
wait
which is
after.
eg: This
using same
• Reusability method– The method is guaranteed
page name objectwith to run Add
public
(5) Libraryclass
NoSuchWindowException =>VehicleSelect the Jar => OK
belongs to any Java
specific
applied
1) byte,
properties To
implementation itself
int,
press to to
condition
all
long,down
file, start
the short, an
at
webelements
arrow
initializing
of Java's application
some
float, of the
Map point
double,
keyboard of
interface. time
shortly
methodsafter
different arguments
defined theoflast inthese testgroups
different method page isthat Jenkins method
{char
(6)
runs
is an before open source the execution automation of
invoked.
belongs to any of these groups is 2.
we
A
test
tool
Alert
A:
weItElementNotVisibleException
,Webdriver,
map
POM is
useuse
etcais
methods
written
alertstands
synchronization
Dynamic
are
an = inprimitive
Implicit
object in
Java a wait waits,
that
current
with
driver.switchTo().alert();
for Project and
data maps in
ittypes
Extent
class.
plugins
Object
selenium,
won't
keys wait
built
Model. to
classes can be reused across int
(7)
which
for doors;
ElementNotInterceptableException
the helps toThis bring //Data the members
AUT and
@BeforeClass:
invoked.
Selenium test automation The annotated scripts. method This, -->
-->
Reports
values.
@AfterClass:
for
TestNG.
int
(8) It isspecified
Non-primitive
robot.KeyPress(KeyEvent.VK_DOWN)
Continuous
alert.accept():
speed;
and
Axml map
fundamental
SessionNotCreatedException
also cannot
@AfterClass
file
time
types
to
Integration
is a
ifcontain
create the
isconfigurationare
equivalent
unit annotatedelement
created
the
ofpurpose.
work object
tofile
inthe by
will be run before selenium
found
the
2)
of
duplicateTo early
programmer
press
FileInputStream Speed
keys and
TAB keyin
and sync
continues of
which is not
Keyboardis to
definedthe wenext by
@BeforeClass:
in turn, results in athe
The first testof
annotated
reduction method
method
code Maven. method
Jenkins
OK
that
String
Here
(9)
line
Java
use
button
responsible
--> In
helps
we will
is
color;
TimeOutException
for(except
Java use
executioninbe
used
action executed
organizing
@FindBy
for
for
HashMap
to onbuild
String
pointing
the and
annotation
object )
after
dialog
our
towards
test
tests.
provides
all your
the
to
the
It
in
willthebe current
run before class the
size as there is the increased usage of find is invoked.
first test method test
software
-->
allows
public methods
alert.dismiss():
It is
elements an
testers
void projects
XML
run() ofThis
to
andfilea current
continuously
is
that
create
//Member
to equivalent
resides
initializeand class handlein
functionshave
making
to the the
(10)
3.
class,
file It InvalidSelectorException
Synchronization
will be
interface, applied
robot.KeyPress(KeyEvent.VK_TAB)
key/value from which
pairs the or
for in tillSelenium
array
data
storing the end
variable
should : ofbe
information driver
are
@AfterClass:
in The
the current class is invoked.
reusability. annotated method will been
it
clicking
base
multipleeasier
{webelements invoked.
directoryfor
on
testENTERdevelopers
CANCEL
classes,
using action
of theinitelements and
project
define button testers
as pom.
test to
(11)
3)
read.
in To IllegalStateException
============================
life
non-primitive
memory. press You data can types
key store of keyboard
any data we
be run after all the
@AfterClass: The annotated method will xml.test methods in the integrate
alert.sendKeys(""String""):
suites
//Implementation
process andwait changes
tests. to
It makes the project,
This
a tester's will and job
(12)
1)
-->
use
6. A StaleElementReferenceException
Implicit
Utility String class: in Java
Itsome stores is actuallyand athe
handles non-
current
be run after class allhave
the test beenmethods run. in the type making
allow
-->
easier
}2)
etc... The combination
to byit easier
type
POM in
contains
controlling for as userslong
text
information
the toas
into
execution the
obtain keys a
alert
about of
the Explicit
primitive wait
wait:
data
robot.KeyPress(KeyEvent.VK_ENTER)
the functions type, whichbecause itthe
are repetitive refers textto
@BeforeMethod:
current class have Thebeen annotated run. method are fresh
the
tests
}(Waits,
unique.
alert.getText(): build
project
by puttingand This all will
various the return
configuration
test cases
will be run before each test method. 3)
-->
that Thread.sleep()
==================
an object.
When
appears actions, The
you String
capturing
want to object
retrieve has the
@BeforeMethod: The annotated method detail together
4) Fluent used and
wait byon runMaven theitused dialog
under to build one the
XML file
@AfterMethod:
will be run before The each annotated test method. method object, Explicit
methods
screenshots,accessing
project wait
you that mechanism
call are the get()to targets
perform
excels,
method only
and
2. Object:
specific element.
will be run after
@AfterMethod: The each test method.
annotated method certain Sending
again
-->
========
1) Wepass
Implicit
operations
can mails runetc).This
the
wait: allWe
key on
our can
object. strings
class
test tell cases to wait till
extends
will be run after each test method. the
using condition
Test POM.xml Base satisfy,
class
file to Once inherit the the
Object
=================
condition
properties. is the instance
satisfied, Theoftool a class. proceed Object
14: Difference between BeforeSuite is created using new keyword.
and AfterSuite: Implicit
with
7. thewait will
Properties file:wait Thefor filethe specified
@BeforeSuite: The annotated method (config.properties) time
next step before throwing storesexception
the the info that
Ex:
This
remains can be
static done with
throughout WebDriverWait
the in
will be run before all tests in this suite public class Vehicle
have run. Syntax:
conjunction
framework suchwith ExpectedConditions
as browser specific
{info,
@AfterSuite: The annotated method will driver.manage().timeouts().implicitlyWait classapplication URL, screenshots path
int
be run after all tests in this suite have (30, etc.doors;
TimeUnit.SECONDS); //Data members
int speed;
We use parallel attribute in testng.xml
to Our
In acheiveproject parallel
we are testing
usinginBehavioral-
TestNG. It
also has
driven Framework
Scrum a parameter
ceremoniesby are called
using
meetings as
Page thread-
that
count.
Object
are The
unique parallel
to design
scrum can
OOPS concept in Java are the mainpage
Model have
pattern
teams. the
with
Scrum idea
following
factory
ceremonies
behind java's values.
ensure
object that orientedeveryone (the
Method
(1) Tests overloading:
scrum
programming master,
=================
Constructor : product owner and
(2)
1. Classes
development
Class team, testing team ) is in-
-->
(3) Overloading
===========
GeckoDriver
Methods is a deals
connecting with multiple
link toatthe
sync.
2. Object
methods
Constructor These in theceremonies
has same
same class
namearewith held
as the
the
Firefox
1)
(4)
key Implicit browser
Instances
instances for your
wait: in a sprint. scripts in
3.
sameData
class
Selenium. Hiding
name but different
GeckoDriver is asignatures
proxywe which
=================
By
4. using
Abstraction child class reference can
-->
helps Overloading
Constructor
Implicit
Ex: to is
communicate
wait will lets
used
wait you
to
for define
initilize
with
the the thea data
Gecko-
specified
call
Ans:
1.
5. both
Sprint@Test:
Encapsulation
similar parent
TestNG
backlog
operation and child
recognizes
refinement
in different class
waysit asfor
a
members
based
time
<suite
methods. before
name and
browsers start
throwing
= upthe
(e.g.
""Deepthi"" tasks
Firefox)
exception
test
2.
Not case.
Sprint
Answered
6. Inheritance
different
Constructor @Test
planning
data. followed
meeting
is automatically by method
called
parallel=""tests""
@BeforeTest:
3.
7. Daily standup
Polymorphism The thread-count=""5"">
method
meeting which comes
Quality
when
Syntax: of
an B();product -
object is created no P1/p2 - Blocker
<test
B
4. b=new
under
Sprint name=""Banking"">
this annotation
review meeting will be executed
issues
Method
Not
There isoverriding:
Answered no return data type in
driver.manage().timeouts().implicitlyWait
<classes>
b.aclassmethod1();
first
5.
1. before
Sprint
Class: any testto
retrospective belonging
meetingall to that
atthe
end
Insprint
================
constructor
(30, automation
TimeUnit.SECONDS); ensure
<class
folder.
of sprint
======= name
b.aclassmethod2(); =""test.day1""/>
acceptance
-->
There Overriding
is always criteria
deals of
with
a default stories
two are met
methods,
constructor
</classes>
b.aclassmethod3();
@AfterTest:
A class is a The method
blueprint from which
which comes
One
provided
1. in theby
Implicit
</test> parent
wait is aclass
compiler single and
line one in a
of code
under
objects
child this
classare annotation
created.
that have It is
is
the executed
a collection
same after
of
and
</suite>
the
data can
execution
membersbe declared
of
and all theglobally
member test which is
methods
functions
signature
Interface:
applied to all theclasses webelements
of
--> the
========= available
Overriding letswait
youand define a similar
2.
In It is
above
@BeforeSuit:
Ex: a Dynamic
example,
The execution
@BeforeSuite it won't
will wait
(1) Write
operation
Interface
for the a program
in different
contains
specified to
only
time print
ways
if the 1234
for
abstract
element 1234
happen
annotated
public in parallel
class method
Vehicle mode
is executedfor tests before
in two early
different
methods
found rows?
object types.
{Access modifiers for methods in next
having
the
Ans: execution and
thread-count of continues
all of
the 5
test to the
cases
line
defined
int for execution
doors; in the folder//Data members
interfaces
3. It will be must
applied be public
till the end of driver
@AfterSuit:
int speed;
public
Variables class @AfterSuite
Polymorp
defined must be annotated
{
life
Set:
====
If proper xpath,cssSelector and id are
A
not
Cucumber set is a collection
available. is aWe tool can that
usecannot
based absolute
on Behavior
contain
xpath and
Driven
Framework duplicate
travel
Developmentbuilt in elements.
from (BDD)
cucumber: xml How
first framework node ever to
it
the
which makescurrentis
======================== no
used guarantees
element.
to write concerning
acceptance
testng.xml
the order of file is used to manage the
iteration.
We
tests
When
test can for
we use
execution the
have Linktext
web in locator
application.
multiple
testNG. test to Itfind
data allows
to
Inner
Below
element Join:
are the classes Implement set
automation
pass
========= in a of
single functional
step of a validation
feature in
file,
1)
interface
easily Implicit readablewait:
we
hierarchy
This need
=================
1. type
Hashset
to ofpass
of theformat
join xml
returns file:like
multiple those plainrecords
parameters
english
====================
which to
have business analysts,
Implicit
2. wait matching
LinkedHashSet
Synchronization
Developers, will
Testers wait values in both
for
etc.the specified
in Selenium:
Feature
suite
tables.
time file:
before throwing the exception
3. TreeSet
========================
==========
test
1)
Feature:
Class Implicit
navigate().back():
Frames can'twaitbe
Login handled in the normal
feature
Outer
Syntax:
Implementation
2) Explicitjoin: wait of Setselenium
interface:
===============
way.
Scenario
Webdriver
Method
======== We need outline:
provides to tell
Login an API testto handle to go
driver.manage().timeouts().implicitlyWait
============================
3)
It Thread.sleep()
takes back the user to the previous
inside
Given:
alert
1.
An
(30, the
User
dialogues.
findElements
outer joinframe
TimeUnit.SECONDS); is on and
Login
Alerts
method handle
page
cannot
returns a set of recordsreturns the ablethetolist
public
4)
webpage
webelement
When Fluent class
title wait
in
of theHashset
Login web pagebrowser’s
is Welcome history
inspect.
1.
of
(or To
all execute
matching
rows) that include only few
elements whatTC belonging
an inner to
whereas
{Ex:
We
Then driver.navigate().back();
can user identify
enters if a frame
""<username>"" is present andin
join
1. if
different
findElement there
would
Implicit is no
classes
wait alert
method
return is abut we in the
can
returns
singlealsoline screen
use the
includes
of we
code
1)
the public
Implicit
""<password>""webpage static wait: void
by main(String
using the args[])
tagname
will
<groups>
specified
other
and get
can rows'NoSuchAlertException'
be concept
webelement
for
declared which globally
no which is
{iframe
=================
navigate().forward():
The
in
2. XML
The
corresponding
applied alert file: interface
findElement
to allwill match
thewait contains
method
webelementsis found a number
throws in thea
HashSet<String>
Implicit
=================
Examples wait hs for= new theHashSet();
specified
of
other
2. API's
<groups>
NoSuchElementException
It isbefore to
table.
a Dynamic execute
There different
are
wait three
and actions.
exception
types
itpage
won'twith of
wait
time hs.add(""Deepthi"");
Navigates
List<WebElements> to throwing
theOuternext theweb exception
----------------
<run>
when
outer
for the the
joins: element
specified
hs.add(""Keerthi""); Left timeisiframes
not
Join
if the (or= Left on
available
element Join)
reference
<include
the
Right page.
Outer toJoin the(or
driver.findElements(By.tagName(“iframe
Alert |username|password|
alert =
name=""smoke"">
Whereas, browser’s
driver.switchTo().alert();
the
Right history
findElements
Join)
found
Syntax:
Ex:|test early and continues to the next
hs.add(""Spoorthy"");
driver.navigate().forward();
”));
</run>
method
line for returns
execution |test123|
an empty list when
s.o.pn(hs);
driver.manage().timeouts().implicitlyWait
|sample |sample1|
</groups>
the
3.
}WeIt can element
will be applied is not available
till the end orof doesn't
driver
(30,
1) TimeUnit.SECONDS);
navigate().refresh(): use
alert().dismiss();: below three methods to
exist
life
}switch on the page
==================
StepDefinition
===============
In testcase: to frame file:
Methods
1. Implicit inwait
iterator interface:
This command
(String/FrameID/WebElement)
===============
This method
@Test(groups={""smoke""})
2) Explicit wait: isiswilla single
used refresh
when linetheofcurrent
the code
‘Cancel’
========================
and
web can
page
switchTo.frame(int be declared
there by globally
reloading which
all the is
@Then(^user
button
================== is clicked enters inframeNumber)
\*(.*)\
the alertandbox. \*(*.)
hasNext()
applied
web to all theenterswebelements
public
2.
Explicit
next() To elements.
switchTo.frame(string
void
control
wait user the
mechanism alphabeticalframeName)
(String
targets uname,
order only of
2. Ex: It
execution is a Dynamic
driver.navigate().refresh();
switchTo.frame(WebElement
String pwd) we can wait
use andtestNG it won't
helper wait
specific
remove()
for element.time We can if thetell to wait till
{thethe
frameElement)
2)alert.accept():
attribute specified
condition 'dependsOnMethods'
satisfy, Once
element
the
found
navigate().to():early and continues to the next
sysout(uname);
==============
@Test(dependsOnMethods={""method1"
condition
Iterator
line for
============= satisfied,
interface
execution is The
used tool proceed
to Switching
traverse
switchTo().defaultContent():
Thissysout(pwd);
method
",""method2})
with the is used when you click on
each
3. Used
back
}next It willelement
andto be applied
launch
forth present
a
between till
new thein
web the
end
iframes setof
browser driver
and
the
3. ‘OK’
To step button of
skip TC from execution we can the alert.
interface.
life
window
parent
The and navigate
page
corresponding canas be to the specified
achieved
mapping ofusing
the in
declare
This can method
be done with WebDriverWait
URL.
this method
parametrized
@Test(enabled=false) then in feature file
conjunction
iterator<String>
2) Ex:Explicit wait: withit ExpectedConditions
= hs.iterator();
3)
4.
class alert.getText():
If test case
while(it.hasNext()) takes more time to
==================
driver.navigate().to(“https://google.com
================
execute then give time attribute
{”);
Explicit wait mechanism targets the only
This
Example: method
@Test(timeout=40000)
s.o.pln((it.next()); is used to capture
//Prints all elements
specific
alert message.element. We can tell to wait till
========
present
the condition in thesatisfy, set Once the
//define
}
condition webdriver
satisfied,wait The statement
tool proceed with
time
with specified
the
4) alert.sendKeys(""Text"");
WebDriverWait
Map: wait = new
next step
=================================
WebDriverWait(driver,
=====
This can be done 10);
This
A map is is usedan whenwith
object you
that
WebDriverWait
want
mapsto keyssend to
in
conjunction
some data to withalert ExpectedConditions
//apply
values.
class the
A map wait forbox.
cannot specific
contain element.
driver.switchTo().alert().sendKeys(""Text
Below statement will wait for element
duplicate keys.
"");
to be present till 10 sec as specified
Below are the main implementations of
Example:
by
Mapabove
======== interfaces
wait.until(ExpectedConditions.presenc
1. HashMap
//define webdriver wait statement with
eOfAllElementsLocatedBy((By.xpath(""//
2. LinkedHashedMap
time specified
a[@class='ico-register']""))));
3. TreeMap
WebDriverWait wait = new
WebDriverWait(driver, 10);
Implementation of Map Interface:
===============================
//apply the wait for specific element.
public statement
Below class HashMap will wait for element
the outcome
?
t is string constant pool, how to run specific stage in jenkins pipeline, in ArrayList,Single linked list and double linked list wh

se ETL Testing.
ression , sanity , smoke suite?
s (each integer separated by a space), sums each file and then adds the sums to produce a total.
fn4?concurrent threads (even if there are more than 4 separate integer files).
dard
ch output
is the right time to execute test scripts and what is the time interval you run those test scripts ?
nd run them ?

st scripts that is designed your earlier?


?
krishna Parimaladevi Palanichamy
The interface will have only abstract 1.Using abstract we cant achieve
methods
Encapsulation in which is hiding it can the extend actual multiple
Encapsulation inheritance in Java but is using
a process of
another interface.
implementation
Synchronization ofina while
class,
selenium abstract
meansmeans class Synchronization
interface we
wrapping code can and achieve
in data together
Selenium multiple into
and
nothing have
variables, but both
methods, abstract
managing and waitand
all
Throw - throw is used in a method to 1. Throws - is used to declare non
data
between in inheritance
a single
Webdriver: unit.By providing
Synchronization only is an a setter
Abstract
class is
the application
throw methods,
hiding
exceptions by
which can
another extend class another
you are testing Iexception,
explicitly. can 2.An
or getter
mechanism abstract method, which
which class we
means can can
involves be make defined
two the
it exception
works or and
NoSuchWindowException
Java class or multiple interfaces it have
can faced
contain theaccess following modifiers
be
and accessed
selenium
Throws
NoSuchFrameException
driver.getTitle(); - throws by
tool toonly any
isavoid method
used exceptionsin method similar class
more read-only
getcomponents
1.TimeoutException:
To to the
the page try-catch or write-only.
titleworking Thrown
use block. ... fo
parallel
getTitle() when In Throw the
other
which
like they are
elementnotfoundexception
signature to declare declared. gives
an exception. data subs,functions,properties
words,
.etc... in keyword
with each you can
other. skip
Usually, the getter but
in test or
TimeoutException
You
hiding can and use driver.getWindowHandle();
Re-usability.
there
method is not
get.windowhandle():
interface
setter ofis
methods.member
used
enough
driver. in the
cant time
helps method
betwofor inagetting
defined
body
order to handle
StaleElementReferenceException that we are using automation,
to throw an there
exception, will be while throws is
to get the current
PageObjectModel
unconditional and window
(POM) is a id
conditional and
design waits use command
the
Page
using
It window
provides
components Object
the tohandle
keyword
user
be completed.
model
such the is
asof an the
control current
object
application over design
the
NoSuchElementException-
driver.getWindowHandles(); used
Occursfor 2.NotFoundException: in method signature This to declare is
exception
which
Submit()
like
when - the creates usedobject
islocator toisany wrong, formitmethod
repository's web
is present
window
pattern
static,virtual,abstract
The
data.
under
the
subclass submit()
You test
exceptions in canSelenium,
of and function
write the
that
WebDriverException. thewhere
test
can or
is sealed
logic
automation
occur web
specifically not pages
inandto It for
the
which
each
pages webreturns
SeleniumLibrary
Implicit towait- page
submit waitall the
elements
that
3.0
until webdriver
form.(easy
and the in the
specified to get.windowhandles():
are
interface
forms
store
Ruby,
tool. represented
and
the
Python, can makes
negative not
Java, asuse
things
numbers
etc helps
classes,
any as simpler. in
access and
in
language getting
the the
It can
in window
opened windows/frame. id.inwith that write statements
a happens
the handles when present
ofbeen anon
all the inwindows
element the method. on are theopened DOM
application.
use)
SeleniumLibrary
time
import for webevery advantages
driver step 4.4,
and the are
chrome test -reduce
script
driver. does various
modifier
be
setter
bindings
In used
Selenium, elements
i.e,
inside
methods.It
have we forms
have is a the
on
way
developed page
elements,
differenthandlesto achieve by or
If theto
loop
code locatornavigate
duplication is right to
and still
parent-child
code occurring
reusability. set:
defined notasexist.
helps to
public,private,protected,internal set
variables the window
on the class. All
org.seleniumhq.selenium
before you throw
System.setProperty("webdriver.chrom
allows
means parallel i.e page testing,
loadingthe error. easy
issue is mostly
to you setcan Ans: form
data
Selenium
Unconditional
WebDrivers tags
hiding to
3.ElementNotSelectableException: in submit
developers Java
forSynchronization:
different that
because form.
to provide
browsers other Only like
This
windows.
click()
used. has
other to be
library
driver.manage.TimeOuts.implicitwait(6,Ti done used on inthe are submit
testng, which
possible
etc.because
Or
class else
compatibility
the isthe
will
timeout in
user
notthe within
obviousbe
for
value form
interactions
able
multiple
to anof
way
be to a string.
interface
is
access can
to
languages.I
specified.It use then
by
the willbe
e.driver",
priority,
handle via
Ans: "path
Easy webdriver of the
parameterization exe
waits file\\ and – FirefoxDriver
@BeforeSuite
Selenium
Ans:
set<string> exception
set= for Firefox
is thrown browser, when an
button
log4j-api and used submit()for logging, can be done
Apache on implemented
default
click()
data everything
function
through as
the aftermethods is
private public.
searching dataon the for class
that
meunit.SECONDS);
chromedriver.exe");
prioritization.
@AfterSuite
any form annotated
element. method is POI ChromeDriver
have
wait
The
element
@BeforeSuite used
till
annotatedcertain
driver.get.windowhandles()
3.A
submit class ismay
button.
javafor
presented libraries
time
method
inherit
Google beforeinwill
only the proceeding.
Chrome,
be
one DOM run but
abstract only
is used
Explicitwait
// Initialize
@BeforeTest for excel
-
browserwait automation.
until the specified members.
It is a set
Wait(),Thread.Sleep();
InternetExplorerDriver
once
you canbefore beof dynamically
all
able tests
to in
select. for loadable
this Internet
suite
Hence, have
it is
executed
Polymorphism after the
- Different execution ways of all the The
switch
to do a i)Class
class annotated
but to: helps
In method
interface, inclass switching will
Abeing: be run
between only
time
WebDriver
@Test for a specified driver=new test step
ChromeDriver(); before So
The the
libraries
Explorer.
run.
impossible main only
encapsulate that difference
advantage
to Java
interact applications isclass
ofinwith.
this easy method may
click()
to test.
can call
is
test methods in the Suite(Start the once
the before all tests this suite have
task
Data
throwing
// launchwith
@AfterTestDriven help
an
the Testingof method
exception.
browser is aand type
Goodoverloading
Opens use when Collection
of inherit
DATA
should
So,
at
that run
Launching itwindows
itis several
DRIVEN
willbecome
better
time. of
done objects
a TESTING interfaces
for
Firefox on
for unit istesting.
submit
help
browser called
a test
when button class.
we and It
webdriver)
and
approachmethod overriding. run.
action:
is a logical helps entity.to perform certain
page
google
@AfterSuite
The loadswhere
@BeforeSuite dynamically for automation we
annotated method is interact
automation
submit()
WebDriver
@AfterSuite
how cancan can
with
you framework
driverbe
aresolve done
third = new partyno that
anywhere stores
system
FirefoxDriver();
such onsuch
element test
the
Inheritance
use test
WebDriverWait date - obtains
which
wait all
will
= executionthe
be
new Project properties
mostly actions
A
data
form
as class
an in a
element.on table
interface. thealso orwindows.
be defined
spreadsheet
Here, itfollowing
is as a
format.
language
@Dataprovider
executed :before
In our
driver.get("http://www.google.com"); Selenium
the of allwe In public
The
It our
happens
@AfterSuite Selenium
classduemethod
annotated Project
to theyou wenot
will bepossible
are using
run only
and
stored behaviors
inper
WebDriverWait(driver,
are using form
Java ofoffilesparent
language. or excel
10); classsheets, used blueprint
This
to
Java write allows from
condition
language.
FirefoxBrowserLaunchDemo which
automation Even or check
though can
engineers for create
a
Selenium
{ to
yes
the
with -As
@Listerners
test
extends cases(stop the Page
keyword. Object
theinwebdriver) Model, we As
once
reasons:
The
an per the
after
annotated
individual Page
all tests Object
method
object. in this
Class Model,
will suite
becan
doesn't we have
run only have
which
Type
have is used
of Framework:
maintained to
wait.until(ExpectedConditions.visibilityO input
aClass we in
class are the
for using Data- have
condition.
supports a single In asuch
multiple test script
cases,
languages, that
the we are
@Parameters
The PageFactory
Abstraction
application
fElementLocated("locator")))
driven Framework - Abstraction
and get by the usingactualis aevery
Selenium
Pageprocess
outputs
webis maintained
run.
Selenium
once
consume
execute
application
using public
after
Java
Page
any
tests
static
all
can
class
tests
language forFactory
space.
be
void all
for
inthe
made is
every
this Pattern
just
main(String[] test
to
suite web
waitdata
because
is
have
for
like
args)ina {
page.
an
we
where can Each
extensionyoucreate web
show ofeach page
the only Pagehas
class“relevant” a
Object
for separate
each design
data page.
1)
an
run.
Not The
extension page isto
answered still Page being Object rendered Model and , but
later
fluent
Object
class willwait
Model
and be thatcompared
- used
the
design maximum
class with
pattern
holds expected
time with
the to Page
wait mostthe
specific
Each
@BeforeClass
I already table.
of
web period
the page
finishedautomationusing
has my a this typesearch
developers
separate
element ofclass
pattern.
page
Yes,
and I i.e
have
“hide” It
for is 7 pages
used
to unnecessary to
interface initialize
= 7 classes in my
details the which
project Page
an Iii)Inheritance
have Factory
used is
selenium much enhanced
interfaces only
outputs
for test
Factory.
functionality
elements step of
obtain
with
and
the
desired
polling
members
Page Object
results.
time of or toof
that ignore In
and
The
model.
this
synchronization.
webI have that framework,
knowledge
//Creating
annotated
obtain To class no element
start aholds
method
with,onThe
driverinput major
Selenium
the
we
values
object
will functionality
exception.
just be need
are
with
run only
to
consist
to hide
object
Webdriver of
the
from all
actual
the
is an web user. elements
implementation.
interface in on that
selenium Java. Like in
When my selenium
one object
Alert,Capabilities,ContextAware,HasCap
read from data project
files acquiresand while
are all initializing
the
stored into
the
TestNG:
page. exception
instantiate Using
Separate the during
TestNG
classes
Page that
for
Objects period.
Assertions,
for every
itself. disadvantage
referencing
and
once
2)
importThe members
before
second
package the is
WebDriver
of that
reason that
first at
web
testis some
interface
AJAX page.
method times,
has innot the
page
have
which so
created
Encapsulation we
Synchronization that used we
an - to can
interface
binding
is useobject
initialize
nothing thatfor
it, in our
user
other
managing any
properties browser and
abilities,JavascriptExecutor,OutputTyp
a
It variable
is a mechanism in using
test behaviors
scripts.
whichselenium of
Ddt
involves a parent
(Data more
Grouping
individual and
test. Parallel execution. tool
Type
Separate
the will
WebDriver
current be
of Framework: made
classesclass driver;to for
is wait
Inalready
every unnecessarily
our project, individual we
test
details
we
Maven:
case
state(fields)
than that
between
can and
use
Using
class.
implemented
and
WebElement,
an
voidMaven behaviour(methods)
application
accept() for build, itand for
under the test
void
returned
webdriver.
object,
than
even
Not
are one
when
answered
using it is yet
login ‘org.openqa.selenium.support.PageFac
known
e,Rotatable,SearchContext,TakesScree
Driven testing)components
the
and
Data-driven enables asinvoked.
I've
application inheritance.
to building
Frameworkwork is
obtain
ready. It
both
parallel by
page
together. class andin esignature class to test.
NoSuchElementException
tory’
provides code reusability. It is used
TakesScreenshot,
and selenium. orderAlert,ITestListener.
to achieve nshot,WebDriver,
positive
this, with Each isand negative
other.Generally testdesign cases intotoa
dismiss()
execution
Listener
use the
methods
is
data.
and
defined dependency to
as handle
interface thethat
purpose. web- using
istener
@AfterClass
3) The
Factory
achieve
Page
//Setting
element Object
defined
class
runtime can asModel
webdriver.gecko.driver
beinterface
ispolymorphism.
really used notinto on Testthat
the
make
we
based can use both conditional and WebDriver.ImeHandler,WebDriver.Navig
single
Automation,
Conditional test. we have
Synchronization two components,
we usepopup's
Integrating
modifies thethe defaultotherTestNG's
TestNG
driver.switchTo().alert();after than
dependency window behavior. in modifies
pattern
property
The
page
1)
using void annotated with
whenever. theObjects
dismiss()
Page
ation,WebDriver.Options,WebDriver.Tar
In Data-driven
Page
defaultmethod
test – The Factory.
TestNG'swill be
dismiss()
simpler
automation and behavior.
run method only
easier.
unconditional
handles.
POM.xml
As the
created namefile
an and
object waits
suggestsrunning
for that this
Listeners POM.xml
interface 1.
In
POM:
As
once
clicks
We Application
this
the
use As case,
on per
name
after
exceptionWebDriverWait the
Page all a
the Under
condition
suggests
the
“Cancel”
Factory Page test Test
Object also
Listeners
methods
button
pattern wait will
Model,
=
asto in
new be
soonthewe
You
Syntax use fordate the class
implicit to get
wait system
: date Needs
iii)Polymorphism to Decide
getLocator,WebDriver.Timeout,WebDriv
framework,
2. Test Automation input which
indata Java
Tool. can date be format
stored we in
file
and using
""listen""
use
time to Jenkins.
the
alert.accept();
and use event defined
,
SimpleDateFormat in the to specified
have
current maintained
WebDriverWait(webDriver,
as the
initialize
want, pop
then class
webalong
System.setProperty("webdriver.gecko.
""listen"" to the
up
we have with
event
window
elements
can a class the
run.
use defined timeout
for
appears.
which every
in
are thevalue.
2) web
void
Create
- Connection to DB -> Create
Git as a Both DriverManager.getConnection(URL,
Polymorphism
er.Window,WebElement,WrapsDriver,W
single
The or
these
tool multiple
will components
wait data
toclass check sources
will have like theirxls,
Version
selenium
alert().dismiss();
get Control
in concerned
Statement
NoSuchElementException.
script
Object
Tool:
and
to
driver.Manage().Timeouts().ImplicitlyWait format.
->
We use
behave
handle
Execute it. the page.
driver",
selenium
timeoutInSeconds);
SQL accept()
defined
SimpleDateFormat
""userid"",
If
XML,
own one csv,
Each
task
NoSuchElementException
rapsElement speed.
in script
–and The
Pageweb
pathToGeckoDriver
""password""
is Weperformed
page
and
accept()
Objects.
databases.
should
has
behave tothe
method
)write
in
a+do separate
"\\
different
our
clicks
the
repository
accordingly. to store
It isDate();
used our intest scripts.
selenium by on condition
class
geckodriver.exe");
accordingly.
@BeforeTest and and
that
wait.until(ExpectedConditions.elementT
the will
class
It is used come holds out
in selenium if
the nothing by
Date
Query.
The main
Jenkins:
date Store
NoSuchWindowException
By
= new
method
(TimeSpan.FromSeconds(30)); results
using willinalways
Jenkins
ResultSet
CI execute Here,
We
same.
ways,
User
scripts
happens.
should
functionality it“Ok”
NoSuchWindowException
It allows definedin
button
istesting
such
initialize
known
However, constructor
and as
way
aspage
aapplication
members it
soon
polymorphism.
isthat important
as
objects
both
ofwith the using
that the
pop
toweb
implementing
SimpleDateFormat Listeners Interface implementing
The annotated
oBeClickable(By.id<locator>))
up window
initElements() Listeners
appears. method
method 3) Interface.
will
String
from be run
getText() It
Connection
NoSuchFrameException
first
A because
primitive
(Continuous datacon is= a formatter
it type
Integration) special
is pre-defined
Tool,
= new
staticwe by For
SimpleDateFormat(“MM/dd/yyyy”)
Userid
multiple
components
set
Primitives
page.
allows
before
– The aexample:
NoSuchFrameException issets
timeout
Separate
the
//Instantiating and
customizing
any
getText() test
username
to
of
should
value
Non convince
data
classes
method
method alsovalues
move
Primitives
driver
TestNG
configured
for the
inobjectwith customer
during
conditional
belonging
returns same
datatypes
every
reports and
the
in
or
to
text
SimpleDateFormat(""dd/MM/yyyy
DriverManager.getConnection(dbUrl,us
NoAlertPresentException. PageFactory
Created
the
differently,database
NoAlertPresentException
Regression Date to Class
class
draw
testing" as
object below,
something, which Once for will we
method
the
execute
The programming
string that
test is will
acases be
non-primitive called
language.
on daily from The
basis
data Java
size and
type, and
in java?
individual
launching desired
synchronization
HashMap<Integer,
logs.
the
displayed There
classes Stringtest.
browser
on arespeed,
is
inside manyso
primitive
thetime.Then so
that
String>
alert the that
types the
<test>
box. or
hmap wetool
non
of will
=
TestNG
tag will
new
is not
HH:mm:ss"");
ername,password);
ElementNotVisibleException call
return
Password
example, initElements()
Date
InvalidSelectorException of
shape, andthe method,
configured
triangle, alluser
using
rectangle, elementsformat
itself
and
also
because
Hash to
type
for
map start
ofisrefers
nightly
it anexecution
variable
part application.
to
of valuesbased
string
collections are which
object on encounter
proceed
primitive
We
listeners
run.
Jenkins havedriver
HashMap<Integer, – even=""Element
separatenew
available.
an openif date
the Not Found""
condition
packages
FirefoxDriver();
String>();
source for
automationis not Pages
System.out.println(formatter.format(dat
Statement
TimeoutException stmt =char, float, double will
method
URL
etc. get
isThere
of initialized.
get
format the jdbc:< and time
specified
the
stores
Jenkins
e)); schedule. isex:
data a in int,
free Test
the and Result
form of key
open-source will and be sent ElementNotVisibleException
errors
met.
The
and
server which
primitive
Tests. which
PageFactory.initElements()
The pom. xml two
All will
data
the
enables
file
consume
differenttypes
web
contains page types
include
developers time
related
static
information ofagain
byte,
con.createStatement();
Non-Primitive Data Types: These data dbtype>://ipaddress:portnumber/db_n
In
int, Java,
long, we
ElementNotSelectableException
in debugging.
conditional short, use
statements method
float, double, overloading
in seleniumand
to the
values. peers using Jenkins. classes //Using
/*Adding
@AfterTest
around come
the get() under
elements
world method Pages
to to package
open
HashMap*/ a
automation
XML fileare
ResultSet
types that rs=
not
server,
contains
actually
facilitating
information
defined by about
the
method
of
TestNG.
ame""
and
char.
projectmethod
TimeoutException
Synchronization
webdriver ...
takes
xml and
and file the
overriding
they ato
configuration
iscan driver reliably
configuration
be
are to instance
an achieve
effectively
build,file
implicit
of test,
wait
Logs
yes we
continuous : Usedcan Log4j
store
integration for
objects logging
and as for
keys
continuous tetsin and
webpage
The
and
the
information all
hmap.put(12,
annotated
deploy
given the tests
class their
for theandrelated
""Chaitanya"");
methodsoftware. the
maven willclasses
class to be run
type,
build come
after
the
the
A: project is
stmt.executeQuery(query);
@FindBy
programming and one configuration
language of the but annotation are details NoSuchSessionException
that
<dbtype>-
polymorphism.
Ans
handled
and helps
:explicit
@FindBy byin The organizing
implicit
wait. "driver and our
forexplicit
thedata tests.
databasewaits. It
scripts
hasp
delivery
used map.
by
in Maven
the use
page get
to methods
build
object the
model" to retrieve Non-primitive,
project.
under
all
and
project
allows
you
Another the are
Tests
returns such
testers
trying
example
StaleElementReferenceException a asor
package.
driver.get("http://art.com");
hmap.put(2,test methods Page
to
to
reference
""Rahul"");
dependencies,
create
connect.
can belonging
Objectbe and
to with
To handle
speak to
its
connect
types,
build the
created
Extent
the data. by the programmer
Reports: For the reporting Implicit
are
Home
classes
fields thefullyPage
hmap.put(7, is
more application
inside and sophisticated
initialized.theLogin
""Singh""); to
<test> alltag
Page,we elements
members
havehaverun. ain
directory,
multiple
to oracle
something;
the page. testsource
database
for classes,
example, directory,
this define
value
a cat test
test
will
speaks be
purpose, we are using Extent Reports. of Implicit
source the
separate data
//Closing
hmap.put(49, Wait
directory,type
classes thefamily. to store
browser
""Ajeet"");
plugin, ... goals element etc. job
suites and tests. Itwoof,
makes aclass,
tester's
It generates beautiful HTML reports. We ""oracle"" meow,
WebDriver
This
Reference
locators.
@BeforeGroups
Maven can dog be
driver.quit();
hmap.put(3, reads For barks
driver
used
types the
the
=login
can
""Anuj"");
pom.
new
while be etc.
FirefoxDriver();
trying
test a there to find would
easier by controlling the execution of
use the extent reports for maintaining For out
interface,
be
The a connecting
driver.manage().timeouts().implicitlyWait
an element
separate
list of or
groups arrayclassto elements
or database
variable.
that which this
withthe
and
calls name
when
tests
""emp""
iv)Abstraction
(10, byisinnot putting
MYSQL all the
URL willdatatest cases
logs and also to include the they
String} /*TimeUnit.SECONDS);
methods
configuration
together
are
Display not
from
and
areadily
primitive
the
content
method
run it
Home available.
under using
will Page
run
one
type The
class
Iterator*/
before.
XML file.
bejdbc:mysql://localhost:3036/emp
Hiding internal
driver.get(""http://www.google.com"");
implicit wait will details
tell the andwebdriver showing
screenshots of failed test cases in the and This
And Set
functionality
Login
method
the set code
Page
=
isto
class.
hmap.entrySet();
is guaranteed
create
known as connection to run to
abstraction.
Extent Report. }poll
As
shortlyper thethe
Iterator DOM
before maven forthe
iterator a certain
project,
= set.iterator();
first test period theof
allmethod tests
POM : As per the Page Object Model, we looks For
time.
are
that kept like
example
However, in the
while(iterator.hasNext())
belongscon
phone this
‘src/test/java‘
to any
call,not
will
of these
wework don't
{ groupsallis
and for know
if the maintained
have dropdown id are changing
a class for every web commands Connection
the
remaining internal processing.
but (such
files =
only for as=“Find Element”
invoked. Map.Entry
DriverManager.getConnection(dbUrl,us mentry
dynamically
Already provide time to
answer time, in
page. Each web page has a separate (Map.Entry)iterator.next(); 3_R In Java,
and “Find Elements”
config.properties, we use abstractelementstatements. class locators and
driver.findElement(By.id(""id"")).sendkey
class andofthat ername,password);Need
interface to achieve utility abstraction. to load the
Journey bugclass holds the (POM
@AfterGroups classes),
System.out.print(""key files, test is: data,
""+
s(""UserInput"");
functionality
New -> Assigned and -> membersOpen ->ofFixed that -> web JDBCSyntax
etc.,)
mentry.getKey()
The
Driver
kept
list of under
using‘src/main/java‘.
groups + ""
the code
that & Value is: "");
driver.findElement(By.id(""id"")).sendKey
page. Separate
Retest -> Close classes for every
Class.forName(""com.mysql.jdbc.Driver"
v)Encapsulation
driver.manage.TimeOuts.implicitwait(6,Ti
Test Base class in Javathis
(TestBase.java) OOPs Concepts deals
configuration
");
Encapsulation method will run after.
s(Keys.Enter);
individual
New -> Assigned test. meunit.SECONDS);
with
-> Open -> Fixed -> System.out.println(mentry.getValue())
This all
method the common
is guaranteed functions to run used by
String
Properties
Retest Homepagewindow
-> failed file: (config.properties)
->Re-assigned = - Binding
Explicit
all the (or wrapping)
Wait
pages. This class code is and
responsible data
For
shortly each key-value lasttotest be stored inthat
togetherafter into the a single unitmethod are known
Already answered 2_w ->13 "
WebDriver driver = new FirefoxDriver();

Navigate to a Web page.

driver.get("https://www.udemy.com");

Locate an HTML element on the Web


page.

driver.findElement(By.id("xxxx"))
driver.findElement(By.linkText("xxxx"))
driver.findElement(By.className("xxxx"
))
driver.findElement(By.cssSelector("inp
ut#email"))
driver.findElement(By.name("xxxx"))
driver.findElement(By.xpath("//html/
body/div/tablexxxx"))
driver.findElement(By.partialLinkText("x
xxx"))

Perform an action on an HTML element.

driver.findElement(By.id("xxxx")).click();
driver.findElement(By.linkText("xxxx")).cli
ck();

Anticipate the browser response to


the action.

Run tests and record


"1.Localization test results
is the process of
using a test framework.
adapting internationalized software for
a
"Itspecific
happens region
because by adding locale
Conclude
specific the
components test. you and
might have
translating
specified
driver.close(); the wrong class name.
text.
To avoid this error, you need to try the
System.exit(0);
Localization(L10N) is the process of
following
adapting
........... a product or service to a
particular language,culture
specify the absolute (including and
desired look
packages) nameand of feel.
the .class file (just
name) which is in the current
1.Create
directory.properties file and set the key
and value pair.
................
2. Create
You just need resource to either bundle,input
correct yourlocale
to add
CLASSPATH environment variable or run
3.Create
your program the mechanism
with java -cp to read
or - the
data from
classpath option. the properties file
*Create locale object using the
.............................
paremeters
1.Goto Jdk folder set inand properties
copy the filebin
4.Load
location the resource bundle based on
the locale
2.Goto System properties and set
5.Get
environment the message variable corresponding to
the code
3.Select PATH and create New and
Using
enter the tools jdkSilkTest
path and QTP
support .NET using add-ons or plug-
..............................................
ins ,we
1.Set can achieve
System variable Localization"
and specify jdk
path as JAVA_HOME"
" 1.
WebDriverManager.chromedriver().versi
on(""84.0.4147.30"").setup();
WebDriver driver = new
ChromeDriver();

driver.manage().window().maximize();

driver.manage().timeouts().implicitlyWait
(15, TimeUnit.SECONDS);
driver.get(""https://
www.cleartrip.com/"");

driver.findElement(By.id(""MoreOptionsLi
nk"")).click();
Select Class=new
Select(driver.findElement(By.id(""Class""
)));
List<WebElement>
classOptions=Class.getOptions();
for(WebElement i:classOptions)
{

System.out.println(i.getText());
}
driver.close();"
"1. Smoke testing : is an approach
which
"1. youiscan usually
verifycarried
the URLout 's of When login
developers
pagecan
"you anduse provide
home testng a fresh
pagelisteners,
using assertbuild to to taketothe
QA
find
the team
screenshot
"1. SwitchTo() to make
out the successful sure
on failure
Functions thatlogin.
are the
test used core
case. to
functionalities
you =should
handle alert, useof
windows a program
ITestListener
and are
iframe.
"1.WCAG
working stands
fine for
without any web content
issues. ex:
String
interface actualUrl=”
to guideliens,
driver.switchTo().alert();
accessible implement onTestFailure
with Automated
build1, build2,
https://www.facebook.com/”
method. build
driver.switchTo().frame(index); 3.....
accessiblity
String expectedUrl=
driver.switchTo().window(windowHandl
Regression
driver.getCurrentUrl();
e); testing: is the verification
2.
of Web
“bug accessibility
fixes or any changes is important in the as the
Assert.assertEquals(actualUrl,
public
web and void getScreenShot(String
internet have become
requirement”
expectedUrl);"
result, youand
WebDriver making sure they are
for tables,
important
not affecting parts otherofdriver)
can uselives
our throws
parent-child
functionalities and making of
IOException
traverse
sure the or
web { is accessible
decedent, ancestors allows "1. What is Sanity Testing?
the application.
File src with = Smoke Testing is a kind of Software
people disabilities to be able to
((TakesScreenshot)driver).getScreensh
2.
have JavaScriptExecutor
equal access to the interface Testing performed after software build
is animportant
Sanity testingaismechanism
otAs(OutputType.FILE);
that provides a kind of testing to execute to ascertain that the critical
services/features
performed to check the web provides,
whether adriver. It functionalities of the program are
FileUtils.copyFile(src,
Javascript
such through
as education, new
selenium
online File(""C:\\
shopping,
software
Users\\
provides product is
“execute services. working
script” & correctly working fine.
recreation,
when a newhealth module ormethods, functionality
Screenshots\\""+result+""screenshot.p
“executeAsyncScript” to run It is executed ""before"" any detailed
gets
ng""));
JavaScript implemented in the context to an existingof the functional or regression tests are
3. html> …at</html>
product later — The of
stages root build ex:
}element.
currently...selected frame or window. executed on the software build. The
buid64,build65.... purpose is to reject a badly broken
<head> … </head> — The document
you
3.
head. can
Static ... call aboveare
variables method
one's in you can application so that the QA team does
2. The Collection
onTestFailure
access without is an interface,
method.
creating an object, Set, not waste time installing and testing
<title>
List, and … </title>
Queue —areThe pageoftitle.
some the ...
public
which
<body> void
means onTestFailure(ITestResult
… </body> the variable
— The page's is common the software application.
subinterfaces
result)
to all the{ instances of Collection
(or objects) interface.
of the
content. ...
bs.getScreenShot(result.getMethod().g
class.
<h1> … </h1> — A section heading. ... 2.What is Sanity Testing?
List : is
etMethodName(), an ordered collection
driver); it Sanity testing is a kind of Software
<p>
maintains… </p>the — A insertion
paragraph. ... which
order,
}"
4. Overloading
<a> … </a> : occurs
— Adisplaying
link. ... when two or Testing performed after receiving a
means
more methods upon in one class the have list the software build,
<img>
content — An image
it will display thedifferent
elements in with minor changes in code, or
same method name but
the same
parameters. order in which they got functionality, to ascertain that the
4. If the audio/video
inserted into the list.content is
properly audible/visible or not. bugs have been fixed and no further
Overriding
If the means having two methods issues are introduced due to these
Set iscolor
: the ansame contrast ratio
unordered is maintained
collection, it
with
or not. maintain any order. There are changes. The goal is to determine that
doesn’t
method name and
parameters
If control(i.e.,
theimplementations method
actions for signature).
video are the proposed functionality works
few
One of the methods of Set which
is in the parent roughly as expected. If sanity test
working
maintains fine ororder
not. such
class
If the and the
short thekeysother are is in the
provided
as child
for the fails, the build is rejected to save the
LinkedHashSet
class then you(It maintains the time and costs involved in a more
menu
elements in insertion order). need to check if all of
those are working fine. rigorous testing.
5. Axecore is an accessibility testing
3. I will identify
engine for websites the tables and through
other HTML- their 3.Difference between Regression and
5. The order
unique identifierwould of be
the -tbody or tr.
based
ID user interfaces. It's fast, secure, Retesting?
Ilightweight,
will descendent and was to traverse
built to to a
Name
particular child to click the any button.
seamlessly integrate with
CssSelector existing Regression Testing is carried out to
+//tr[contains(@class,
test environment so you can automate confirm whether a recent program or
Xpath
'itemTable')]/descendant::span[contain
accessibility testing alongside your code change has not adversely
s(@id,'GroupNameColVal')]
6. Get all the values using Select class affected existing features
regular functional testing
and store in arraylist. Re-testing is carried out to confirm the
4.NullPointerException
6. you
iterate with all values with if condition test cases that failed in the final
can
NumberFormatException
use testng.xml to achieve
parallel
to given testing.
value and select the execution are passing after the
WebDriverException
<suite name=""Parallel_Testing"" defects are fixed
appropriate
NoSuchWindowException value
e linked list and double linked list which one you preffer and why, what is hash code, write program to get all combinations

uce a total.

est scripts ?
Pratibha Rajkumar
Abstraction: It is about showing the Abstraction:It is nothing but which
necessary
Encapsulation: details Thistoconceptthe userused without to hides the implementation
Encapsulation:It is an concept of internal
of
showingdata
achieve
Synchronization the complexity
hiding by making
in Selenium: (like how thatit
This logic and
binding ,hereshowing
Synchronization:Generally classonly is alsofunctionalities
an
when we
works)
data
concept
Throw related
private
vs comes and
Throws: tointo
inspecific
order
picture scenario.
to use
when thatwe workto thewith
Throws user
encapsulation ancalled
is real which
time
exception an abstraction.
binds
project andall methods
the is a
throw
To
private
have
Both achieve data
twoused
are above
we
or more forcan we use
use
components
ExceptionFound Abstract
public getter Interface
and
need to Ikeyword
handling variables
elements It
inmayis blue
in
javanot it print
and of class
encapsulation
load at the same by is
a)
class FileNotFound
and Interface. Exception: facedinterface
using following we exceptions
can achieve 100%
and
be
which
during setter
work we inface
compile method.
synchronized
while
time writing
and order.
handled our test by the
time key to security it
in the application in that scenario
NoSuchElementException:Generally can be
Title
Below
Thus ofourthe
are page:
the
actual using
differences
data is driver.getTitle()
hiding between driver.getTitle();
abstraction
implemented it by
accepts
usingis only
private abstract
While
script.
try
method.
We
these: catch
use
go for
block.
2methods
Automation
to handle
testing,
the
we
same
we
we
by
will
get get
using
methods when in
Synchronization
it element in access
not problemsvisibility
whatever
have
Throw:
b) WebDriver user
2 components:- will do The
Exception: to found
that private
Application
during modifier
in order
area in to solve
that scenario this we problems
use we will
Action
getWindowHandle()
It
a)
data
(to is a
Abstract
be design
cantested)never pattern
class and by can and
known
the where
have by
Automation we
abstract kept
others. tool driver.getWindowHandle,driver.getWin
Page
use Object
following Model:The
methods name
on itself
selenium
a)
compile It is used
getWindowHandles() time towhen declare user annot exception
able to class
dowHandles movetToElement() methods we thencan we can
handle
our
and
a)
(selenium,
like We web
try can elements
non-abstract
catch use
QTPblock .click()
etc.). and
methods.
Amethodlogicshould
user oftoaclick
page specifies
submit()
implicit wework
will
wait workifon pages
submit on
button these
initialize
Below
separately. Webdriver
isbutton.
the code
This and
for
helps the handled
user same:to script,by
interact do any
multiple action
windows in selenium
in one
selenium
Interface
on
Selenium
ensure
b)
again anyconfigure
Used can
support
while
inside have
running
the the
only
multiple
method
samethe abstract
libraries
test
body
with right like pages
should
selenium
explicit
When
are
be
wait
element
pure
inside
webDriver java
is <form>
in
classes
Iframe tag
ofalsoand
the library
we may
public
easily
methods.
b)
Java,
both When class
and
Python,
the clear
Since
element's A
applicationRuby understanding
Java type
etc.8,
and it= can
"button"
the have
script of the
orrun Advantages:Easy
element
that
fluent I used
wait type="submit" to maintain
To
c)
driver.
{type Atlaunch
a time theonly browser:
1 exception can be class
get this openBrowser
error for we need to hit on
script.
default
If
with
WebDriver
thrown we =
are
same and
"submit",
using static
speed
dr=new Java methods
.click()
so method
library
that
FirefoxDriver we also.
than
can will add
avoid Code
whereas
{ is more click() readable
will work format
for all buttons
TestNG
c)
@Test
Advantages:
b) Abstract annotation:
NoSuchelementException:
class doesn't support found BeforeSuite()
framw
Re first by using
usability
works
the
"Element
or
Throws
Annotations
during for
following
run both.
not time, dependency
found" when exception.
user in pom.xml in
accessing webpage
public
BeforeTest()staticwithout void
driver.switchTo.frame(id/name/webEle main()any restriction
Ans:
public
Code
multiple
c) If void
maintenance
button WindowHandle
inheritance.
is inside <form> tag or beforeSuite() method will be executed
file:
:Thus
FirefoxDriver
the a)
@BeforeSuite: It we usewhich
generally
element the
dr=newthrow
The concept
is not
@BeforeSuite of below(it
FirefoxDriver
an exception.
present {
BeforeClass()
ment);
before of every method and
{button
Reusability
Interface
<dependency>
waits is
with supports
outside
2method
categories: multiple
<form> tag, the click() WenDriverManager.chromeDriver.setup
(same
b)
can
annotated Used be
WebDriver forwith
user Chrome the
mistake
dr=new and
method
will Internet
while
run signature
defining)
before
FirefoxDriver(); the BeforeMethod()
StaleElementException:When
afterSuite() method will be element
executed
"1)
Test
inheritance.
method
a)
Explorer) OOPS
cases Concept:
will
Unconditional: become
work. This concept
short
Thread.sleep() and let the ();
c)
and
execution Here handledmultiple
of
dr.get("https://www.yahoo.com"); using
all exceptions
the try
test catch
methods can
block be in and is detached
after every from
method the in DOM
testNG need to write
programmer/developer/tester
optimized.
c)
Data Abstract
Driven class
Testing:
<groupId>org.seleniumhq.selenium</g
b) Conditional: canInhave
Implicit, this
Explicit, final,
concept create
non-
Fluent we OOPS
Data
WebDriver Concept:Object
Driven framework:It
driver = new oriented
is bestmaintain
ChromeDriver;
handled
again
the
String verify
suite. the correct
parent=dr.getWindowHandle(); path. Test()
proper relative xpath for it and
the
final,
maintain
Use
roupId>
wait. components
static
of ourand
submit() test or
non-static
data
method functions
: variables.
separately in such (like a programming
practise to read language
the data from external
driver.get("https://www.google.com/");
@AfterSuite:
d)
Interface ElementNotVisible
Set<String>
way that can
has The
be
only @AfterSuite
used Exception:
s1=dr.getWindowHandles();
static in annotated
different
and final When
ways AfterMethod()
explicit
Abstraction wait.
in
a)
method
we excel,
we can json
use file
<artifactId>selenium-java</artifactId>
are will run
trying etc).
.submit()
after Then
to i1=s1.iterator();
interact method
thewith we
execution write
for files like excel
we can launch browser with googlewe
the isof AfterClass()
SessionNotCreatedException:When
Iterator<String>
but
variables.
the
only still
test
submitmaintain
script
<version>3.X</version> form toIttheread
after security.
the
click dataonThis fromby As
button. Inheritance
a Team When wechrome were designing
all
hidden
while
about
d) the
Abstract test
element. methods
(i1.hasNext())
"" Object""class whichcan
can in the
be
contain
provide suite.
handled both
the AfterTest()
work with selenium
Encapsulation browser
excel
b) That
</dependency> in our
means IDE (Eclipse
element's etc).
type And
= if we framework we thought of that if client
{@BeforeTest:
either
data
implementation
have
"submit" and
to
tellmethods.
run
and
developer
the
The
button of@BeforeTest
same
to makeInterface
interface.
script
should
it not
with
be inside
AfterSuite()
and chrome driver version should
Polymorphism
requirement was test with multiple
be
annotated
hidden
String
We
can't or/and method
child=i1.next();
generally
provide can
have
the will
be
4 ways be
handled
implementation executed
toset again
achieveof same if not we will face this exception.
different
<form>
before
by using tag,
the set
try of
then
execution
catch data
only ororof same
submit()
wait.all the will
testof data it was not recommend to use bulk
if(!parent.equals(child))
this:
abstract
data
work. thusof class.
this concept become easier Abstraction:It
of data into the hides
script internal
directly logic of
its better
methods
e)
{e)
a) TimeOut
Abstraction:
The abstract available
Exception: It says
keyword classes
When
show is maximum
only
used to implementation and showing only
to
c) ifthe
belonging
time userto
element's
reach for
to execution
type
that
identify = "button"
folder. and means
an element, maintain. we use DDT into our
dr.swithcTo().window(child);
relevant
declare
Also
submit() prior data
abstract
willwe not to work.
need theclass.
touser
add and
the hide the functionalities
framework. to the user
@AfterTest
same
dr.close();
complexity can be: related
The handled@AfterTest
to by
that annotated
using
data. Implicit
The Inheritance:Acquiring the properties
The
dependency
d) interface
If button keyword
of
outside Apache of the isPOI used jar the
<form> to tag
(3rd
method
wait/Explicit
}party
same can will be
wait.
be achieve executed bywork after
using 2 from parent to child
declare
means API interface.
written
submit() in Java to support
execution
}read
concepts: of all will
Abstract the not
test
class methods
and of Encapsulation:It is the concept of
f) An abstract
and write class
operations can extend – modifying
available classes belonging to that
dr.switchto.window(parent);
Interface. binding into one cell like class which
another
office Java
files.) if class and
working on implement
Maven Project
folder.
}multiple
b) Encapsulation: Itsame
allowintoConfig reuseBuild the binds methods and variables in it
otherwise Java add interfaces.
the
@BeforeClass:
}An interface
functionality with Theparallel
@BeforeClass maintain of Polymorphism:One task can be done in
Path when method can
creating extend simple another
Java Java
annotated
the security. For will
example, be executed
we can different ways
interface
project." only.
before
create the
a piecefirstof method
code of the
that callscurrent it can be achieved by using method
g) An abstract class can be extended
class
specific is invoked.
data from a database. It may over loading and method overriding
using keyword "extends".
@AfterClass:
be useful to can
An interface The
reuse @AfterClass
bethat code with using methodoverloading:A method which
implemented
annotated
other
keyword databases method
"implements". too.willIt beletsinvoked
us do that after has same name with different
the
h) A execution
while keeping
Java abstract of alloriginal
our the test
class can datamethods
have private. parameter list
of
It
classthe current
alsomemberslets us alter class.
likeour original
private, code
protected, methodoverriding:A method which has
@BeforeMethod:
without
etc. Members breaking of aThe for@BeforeMethod
itJava others
interface whoare have same name with same parameter list
annotated
adopted
public byitdefault. method
in the meantime. will be executed
before each
c) Polymorphism: Poly means test method will run.many
@AfterMethod:
forms. It can be achieved by usingThe @AfterMethod
annotated
Method Overloading method will (whenrun afterwe have the 2
execution of each
or more same methods name with diff test method.
@BeforeGroups:
parameter withinThe @BeforeGroups
a class) and Method
annotated
Overriding (when we havemethod run only 2or oncemore for a
group before the
functions with same name and same execution of all test
cases
parameter belonging in Parent to that
Childgroup. manner)
@AfterGroups
concept. : The @AfterGroups
annotated
d) Inheritance: method It works run only by letting onceafor newa
group after the execution
class adopt the properties of another. of all test
cases
We callbelonging the inheriting to that class group. a subclass
or a child class. The original class is
often called the parent. We use the
keyword extends to define a new
class that inherits properties from an
implicit wait,explicit wait,fluent wait
driver.navigate.To()
driver.navigate.back()
driver.swichTo.frame(id/name/
driver.navigate.forward()
webElement);
By using alert method we can handle
driver.switchTo.defaultContent();//to
alerts in selenium to find single
findElement:used
come out of the frame
driver.alert.accept();
element element in webpage
driver.alert.dismiss();
findElements:used to find multiple
similar elements in web page and can
be stored into one List
"1) Yes, Main method can be overload
but
2) Final not Class:
override. FinalButmeans
to callwhich overloaded
methods
cannot
3) Testing we
beLife need
modify. to call
Cycle: It is the those
methodsIf a
steps/sequenceclass
4) Drop Down Handle: in
is main
define method.
as By
which finaleg:
testers
usingthenSelectit can
follow
public
not
during
class be static
extended
software
and void
its various main
or (String[]
sub-classed.
testing. methods arg) If we
below:
5) No, we
{SelectByValue can automate only Web
do
a) so we
Requirement
Application will get compile time
Analysis:-understand
not known
desktop. Also error.
in order
6)
Why VModel:
System.out.println(""this
to Also
declare class asis
as Verification
main
Final: Below
the
SelectByIndex
to
and requirement
automate
Validation Mobile
process. Application,
Here each
method"");
are
if the
anything reasons to make class Final:
SelectByVisibleText
Selenium's
phase
7)
main(5,10); mustmissing/not
Locators: frameworks
be
We complete
can can
identify be
before HTML used:
next
understandable
Appium
starts. and
Here then
Selendroid.
testing is contact
planned with
in the
elements
main(""robet"");
BA of the web
Standardization:
or stakeholder Somepage through the
classes
parallel
locators.
}b)
perform with
standarddevelopment.
Following are theoflocators
functions and they
There Test Planning:
are the manager
various phases the
of b)
generally
are public
testing not static used:void
meantcalculates
team to be main (int
modified a, int
estimated e.g.
""Verification""
ClassName
{effort and
classes – APhase
performing ClassName of V-model:
various operator
functions
a) Business cost for the
requirement testing
analysis: work.
uses
related
c) Test a class
System.out.println(""this
to
Case attribute
string to
manipulations
Development: identify
is main
Testing oran
contains
object.
method
mathematical detailed
cssSelector
overloaded communication
functions – CSS
having is used
etc.2 integer toto
team
understand also prepare
customer's the required
expectations test
create
parameters);
data forstyle
Security the rules forWhen
reasons:
testing. webpages
Sometimes the test weand
and
can
}cases exact
be
write classes used requirements.
to identify
which then any
perform web
various
b) System are prepared
Design: In this they
stage are
element.
public
authentication
reviewed static
by void
and
quality main (String
password
assurance x)
related
team.
system
Id –Test
{functions engineers
Similar andto class,
we do analyze
we
notcanwant and
alsothem to
d)
interpret Environment
the business Setup:
ofisthe In this
proposed
identify
be
process altered elements
System.out.println(""this
the bytesting
anyone byteamusing
else. the
not‘id’
ismain
system
attribute.
method by studying
overloaded the user
with 1 string
involved.
requirements either the developer
document. or the
linkText
parameter)
customer – Text
createsused thein testing
hyperlinks can
c) Architecture
also locate element
}environment. Design: brief
functionality
name of each module, their
e) Test–Execution:
O/P->this
interface
Name
is main attribute
method
relationships, testing canteam also
dependencies, start
identify
this
executing antest
is main element
method
cases overloaded
based on having
database
2partialLinkText
integer tables,
parameters– architecture
Part of the text in step.
the
prepared
diagrams, test cases indetail,
technology the earlieretc.with
link
this
f) can
Testis also
main
Closure: identify
method process an element
overloaded
of testing is1
d) Module
tagName
string parameter – Design:
We can In the
also module
use a tag to
analyzed.
designelementsphase, the system breaks
locate
down
xpathinto smallismodules.
– Xpath the language used to
e) Coding
query the Phase: After designing,
XML document. The same the
coding phase is started.
can uniquely identify the web element Before
checking
on any page. in the repository, the final
build is optimized for better
performance,
" and the code goes
through many code reviews to check
the performance.

There are the various phases of


""Validation"" Phase of V-model:
Project and Work experience: We
should
JIRA: This start
softwarewith our latest
is like theproject.
central
Mention
hub
HP-ALM: for the how
It amuch
iscoding, web based part oftool
collaboration,automation,
thatand
manual
release
helps organizations
Framework: performed
stages. We havetoQA also
teams describe
manageJira
Use
following the
the for
used
issues,
lifecycle to
frameworks tools :
customized
of read Jmeter,
application
useddata bug
screens,
in Selenium tracking
from fields,
project
(can tool,
Program
GIT, Jenkins etc. from Excel:
and
planning,
explain
a) workflows
First any requirements
1or
add dependency: to manage
all): manual
gathering,
Apache and
until
POI
Palindrome
Work
automated Experience: Number:
testing. Start with overall
Testing
a)
jar
Use Data & deployment.
Driven:
below logic: User will It mainly
maintain contain
test
experience
below
data 6 thenin
sections/components:
separately gosome brief external
the years of
file
b)
Store Use
Polymorphism: the
experience/monthsFileInputStream
number It isin some
one
in class
of
Manual toand
temporary
the read
It
a)
(like
the is useful
Dashboard:
excel,file
excel in the
json below
Dashboard
etc). Here scenarios:
View
we need(fewto
variable
important
Automation
Difference
a) For Agile features
(Selenium,
between
Teams: of API
-issueObject
Java
and Oriented
version),
Web
tracking,
reports
add
c)
Reverse UseApache can
the POI be view)
jar to read the dataView
HSSFWorkbook/XSSFWorkbook
number and Analysis
Programming.
BDD,
Services
scrum Jmeter,
boards, SQL,
Refer:https://www.soapui.org/docs/
(build
from all
excel reports Polymorphism
kanban
filetemporary
and GIT,
and then Jenkin,
boards,
graphs).
create allows
Jmeter
test us
class
Compare
to
etc. perform thea single action number
inis with
different
Both
customizable
b)
In
script
d) Readare
Management:
testng.xml
tothe used
read for
workflows
functional-testing/getting-started/
file:
the
worksheet communication
Releases
use
data. below
This
whereand Libraries
script
useful
data to
is
reversed
ways.
between
b) For In
Project number
other
client words,
and
Management polymorphism
server. The
Teams:- only
c)
run
when
Below Requirements:
maintained
If the we
is test
both numbers have
the list of
areHow
scripts/cases
same to
script
annotations
same, create,need
print Direct
to
will run
run
allows
difference
Issue/Task
Cover
<suite
with youis
Status
multiple tothat
and
thread-count=""1""
setdefine
Management, ofthe
Risk one
way
data. interface
they
workflow
name=""Test
Maintenance and
in
e) the order
Runmultiple
""palindrome
have the loop as mentioned
to get the data
number""
implementations. belowThe (from
communicate.
customization,
d)
Suite""
and
top
public Testing:
to Test
parallel=""tests"">
Re-usability
bottom):
class Reports
Resources
ReadData of code { andcan Analytics,
(store
be data
Else
word
API:
User print
“poly”
Permission ""number
means is not
many andTestpalindrome""
“morphs”
for
achieve manual
@BeforeSuite here. and automation), Plan,
means
It
c)
test
<test allow
For
b) Keyword forms,
one
Software
Lab, Test
name=""flipkart""> So
application it means
Development
Runs
Driven: User will maintain to many
interact forms.
Teams:- and
@BeforeTest
@Test
class
It is Palindrome{
mainly divided into 2 types:
communicate
Release
e)
<classes>
common Defects:
@BeforeClass
public void Planning,
where
keywords
test1()with another
Sprint
user
throws actually application.
Planning,
which IOException
supposed CI/CD
create to
Not
the
<class
{be all static
Integration, APIs
defects/bugs
used
@BeforeMethod are void
Issue main(String
accessible
Management
name=""com.suite1.Flipkart""/>
in most of the test over args[]){
scripts a (like
int
a) rem,sum=0,temp;
Compile time Polymorphism: It is
network.
d)
f)
@Test
int
For taskuname,
Customization
</classes>
same url,
FileInputStream
n=121;//It
management:-
isJSON,
the(add
password
fis=newnumbernew Project
user)etc)
variable foralso
a
to
known
Supports
roadmap,
</test>
given as
project. static
XML,
DependencyDatapolymorphism.
is or any
mapping
stored other
again This
given
in
@AfterMethod
FileInputStream(""./TestData/ReadData.x
be
type checked
ofbug for palindrome
polymorphism is in
achieved by
format.
e)
</suite>
externalFor
@AfterClass
lsx""); filetracking:-
like excelReport or
function
Has
bug/issues,a
object.properties overloading
lightweight workflows, or
architecture. operator
email
file. We maintain Data data
@AfterTest
XSSFWorkbook
temp=n;
overloading. It book=new
is achieved by
can thebe
notification
in
@AfterSuite" sent
form
XSSFWorkbook(fis); of or keyreceived
and valueover a
pair network
and
while(n>0){
Method/Operator
using
f) the SOAP
For Task Overloading
protocol.
Management:-
whenever
XSSFSheet
rem=n%10; we required
//getting theEmail
remainder same we
b)
SupportsRuntime
notification,
call key value Polymorphism:
any customstyle
and get of Ittask
is also
communication.
fields,
the
sheet=book.getSheet(""Sheet1"");
sum=(sum*10)+rem;
known as Dynamic Method Dispatch. It
Provides
change,
corresponding
int support
sub tasks
value.for etc the HTTP/s
n=n/10;
is a process in
protocol.
Adding
Advantage: test Ifcases urlwhich
rc=sheet.getPhysicalNumberOfRows();
}the is in a function
JIRA:
supposed Refer call to
to this
link
change overridden
with so user only will change atat
step by method
step is resolved
explanation
int
if(temp==sum)
Runtime. It is and achieved
Web
single Serivces:
(https://blog.testlodge.com/how-to-
place
cc=sheet.getRow(0).getPhysicalNumbe
System.out.println(""palindrome sameby willMethod
reflect in all
Overriding
A collection
write-test-cases-in-jira/)
the test scripts of open
(if using sourcethat protocols
url key)
rOfCells();
number "");
and
Adding
c) standards
Hybrid: bug Hybrid that
in JIRA: Driven are
a) frequently
Verify
Frameworkthe issue is a
else
used
type: for
Bug exchanging
is selected data between
combination
for(int i=1; i<rc;i++)
System.out.println(""number of data-driven and
systems
b) Fill or select
{keyword-driven or appli.cations.
the following:isThis
frameworks.
not
palindrome"");
Must
Defect always be accessed
ID row=sheet.getRow(i); through a
framework
XSSFRow
}network. uses different keywords
Defect
and
for(int data title sets, where the list of inputs
j=1;j<cc;j++)
}Supports
Defect XML format.
{and thedescription
functions (steps
are stored to in
Architecture
reproduce)
separate not lightweight.
files. Similar to the data-
XSSFCell cell=row.getCell(j);
Uses REST,
Environment
driven framework,SOAP & itXML-RPC
information
String d=cell.getStringCellValue(); also uses for the
communication.
Screenshot(attachment)
same code for different data
System.out.println(""value sets.
of d....""+d);
Provides
Severity supports only for the HTTP
protocol.
Assign
} it to someone
Status-
} All the statuses in the bug life
cycle
c) Click on Create button
write program to get all combinations of 3 number whose sum is equal to 10. will css and xpath differ based on browser,so
Rinku Sachin Bisth
Abstract class and interface both are An interface is basically a description
used
The process to achieve abstraction
of wrapping code in which
and which
Encapsulation defines the is a behaviorOOP concept of anand is
Abstract
data
Normally together class canahave
into
Synchronization single abstract
isunita is and Synchronization
implementing
a form of data class. hiding. Methods
in selenium Encapsulation isofan Java
non-abstract
known
mechanism as whichmethod
encapsulation
Throw is a keyword which is used to involveswhere two as or interface
wraps
crucial the are
component
We use throws keyword in our data implicitly
variables for abstract.
making and the
the The
Interface
more componentscan have working only abstractparallel implementing
methods
scripts together
running class on in
an ensures
a single anthat unit. itItwill
Ithrow
have
methods.
an
faced exceptionmany explicitly
exceptions inbut
theI Iselenium
havehavethese faced script many
methods
to declare
exceptions
that can during
be used
with
program
could each other.aUsually
inside
remember function
some likeweor haveinsideour makes
application/website
a exception
my automation the variables
and throw journey ofis a
successful.
used class
and one to hiddenIt'sthe
of
getTitle()
Abstract Class can have an access driver.getTitle()
on
from it. other classes is theand method if any to
class get the
AUT
block and of
NoSuchElement tool
code. to work on that AUT. basically
explicitly
common
page title a
throwsync
exception an between
exception
is the the may be
There
modifier ofisthemwindow
but The handling
interface concept in Each window has ain unique identifier
Both
Throws
selenium is we
have
a keyword
Exception,ElementNotFound,StaleElem
have methoduseddoes
seperate in thenot Variables
want
Application
at a certainto
NoSuchElementException.
(handle)
declared
access
which
under
condition. these
nothing
testing anvariables
but
interface
and
tells
they
selenium
the
are
Page
have
speeds
method Object
access.For
signature Model
modifiers,
example, (POM)
used is
so
If Ito a
want design
Everything
declare to an (the Page
by
need
Class defaultobject
tois do
testing defined is
final.
ittool).
froma strategy
Interface
the throws,
Both
after methods
these or a
classes design
two ofthat
whereas areto
their
ent,TimeOut,ElementNotVisible,InvalidS
getWindowHandles()
pattern,
defined popularly
inside the used to
interface get
in all
test
is This
address
maintain
public exception
by aof the
object
default. basically
window.repository Thetellsmethod
forus all thea
we can etc
navigate
exception
elector usetowhich .click()
some urlmethod
might and get to
click
thrownclick
on some on
by Submit()
current
different
an instance
particular isthings
class. a follow
elementselenium have up
which function
their
the own
throw
we are speed
trying
windows
automation
assumed
any
For
element button
our in
asof
project
and the
.Under
try ourbrowser
'public'.
we toweb this
used
enter and
model,
seleniun
text.at we for can
this each
with Web used
An
specifically
To achieve
Selenium
and UI
abstract
thustoelements.
get theforms.
class
for
encapsulation
libraries
there iswindow
Itis helps
base
contains
always We handle
ain
for
can
we reducing
both
need
different
chance of our
different to
of
the
Coming
switch function to
between while
NoSuchElement, the executing
windows it the
occurs
as code.
per keyword.
to access,
current browser may be is click
- or get
web
Multiple
java
points
For page
application.when
and the
launching we in
inheritance the
used
selenium application,
browser Mavenconcept
element's
commands
isand Build there
is
type tool =
what for the
make code
sub-classes
use
capabilities
miss submit()
sure
match duplication
twoof
to orthat click()share
important
selenium
occur. and
on a
for improve
for common
thingsegeg submit
-- the
Only
when
our
should
single
webDriver
requirement
achieved be
exception
atype
through is
we
corresponding unable
use
Interface toto
thrown
switchTo()
Page
so
interact
findAn
by and To One launch
text/value important
getwindowhandle();
overall
behavior
afrom
maintenance
and
browser difference
thus is not for eg
ofavailable
and
does't the
is chrome
while
similarly
needcode. on
to to the
be
-get
"button"
adding
ever
the
using
estNG
locate I all
pass
webdriver
throw or
Annotationthe
element.So may to
whereas =
be "submit",
dependecies faster
browser
isI goa Multiple
piece we .click()
than in
of pom.xml
the
should
code
for identify the the button
private
selenium
For
we
defining
Testng
page. eg
must The to
-and submit
public
webdriver,
selenium
download
the
annotations
reason methods, a for form.
library
webdriver
chromedriver
are we theThe can only
formay
code android
define be
first
to
method.
Class.
interface
method
1st oneis
application Thisis can
will Page
the works
loadinginherit class
for
Selenium-javatime will
multiple
both.which results The
created
difference
--
and
fasterneedwindow
main
iOS and multiple
to
testing, is handle
structure
define
has submit() times. ofthe
of
variables
library
reached all
of
can Also
for
element
the
apagebe
API
certain windows
sub- object
used
inmultiple
the
testing.
not
on
class
step
download
exceptions
which
synchronisation
Ans:
getWindowHandle() insertedcan driver
be inside
so exe
thrown
that
is the a for
the by
methodthe
program using
page get in
throwslocal.
control
present
After
we use suite there
the
can flowbe
basicallyonly
getwindowhandles(); of
-- and
a
the test also
page
defines execution
has
the not
WebElements
interfaces
But if
dependency
in you
an exception.
browser
throws. but
want of
cannot
to that
submit web
inherit page
any a Formand
class in model
classes
any
as
where element
private isweb to
can define
override
inside
element allthe webelements
the
needs form predefined
to tag becan to isof a
which
loaded
@BeforeSuite
helps
also
but An is
to
contains used
and
get
abstract element
theThetoclass
Page control
window gets
@BeforeSuite
methods
can the
visible
handle flow
inheritwhich ofofthe throws
a methods.
loaded
methods
We
single
behavior can page
can
then
asThere
completely,
which be
of use
long
defined.
a are set
website/web
as many
the
to
it to be
is
But
second
set
not
throw
testng
executed
the
define as be
webApplication
Selenium
So
For we always
example
execution supports
of iftest ,
should
I need.submit()
automation
methods.to work will
synchronise be good
onof all submit
-- we
Idefined
the Code have
clicked.
annotations
the xpath need
for the
used But we form.
provide
selenium
the
launching
inside which the
have application public
the
method
are
defined webdriver
browser:
available methods
under
and
for - test
cannot
the and for
annotated
current
Inheritance
perform
class
alternative.and window method
operations
multiple
For this will
on run
those
interfaces.
kind of before
element, the after
window
OOPS
application
private all
Concepts
orthe
handles tests
in
final. - in
single
An in
Object the
theclass,
abstract suite
form
Oriented ofhave
along
class string.with
may run.
the
chrome major
application
@BeforeSuite browsers
browser with ourfor
The @BeforeSuite in
my the
tool.Normally market
testing, thenwe I view,
Selenium
(a website
import
be
some
element modify
multiple are webdriver
formay
iswhich
not privately
eg be)-defines
correct isis
@AfterMethoddefined
used
slow
and and to
third its
-thing page
can be
execution
When one of
objectall
bethe test
acquires methodsallthatthe in And
We before
can use suite
syntax eg- the
itset<string> methods
WebElements.
Data-driven
Form
through
can
need
the go
annotated tag
to
suite. for will
the testing
use
Thread.sleep()
download
method there
of is creation
inside
WebDriver
chromeDriver
will run which
before ofisin
and my Programming
test
type
not
the
methods
contain
Data
So
is still
method
the
which
driven
basically,
variables-
automate element
windowhandlesall=
non
loading
org.openqa.selenium.WebDriver;
Eg - public are under for
web
to void toSystem
final
testingeg
itself
be up
this
perform
variables.
answer
get
applications.
where is
clickButton()
is
executed
ahas
and
annotation
not part in- Abstract
certain
set
that
visible
Object,
of
a
before
simpler
Itthrows
supports
element
will
on therun
the
properties
This
scripts concept
=encouraged
"submit"
interated
machine wherewith
and and
will makesbehaviors
test
be
different
because
set the data
there ourit
path of
code
and/or
browsers
increases
in a
my parent
cleaner
output
code Class,
on
class
way those
automation
browsers
is Inheritance,
can
-execution
present.
import
exception, click() elements.
be
such
In has public,
testing
this astocase
NoSuchElementException Polymorphism,
be private
framework,
chrome, used
the andwhere
on
firefox,
script the will
execution
@AfterSuite
object, it isto of The
knownall the
@AfterSuitetest
as data methods
inheritance. annotated in
It after
page
tests (may
inbuttonthe suit
driver.getWindowHandles()
Abstraction be a of
BUG
startseach in the test
running. method.
website
and then
and
values easy
execution
//Set
the
method
are
a system
suite. will
read
time understand.We
run
from
unnecessarly
property
after the
files can
execution even reuse
instead
of
The
fail. main
protected
test
submit
safari
Selenium andadvantage
scripts IE.and
Java
org.openqa.selenium.chrome.ChromeD
@Beforsuite
itself) use
- on
Selenium
based
which
Encapsulation
testtheruns of
data
BDDPOMinstead
form,
webdriver is that
while
Automation
only
as
once iscode
of an
for
provides
the
of
thoughpage
using it code
theclass
doesnt same reusability
if required
hard-coded
need for in different
values
application. can
concepts.
becomes
hard
submit()
interface
Hence perform
coded to can more
that
overcome certain
values
be alsooptimized
used actions.
each or
supports
this and
time
done
situation, less
to
on
multiple runany in
"webdriver.chrome.driver"
@AfterSuite
all the testthe The
methods @AfterSuite in the to the
annotated
suite. path framework
river;
Yes,
a
To specificI
correct
@Beforesuite have used
class
this - POM
where
annotationthe in
simple the
it is
canthe framework
defined
solution
be usedto for,
Polymorphism
test
each
There
of cases
your time
are 3 which
ways
ChromeDriver.exe test means
toruns.achieve we
file don’t
this, size
the
form
programming because
test element.
synchronization scripts" weisnow
languages required have like java,
between
method will isrun after forthe inexecution of Withsimilarly
this
to start isthe to the@aftersuite
use
help wait.
seleniumof Page inruns
In this
Factory
webdriver weonly can once
class,anduse
If oneway,
need
This
1.Implicit
System.
all the
task
to write
test testers
wait performed
methods
code
2.Explicitcan in
identifying
test
wait
the how andthethe For
different
suite.
Object
reusable
python.
selenium
public
implicit
we
eg
use
@aftersuite
-storing
classAn
wait. and object
methods
Selenium
annotationscan abc{
this
the
the be
window
is
AUT.
tells used
an
Webdriverour
liketheItinstance
POM
can handle
script
@FindBy
to stop isclasses.
be to
of
theto
ofa
wait
find
ways,
web it is
elements
application known
handles andasmethods polymorphism.
various to interact class.
inputs We
the
If will
weparent give create
It contains window
proper 7 different
aninfunc
names aand
address string classes
toinhelps
methodsandinthen for as7
3.Fluent wait
setProperty("webdriver.chrome.driver",
@BeforeTest The @BeforeTest platform
achieved
for a
WebElements
selenium certain independent
using
webdrivertime and wait before
useafter trying
initElements
all selenium
the to test the
In
withJava,
them
effectively. we foruse every
It:This
can method
be test
any overloading
case.
ofexecuted
thewhile different
switching
No
takes
per their up pages
to
space
usage, it: of in
itBut the memory.
the
can application
beshould easily prefer with
Implicit
"path
annotated ofwaitthe exe
method can
file\\will be be used driving
and public
access
method
runs. also the static
that
to browsers
sleep(). void
particular
initialize effectively
we
main(String[]
these element. web as per{
args)
and method
Datasources overriding
like an Excel,DB,CSV to achieve Web
set
Class
mapped elements
parentwindow
FindsByClassName,- Its and basically
used.defined. = the
FindsByXpath,collection of
trying
before tothe find
chromedriver.exe"); out
execution element
of all the ortest the
waits
or //test
the
elements --
Here best scripts
Implicit
we solutionfirst defined.
or Explicit
set will the bewaits.
system
towith use
polymorphism.
Files,json etc" Create
objects
Code
WebDriver,
Synchronizationis different
driver.getwindowhandle();
and
much Takeit feature
doesn't
cleanerScreenshot,
is basically use
and files any
easy a syncspace
to test
elements
//instantiate
methods and
of a when
ChromeDriver
available they
classes areclass.not property
explicit wait, for Chrome
put up Driver
athese
condition - basicallyin here
Abstraction scenarios
in the
understand.
JavaScript
between memory. therelated
driver.switchTo().window(parentwindo
Executor We
application tocan createand page the
readily available.
WebDriver
belonging driver=new
to that The
folder. implicit
ChromeDriver(); wait will alert the
that can
//locationwhere
wait also
for a be
defined used. Switch
chromedriver
time frame to alert.
or is
Create test data file with test data to
Hiding
tell theinternal
webdriver
driver.get(url);
@AfterTest The
details to poll
@AfterTest
andthe DOM for a w);
showing
annotated
individual
testing
based
present
Listeners
until this ontool objects
type which
listens
element of using
isthe
alert
to
which selenium.
- class
click,
events
we want In
accept
definedorder
to
functionality isof known as abstraction. be
to used
Inheritance
test any - Itthen
applicationis used for code
correctly we .
certain
method period
will be time. However,
executed after thethis do
in
access things
the
Switching is and
script visible
to andalert behaves
on switch
fromthe thepage. back
accordingly
main ifrun to
the
In
willJava,
not work we use for the abstract
all commands class and
butof reusability
need
main to have
window and
System.setProperty("webdriver.chrom also
avisible
sync before achieving
between these time
execution
interface to ofachieve
all test methods
abstraction. element
window.
DateFormat
polymorphism. gets
ThendateFormat performing
It's basically = the
actions
new a time,
feature likeit
only
availablefor “Find classes Element” belonging and “Find to that two
e.driver",
will important
click on components
"D:\\ChromeDriver\\
ittokeys.
and move
Thento so that
next
Encapsulation
Elements” statements.
click
where
web
orone
elements
chromedriver.exe");
send
SimpleDateFormat(""MM/dd/yyyy
To connect object DB the
on -acquires application the step.
Switching
folder.
Binding (or wrapping) code and data back
HH:mm:ss"");
String
properties tomyUrl main of=window.
a parent object
driver.manage.TimeOuts.implicitwait(6,Ti NoSuchElement
works correctly Exception
with the WebDriver.
@BeforeClass
together into aThesingle @BeforeClass
unit isknown as Also,
Syntax
Date
Polymorphism before
date for = newchanging
clicking
""jdbc:mysql://localhost:3306/user""""; - Date();
It ison a OKtheon
feature script
anwhich alertwith
meunit.SECONDS); ElementNotVisible
Main
Implicit method wait
// we executes
syntax:
now Exception
instantiate first. a
annotated method will be executed wait
window:
String we should
date1= try and
adateFormat.format(date); look for the
encapsulation.
Explicit
before the waitfirst : Here, method in this ofcase,
the current a wait Connection
allows
Timeout
Primitive
ChromeDriver
xpath
doing
again.
Exception
driver.switchTo().alert().accept();
System.out.println(""Date
conn
driver.manage().timeouts().implicitlyWait
data Is
single
types
class.
it
= include
correct
thing inBoolean,
orand not,
multiple
time hasare"" it
statement for certain conditions will be NoSuchFrame DriverManager.getConnection(DBUrl,us
ways.
(10,
Char, TimeUnit.SECONDS);
byte, long, Exception
short, int, float,
class is invoked. A hashmap
changed
+date1); WebDriver basically
recently driver=new orthe is a class
need an update. in
defined which ername,password);
Abstraction
InvalidSelector - Hiding Exception
@AfterClass Theshould @AfterClass be satisfied annotated whichs double.
ChromeDriver();
Jenkins
implementation
They
unique
is an are
openkeys predefined
are designated
source
or the internal
in JAVA,for
platform details
to
within the specified timeout period. The NoSuchAlert
whereas
corresponding Non Excetption
Primitive
value anddata thattypes can be
method will be invoked after the devs
POM.xml
and andisshowcasing
only QAs
an XML to build, file which deploy
the and test
contains
functionality
code
execution will be of executed
all the test if methods
the element of is retrieved
include
their
the // String,
we at
code/automation
information now
any Array,
launch
point.
about they any
scripts
the are
project notand
website
found within the specified time. Testng
of the object.
defined isinone JAVA of(except
the most important
Strings)
the current class. Yes
file, itwe
configurable helps can in store
details
organizingobjects usedthe in
by hashmap.
Maven
test to
WebDriverWait Encapsulation
We use @FindBy - Wrapping
inwe POM" and binding
@BeforeMethodwait The =@BeforeMethod
new driver.navigate().to("https://rahulshetty
To
build
cases.
of
retrieve
thethe code
object
project.
It helps together in POM.xml
handling can
into adownload
use
and
single unit all
WebDriverWait(driver,
annotated method will10); be executed academy.com/#/index");
hash.get(key)
the dependencies where and key pluginswas used
creating
or
For into
broken a multiple
single JAVA test classes
CLASS and
wait.until(ExpectedConditions.visibilityO
before each test method will run. while
required
suites. } to links
has.put(key, run the wevalue) usually
Maven use
project
fElementLocated(By.xpath("some
@AfterMethod The @AfterMethod IHTTPURL
chose selenium connection. because But the itsothernot way
locator"));
annotated method will run after the can
}
browser be to find
dependent.
Test scenarios for Amazon Search all the links
Supports that exist
many
Fluent Wait:This
execution of each test method. is used to define using
different
Result
Test <a>
scenariosPage and
languages then running
and
for screen sharing we a
can loop easilyover
in
maximum amount
@BeforeGroups The @BeforeGroups of time to wait for a the
automate
a.
an list
Validate
appcan be of these
any
once web links. In
application
user enters the loop
any using we it.
condition and also to increase the There
can provide multiple
function for ways hitting to dothe this.
annotated method run only once for a a. category,
Validate
First, iflink weand aknow
userbroader thatgeneralized
should thethe be able to
button istermsee
frequency
group before with the whichexecution the conditionsof all test each in search
screenshare
enabled bar,
at a specific
grabbing
and
icon clicks
while time, on searchcall icon
with
are
cases checked.
belonging to that group. NA
application/site
or press
another enter,
user/team logo.
for anythen
eg IfMobile. page in such
inisthat
case
OOPS
blank we
concepts:
i.e logo can use click() method and
Wait wait = new
@AfterGroups The @AfterGroups case
b. Validate
using userisEnabled on doesn't
should tapping/clicking
method
appear we
be redirected along thewith
can
to a
FluentWait<WebDriver>(driver)
annotated method run only once for a A a.
pageclass
print
bug
screenshare thatlife
displaying link
cycle out. is the
various
icon, user should be journey mobile of bug,
explicit
public wait" Employee
.withTimeout(50,
group after the execution TimeUnit.SECONDS) of all test phonesclass
basically
prompted fromdifferent
with different
options stages on which
brands. which a bug
.pollingevery(3,
cases belonging to that group. TimeUnit.SECONDS) {
goes through
screen to share. during its life time. It
.ignoring(NoSuchElementException.cla differs //code
b. Validate
For from
eg - if he/she company
once user to
hasismultiple company
on the Search and
ss); }windows
projects
Result page toopen projects
using then the depending
above search
if he/she upon
wants to
"@Test, @BeforeMethod, @AfterMethod,
@AfterTest, @BeforeTest, @BeforeSuite,
@AfterSuite"
About me - Intro
a. What is the best tool available for
building
JavascriptExecutor framework js =
b. Requirement
(JavascriptExecutor)
WebElement of thedriver;
element project
=
c. Should we
js.executeScript(""window.scrollBy(0,2
driver.findElement(By.id(""id_of_element go with a BDD or TDD
framework
50)"",
"")); """");
Test
d. Test Plan data defines
sheetthe willscope be required of the
((JavascriptExecutor)
project
e. Test Cases whether built forthe
and include
driver).executeScript(""arguments[0].sc
efforts of all the
software
scenarios testing required
rollIntoView(true);"",
Test strategy defines element);
thewhat protocols
TellHow
d. about your
to structure role Feature and filesyouand are
which
responsible
Java tells
files how
for the
in your test designs
current and
In
how SQL the testingtest should I basically tested various
be performed.
project/organization
tables
In and data
API testing i have available testedinnumber those of
tables.
APIs.
If the Few On
question an
examples highis about level the
are defectuser testing
involved
registration
management
Bug cycle entry API,
varies oforder
tools, correct
from fordata
soplacement
project thisto when API,
I have
certain
Payment
worked
project request
on APIs
andblock company to company.end,
JIRA is sent from front One
Use
whether finally the intended table has the
To
A
of
use explain
defect
the common
specific further
management flow
exceptions - taking
of can
bug thatthe
be
cycle example
defined
you is
Xpath
entry isregistration
anot.query language fortesting
of
as
Open the-or
User process
Assigned offrom InAPI
detecting
-easier -forfirst
Dev/Rejected bugs and
throw,
selecting
For
scenario
fixing Selenium
exampleso
them
that
nodes
wait
will -be
its
function
Whento test a an is
user
the XML others
usedcreates
basic to -who In
an
Progress
may
document.
make be looking- Fixed
Inof at
selenium - In
your QA -
code
Xpath for
is the
the
account, publicthe
functionality
Closed/Reopened class test
there script
lowertouppar
should
the API to be pause
with DB for
{allentrythe a in a
first
most
certain
public
specific time
synatx
interval
static
table, or
void way
of time
saymain(string[]of finding
or
Registered_User until web
a certain
args){
mandatory
Throw exceptions headers/parameters.with specific And
elements
condition
string
with
validating all strthe =existing
is met
HELLO;
details beforeon
- a
first web
executing
name, page last the
Locator
message
Syntax
next
StringBuffer
name step.
etc- -whether
strategy
str1 =
isthe
new
used to find the
StringBuffer();
correct/expected
web
Selenium elements. webdriver Weresponsecanis user use for with
xpath
Xpath=//tagname[@attribute='value']
Basically
for(i=0;
status to have
i<str.length;i++)
code 200 issync visible betweenor not the
select,
browser
automation css selector,
automation
script using id,
andid: name,
accepts
web
{Similarly
Another
classname, application another
scenario tagName andexample selenium
we normallyor even can script
textbe
test-for a
is
commands
driver.getURL(""banking
For
Two
we login
types
use wait. ofand
functionality
xpath send exist them
- url"");
the- to
first
relative stepand
str1.setCharAt(i,
ecommerce
hitting
identifying
browsers. the API, web site showing
leaving
elements the delivery
mandatory date
absolute
Functional be Selenium
driver.findElement(By.id(""user
should whether
Testing
character.toUpperCase(str.charAt(i));
of a particular product.
scripts
the
isall a blank
testing
This
creates
userdeliveryis nameable
in which to
parameters,
http
text requests
box one for oreach
locator"").sendKeys(""user selenium and
open
relative
the
a.
No
}checking
date login
Implicit -
application
is fetched thispage/link
wait xpath
- or
this
from athem or
starts
software
will DB not.
tell with
is
the
table, double
validated
which
command
name test the
and
data response
sends
value""); code. to Normally
browser
Then
slash
against
webdriver
syso(str1);
in
Web turn next
//was
based which
the steps
to wait
calculated
application should
means
functional forresponse to validate
aitrequirements
can
certain
there.
with search
We interval
test
it
driver. should These give
driver.findElement(By.id(""password a 500
steps on arethe execute erroron the
whether
element
specified.
}of
these
architecturetime DB the
anywhere
tables, username,
including with password
different
third webparties page.
SQL and
code
relative
http
text server
box xpath - this xpath starts with
login
Its
synatx
}"
queries
integrations the CTAbest
-slash
to isevaluate
visible
way
like -of on
wcs, findingthe
whether page
sqlwith an
DB,thexpath,and
Similarly
double we
locator"").sendKeys(""password test//clickthe
which APIsmeans different
itnotcan
test
user
because
Regression
correct
payeezy, is able in
response to
this
Testing
driver.manage().timeouts().implicitlyWait
sterling way in
OMS, and
we
isexpected
asolrdo
need
type certain
ofthe soft
formatto go is
combinations.
search
Parallel
data element
testing
value""); Wein have
anywhere
selenium following
on
is can type
web
be
action
through
testing
(TimeOut,
visible on
orwhere them
each an
weor
TimeUnit.SECONDS);
not not.
every
check tagthat to reach
the a
of
page.
performed methodsItsusing the
driver.findElement(By.id(""login inbest
using APIs: way
the PUT, of
thread GET,findingPUT,
count. CTA anJava
We
After
specific
existing arethis web basic Selenium
validations
element
functionality/features Webdriver
we can
are not
DELETE
xpath,
locator"").click(); because in this way we need
based
start
relative
Scrum
adversely
b. with
Explicit BDD
xpath
ceremonies framework
different
affected
wait of
- tell permutations
amazon.in
are
by
webdriverthe
the search
team
new to and
code
waitbar:
not
--can
combinations to apply
go through
//input[@id='twotabsearchtextbox'] a wait
of valideach
here an every
users, invalid tag to
meetings
changes
for
Overriding
reach a certain
ainvalid which
specific expected
in Javaweb are means held during
condition
element when a the
to
driver.findElement(By.id(""saving
users,
sprint.
occur
subclass There
or maximum
have istextscrum
the intime,username
master
capability before who
to or
anthat
Method
relative overloading
xpath of amazon.in is a featuressearch bar:
account
password
absolute
regulates
exception
implement link/tab
- field
direct
this
is throw.
parent's locator"").click();
way
meeting. This
class of It finding
mainly
isthatthe
method. bestthe Sub
allows
Constructor class
//input[@id='twotabsearchtextbox'] istoahave method more than is one
used to
driver.findElement(By.id(""check
webelement.
revolves
type
class ofextends
wait around One
function,
the theof the
parentagenda huge
available. class of the
It
in this
method
initialize
"balance
Geckodriver
We can with
objects.
use insame
TestNG When
Selenium name
listener weisbutused different
create
class to an
for
disadvantage
sprint
doesn't status,linkcondition
locator"").click();
is the ifare
where isthere wesuperaretheany
with the
case,
argument
object
interact
this.
Already
assertTrue(any We ofunnecessarily
only with
can list.define
the
answered class,
UI or the
internal
in
condition);a code
above
make
the
constructor
javascript
to handle
questions
script
class of
changes
tickets.
wait
method
eg: even Tois in the
have
though
not future
all
declared web the in
team the
element
as code
members
private we ,or
the
are
gets
Mozila
the
Class called.
type AFirefox
have offail.popup browser.
3 method wevisible, If
have we
, planning
class onwant Bthe to
have and
xpath
in
looking
final.
class
eg: sync. may forWe
checkout
public is
classhave
already A{ sprint just like in2
run
what
Eg ,class
Annotations
initially our we
- of as B automation
want
inherited
part to
in TestNG
of do test
class
scrum over scripts
A,
definesit. Like
how
ceremonies, on
click
do
the flow youon
case
{cancel
int a;method implicit wait.
FireFox
call weclick
or will
of
/html/body/div[2]/div[1]/div/h4[1]/b/htm
of
where the methods.
team decides be
on
class
In required
Ok. A This
automation
what by canto use
creating
they be
we needuse
syntax -
publicinvoid WebDriverWait
product(char wait=newc)and
Geckdriver
defined
object of for
the
class
l[1]/body[1]/div[2]/div[1]/div[1]/h4[1]
annotations
to work on such
during interaction
listener
B as
the class with
@AfterClass,
sprint and Firefox
made
plan.
WebDriverWait(driver,20);
public {run firstA() //class constructor for class
browser,
to
Here
@BeforeClass.
Most istill
the
project similar
every
program
have Hereto time chromedriver
a scrums
certain
explaining
code
daily underthis: - which
testa is
//wait
A use //code element is visible
we
executed.
@AfterClass
daily for Chrome
It will
will first
torun browser
run
only the
after code all the for
{handling} standup
WebElement
the
element
popup
make
if
=sure
any
every
appears
team
and
class
test
member public A{
methods is
void in
onproduct(char
same
wait.until(ExpectedConditions.visibilityO current page. class c, inthave num)
a=10;
then executed 1 isthe normal
//method
run.
Sprint { For example
Review
fElementLocated(By.xpath(""ur
}//method also- quittingthere test the xpath
and step
Sprint
browser
Retrospective
here""))); //code 2 where teams review
public
//method static 3 QA, void main(String[] args){
Being
@BeforeClass
their } work. a lead have i will first help methods
annotated the new
A
}} obj = new A();
hire
which get run familiar
before with any alltest themethodteam
syso(obj.a);
public class
members
belonging
}B inherits the to Bthe
and extends
let him introduce
class. class
For example A //class -
himself.
maximizing In case browsermethods
of immediate of class A
deadline,
{I will let him/her know the same, the
//methodwe
situation x are in and make her
//method
comfortable y about the scope of the
}
Well I am really excited by this position
in Eharmony. In the next 6 months, I
would like to be seen as someone with
deep understanding and expertise of the
Quality Assurance field. I am also very
excited to take on the responsibility of
the Senior QA and looking forward to
immensely contribute to the company's
success in the next few months. Along
with sharing my knowledge and also
gaining more advanced technical skills
in this field.
nd xpath differ based on browser,some thing like xpath search engine
Shashi Kumar Sruajna M
Abstract class can have instance Abstract vs Intereface
methods(Implementation)
Wrapping of data/variableswhile and a> if we want toallows
Encapsulation implement us topartially protect the
Interface into
methods
Synchronization strictly allows
a single
is onlythe
unit.(Known
basically nonwaits then stored
as Synchronization
data we caningo a for is aabstract
class from system-
mechanism classwhich .
implemented
Data
involvedHidingin methods.
also)
codes. because
It may
Throw is used to explicitly throw an be if
wide we
involves
Throws: don't
access. two know The
or moreanything
main advantage
components about of
implementation
implicit,explicit,
exception is hidden
whilethread.sleep,
throws isfor
used the
fluent
to implementation
users. encapsulation
working ◦ ofThrows parallel is just
with
keyword we
it restricts
each have direct
other and in it
No SuchElement, NoSuchFrame, No Some
requirements the exceptions then we go iishaveanother
for faced
interface
wait.
declare We shouldn't
exception.
SuchWindow, NoAlertPresent, use
We thread.sleep
use throw access
is
way
my one of
projects of to the
handling data common
are members
the issue
exception if thethat class.
just we like
driver.getTitle(); getTitle()
b>
we Abstract
can is aclass
implement method can available
have
encapsulation both in
more
within as it haults
method
ElementNotVisible. while theCheckexecution.
throws if in
the method
locator face
try
Timeout
selenium catch in our automation.
Exception
to get the page why title do wein
Set<String> ids = We
java◦can
abstract by usemethods getWindowHandle()and concrete and
signature.
is correct.maintaining
May be Dynamic element. face this Itkeeping
issue
delegate isthe as theclass
weexception
know variablesin test to the
driver.getWindowHandles();
Basically of all the objects Stale-element
getWindowHandles()
methods
private
automation,
caller Page and
method. object
where providing
there
Exception
model
as arein functions
is
interface
public
two a design
main getter to
all the
and
Iterator<String>
of the particular id =
page ids.iterator();
in one java file is NoSuchElement
handle
pattern
methods multiple
which are is
default exception
windows
used in
public ouron andbrowser
framework
Submit submits the form where as Both
setter
components ◦• Ex:click()
methods and
publicthat submit()
to we each
void deal both
of them.
with
doOperations() are used
String
Page
click just
Selenium parent
Object server= id.next();
Model.
clicks the Advantage:
element. We
standalone, Easy to ElementNotVisibleException
click()
Selenium to
the
Not store
abstract.
click
application
throws best
Answered First
all
Buttonway
SQLExceptionthewe
under thatin get
weblements.
Web we
test the
{page.
used
andhandle the buttestofthere
the
String
maintain, child = id.next();
EasyButton
readability of scripts, NoAlertPresentException
parent
c> •small window
In this using
model, the
we command:
create a click
on
Java, theChrome/FireFox
System. Submit also.
Driver. is aThe
encapsulation
automation
Lets ◦ assume
variables
Wedifference
........... tool
can thatin present
which
resolvewewhen
our project
are will
no
in toAbstract
have
launching
such isusemaking
their a
reduce
ChromeDriverduplicity,is usedRe-usability of code,
to invoke chrome •chrome String
separate
class
and
all
own the parentWindowHandle
need
submitwebelements
specified class
not
methods. befor
speeds. each
public,
in each
whilewebstatic = driver.
page
page
writingand
setProperty("webdriver.chrome.driver",
Testng has many annotations element ......
ChromeDriver
•test Thenbrowser.
}
exception we get is WebDriver’s
inthe twohandles ways of all
Reliability.
browser present
final
.click()
class where
asmethod in the
privateas application
in
:You interface
and cancreated use and
all thethat
.click()
public
As name for
"path");
involved: automation.
@Suite,@test,@Classes,
suggests, before suite will the
The
So
the
class
variables
method
code
if@BeforeSuite
•implementation
1. we
windows By
holds
scripts
want
to
for
by all
click
this
applyingto
that
default
we
the
on
useis
class.
are
should
doOperation()
WebDriverWait,
currently
functionality
any public,
be
button.Therestatic
written
open
andandis
WebDriver driver=new ChromeDriver(); getter
in a •the way methods such that to each
both webelement
these in
@method.
run beforeWe all can
the testgroup our tests
cases thosealso are Set
method
webdriver
The
using
members
final.
no annotated
the
restriction
property
As then we
object
command:
of
we
that know
for
for
need
methodwait
webpage.
click
chrome
that to
for we
will handle driver
cannot
a specific
buttons.That be runthe only
First line is used toafter
set theour property order
components tosecond)access willtests them
work outside
with same the
using
in
A one group,
languagesuite we can
while
which totallyclubsuite
works will runits using
groups
on
SQLException
create
time
once
Set<String>
Not
The
d>
means
(in
Answered
main
Abstract an
before objectall of
allWindowHandles
advantage
element's class of an
can
type
interface,
element
ofin this
using
extend
= "button"
we
suite
POMfor
= or
class itsit
have
is
value
also, of
some chromeDriver.
helper attributes are also class.
speed.
create
visibility. In
an order
System.setProperty("webdriver.chrom
object to of achieve
ChromeDriver this we
after
object
Data each
that
driven and every
contain
is nottosupported test
data andand case runs.
methods.
by invoke reduce run.
driver.getWindowHandles();
where
DATA asthe incodeinterface duplication
iswe can which
and
2nd line
there.
a.
is used
@dataProvider,
Inheritance: One
initialize
class@Paramteres.
extending the
type
need
e.driver",
Throw:
class.
returns
improves
implement 2.=DRIVEN
• to"submit",
We implement
"path
@AfterSuite
the can
test set
the
TESTING
of
case
.click()
handle
of
class
waits
chrome
handles. 
a test
method
maintenance.
but
concept
driver
not
will
extend.
in
file");
Selenium alone. We
chrome Browser. WebDriver here is just third party automation
works
our
WebDriver for
automation
•example:
NoSuchElementExceptiondriver framework
both.If
driver is button
scripts.
a=reference
new will that
is stores
inside
ChromeDriver();
ofsome
through test
try-
properties
Apache poi of
Api another
to perform class datato avoid
driver The
For
e>
data
<form> we annotated
in canthe
tag declare
form
or if method
developer
button of constructor
excel is files,
outside be
did run
Text inside
<form> only
files,
interface and ChromeDriver is a class. WebDriver Not
Throw
catch • Answered
isHere
block a in WebDriver
keywordwhich
inside used
address
Generic is an
in interface
java
of
method. theto
duplicacy
testing. Weofhavecode. twoRedundancy
jars apachewill poi- oncechanges
Abstract
xml
tag,
provided
create
Not
object
For the after
•files,
Answered
Then
user
of
example:
inall
class
and
click()
by onewe tests
in
defined
ChromeDriverpublic
use
of
where
the
method
Selenium
in
the this
for
databases.
will loop
Webdriver
exceptions.
boolean class
suite
application
in interface
work. tohave
will
iterate
page
we
store.
remove.
ooxml andOne poiwhoandextends
one class in Child run.
the
like
cannot
• In
.submit() number
a new
this declare
framework,
method of
webelement child
constructor
:we windows
input
can is added
values
use being or
are
.submit() an
13.explain •Answered
isElementPresent(By
Not ChromeDriver
about locator testNg is WebDriver’s
by) annotations?
{
Class and otherJust
XSSFWorkbook. one is Parent
create class.
object of created.
old
read
method webelement
implementation
We from for data
only files
submit
class. and value
are
form got
stored
after into
click
Doneclass
this usingand ""Extends""
using some keyword.
in-build Not
changed
a
on •have
variable
boolean
Answered
button.That Then different
inin the isPresent
we
test Get
DOM, types
scripts.
means the
in thisof
=handles
true;
element's
annotations
case of all =
we
type
•windows Asin { we knowframework that we cannot
b. Polymorphism:
methods, we can As getname the data suggests: available the
Not
can• And
"submit"
create dotry
Answered
it changes
an isand
TestNG
mainly
object
opened.
button toused
of that
should particular
when
interface, be
which
the
we inside page
same
are •used as per
driver.findElement(by);
Print the project
window requirements.
handle
One name, many
whatever we want." form, two types: related
Not
test
<form>
create Answered
script
} an
•window.
class
tag, need
then to
object
@BeforeSuite
instead of be
only of doing
tested with
submit()
ChromeDriver will the
of
Compile time(Method first
changes
multiple
work.If
Not Answered in all
set of data."
element's the classes
type =will "button"where ever
class.
The • annotatedUse the method
SwitchTo be
command run only
to
Overloading/Static), runTime(Method we
Not used
means • Answered driver this webelement.
submit() is will
a not
reference work.If of button
Overriding/dynamic). Method once
catch
switch before all
(NoSuchElementException
to the tests
desired in this
window. suite have
e)
outside
WebDriver
Not {Answered of the in which <form> tag means
address of the
Overloading be like: add(), add(int a , int run. submit()
object of will not
ChromeDriver work
b), add( int a, int b, int c) , add( String x, we isPresent • @BeforeGrroups
can use Alert Interface to will
= false; class handle store.
String y). }Not •Answered
alerts in@BeforeTest
selenium webdriver. We can
Method Overriding be like: method The
return
easily annotated
12> using JDBC isPresent
switch tomethod
alert
driverfrom will the
API be can
we run
main
name, exact same name with same before
}
window any by test
using method belonging to
Not
establish Answered database connection in our
number/type of arguments.At run the
Selenium's classes inside
.switchTo() the <test>
method. tag is
framework
Not
times, it decides which method will be if run.weAnswered want to accept alert we use
code
15> • Inis:Java,
@BeforeClass
driver.switchTo().alert().accept(); Data types are divided into
called depending upon the object Steps(jdbc connections):
two
16>
The groups:
HashMap
annotated
if we want to dismiss ismethod
a Map the based
will alertbe collection
run only
creation. Load the Drivers
c. Abstraction: It may contain some once
Not Answered
class before the
available
driver.switchTo().alert().dismiss(); in first
collection test method A in
Class
the
if
Primitive
we forname(“com.mysqljdbc.Driver”)
current
want data to class
capture
types is - invoked.
includes
the alert byte,
methods which are implemented and 18> Pom.xml is file which got createdthe
pi. in this we can store the objects in
at least one method which will be non- form //
Not
whenloading
message.
short, •Answered
keyint,
we the
@BeforeMethod
long,
value
create driver
float,
pair.
a maven wedouble, use boolean
put(key,
project. This
implemented.Showing some relevant file The
Connect
and
value)
Notcontains annotated
char function
Answered the
driver.switchTo().alert().getText(); databasemethod
to store the
information will
with about be
eclipse
objects run and
the
before
if we
data only to the user and hiding some DriverManager.getConnection(“jdbc:my
Non-primitive
we use want each
get(object to test
datamethod(@test
send some
types
key) data
suchto
-details
function as
to alertby
project and configuration used
method)
box.
sql://hostname/dbname”,
String, Arrays, Interfaces “username”,
of the implementation. retrieve
Maven
first • i will to object
@Test buildall
find
driver.switchTo().alert().sendKeys("Text"
from
the the linksand
hashmap.
project. inwe Classes
add all
webpage
d. Encapsulation: Binding fields/data our “password”);
And String
project s //connecting
Non
dependencies primitive the
indatathedatabase
type,
form
using
Not findelements()
Answeredour actual testmethod and as of
and methods together in a class file. Where );with
because
xml
we know eclipse/java
tags where it refers
all thewe to
links an
give
case methods
object.
start groupid The
with <a> artifact
are
Not
Create written
Answeredstatement
String
tag
id and . object
•Answeredversion
@AfterMethod has methods
details. that are used
Not
Con.CreateStatement();
to
then
The perform i will fond
annotated certain theoperations
method totalwill no.of beon links
run strings
after
Not
//Used
like
available Answeredto create
in webpage statement using size()
each test method.
Execute
method. statement
trim(),toLowercase(),split(),toCharArray(
• @AfterClass
Stmt.executeQuery(“select
then
)....etc
The annotated iterate themethod loop, inwill loop *be from
i will
run only
perform
selenium”); control+enter
once after all the test methods action usingin the
keys
//executes
current
The in selenium.
main class the have
difference statements run.
between given primitive
then we@AfterTest
and•non-primitive find the window data types handles are:
using
The annotated
Primitive getWindowHandles()
types are method predefined will be method run after
(already
and
all the iterate
test the process
methods belonging to get the to the text
defined) in Java. Non-primitive types are
of each
classes link.
inside " the <test> tag have run.
created by the programmer and is not
Not Answered
Not Answered
Not Answered
Not Answered
During the execution of test cases, if
tester find any defect, he will log that
Not Answered
defect in the defect tracking tool.
Not Answered
Not Answered
So, when the tester first time log the
we canincovert
defect String
tool, then HELLO
the initialtostatus
hello of
by
using toLowerCase() function available
the defect is new and it will assign to
in String
test lead.class

Then test lead will review the defect


then he will change the status to open
and he will assign to developer.

Then developer review the defect and


if it is a valid defect, he will fix it and
change the status to fixed and will
assign back to the tester.

So, then tester will retest the defect


and if it is working as expected then he
will close the defect.

If a defect is partially fixed, then he will


change the status to reopen.

In other situations, like the defect


which is assigned to developer is not a
valid defect then he will change the
status to rejected.

Or in some other situation, like if the


defect is valid and not of high priority
and if they want to fix it in future
release
we then they
can handle will change
dynamic popupsthe using
status to
testNG differed.As we don't know
listeners.
when popup will occur during test script
And in few in
execution conditions if thefirst
this condition same we write
defect
one logged
generic again
function and
to again,
handle the
the
"in order
defect to print
status the
will be order number
duplicate.
popupthe
from then we call message
success this popup in
ITestListener
first we need implementation
to locate success class.
message
for example: webelement
i have a genericand capture
function
the text from web page by
isAlertPresent(). i create one listenerusing
Implicit, Explicit, Fluent wait, the different types of waits available in
thread.sleep
driver.naviagte().back()/forward()/ selenium
Navigationwebdriver is an interface are in selenium
Avoid using Thread.sleep() as it
refresh()/to(url)/wait();
driver.switchTo().frame(); implicit
to do navigate
IFrame wait
is a web -- itback is a and
page global
which forth wait
isinwhich
haults(slows
Actions a =can't
Selenium newdown) thebyexecution.
actions(driver);
handle inspecting applicable
browser.
embedded4th
answered it to
has all
in another the
methods
question webElements
web to
relatedpagetoback,
move
The most effective
a.dragAndDrop(source, wait is Fluent
this:wait Explicit
forward
We can Wait--
as
inidentify well thisas is
to wait
the iframes refresh is applicable
a page
elements.
FindElement
as it applies
weprovides
to
have to follow
specific only one
element andFor
alerts
findElement()
to single
row id
webElement is 4_S
used to find using
with single
target).build().perform();
driver.switchTo().alert().accept()
element present in DOM while --> navigate().to()--
below
webElement methods to launch
based on locator passed a new web
for
once specific time
frame is gives
OK/Yes/Done/Accepting user can
done,the list provide.
alerts. ExpectedCondition.
browser
---Right window
click on and
the navigate
element,isIfnot to
youthe
findElements of elements as parameter
Fluent Wait - itand
is if element
similar to Explicit
driver.switchTo().defaultContent();
driver.switchTo().alert().dismiss();
present. --> specified
find
found the itthis
willURL
option throws like 'This Frame' then it
For No/Cancelreturns Alerts.NoSuchElement wait.In
navigate().back()--
is an iframe. along with
takeswait back duration,
to the
FindElement NoSuchElementException
ExpectedCondition we define the
driver.switchTo().alert().getText();
Exception while FindElements return --> previous
---Right
findElements() webpage
click on is the
usedwith
page toreference
and
find click
the to of
list
text present in alert frequency.
the
'View browser's
Page Source' history and Search with the
empty list if no locators match." similar webElements and if no
driver.switchTo().alert().sendKeys(); --> navigate().forward()---
'iframe', if you
elements is found can find to
it willany navigate
return tag name to
a list of
can write also. the
with
0 next webpage
the 'iframe'
elements. then with it isreference
meaning to to
the
say browser's
the page consisting history an iframe.
navigate().refresh()--
we can switch over the to refresh
elements thein
currentin
frames web three page ways
Switch to the frame by index:
driver.switchTo().frame(index);
1>1.Hi,
Switch I’m to thexxxxxxxxxframe by id or Name:
2.I
Not Answered of experience in IT
have x years
driver.switchTo().frame(id);
industry
Switch
3> source towhich
the
code ismanagement
frame totally
by Web intoElement:
QAtooltesting
is a
3.I worked in different
driver.switchTo().frame(WebElement);
central repository
question is not clear which domainsis used such
to as
Finance,
once
maintain we Health
done care
certain and Insurance.
actions in frame
5>
4.As static automation
andtesting,final are code. The
the involved
keywords
if we part
commonly wantofto used come SCM I was
out toolsof frameareclass then in
used
6> In
manual in and
java, java we know that child
automation testing and can
Iwe
we need
bitbucket, to use
Github, CVS. In my project
The
Not main
override
Answered
performed difference
the parent
various between
class
types of a
methods. static
testing’s so
driver.switchTo().defaultContent();
used Github to maintain our code
and
in
8>
like final
order
Insmoke,
Cucumbertokeyword
prevent
sanity, is
weframe that
the
use static
overriding
regression,tags to is in
group
In case
where weof nested
can add ,commit, we push, use pull
keyword
java
the , we
similar
integration, is
need used
type to to
make define
of scenarios
functional parent
and User the class
class
just like
driver.switchTo().parentFrame();
Not
and Answered
merge the code.
member
methods
groups
Acceptance inthat
as
testng. can be
static
Testing. weorused
final.
use this whytags
Not Answered
independently of any object
because
in
5.As
11> .feature
part of
Background
static
filethe and
above
testing
is a
final
cucumber wasof
the,I methods
scenario that
involved can
or
class.
not be Final
override.
scenarioOutline.
in writing test keyword
cases is used
and test toscripts.
annotation
12> we can
declare, which
use
a constant is variable,
used
invocationCount in .feature
atypes
method
In
6.I Cucumber
file.have good wehands use variuos
on experience of
helper
which
we cancan
annotations
working attribute.
use
with not priority
which
selenium This
be overridden is
helper
are a TestNG and a text,
attribute
predefined
and different to
Background
attribute
class
run
Not the that
Answered thatcan
methods generally
defines
not in be has Ifthe
number
inherited.
order. we of times
don’t
which
components
instruction holdson aofwhat
specific
selenium meaning.
totestng
setup IDE,ItWeb
like before lets
a
thetest
mention
Not
driver, method
Answered any
compiler/interpreter
Grid and should
priority,
have be
ability invoked
know, will
to whator
integrate
each
executed scenario before runs. executing
execute
should bethe
maven,selenium,testng
Not Answered done@Test uponmethods withany
execution. based
eclipseother on
test
Given
7.I method.
alphabetical
have If invocationCount
order
− experience in cross browser of their method = 5,
Not
then
names Answered
the testdifferent
irrespective method will
ofbrowsers
their beplace
executed of
It describes
testing
Not Answered with the pre-requisite for the
such
5 times
implementation
test before
to be executed.
as chrome, executing
in the next
code.when
Firefox and IE, on different test we
Not
method.
assign Answered the Priority to each test case
When
platforms − and different versions.
Not
then
It Answered
8.Idefinesthe lower
worked the
with priority
trigger
various pointvalue forwill
methodologies anybetest
executed
Not Answered
scenario first.
execution.
such as waterfall/agile methodologies.
Then − I was involved in various
9.In Agile,
Then
meetings holds like:thesprint
expected planning, result for the
status
test to be executed.
meetings, scrum standups, grooming
And
meetings− and meetings with business
tanalysts,
providesproject the logical managers,AND condition software
1>we know that in .properties file we
store
2> thedata other in way the form of handling of key value windows pair.
Below is
popup the Program
without using AutoIT to readisthe through data
in
Robot
1> .properties
It dependsclass which file
on the is available
element to Java.be
Benefits
identified… of Robot class:
File
-Robot
If you fileare = new
Class asking canabout simulate Keyboard
3> we need
File("D:/Dev/ReadData/src/datafile.prop
and Mouse Apache
Event POI execution
Api time
for
dependency different locators
totoread/write then id is the
Import
erties");
-Robot
fastest.
is
Classusedcan help intheexcel
import predefined
documents
packages
5> to in the selenium.
program
Ifextends it extends
upload/downloadis a matter keyword
is used oftofiles
of convenience,is rather
inherit
used
when
inthan
a then using
particular
6>
selenium
you we can
follow this class.Like
FileInputStream
web use include
driver
sequence. and fileInput
exclude =
inheritance
importing
null;
tags
-Robot
7> we can in all
testng.xml
Class addto canacquiring
classesimplicit to
easily of
add/removethe
package
be properties
integrated we
Mostly
of parent used class is -> id wait in selenium
need
testcases
with
using only
current
below
If id is not unique, then try one
in { class
testng.xml.
automation
code: ofpreferthat
framework package.
to use
so
Lets
nametake
(keyword, we use an extend fileInput
example:
data-driven
driver.manage().timeouts().implicitlyWait
as locator. keyword.Extend
= new
iforahybrid).
Class have is a
public
term of class
inheritance. ZerosToEndInArray {
FileInputStream(file);
three
(30,
If element Test is
TimeUnit.SECONDS); Methods.
a link with In that simple wetext, will use
2>
include public }
two class
catch test PrintDuplicates
methods and { to
try
Some
to
link add
text
// commonly
Explicit
or
Function partial wait:
to and
link
move popular
text. all zeros used
3>
exclude
methods publicone
(FileNotFoundException class test method. e) {
WebDriverWait
If
present elementpublic inofis
ReverseStringWithSpacePreserved the Robot
static wait
difficult
array void
Class=to new during
identify
the
main(String[] end with web id,
{
sample
automation
WebDriverWait(driver,30);
name testng.xml
or links, e.printStackTrace(); file looks like:
args) { publicthen static govoid for Css, reorder(int[] xPath..
1>Yes,
<!DOCTYPE
*keyPress(): We } suitecan
wait.until(ExpectedConditions.visibilityO Example: overload
SYSTEM the main
A) public // TODO
static Auto-generated
void main(String[]
method inProperties
"http://testng.org/testng-1.0.dtd"
robot.keyPress(KeyEvent.VK_DOWN)
2> Whenstub java
a class is
fElementLocated(By.xpath("//div)]"))); but JVMprop
declared only = new calls
with final the
> :
method
args) { {
Properties();
original
<suite
ThisSoftware
keyword,
3> method main
name="Sample method,
with
it istesting called press life it
a Test
finalwill
down
cycle never
Suite"
class. isarrow Acall
anext
String input
// cannot
TODO // =k"hcl-tech";
stores
Auto-generated index of
our
verbose="1"
key
final
sequence
4>
available overloaded
of
class
UsingstubKeyboard Select class in Seleniumtowe
of
position > main
different be method.
activities So, which
method findDuplicates(input);
//load
execute
can
5>
String
<test
*mousePress()
extended(inherited).
is performed
handle
No,Selenium
} str=
overloaded
name="Method drop
"Java by:properties
int Example
kthe
does = a0;testing
downs
is
Test: file
methods
not
Programming
Cases"
have team of main,
theto
>
we
ensure must
<classes> try
call
robot.mousePress(InputEvent.BUTTON3
thetoquality { them from
of the the original
Select
capability
6>
Language";
main The dropdown
V-model
method. automate is=an
prop.load(fileInput);
new SDLC thesoftware.desktop
model
_DOWN_MASK)
it is <class
a part of
Select(driver.findElement(By.id("selectD SDLC.
// : This
do for methodeach will press
element
applications.It
where
7> public
Locators execution static
reverse(str);
} catch in cannot void
of
selenium
(IOException recognize
processes are used
e) the to
name="com.easy.entry.AddTestCase">
the
The
ropdown")));
objects
right
various
findDuplicates(String
happens } in
click
in a aphases
for
desktop
of
sequential
your
(int mouse.
involved
i: A)
application.
input) manner { in {this in a V-
identify
*mouseMove()
cycle <methods>
are: the webElements
e.printStackTrace();
: Example: on the
WebDriver
shape.
webpage. char[] provides three ways to
{ ch = input.toCharArray();
Requirement <include
robot.mouseMove(point.getX(),
1> Given }steps name="testCase1"
are
Analysis used todrop-down
describe />
select
This
there model
are anHashMap<Character,Integer>
8option
came
types from
//ofifin
up the
current
order
locators toelement
available
point.getY())
the
2>Background
Test <include
initial context :put name="testCase"2
This in willthe
of
Cucumber move system. mouse
is atused /> to
menu.
is
map
overcome
in //=Planning
non-zero,
selenium new
program
<exclude HashMap<>();
the
WebDriver webdriver. tothe
drawbacks reverse
name="testCase3"
element
driver of
=anew waterfall
string />an
pointer
When
define
Test
3>
1. case to
steps
a step
yes tofor(Character
selectByIndex the are
development
login specified
or used
series
username
-//positions
Itnext to
is c: of
usedX and
describe
steps
and Y that
model.
preserving
id Locator:
FirefoxDriver();
</methods> space free
ch) {to select
position
coordinates.
event,
are
Test
password
an
in common
option
the or
Environment
array an we
based action.
to can all on the
setup
give This tests can
AND.
itsreverse(String
index, be
in thea
beginning
Under
ID’s public
are
</class>the unique V-Model,
static if(!map.containsKey(c))
for void the
each corresponding
element so {itor
*keyRelease()
person
feature
Test
example:
with 0. interacting
file.
Execution It : Example:
allows if with
(i you
!= 0) the to
{ system,
add some
5>
testing
str)
is we{
common can phase
driver.get(prop.getProperty("URL"));
</classes> reverse
way of to map.put(c,
the a
locate string
development in
elements 1); two ways:
robot.keyRelease(KeyEvent.VK_DOWN)
it
context
Test
Scenario: can betoanthe
Cycle
dropdown.selectByIndex(5); event
closure scenarios triggered A[k++] forusing=byaSo,i; another
feature
using
phase
6> first
</test> charAt()
is
we planned
ID Locator. need }else
functionfind in{ parallel.
all and
the seven there
This
system.
where
Given
2. method
I it
selectByValueam iswhich
on with
defined. Facebook -release
Itusing
}map.put(c,is= used login down to page arrow
select
reverse()
are
checkbox
</suite>
key Verification
char[]
When
of Keyboard we inputArray
in
driver.findElement(By.id("Email")).sendK
7> ause page isfindElements()
phases available on oneinmap.get(c)side of
For
When
an
+1);
StringBuffer.
the example:
option
‘V’
str.toCharArray(); I
andenter based }In aon
username
Validation .feature itsphases as
'value' file"TOM" ifattribute.
on allthe the
findElements()
Name
*mouseRelease()
8>
scenarios Jenkins Locator:
eys(prop.getProperty("username"));
method, it will is
have an with
not : throw
open
same theGiven
Example: common
source any exception
Step. toolThen
And
locator.once
We I enter
dropdown.selectByValue("Database");
other char[]side.
sometimes password
The
result we Coding
use =
get new the
Name as Phase "JERRY"
listlocatorof joins tothe
when
instead
Then To element
robot.mouseRelease(InputEvent.BUTTO
which
9> is
implement
Login ofused repeating
should is
for not
BDD continuous
fail identify
framework
the same in awe
delivery
step for
3.
String
two selectByVisibleText
sides
char[inputArray.length];
checkboxes
identify classtheof //
}
does move
thea return
in not on
V-Model.
page, all-
have It
find0's is used
to
reverse()
the the
total to
end
N3_DOWN_MASK)
and
used
all thecontinuous
Cucumber
scenarios it elements
driver.findElement(By.id("Passwd")).sen
webpage. just : This
integration
tool.
we can 0 list
method our
put webpage.
of
service
that will stepfor
select
of
method,
no.of
Locating thecheckboxesanwe
array option
}elements (remaining
need based
to
using convert
using on
indices)
size()
Namethe the text
isinput
method. same
dKeys(prop.getProperty("password"));
elements
release
software
Cucumber
under the inisright
the
development.
Background. a console.
testing click of
tool your that mouse
over
1>
string
Then
as // the
Selenium
locating to
Mark
with option.
StringBuilder,
the spacesfor
WebDriver
elements help (int in
of i = k; is
which
result i
get(index)
using <a A.length;
Client
ID is locator. i+
By
supports
+)
Server { using Jenkins,
Behavior
dropdown.selectByVisibleText("Databa
Architecture weDriven canDevelopment
execute test
Set<Map.Entry<Character,Integer>>
2>
achieved
method Explain
foron (int
we by about
i =can
driver.findElement(By.id("SignIn")).click(); using
0;basis ifind the
< inputArray.length;
the appendlast but method
one i+
cases
(BDD).
se
-In It time,
Testing");
real offers daily we a way will A[i] =and
to
write 0; write for
code nightly
tests in that
set=
-of
+)
3>
checkbox
Class which
{ for map.entrySet();
StringBuilder. framework
Parallel
Name in a execution
Locator:page. After approachthat, print you out used the
execution
anybody
Eclipse based
can } understand, on the schedule.
regardless
-what
characters
Class
4> we if IDE
type
Name
can ofby
(inputArray[i]
use locator using
project
thesplit() reversed
givesany
you
==
function one
' ')the{ string of the
element
which byis
of
supported their technical
} Selenium knowledge. client libraries
for(Map.Entry<Character,Integer>entry
created(Maven
scanning
List<WebElement>
which
available
5>
The it main
will matches infrom
result[i]
execute String or
the
System.out.println("URL
advantage the = Gradle)
' first
';
checkBoxes
class
first values
ofcatch
till
this
thespecified
block
framework
last=::"with+like
in
Java,
index.
the C#,}
attribute
prop.getProperty("URL")); Python,
:driver.findElements(by.id("checkbox"));
-which set) { technology name Ruby, you
“class”. Perl.
use(like java)
generic
is
-Once it increase we exception.
// Move
execute andall improves
zeros
the scripts present inused in
-Different
int
public
If an }exception
totalChkBx static if(entry.getValue()>1){
folder int = occurs
System.out.println("User structure
checkBoxes.size(); in try you block then
collaboration
7>
the
Eclipse, output
array the :
to hello
the between
selenium end
System.out.printf("%s different
client library users.will
:to
-what
class
//
Tag
name::"
the
we
it will
Name
control
main
know
you
ReverseString
always
countWordsUsingSplit(String that
used
Locator:
of
components execution
In
for reporting
select
java,
the
of
string is last
this passed
objects
but one
input) {%d
are
communicate
%n",
-what
{Tag
checkbox
//to Name
check public
Traverse locator
given with
entry.getKey(),entry.getValue());
// you usedinput static
to
string selenium
isfetchused voidis data
string main(String[]
tofrom
null API.
find from
or the
+prop.getProperty("username"));
the
framework
immutable.
args)
-Selenium corresponding are
APIImmutablewill send catch simply
the block.command means Aempty
1>
excel
beginning
if Enumeration
public
(input or other
static
checkBoxes.get(totalChkBx-1).click();
elements matching
==isblock
null } data
voidor Enum
files
main(String[]
the in
specified Java is
args)
{ Tag a
single
first
unmodifiable
taken
data one try
from
type {
} .feature
language
which or||characters
System.out.println("Password::" input.isEmpty())
can
unchangeable.
contains
have
file level in which multiple
a binding
fixed we to
-how
2>
Name.
catch
write
{
returnRun// you
andTime create
put
It0;isscenarios
+prop.getProperty("password"));
blocks
the very Polymorphism
helpful
associated the logs
using when in
with /
gherkin
result
Dynamic
we wantof
it,3,JSON
youset
Once
browser
}should
constants.The
-which
from
Polymorphism string
String
end CI driver
tools object
input int[] with
Java
isyou = A
also is
= {
thecreated
enum
used 6,
"Automation";known 0,
help 8, 2,
constantsofits
as data
0, 4, 0,
}to
3> } extract
keywords
or Fluent
state place
can't
the
wait
like content
beis one
the catch
changed ofwithinthe
blocks but wait a Tag.
a in newsuch
1
wired
are };it split
-which
Method
available
// intprotocol.
static jBug
=the and
result.length
Overriding.
in selenium
words final
reporting implicitly.
based tool - 1;you
webdriver on used
white and it
}string
4>
a way TestNG that is the
GIVEN,WHEN,THEN,AND,Feature,Scenari
object anis open-source
generic
created. exception test
-Selenium
In
-what
Method
Link
same
space implicit
Text are
StringBuilder
for as (int API
wait,
different
overridingi
Locator:
explicit = sends
0; TimeUnit
i <
wait is the
dependencies
input1 is
inputArray.length;
a butprocess =request
an
thenew Enum
only wheretoyoui+
automation
handler
o,ScenarioOutline catch framework block which isbe for
atisFirefoxJava.
a plain last.driver, text.
Browser
which
added
StringBuilder();
+)
a
If
The { generic
method
there
difference
String[]
Advantages
second
belongs
are Driver,
words
one ofitreorder(A);
inismultiple
the itinput.split("\\s+");
to child
=checks
exception
is Testng
may
the
StepDefinition
package
class
elementswhether
are:
handler has with
class,
thethe
the
can in
IE
same driver,
java.util.concurrent
condition
return name
link Chrome
text
is
words.length; and then
satisfied driver.
the and
thesame
and enumeration
first parameters
one
continues will be as
It
-Theprovides
handle
which for
browser all the
eachparallel
System.out.println(Arrays.toString(A)); exceptions
feature
driver execution
will step
use but we of
you
theare: test
HTTP
constants
as
selected.
per
}
methods.
should //
that
the append
// of Ignore
theused
This
frequency.
place a
Link
is at the in
string
spaces
method implicit
Text
the HTTP in into
end, inits
locator wait
inputbase
if you place string
worksclass.
maintain
server corresponding selenium java
TimeUnit.DAYS
StringBuilder
only
//
It
it Waiting
allows
at theon ifforlinks
the
before
getting
(inputArray[i]
30 input1
(hyperlinks).
seconds
dependency
all the !=catch
' ') {an
for of
request
element
one
blocks test
code.
}and
Timethe unitHTTP representing
input1.append(input); Server filter twenty out allfour the
1> Bug life cycle:
2> As per given scenarios , identify the
During
test
Testing cases the
theexecution
which
application have ofhigh testcases,
in possibility
multiple if
tester
to identify
browsers
4> Waterfall find any
defects
and defect,
is operating
a Liner he
by Sequential
providing will
systems log all that
Lifeand
defect
probable
check
Cycle in the
whether
Model negative defect
whereas the and tracking positive
application
Agile is tool.
a is
5> explain about which project you
conditions
working
continuous
worked as with
on expected
iteration moreof details.
in allathe
development
the when
So, prerequisites the tester to first
write time script
log in
environments
and
explain
selenium testing aboutare: or
in tools not
the software is
that known
you haveas the
7>
defect
compatibility SELECT SUM(salary)
in tool,testing AS
then the initial status of Total Salary
development
used
Java
FROM in the
IDE (Eclipse/
employees process.
project IntelliJ)
WHERE - assign to
the
Agile defectmethodology is new and is it will
known for
explain
Environment
department='HR';
test lead. about your
that you roles will like
use toits
exactly write
Types
flexibility
what code
your of
you did test
whereas design
in. in the project. a techniques
Waterfall is
Black-box
structured
Selenium techniques
software libraries
Webdriver development -defect
Libraries
Then
Equivalence
1>
methodology. given testthe lead will review theidea
Partitioning:The
ans above of
which
then he allows
will change you use all
the status the Selenium
to open
this
Agile
2> we canand
functions approach
follows an is
useclasses. grouping
incremental
Jira for both test the inputs
approach
and
with
whereas he the will
same
the assign attributes
Waterfall to developer. toFirefox)
methodology partitions. is
Management
1> given
Browser drivers (Chrome/ the and
ans defect
above tracking. - The
Code
a
In
driver
4> sequential
Jira,
given is we
withnot
the willvisible
with design
be
ansSelenium to
create
above the testers.
process. test
WebDriver Your
cases taskas
Then
is
Agile to pick developer
performs onewe review
condition
testing out defect
ofa each and
issues,
communicates.
we use first
Apache need
POI api's toconcurrently
add
to read new the
if
partition,
with it is a valid
software which defect, covers
development he will
allready, fix
possible it
whereas and in
issue
once
data type
inthe data todriven
environmentyour Jiraisaccount.
framework we can
change
6>
scenarios,
Waterfall the tostatus
execute
methodology to fixed testtesting andifcomes
cases. the
will If a
where
start
data is we
writing
stored give the the
inthescripts
excelsbelow usingdetails
assign
class
To
condition
after switch the back of
“Build” atopartition
PalindromeExample{
between phase. tester.
windows is javavalid,language other
selenium
if issue
the type,
data isaresummary,
webdriverstored with
in description,
databases then
8>
conditions
Agile
reporter, public
Polymorphism
allowsstatic
steps void
valid
changes main(String
means
to complete,too. in "many
Likewise,
project args[]){
expected forms",
if a
binding
we
So, int use
then like
JDBC
r,sum=0,temp; tester driver
will api's.
retest the defect
public
and
condition
development
9>
outcome it
APIs void
occurs
and in switchToNewWindow(int
a
Web when
partition
requirement
Serviceswe ishave invalid, many
whereas
both other
serve
Create
code
and if to
intplatforms itais
n=454;//It WebDriver
readworking data
isalsothe from
as instance. excel:
expected
number variable then he
to
windowNumber)
classes
conditions
Waterfall
as
12> @BeforeSuite that
has are are
no
for {related
scope invalid.
interactions of to each
This
changing
between other
helps
Navigate
String
will
be close
checked to
FilePath the a forWeb= page.
"d://filepath.xls";
defect.
palindrome
by
reduce Set <
inheritance. String
the number> s = ofjira test
the
systems
To
@BeforeGroups
Locate
11>
FileInputStream
requirements
create
Listan ofor
aHTML
APIapplications
defect once
element
Methods
fs in
= new
the
are oncases.
we project
need
the Web to
driver.getWindowHandles();
Boundary
create polymorphism
development
a)
@BeforeTest Web Value
services
an issue isare
of mainly
Analysis:This
starts. the a type
type divided
of
“Bug”. is
API, into
one of
page.
GET
FileInputStream(FilePath);
If aIterator
defect
temp=n; isString
partially fixed, then he will
two
the
which
where
@BeforeClass types:
software must
we <give be testing
accessed
below > ite =
techniques
details s.iterator();
through in a
Perform
POST
Workbook
change while(n>0){ anwb
the action = are
status onto an reopen. HTML element.
Compile
which
network
Defect
@BeforeMethodint i =test 1;
ID,time cases
connection.
Defect Polymorphism-
title, designed
Defect it istoalso
Anticipate
PUT
Workbook.getWorkbook(fs);
"1>While r=n%10; the
//getting
Automating browser remainder
AUT response
that supports to
known
include
APIs
description
@Test while are as(ite.hasNext()
static
values
application
(steps at theto &&
polymorphism/method i
boundaries.
interfaces,
reproduce), < 10) { If the
the
HEAD
Or action.
You
In
to
overloading.
input
implying
Environment
@AfterMethod
Run
DELETE
other
testsiscan
sum=(sum*10)+r;
different
String within
that
and
also
situations,
languages,
popupHandle
the
one
directly
information,
record
like the
boundary
applicationtest
send
= defect
regional the file
value,
results can it is
as
which
differences, below
n=n/10;
ite.next().toString();
Runtime
considered is assigned we
Polymorphism--
‘Positive need to developer
to take
testing.’ it is care
Ifalso
theis of not a
communicate
Screenshot(attachment),
@AfterClass
using
PATCH a test with
framework. another application
Severity,
valid
different
know
input defect
} a standardized
is then
translation/text
asitoutside
dynamic he
ofmanner. will
the boundary change
on UI forvalue, the
in
Assign
@AfterTest
Conclude
OPTIONS
Workbook to the
wb someone,
test.
=
status
different if(temp==sum) to rejected.
locales.
driver.switchTo().window(popupHandle)
polymorphism/method
it isWebconsidered Assume that
overriding. the AUT
b)
Status-
@AfterGroups
Testng
Workbook.getWorkbook(new service
All the
xml to run is‘Negative
used
statusesall scripts: forintesting.’
REST,
the bug SOAP The
life
supports
;goal
and
cycle System.out.println("palindrome
is
XML-RPC to Hindi,
select for English
test cases
communication. and French
to execute
@AfterSuite
File("samplefile.xls"));
Or
number inSystem.out.println("Window
some other
"); values. situation, like ifmay the
locales
boundary then formorning Instyle greeting
other words, title
API
<suite
Now
defect
differ
is else
:
isto used
name="Suite1"
get
is
accordingvalid
"+driver.getTitle()); the any
access
and to not
the verbose="1"
ofto
locale
ofthe
high particular
priority
selected >the
behavior
communication.
<test of Negative testing is more
sheet,
and
by
likely
c)All (iname="Regression1"
ifif to we
they
System.out.println("not
user. Web == should
want
windowCount)
beservices
incorrect touse fixthan
are
ittheinbreak;
APIs.
below
future >
palindrome");
the behavior
command:
release <packages>
i++; then they will change the are
"1>
of
APIs<package / Class
Positive
are not web of
testing;ReverseStringand
services. boundaries
}status } area to differed. name="test.sample" />
For
class
an
d)Web instance,
ReverseString
in
services which Hindi: testing
doesn’t “शुभ प्रभात is
have ”more
, English: likely
Sheet </packages>
}{“Good
to yieldsh
lightweight
</test>
Morning”= wb.getSheet(0);
defects. design, and needs French: // this is to
a “Bonjour”.
SOAP
get
And
When
    public
Error the
in youaccess
few conditions
call
static
Guessing:Error to
this Sheet1.
void method if the
main(String[]
guessing same
justdata ispass
args)
one
convention
</suite>
If you want to
to send
get the or receive
access to
defect
the
During
    {
of number
the logged
development
testing of again
windows
techniques and
you again,
youneed
used want the
to
to to
find
over
"1>
sheet2, ""2> the system.
Explain
you should about specify as below:
defect
switch.
define
        String
bugs in status
Say
aaakey for
input
software will5th be
for translation duplicate.
window:
= ""ALPHABET"";
application databased and
API has
-switchToNewWindow(5);
which light-weight
framework approach architecture you
use
on the
furthermore, that
reverseString(input); key in
tester’s code.
prior for
useful Specify
experience.
gadgets that Inkey
which
used(TDD,BDD,Hybrid)
Sheet
"1>Understanding
}value sh different
for = wb.getSheet(1); the
locale Softwarefile. In the
Error
have
-what guessing,
constrained
type ofget no
design specific
transmission
pattern rules used(POM are
You
example
  
applied. can
Requirements also
below, the
specification
we had sheet consideredaccess
document. by
capacity
with
sheet Pagename, like
factory)smart
you phones.
should specify as
Understanding
that
e) translationprovides
WebService Application
data filessupports for underHinditest. local
only
-what
below:
Make
will
    Publichave type
test casesof project
extension
static void and “hi”, you
test for dataEnglish: with
for the HTTP protocol.
created(Maven
user
“en” and stories
reverseString(String
API provides for French:or or test
support
Gradle)
scenarios.
“fr”.
input) {
for the HTTP/s you
"1>
--what
Sheet
Perform sh are =
test different
wb.getSheet("sheet1");
case dependencies
execution with
   //
protocol:
a) convert
BDD iswill URL
in aget String to
Request/Response
more character
readable format array by
added""
Now
scenarios.
So at the
        // we by time using the
oftoCharArray
executioncontent youin need
Headers,
every
-which
particular stake and
technology
location, so
holder on. since
you
which it
use(like is
will in
return java)
If
to the
specify
        char[]
d)Web defect
service locale
outputis supports
found, as
= test “hi”then for
input.toCharArray();
only report
Hindi, XML. it to
“en”
English,
-Different
contents
the developer unlike
folder
as a TDD
string
and structure
fix it. cases you written
used
for
  
API
in English
supports
programming and XML “fr” and
languagesforJSON. French. as
-what
Where
        for you
fault
(int used
i is
= found,for
try1.length-1; re-testsuch
reporting there.
i>=0; i--)
Ruby,
-what
String
Makeneed Java
you etc.
used
CellGetContent
sureto the to
application fetch = data
is the from free
You
b) BDDor explains create
            System.out.print(output[i]); the files different
behavior of an locale
excel
files
    } under other
sh.getCell(0,0).getContents();
defect. resourcesdata as below:
application
-how youtest for
create
System.out.println(CellGetContent); the end
the to logs user while TDD
}Send
focuses
the
on how
report
functionality
test lead.
is
-which
We canCI
"Translation.hi alsotools write you it used
as :
"implemented. Changes
"2>Selection or identification of test on functionality
can befor
"2>Polymorphism accommodated
System.out.println(sh.getCell(0,0).getC
cases automation in project:from withexisting less test
#translation
impact in BDD messages
as opposed forto hindiTDD.locale
Combination
ontents());
case documentation. of overloading and
Sucheta Ranade Vijaya Yanala
Abstract class Abstraction is a process of hiding the
1)An
Whatabstract is encapsulation class can- have Wrapping method implementation
It is Abstraction details plus the from
datathe user,It
hiding.
body (non-abstract
methods
Synchronisation or data is amethods).
asnothingsinglebut unit. onlybe
can
when Synchronization theachieved
functionality willachieved
by declaring
can be be providedclass
2)An
example-
elements abstract we
on class
can
the
throw keyword is used in a body to use
web canpage have
get() and
areinstance
set()
in sync to
variable
through the user.as
waits In
private
The main diffence between Throw other
in andwords,
Selenium. provide the
There user
public
are
and
variables.
methods
with the
throw and
anWebDriver.
exceptionmake them public.
It correcting
avoids these will
setter, have
two different
Throws the
getter
isworking
Throw information
methods
types foron what
usedthe
modifying
of webisapplication,
keyword to
NoSuchElement
3)An abstract class - by can have variable the When
object I'm
does instead of with how ittodoes it.
can
exceptions
example-
locator be usedlike to either access
timeoutexception we and viewing
synchronizations.
throw
mostly the
I came variable
exception across values
explicitly get
in any
getTitle()
constructor.
or set values for the variables By
control using
Interface: getTitle()
over An Interface
data. method can we
only can get
use
public impliciWait()
void method1()
ElementNotVisible or explicitWait() a)
method Unconditional:
TimeoutException,
the pageconstants
title It is used to specify
.getWindowhandles()
4)An abstract class can have static By
declare using getWindowHandle() and instance method
{methods.
TimeOutException timeout
Ex: void value
Demo()
NosuchElementException,
driver.getTitle();
we can handle
only.
multiple
Ex: Thread.Sleep();
windows on
1. Create
methods. a package
throw ArithmeticException(""This is and all class The
methods,
b) chief problem
but cannot with
Conditional : It is used on condition
{browser. script
implement
StaleElementaexception
corresponding
5)You can extends to each
one page
abstract class. ElementNotVisibleException,
maintenance
default behavior is that
and if 10
all different
methods are
.submit()
Arithmetic- can
ArrayIndexOutOfBound be done using any
exception.""); click()
along
throw and
with
new submit()
timeout
IOException();
StaleElementReferenceException, both
value.are Ex:used Implicit to
2. Create
Interface
Ielement a package
on the and all test
form with Java Library Iclick To
scriptswork
implicitly
haveButton on
are child
using
abstract.
inWait Web window
theAnpagesame we
interface pagecan hasusingall
} have used
NoSuchFrame Selenium Wait, used
Explicit Selenium
}driver.switchTo().window(childWindow)
NoAlertPresentException and libraries
Fluent and for
Wait. Java.
classes
Interface
.click()
extensively. - findhave the
It only
submit
works
System.setproperty(""webdriver.chrom
throws is used to declare an abstract
as button
below- methods.
and element,
public
This
Implicit
Set
throws one
can
aperform
system with
members
can
be
Wait:
keyword use
done
It any
is
propertya change
and
.click()
using
canglobalno
be methodin
Maven.
wait
used that to
Add click
i.e.,when
to the
NoSuchWindow
3.
An Create
interface a.click()
package
cannot for
have resources
instance to NoSuchWindowException
and
element,
implementation. you tasks
need on child
to wait,
change windowall 10 for
then
1. use
Selenium
e.driver"",""path
exception
A: @BeforeSuite,
NoSuchAlert code toto submit
written
chrome
@BeforeTest, inthe
exeJavaform
with \\""); on any
selenium-java
we define button the
"webdriver.chrome.driver"
declare
A: multiple
@BeforeSuite:
NosuchElementException(): dependency
implicit
exceptions,
The annotated it
to intheproject
will set
path
separated
This method
add
(Selenium
Webdriver
example- .properties
variables. Client
driver file, base
Library)is
= new class,
first
ChromeDriver();utilities scripts.
In short,
pom.xml
the
of
by one
life run
your
comma. This
of Interface
can the is
use time
WebDriver
ChromeDriver.exe
Whichever willconsuming
.submit() have objectmethods
method
file
exception and and for
@BeforeClass
A:
file @beforesuite:
etc
Interface cannot @TestCode
have @BeforeMethod
isconstructor.
run only will
A:
error
but be
exception
@BeforeSuite:
no prone.
body. before
occurs Theall 3tests
in annotated in this
difference suite
method
converted
driver.get(""url
public
@AfterMethod void to JSON
to beformat
method()throws
@AfterClass opened in
@AfterTest only
instance.
instantiate
occurs,
have submit form
a ChromeDriver
if matched after click
with thein on
class. button.
declared
before
Advantages:
Interface thecannot
suite have static methods. will A
If berun.
scenarios
better
button run before
approach
is inside all
to tests
<form> script tag this
or suite
button
2. goes
chrome"");
IOException{
@AfterSuite to browser
@Parameters driver server
@DataProvider Syntax:
System.setProperty("webdriver.chrom
ones,
@AfterSuite:is thrown The automatically
annotated methodthen.
@aftersuite:
1.
You Structured
(example can implement Code
Oops concepts
ChromeDriver)
is
System.out.println(driver.getTitle());
code
run only after suite
multiple-interfaces. maintenance a)
have
is
If there
EX:outside
run. are
<form>
any
is throws timing
totag,
create
driver.manage().timeouts().implicitlyWait
e.driver","C:\\chromedriver.exe");
voidafterDemo() the
issuesseparatewill
aclick()
2. Object Oriented, Abstraction, be
loadingrun
@AfterSuite: a page all
The tests
or in
application
annotated this suite have
method will
} Clear
Testing
3. understanding
using
Driver(example different
Chrome of Driver)
sets Test Classes
of data to classmethod
(10,
run.
This
be
filewillwhich work.
TimeUnit.SECONDS);
WebDriver
ArithmeticException,
runcan be
after driver
handled
all
would
tests = new by
in
find web
using
this suite have
and
break
interacts Encapsulation,
base
the with classes
code. andInheritance,
example-
browser(Chrome) Logic boundary elements
Submit()
Explicit
ChromeDriver(); , fillwork
will
Wait:
NullPointerException To them or verify
if submit
define a wait them.
buttonstatementisThis
3. Easily reusable Polymorphism and can @BeforeTest:
conditional
run. waitThe onannotated
element method
values
4. It
Hybrid gives response
framework usingback POMtobe driver
approach. and inside class
will
b) be
the
can
{forIfcertain<form>
run
be
locator
reused
tag
condition
before and
any
identified
inelement
to all satisfied
be
test
the scripts
ismethod
incorrect
maintained
Iback
haveinused easily
JSON format using
until
// that
type="submit"
theelement
Statements element.
specified In
timeout future if there is
period.
Yes belonging
c) If
change the in to
the theweb classes
is in frame:
element insideIfwe
, tried the
needto
5. Then it comes
Selenium+Java+TestNG+TDD+DDD to Eclipse…that is, Syntax:
}
<test> WebDriverWait wait = new
It is optimized model of POM. It used
selenium code in Java to maketag
locate element is run.in just 1 class file and
change
WebDriverWait(driver, 10);using
@FindBy
1. createannotation
class for each to find of the 7 pages @AfterTest: This
not can be
10 different The
achieved annotated
scripts. by method will
Webelements wait.until(ExpectedConditions.visibilityO
be run after all
driver.SwitchTo().frame("XX"); the test methods
and
No put them inside a package This approach is called Page Object
fElementLocated(By.id("Name")));
belonging to the classes inside the
2. create
WebDriver another package for all test Model(POM)
Fluent
<test> Wait:
tag have To definerun. tothe maximum
cases
List related to them
Synchronisation is nothing but when Advantages: a)Easy understand and
amount
@BeforeGroups: of time toThewait list forof a condition,
groups that
3.
Set create
elements package
on the for base class
web page are in sync cleaner code
May be using .switchTo.Alert(); as well as the frequency methodwith which to
and
Map
with .properties
the WebDriver. file It avoids and this
b) Easyconfiguration
of script maintenance will run
then
Inbuild click();
Interfaces in TestNG. They are check for
before. This the condition.
method is guaranteed to
4. create package
ITestListener
exceptions like for Data
timeoutexception we c) we can use the same object
used to listen
driver.switchTo.Alert(); to every event that Syntax:
run Wait<WebDriver>
shortlyfor before the first wait =
test withnew
5.
use package
impliciWait() is created orcode. for reports
explicitWait() repository a different purpose
occur in Selenium We use FluentWait<WebDriver>(driver)
method that belongs
DateFormat
methods. dateFormat = new different
//Waitistools.
for theFor example, of
condition
to any wethesecan
annotation @Listeners.
SimpleDateFormat(""MM/dd/yyyy
driver.getDatabase(); Most widely groups invoked.
driver.manage().timeouts().implicityWait( integrate POM
.withTimeout(20, with TestNG/JUnit for
used Listener
HH:mm:ss"");
String url = ""jdbc: is ITestListene
odbc: - we can @AfterGroups: The list of groups that
NoSuchElement
20, TimeUnit.SECONDS); functional
TimeUnit.SECONDS) testing
use
Date methods
dateclass
makeConnection""; like
= newwill onTestSuccess()
Date(); , this configuration method will run
ElementNotVisible
Abstract
onTestFailure(), get executed first if d)
onTestSkipped(),
Methods get more
//
after. which
This to
methodcheck isforrealistic
the
guaranteed condition to run
String
Connection date1=
TimeOutException
the class con
extendsdateFormat.format(date);
= the abstract class. names which can be easily mapped
The primitive
onStart(), data
onFinish() types - boolean, with
shortly interval
after of 3 seconds.
syso(date1);
DriverManager.driver.getDatabase(url,""
StaleElementaexception
char, byte,isshort,
HashMap a class int,inlong, float and
Collections with the operation happening in UI.that
.pollingEvery(3,
the last test method
userid"",""pwd""); belongs to any of these groups is
ArrayIndexOutOfBound
double
framework. - Inbuilt.
It has unique combination TimeUnit.SECONDS)
Jenkins is a continuous integration invoked.
NoSuchFrame //Which will
Non-primitive
of Keys
tool.
In a andproject
Jenkins
maven data
values.
is types-
Yes, webuilts
centralized
POM.xml can store
across the @BeforeClass: Theignore
annotated the method
NoSuchWindow
String,Classes,
objects in hash Interfaces,
map. and Arrays- NoSuchElementException
teams,
environment
testng.xml
NoSuchAlert geographical
is oftheour heart locations
proj ofbyexecuting and has will be run before the first test method
user
We
its
POM
can
own defined
downloading
testng - we
retrieve
environment.
test use
except them
dependencies
cases.
.by
string
We can drive- our
by using and in the .ignoring(NoSuchElementExcepti
current class is invoked.
map1.keySet();
plugins. on.class);
@AfterClass: The annotated method will
test
PFM -cases,
we use test suites through them
.findBy
map1.values();
on a single or different browser. We be run after all the test methods in the
we can use syso(map1)
can also run them in parellel. to retrive all current class have been run.
elements of the hash map. @BeforeMethod: The annotated method
will be run before each test method.
@AfterMethod: The annotated method
will be run after each test method.

u need to click based on user input


further
OOPS it wil take
concept u to
with diff window
programs and
- have
then u need
mentioned to
abovehandle d alert)
New-Assigned-Open-Fix-Resolved-
Retest-Close
Or Retest-Open
Or Open-Not a Bug/deffered
A: @BeforeSuite, @BeforeTest,
@BeforeClass @Test @BeforeMethod
@AfterMethod
Intro @AfterClass @AfterTest
@AfterSuite
1. If we need to run tests@DataProvider
@Parameters in parellel
2. If we need
((JavascriptExecutor) data sheet for testing
3.
NotIf answered
we need to focus on acceptance
webDriver).executeScript(""arguments[
criteria
Depending for each
0].scrollIntoView();"",
on the scenario for
element1);
quality bugs checking
found,
the behaviour
initiative to improveof the application
overall quality of
Test
4. Bestplan document
tools canistake
that initiativesa document
care of our
the
which
if project,
they contains extra
have the the same plan taken,
for allthey
priority, the will
requirements
client appreciation, timely deliveries
testing
be executedactivities to be
alphabetically. done to deliver
a quality
Roles andproduct.
responsibilities
Test Strategy is a high-level document
salesforce
and usuallyworkbench, developed MySQL by a project
Postman,
manager. SF workbench Rest Explorer,
Rest
JIRA, Assured
Quality Center, automation Trello
Given the ans above
Using Try catch block, using Listeners,
using
Xpath Throws
gives the declaration
XML path of an element
inside
Explainthe eachpage waits DOM structure. There
are two types- Relative and Absolute.
toLowerCase();
Absolute xpath- traverses from parent
node to the exact tag. We generally
Using
use /. diff locators-ID, Name, CSS,
Xpath,
given
Relative LinkText,
the ClassName,
ans intraverse
xpath- above questions. TagName,
directly to the
PartialLinkText
We need to test
tag. We generally use // following scenario.
User logs into user
Diff permutato account andof
and combination
checks
username and
Functional- savingsnew account
password.
functions balance.
introduced How
do
in you
Nothe system automate this test?
driver.getURL(""URL"");
Regression- main functionalities of the
Salesforce architecture
driver.findElement(By. - Cloud based
system
app,
Stated used
backend,
in previous over and
integration over
questions. without
with external
(""usernamelocator"")).sendKeys();
any major changes.
tools like jenkins,
driver.findElement(By. git, APIs, Eclipse
We define in Testng.xml file-
(""passwordlocator"")).sendKeys();
<suite
Hybrid.name=""TestSuite""
driver.findElement(By.
explained in previous thread-
count=""3"" parallel=""Test1""
(""submitbuttonlocator"")).click();
questions.
Sprint Backlog, Sprint Planning, > DSM,
driver.findElement(By.
Sprint
statedreview,
in previous Sprint retrospective
questions
(""identificationLocator"")).click();
Multiple methods with the same name,
implicitwait
having
Constructor differentis the arguments
method in the the
inside
navigate to the account, assertTrue
same
class class
that has
Forexpected
running same name
Selenium with as that of
Firefox
the value.
1.
the Argument
class.
browser. It count
gets should
invoked
wait time out for webdriver till the be
when different
object
2.
of Or
that
specifiedargument
class is data
created.
time. It can type should
beClassB();
overridden be
ClassA
different variable1 = new
Interface
instead consists
of 10 caningve
variable1.methodb1(); of only abstract
15 seconds. It is
have
methods. mentioned
It can be previous
implemented questions.
by
global
there wait
are be multiple suites. will give
Method
other Overloading
classes.
driver().manage().timeouts().implicitlyWa
results
All
Same bugs for
name all
ofsuits.
closed, no major
methods inbugs found,
different
it(10, TimeUnit.SECONDS);
test
classes coverage
having is 100%
same
yes. we can . mentioned in previous data type, same
arguments
questions. too
Explicit wait is for a specific element on
creating
the
TestNG object of one class and
pageListeners
calling
Dynamic the function
wait - create willobject
override of the
method
webdriverwait: of another class
Give tasks that will help her learn the
WebDrriverWait(driver,
applications better but nothing on high
5).until(ExpectedConditions.presenceo
priority tasks. utilize by giving tasks
public void mthod1(){
fElementLocated(By.id())""
that
for(int i=0;i<2;i++)reaching goals like
will help in
updating
{ various statuses, updating
excels, reporting,
System.out.println(""1234""); tracking etc
}
fetch the dynamic number generated
in a variable and print variable
SetInterface->HashSet example,
TreeSet and LinkedHashSet
Xpath - parent child traverse
Does not accept
Feature file having Duplicate
Scenariovalues , given ,
No guarantee
when then
adding that
statements
a variable elements
or using writen. r stored in
Examples
sequential
Corresponding
and order
Scenario Outlinecode is present in step
testng.xml
definition
Inner file and
join-istable we has
run thejoin runner file
HashMap
using JUnit. usedthat
for Key and within
Value set
itself.
explained
HashMap Gives the
isinnot resuktquestions.
previous from the same
synchronized-> if
table.
multiple thread are running this
Outer
HashMap join-
Different Givesofresult
Waitsfrom
simultaneosly,
types it is the
not left
available in
table.
synchronized
Webdriver- Static, impliit, explicit, fuent
Different types of Navigation
HashMap
Commands
How allows
waitsto handle null values
frame -
HashMap values are
-driver.switchTo.Frame();
.navigate().back , iterated .equals(),
.forward(), using
How to handle Alerts -
iterator
refresh(),-> iterator
notify(), interface
notifyAll(), to(String
driver.switchTo.Alerts();
findElement- returns first element
arg0), toString(), to(URL
encountered on the webpage arg0)
findElements-
I see myself leadingreturnsan list of all
automation
webelements present on
team. I have grown as an automation that page
QA in last 6 months learning Selenium,
Java, TestNG, Cucumber,
RestAssured,RestAPI. I want to learn
RPA, Pyhton and Cypress next.

WebElement
htmltable=driver.findElement(By.xpath("
//*[@id='main']/table[1]/tbody"));
About yourself.
List<WebElement>
About project.
rows=htmltable.findElements(By.tagNa
Source
me("tr"));code management tool.-
>GitHub
Pull requests tab, Resolve cnflicts,
decide
memory whos changes,
is allocated
for(int rnum=0;rnum<rows.size();rnum+ onlydelete
oncemarkers,
for
mark
static
use
+) private as resolved,
variable commit
or method
or static merge
. It modifier
or final is a class to
variable
avoid or method.
overridding
{it is a framrwork of classes and
final
interfaces
used ->
towhen
List<WebElement> applied
to make
group certaindata to a variableand
manipulation
scenarios or
method or class, its
columns=rows.get(rnum).findElements(
easy
run them .properties
together asfile, value
tags. cannot
@tags be
by
changed.using It will be constant using
By.tagName("th"));
@dataProvider or excel using APache
Hooks are like annotations. @Before,
System.out.println("Number
POI of
@After,
If @BeforeStep , @AfterStep
multiple scenarios have same GIVEN
columns:"+columns.size());
statements forannotation
@DataProvider a feature, they can be
in TestNG.
added
You
Using can unde
add Background
multiple tests
for(int priority near ever @Test method in
testngSuite
starting fromand 0 toexecute.
later.test
cnum=0;cnum<columns.size();cnum++)
<suite name=""Parallel Under
suite""all
0 being
tests
highest.and
{actions the classes
parallel=""methods"" in xml
class for mouse names
tag we should
hover<suite
thread- use be
actions.
same inorder
name=""suite1""> to execute
System.out.println(columns.get(cnum).
count=""2"">
methods-moveToElement, same script
doubleClick,
Build->
multiple sequence
number ofthe timesnumber of
<test
getText()); name=""test""
clickAndHold,Release,
actions. perform preserve-
DragAndDrop.
is webelement
used to execute
findElement->
order=""true""> first
}one action
matching
collections the locator, retunr
framework-> type is
arraylist, list,
}
webelement.
set, hashmap,
explicit wait FindElements
hashtable,
with try catch map ->
blocklist of all
Step 1: First get the entire HTML table
webelements
Attributes of cssmatching the locator.
and store this in aselector.id, name,
variable ‘htmltable’
returns
width: the list of webelements.
150px;
of typeCount
class web element.
{ display: block;
margin-bottom:
Step 2: Get
public all the
static 10px;
void rows with tagargs[])
main(String name
background-color: yellow;
‘tr’{ and store all the elements in a list
of web elements.
String str = Now all the elements
with tag ‘tr’ are stored in ‘rows’ list.
""#GeeKs01fOr@gEEks07"";
"1. public WebDriver initializeDriver()
throws
2. RobotIOException robot = new Robot();
{ implement the Robot class, we
To
//read
Fastestdata
require alocator
few properties is ID. file
methods that help in
prop
easy = new
execution Properties();
of test scripts. We
::FileInputStream represents thefls sibling
= newnode to the
have:
current node.
poi-ooxml
FileInputStream(""D:\\Salesforce\\
KeyPress() andExample poi dependency of
//input[@title='name']/sibling::a[4].a[4]
Apache
1.
Workspace_automation\\ Import POI is used for importing is
robot.keyPress(keyEvent.VK_UP);
the sibling node of input
predefined
By
SyneosHealthCare\\src\\main\\java\\
KeyRelease() using Extend classes we in use java the parent
2.
classes
resources\\data.properties"");
""We Extend
robot.keyRelease(keyEvent.VK_CAPS_L canand is
addtheirused for
tags-properties but inheriting parent
using
class
import
<include
OCK);
""We can add Implicit or explicit waits properties
we can just
name=""""TestCase1""""and import varirables""
all jars /> and
classes
//load
<exclude
MouseMove()
as follows: without
data.properties having to mention
name=""""TestCase2"""" />""
their
prop.load(fls);
robot.mouseMove(coordinates.get.X(),c
1. full
Implicit names
Wait
"1. public class ZerosToEndInArray {
oordinates.get.Y());
driver.manage().timeouts().implicitlyWait
2.
//create browser variable
MousePress()
(10,
// TimeUnit.SECONDS);
Function toPrintDuplicatestringChars
move all zeros present
public
3.
String public class class
browserName =
robot.mousePress(InputEvent.BUTTON1
2.
in Explicit
the array wait: to the end
{prop.getProperty(""browser"");
ReverseStringPreserveSpace {
_MASK);
WebDriverWait
public static void wait = new
reorder(int[] A)input) {
static
String
Yes
MouseRelease()
WebDriverWait(driver,10); void
weURLname reverseString(String
can overload = but we have to
{
public static voidstatic main(String[] args) {
prop.getProperty(""URL"");
do
robot.mouseRelease(InputEvent.BUTTO
Final it from
wait.until(ExpectedConditions.visibilityOclass public
cannot be void
changed. Also, it
//
//VERY
char[] k stores IMPORTANT
inputArray index of next
INTERVIEW available
= input.toCharArray(); QUESTION
main(Strings[]
N3_DOWN_MASK);"
cannot
fElementLocated(By.(locator)));""
Test
position Life be Cycle arg)
inherited. consists for the
//
char[]
//generalize printresult all characters = new
the code of
fora eachSTRING that
following
Static
int
are
char[inputArray.length]; k = dropdown
0;
duplicate stages and
can processes:
be handles using
browser
"No
Requirements phase
Select we class and
cannot. It is dynamic
a drawback dropdown of
if(browserName.equals(""chrome""))
Planning Phase
using
//
Selenium
String
In
for do
V-Model
(int Actions
for i =each
str =""How
0; approachclass
i < element many
inputArray.length; ofrepeated
SDLC , Testing i++) {
{Analysis phase
for
letters
and
if
ID, (int i:
(inputArray[i]
Name, are
DevelopmentA) CSS, there?""; == ' happen
')
Xpath, driver { LinkText, in parallel.
//execute in chrome
{Design
Development
result[i]
ClassName,
Phase
= ' '; TagName, Life Cycle hasChrome
PartialLinkText
System.out.println(""Inside
Implementation Phase
// if current
}//convert
Verification element
string
process. to charis non-zero,
array put
Browser"");
Given
Execution
the - Generally
element Phaseat we givenLife
Test thecyclepre
char[]
has arr
Validation
}System.setProperty(""webdriver.chrom = str.toCharArray();
process.
requisites
We
Conclusion
// next canfree combine inposition
this statement
Phase common in the array statements
e.driver"",""D://Salesforce//Selenium
When
from -
GIVEN Generally in different we write actionsAND in
Closure
Yes
if
//create
int
files
this
(i j!==you
0)
and
Phase
can give
{ empty
result.length
statement exes//Browser HashMap - 1; usernameand
Login scenarios
move
password.
A[k++]
We
HashMap<Character, can them
= i;useItpretty under
will work Background
format
Integer> andcharMap HTML or
exe//chromedriver.exe"");
}public
JSON
=driver
for new report
(int=HashMap<Character,
static
i new <void
= 0; i ChromeDriver(); main(String[]
inputArray.length; Integer>();
args) i++) {
}7
{if (inputArray[i]
checkboxes !=
can ' ') {
be found using
driver.manage().window().maximize();
//
if
7.(result[j]
findElements()
System.out.println(""I String
It returns Palindrome
==an ' ') Empty
{ have
list maximized
//
for
j--;
Use
the move
(char
.size()
window"");allkey1 0's
to getto
: arr)the
the end
count of and the array
store
Jenkins is aindices)continuos integration tool
{(remaining
String
}}Jenkins
in a str
variable = ""madam"";
1.BDD
for (int has
framework its own is environment
created using - TCs
//considers
int
result[j]
use
might len =i ==str.length();
variable-1
run
k; i only
< A.length;
inputArray[i];
on and
configured
alphabets,
click() i++) to{ click
versions
excludes the
of
Cuucmber.
A[i]
special
//always =but0; characters
initialize or spaces
reverse stringfail
j--;
last
else
testng butone on checkbox
if(browserName.equals(""firefox""))
our local it in
might
2.
}variable
1. ALl
Selenium scanerios code are written
written in feature
Java
}if
{ using
bcoz
(Character.isAlphabetic(key1)){
we have latest jars added to our
file
}1.
(Selenium
String Approach reverse Feature,
Clientfor=""""; Scenario,
Library)is first
designing Scenario
example
}eclipse
System.setProperty(""webdriver.gecko.
Outline,
converted Given,
if to When,
JSON Then , And,
key""But
//checks
Page
System.out.println(input
With
Jenkins
statements
Object
TestNG
driver"",""D://Salesforce//Selenium
is
MapModel
we
centralized canformat
contains use across
the
+Assertions,
"" --> teams, +files
//
//loop Move
goes
if(charMap.containsKey(key1))
2. What
String.valueOf(result));
Listeners,
public
and in all
to
kind zeros
browser
reverse of
TestNG.xml
class StringReverseWords
exes//Browser present
framework
using driver
for in
chatAt- the
server
BDD,
parallel array
TDD,
{ is
geographical
3. Corresponding locations Step
}{to
(example
DDD,
for
execution, the
(int
exe//geckodriver.exe"");
BLock
end
Hybrid
i=len-1;
having
ChromeDriver)
useusing i>=0;
different
exception i--) Definition
eannotations
will get
file
create
public where code isvalue
written
3.
{//if
driver
executed
4.
yes,
TestNG+Selenium+Java
public Runner =static
Driver(example increase
static
new first
file
void
void
is used
main(String[]
Chrome
the
main(String[]
FirefoxDriver(); for adding
by args)
Driver) 1
args) { 1
{3.
interacts
charMap.put(key1,
Packages
reverse=reverse+str.charAt(i);
public static
//Reverse with
the and browser(Chrome)
void
words classes
main(String[]
of the used string invaious
args) page{
Cucumber
hello.
int[] A =Strings
{ 6,responseOptions
0, 8,are 3,like
2, immutable. 0, 4,glue,
0, feature,
4. It gives
charMap.get(key1)+1);
}object,
}reverseString(""Learning base class back isto1fun!"");
};
driver and
reporting
back instrJSON format, etc
}else{
4.
}String Utilities = ""I format
am blessed and I am
reorder(A);
5.
//else
TimeUnit
//check
}" Then
Reporting
grateful""; putitifiscomes
value
reverse tois1
as
an Enum(constant Eclipse…that
equal to original is,
variable
else
System.out.println(Arrays.toString(A));
selenium
charMap.put(key1,1);
declared
6.
string
Run POM.xml code
final)
time polymorphism and for in Java
Implicit- Wait.
TestNG.xml Method It can
if(browserName.equals(""InternetExplor
}Fluent
be
//pattern TimeUnit.DAYS,
if(str.equals(reverse))
Overriding
er"")) wait class is used is usedTimeUnit.HOURS,
to poll for for regulara
{}Test
TimeUnit.SECONDS,
Example
WebElement
expression
{ Next ifGeneration
we infor use
this n case TimeUnit.MINUTES,
super
seconds- akeyword
TestNGspace and ignore for a
}exception
TimeUnit.MICROSECONDS,
System.out.println(""String
method,
Pattern pthe =till method
that time.
Pattern.compile(""\\s""); of parent is a class to
System.setProperty(""webdriver.chrom
Java Testing Framework unit testing
}System.out.println(charMap);
TimeUnit.MILLISECONDS
palindrome"");
will be
Wait<WebDriver> called.
e.driver"",""D://Salesforce//Selenium
integration testing wait = new
}FluentWait<WebDriver>(driver)
//creating
files
We can andalso temp usestring
exes//Browser for functionalsplit till atesting space
}using
else
.withTimeout(30,
String temp[]
exe//IEDriverServer.exe"");
Selenium = TimeUnit.SECONDS)
p.split(str);
{Advantages:
.pollingEvery(5,
driver = new InternetExplorerDriver(); TimeUnit.SECONDS)
System.out.println(""String is not a
Have answered in previous sets
Write Test cases covering maximum
functionality
Compatibility with Testing +ve,is-ve , boundary
a type of
1. Switching
conditions,
Software
The software to
etc
testing new tab
to check whether
development in the same is
process
browser
your
divided
Project software will
into
in beissame
different
detail, capable
which as
phases switching
of running
platform, in thewhich toon
new
different
Waterfall
domain, window. hardware,
model
what tools. while operating
Roles Agileandsystems,
NA
we can handle it using
applications,
methodology
responsibilities. network
segregates environments
the project or
SELECT
getWindowHandles()
Mobile department,
devices. SUM(Salary)
and using AS
Set
development
""Total Salary"" lifecycle into sprints
Iterator
Compatibility
Waterfall . Use
is a it.next();
Testing
structured twice
is to get
a software
type of Non- hold
FROM
of tab
functional testingEmployees
window.
development
WHERE department methodology, = ""QA"" and often
times can be quite rigid, whereas the
Mentioned
Agile methodology the ans in is previous
known forsets its
flexibility
JIRA is a test management tool- we
According
can
Yes, go
on through to theall
Bugzilla, Waterfall
HP test HPmodel,
ALM.processes ALM is in
software
JIRA
another
Mentioned from development
test
defectthe ans case managementcreationis
in previous to betill
tool defect
sets
completed
reporting.
where as
all releases one single
, test project,
processes
Mentioned the ans in previous sets
which
Test
can be ismanaged
cases then can dividedbe created
along intowithdifferent
astest Issues
case
public
phases,
in JIRA class with RevNumber
each tracking. phase{ appearing
writing and defect
5th
only
Defect CHild
once can window
during
be created can
the SDLC. be
asfound However,
a BUG with
in JIRA
public
the
the ame
Polymorphism Agile static
logic void
methodologyameans 3rd main(String[]
child many
canwindow args)
forms.
be from {
Two
//
previous
tyeps-
consideredReverse
Webservices runtime- a number
quetsions.
asare a methodoverriding,
collection
sub set ofofAPI. many
Use
compile
different
Webserrvices
1. .getWIndowHandles()
Create time-
projects,
a test method
can from which
beaonly for
overloading
are
request HTTP Set and
nothing
Scanner
Iterate
but sc
through = new them Scanner(System.in);
tobe switchTo 5th
protocols
2.
<?xml Inthethe iterations
but
request
version=""1.0"" APIs ofcan
editor, the different
select
encoding=""UTF- Add This
window
phases using
focusing
HTTP/HTTPS/Request/Response,
Request tothe it.next();
TestCase. on improving the
etc.
8""?>
Mentioned
System.out.println(""Enter ans in previous your sets"
overall
Webservices
3.
<!DOCTYPE Adding software
a support
request
suite quality
SYSTEM to only
a with
test XML.
case APIwill
number:"");
feedbacks
open the Create TestSuite dialogteam
support XML from and
""http://testng.org/testng-1.0.dtd""> users
JSON. or the QA box.
If
Enter
<suite you awant name to for
name=""Suite"" useyour theparallel=""none"">
Waterfall
test suite model
and
int
for number
software = development,
sc.nextInt(); then you
click
<test
int OK.
name=""Test"">
originalnumber = number;
have
4,.In
<classes> to be
the CreateclearTestCase with all thedialog, enter
int
development reverse=0; requirements
a
<class name
while(number>0) for your
name=""SyneosApp""/> test case and click OK.
beforehand
5.Next,
<class the as
dialog therebox isAddno scope ofto
Request
{changing the requirements once the
TestCase will
name=""com.qa.pageTests.HomePageT
int lastDigit appear. The dialog has
=number%10;
project
different
est""/> development
options for SOAP starts. and The RESTAgile
"API
reverse
methodology, testing is important
= (reverse*10)+lastDigit;
on the because
other hand, itis
services.
</classes>
checks
number if-
= Click
number/10; OK.
quite
6.SoapUI
</test> flexible,
<!--willTest and-->
now allows forachanges
generate test suite-
Serialization
}"1.
to String
be made S1= inlayer
""ALPHABET"";
the is working
project properly
development
and
</suite>
if test
you are case
serializing
System.out.println(""Reversed for you while
jsons the
toinitial
objects
number
String
requirements
request rev= will """";
be even added after as the
a test reques
APIs
this
is is- GET,
an
: ""+reverse); POST,
important PUT, stepDELETE,to PATCH
ensure no
for(int
planning
"1. i= S1.length-1;
Double-click has been on i>=0;
completed
your i --)
WSDL
{API
All the
interface
breakageproject
in thedevelopment Navigator view phases
on the
if(originalnumber==reverse)
such rev = rev
as + S1.charAt(i);
designing, development,
left.
"38_S
Security layer isiscompleted
sealed - you would
syso(""Number
}testing, etc. are a palindrome""); once in the
1.
like
else Mentioned
to
Syso(rev); ensure inthat previous
your sets
API endpoints
Waterfall
Then
2. Callingselect model
parent the second while
class as part
tab
methods of
called the
using
require
syso(""Not
"39_B
2.
Agile First full
we
methodology, aauthentication
palindrome"");
would fetchthey the and
json
follow that
an
Service Endpoints. Select the desired
}super,
they
1. Give are also
your using
permitting
daily diff methods
access with
to certain
response
iterative
endpoint by
development
(or using
add itresponsibility
GET
first method.
approach.
via thediff asAsaa
We
""+""-
}same
user
manual
will
1. Test
result,
name
design
planning,
in
types/roles/privileges
tranverse tester a
through class
techniques
development,
having
theThere
jsonbe
can using
symbol)
arguments andorclick data Assign.
types you
2.
listGive
static or
prototyping
select oryour
map
All and
dynamic.daily
and
Requests get responsibility
the
Static
other and desired
will
software be as an
value.
like
3. Oops
Validation concepts:
istester
covering all
automation
Then
code
developmentwe
reviews,
TestRequests."
1. Abstraction
will capture
/walkthrough,
phases abstract canrequirements
the value etc.in -amore
appear
classes
-Dynamic
3.simulate
Challenges
variable
than once and
willinvalid
during can
pass
be like requests
be
it
the in related
another
boundary
entire SDLCto check
to request
value
created
that no
framework
using POST." for
illegal inheritance
input
designing, it sent to
maintenance, your
condition,
2. Interface etc" - WebDriver
business
waits, logic
optimization, etc interface, list,
set, etc are used
4. @dataProvider annotation used in
3. Inheritance-
Versioning
testNG for data base
drivenclass
is maintained test isyouinherited
- ifcases. have It
by
API child
versions, classes you
might be a two dimensional object need to make sure
4. Polymorphism-
that
array different
for test versions cases Methodthat overloading
of need
the API toarebe
and overriding
still supported
repeated with is used
and thatdata
different the code
Release
5. Encapsulation planning-> Sprint qaaccess
-backwards
using
changes
5. Suite tag
execution->
arewe still
sprint give suite diff
hardening name, -> post
modifiers
compatible"
parallel= tests/ classes/ methods,
sprint
4. Explainedrelease activities"
in previous sets to be run
thread = count of test cases
5. Give
in parallel" roles and responsibilities as an
I think, if the new functionality has
bugs that are in main regression flow,
those should be prioritized first .
Otherwise we can keep the regression
bugs having old functionality on
priority."

We can use .getOptions() function in


Select class to get all options in the
dropdown
1. Any tab list
can be considered as
another new window in Selenium and
can be automated
using .getWindowHandles(). Use
Iterator and it.next() thrice to navigate
to next tab and get control of that
window.
2. We can use Robot Framework also
initial
for new setup, unavailability of source
tab automation"
code, resources, validating
parameters, pass values to different
end points,
"1. Agile complex
requires json structures
Experience, skilled
people, requires planning and
productivity. Also Agile is time bound.
Budget can go more than planned.
2. Spillover
3. BDD is Behaviour Driven
Development. It means human-
readable descriptions of software user
requirements as the basis for software
tests. It is written in Gherkins.
4. Bug Summary, Description, Steps,
Expected and Actual Result, Priority,
Severity, Environment
5. BA
6. Team Lead activity of planning and
assignment work, Test execution,
working on JIRA tickets, issue
Rupa Basuthkar
Implicit wait, Explicit wait and Fluent wait
Navigate.back, Navigate. Refresh, Navigate. (to
String).,SwitchTo().
driver. Navigate. (to Url), Navigate.
frame(int), driver. Forward
switchTo().
frame(toString), driver. switch To.
driver.switchTo().Alert.dismiss, driver. Switch To.
frame(webelement)
Alert.
By accept,
using driver.
the find switchTo.
Element Alert.
we get theget Text,
first
driver. switchTo. sendKeys()
matching element from multiple elements.By using
the findElements we will get the list of matching
elements"
Gaurav Makwana
1. Explicit wait, implicit wait, fluennt wait
2. driver.manage.navigate.forward/back/to URL, to
string
3. driver.switchTo().frame
4. driver.switchTo().alert().accept/dismiss
5. find element locates 1 element from the web
page where as find elements locates all objects
from the web page having a same locator."
Shabana Khan
1.
public class MovingZerosToEnd {

public static void main(String[] args)


{
public class MovingZerosToEnd {
public class DuplicateCharacterCount {
publicpublic
class static void main(String[] args)
ReverseStringPreservingSpaces {
{
int[] public
arr=
public {2,5,0,4,2,7,0,0,1,9,4,0,0,10};
static
staticvoid voidmain(String[]
main(String[]args)
args){ {
int[] r=moveZeros(arr);
String s=""Shabana naam to suna hoga"";
System.out.println(Arrays.toString(r));
String result=reverse(s);
}
countDuplicates(""ProgrammingLanguage"");
System.out.println(result);
public static int[] moveZeros(int[] a)
{
} int index=0;
for(int
public statici=0;i<a.length;i++)
String reverse(String s)
}{ {
intif(a[i]!=0)
l=0;
public {
static void countDuplicates(String str)
int h=s.length()-1;
{ while(l<h) a[index++]=a[i];
{ } charArray = str.toCharArray();
char[]
} if(s.charAt(l)==' ')
while(index<a.length)
Map<Character,Integer>
{ hash_map = new
HashMap<>();{ l++;
for(inta[index++]=0;
} i=0;i<charArray.length;i++)
{} else if(s.charAt(h)==' ')
return { a;
hash_map.put(charArray[i],
}
(hash_map.getOrDefault(charArray[i],
h--; 0))+1);
} }
} else
{
for(Map.Entry<Character,
s=swap(s,l,h); Integer>
entry:hash_map.entrySet()) l++;
{ h--;
if(entry.getValue()>1)
}
} {
returnSystem.out.println(entry.getKey()
s;
+"" --> } ""+entry.getValue());
private static String swap(String s, int l, int h)
{ }
} char[] ch=s.toCharArray();
char c=ch[l];
ch[l]=ch[h];
} ch[h]=c;
return s=String.valueOf(ch);

}
"1.Finding Middle Node:
public static void findMiddleNode(ListNode head)
{
ListNode slowpointer=head;
ListNode fastpointer=head;
while(fastpointer!=null && fastpointer.next!=null)
{
slowpointer=slowpointer.next;
fastpointer=fastpointer.next.next;
}
System.out.println(slowpointer.value);
}
bhargavi varala
"String S1 = new String(""HELLO"");
//Convert to LowerCase
System.out.println(S1.toLowerCase());
"

public class basic{


public void method() {
for (int i = 0; i < 2; i++) {
System.out.println("1234");
driver.findElement(By.name(“address1”)).sendKeys(“Te
st Address”);

driver.findElement(By.name(“city”)).sendKeys(“Test
City”);

Select select = new


Select(driver.findElement(By.name(“country”)));

select.selectByVisibleText(“ANGOLA”);

driver.findElement(By.name(“email”)).sendKeys(“user1@
test.com”);

driver.findElement(By.name(“password”)).sendKeys(“us
er1”);

driver.findElement(By.name(“confirmPassword”)).sendK
eys(“user1”);

driver.findElement(By.name(“register”)).click();

driver.close();
"polymorphism
driver.quit(); is nothing but one single task can
perform in different ways
Polymorphism
} is derived from 2 Greek words: poly and
morphs. The word ""poly"" means many and ""morphs""
means forms.
"@BeforeSuite:
There are two types A method which is marked
of polymorphism with this
in Java: compile-
annotation
time polymorphismwill run only and once before
runtime all tests in We
polymorphism. the
6.
suite
"StoringAfter finishing
have run
the objects the test
property right click on the test and
can
click perform
ontest
RunAs polymorphism
– >Javaexcel in from
application java by themethod
application
@BeforeTest:
under
overloading inandAdifferent
method
method which is marked
sheets
overriding." andwith this
differentiate
annotation
the excel will be executed before first @Test
"Try
annotated goingsheetto project
method.
nameproperties
with the country > Java Build namePath or the
>
language
Order And name.
Export Saving
tab > the
select object
all (orproperty
try to play with
"@BeforeClass:
corresponding Atomethod
theThis which
unique is marked
keys would with
helpthisto
check
annotation boxes will there).
be executed shouldbefore cause first complete
@Test method
retrieve
project the
rebuild particular
andonly object
Eclipse from the
main class. excel
particular
execution.
sheet based It runs
on the oncetoper
localized
seeclass.
language the test script
...
@BeforeMethod: A method whichand is marked withrecords
this
When
needs.
Solution: testing
So reading things the like adding
particular object removing
property from
annotation
from
the excel a will
database, be executed
automated before
UI tests
sheet based on the requirement of the test every
can @test
be time-
1.Close
annotated Eclipse.
method.
consuming
case
"1.
2.Delete with the and
the help
metadatarepetitive.
of unique
folder ... And
key API
inside would testing
your solve allows
the the
workspace.
@Test:
tester
purpose
public Marks
to
classmake
of thea class
requests or a method
that might as a
not
localization automation testing without
Simple{ part
be of the
allowed test.
3.Restart
@AfterMethod: Eclipse A method which is marked with this
through the UI,
writing the new test scripts. which is crucial for exposing potential
annotation
security
public flaws
static will
void bean
in executed
application.
main(String after
args[]){ every @test
annotated
StringBuffer method.
a = new StringBuffer(""ALPHABETS"");
Caused
"1. explain
@AfterClass: by:framework
java.lang.ClassNotFoundException:
A methodunder implemented
whichtest is marked indifferent
project.
with this
Open the application
System.out.println(a.reverse());
learning_Java.Callbyvalueandcallbyref with localized
language:i
annotation
language
} inour
will
a selenium
be
browser executedand project
after
copy forall
the developing
the test
caption athe
methods
of
framework
in
"1)What
same
}click the object
current we
are your for used
class roles
which java.
have and
the been runkey is generated
responsibilities
unique as manual
Type
@after on
of project->properties->Java
Framework:In
test---It will our
execute project
only we
oncebuild
are path->Source
afterusing
the TestNG
test
tester?
"above
and and each
check store src the folder
caption to
is is
stilla new
valid excel
exist sheet
or recently
framework
@AfterSuite:
> Understanding
corresponding using
A methodpage
Test object
which
Requirements model
marked design
with pattern
this
"there
removed.
without are 5 testtodesign
Correct
pagefactory.
the same
any missing key.
techniques: Andorsave
path the excel
incorrect pathin
annotation
> Contribute
sheet with will
theto run
Test
new once
Plan
localized after execution
Documentation
language orofthe
all tests
country
Boundary
and rebuild
POM:Object Value
and
Repository Analysis
run the (BVA)
test. It will fix
design pattern in Selenium the problem."
the
> suiteTest
Derive
name. have run
Scenarios
Equivalence
"WebDriver. POMClass createsPartitioning
our testing code maintainable,
> Document
Decision Table Test Cases
based testing.
How
> to
reusable.
Update avoid
Page NoSuchElementException
Factory is an language
optimized without
way using
to create
Based
State onTraceability
the countryMatrices
Transition or the Document requirement of
try/catch
object
> Collect block?
repository
Test Data in POM concept.
the
Error test case,
Guessing" reading the excel sheet for that country
WebDriverWait
Packages:we wait =seperate
create new WebDriverWait(webDriver,
pages
>
orVerify
language Test and Environment
fetch theSetup object withand thetests.
localized
timeoutInSeconds);
Test
> Base
Create class:Which
Test Batches consist of common functions
unique key.
used
> Executefor allTestpages Cases like(conduct
excel,Propertiesdiffernt levels of Test
wait.until(ExpectedConditions.visibilityOfElementLocate
file,browserlauch,extentreport,log4j.xml
Execution) etc. this files
Example of Gmail Login Page:
d(By.id<locator>));
are responisble to
> Reporting and Tracking Defects read the data.
TestNG:it
> is easy
Re & Regression
Object Type LocalizedtoTesting
understand.We
Key English Caption can prioritize
German the
test,Grouping,Parallel
> Collecting
Caption French TestCaption
Matrices execution,dataprovider and
assertions.
> Test WebDriverWait w = new WebDriverWait(driver,
Closure
Text Box Text_UN_LoginPage UN_English UN_German
5);
propertyfile:
1,2,3 questions are answered in 39

"1.Tell me about yourself and Roles and


Responsibilities of previous project?

Preparation of the Test Strategy and guiding the


team.
1) "WebElement
Performing GUI, Functional and Regression testing.
x=driver.findElement(By.xpath(""//*[@id=\'u_0_m']""));
Involved in writing the test cases using Functional
Specifications.
System.out.println(""firstname:""+x.getAttribute(""value"")
Interacted with developers, users and various
);"
members of the team to discuss and to resolve
defects and their priorities.
2)If we are using
Detecting defects correct locator
& Tracking intobut
Bug still getting
sheet.
element
Performed functional and End-to-End testing. this
not found error then how u will resolve
error?
Providing Screenshots to identify & reproduce the
bugs. WebDriverWait wait=new WebDriverWait(driver,10);
Back end testing for data validation using SQL
wait.until(ExpectedConditions.visibilityOfElementLocate
Queries.
d(By.id(id));
Prepared automated scripts for Maintenance and
Regression testing.
3)Why we prefer
Involvement explicit
in Test wait instead
Execution, Results of fluent wait?and
Analyzing
What are the
Defect Reporting. disadvantages of fluent wait?
We would in
Involved normally
Automation use Infrastructure
explicit wait if an element
Development
takes a long
using Selenium. time to load. We also used explicit wait to
check CSS property of an element
Created Test cases Using Element locators and (presence,
clickability. etc) which
Selenium Webdriver can change in Ajax applications.
methods.
The Fluent Wait command
Enhanced Test cases using defines
Java the maximum
programming
amount of time for Selenium
features and TestNG Annotations. WebDriver to wait for a
certain
Execution condition to appear.
of Selenium Test...cases
To putand it simply, Fluent
Reporting
Wait looks
defects. for a web element repeatedly at regular
intervals
Conducting untilData
timeout happens
driven testing,orcross
until the object is
browser
found
testing and parallel test execution.
Involvement in solving Environmental problems along
7)Explicit
with Technicalwait: By default,
Support WebDriverWait calls the
People.
ExpectedCondition every
Involved in Regression Testing 500 milliseconds
using Selenium. until it
returns successfully. Implicit
2.What are all the drawbacks in Selenium? wait: It does not have
any polling time.
1.it supports webItbased
waits for the complete specified
applications.
time.
2.Difficult to use takes more time to polling
500 millisecond is the default preparetime in
testcases.
implicit wait and explicit wait
3.Limited support for image Testing. in selenium."
4.New features may not work properly.
5.No Built-in Reporting facility.
6.Difficult to Setup Test Environment when it compares
to Vendor Tools like UFT, RFT, SilkTest.

3.How to execute parallel test using Test NG?


Parallel Execution of test methods in TestNG. TestNG
provides multiple ways to execute tests in separate
threads. In testng. xml, if we set 'parallel' attribute on
the tag to 'tests', testNG will run all the '@Test' methods
in tag in the same thread, but each tag will be in a
separate thread.
"How to fetch the ip address of a link?
Step 1: case
"1.Test Find the
andIPtest
Address
scenarios difference
Open
Test case:it is documentand
command prompt thattype in ""tracert""
contains thenhave
steps that
type in the website for example ""tracert
to be executed it has been planned earlier.
www.instructables.com""
Test scenarios:a test scenarios withoutisthese things"""". The
any functionality
second
that canpicture shows
be tested.it whatcalled
is also comestestup.condition.
The IP address
is what comes
2.Login page test up case
next to
20where it says
scenarios ""tracing route
asked
to (the website
1.verify if a useryou inserted)(the
cannot login withIPaaddress).
valid username
2.Broken
and invalid links?
password
driver.findElement(By.id(""gf-BIG""));
2. verify login page for both username and password
System.out.println(footerdriver.findElements(By.tagNa
when field is blank and submit button is clicked.
me(""a"")).size());"
3.verify forgot password functionality.
4.Verify if the font, text color, and color coding of the
Login page is as per the standard.
5.Verify the time taken to log in with a valid username
and password.
6.Verify if the ‘Enter’ key of the keyboard is working
correctly on the login page.
7.Verify if tab space is working."
1Jmeter related questions spike testing endurance
testing load testing stress testing (terminology)
Spike testing is a type of performance testing in which
an application receives a sudden and extreme
Kumar
3> "package Rahul;
6. True. Because the reference variables S1, S2
public class
pointing WordCount
to same {
value "hello"
7.helloworld
public static int count=0;
2. Method
static overriding is an example
int wordCount(String string) of Runtime
polymorphism
{
if (string==null||string.isEmpty()){
return 0;
}else{
String[] words=string.split(""\\s"");
count=words.length;
return count;
}
Milu Joseph

1. Object oriented programming concepts.


Basically
Data driventhey are abstraction,
testing inheritance,
framework stotres test data
encapsulation and polymorphism
in a table format. Input data can be stored in
Abstraction:
xls, XML, csv,Abstraction is the
database. After property
driver scriptwhere
essential details
execution, actualare displayed
output whereas
is compared withthe
non essential
expected details
output. Bothare not. That
positive andmeans only
negative
required
test characteristics
cases can be built inare displayed.
a single test."
Inheritance: Inheritance allows one class (or
subclass) to inherit the features of another
class (super class). Multiple inheritance is
when a child class inheriting the behaviour
from multiple parent class.

Encapsulation: Simply it is wrapping up of data


under a single unit. Here the object contains
all the data which is hidden and restricted to
members of the class.

Polymorphism: Simply it is the ability to be


displayed in more than one form. ie, assigning
value in a subclass which is already declared
in the main class.
Compile time polymorphism: Static
polymorphism which is achieved by function
overloading or operator overloading
Runtime polymorphism: Dynamic
polymorphism which is achieved by method
overloading.
IDs are the fastest locator in selenium
Double colon used to seperate axis from the
selected element
Using apache POI
Extends is used to inherit class in the
particular class also
Extends inherits indicates
the class to use
, allow parent
us to add or
class
change in the child class
functionality
Include and of the extended class
Exclude methods
Import:
Implicit To call
wait the classes and files from
syntax
outsource to current program.
driver.manage().timeouts().implicitlyWait(TimeOu
t, TimeUnit.seconds);

Explicit wait
WebDriverWait wait = new
WebDriverWait(WebDriverRefrence,TimeOut)
"
Akshay
Praveen Rego Gaikwad
1. Abstract class: Can achieve partial or
complete
1. Wraps data abstraction(No
and methods implementation
into a single unit and
Implemented
2.
1. When we
Getting thehave Methods)
applicationvariables ; Interface
underwhich test:we Cantodobenot in
achieve
want
sync with complete
1. throw keyword : Used to explicitly throw aan
to expose the to
testing abstraction(Only
the user
tool - instead
Selenium create
Unimplemented
method
2. How totoachieve
exception read aand
from Methods) writeconcept:
- Wait
method data
or any block Usingof
NosuchElementException,
2. Abstract class: No restriction on private
3.
Implicit
code. Practically,
StaleElementException, We wait can and creating
throw explicit eithervariable
wait"" checked with or
driver.getTitle();""
declaration
access and ;getter
Interface and :; setter
By default method public, with
unchecked
NoAlertPresentException,
1. GetWindowhandle exception. - returns String
static
public
throws and
access
keyword final. which : Used willinmake sure the of
the signature
NoSuchWindowException
<address
Page
3. AbstactObject of thechange
Model
class: window>
Does: not support
variable
method
NosuchElementException do not
to indicate that- the its value
: method bymultiple
any
might
2.
1.
Inheritance
wrong GetWindowHandles
Framework
Submit : ;
Works
assignment."" design
Interface when pattern
: return
Supports
the formto Set<String>
define
Multiple
has tothe be
throw
1. one of the listed type exceptions.
WebDriverWait
webelements
Inheritance
submitted
1.
2. selenium-java
throw ;
keyword click referring
: works
: We to for oneall page
the
cannot throw multiple in
types one like
WebDriverWait
String
class
4. Abstract parentHandle class: wait ==new
Practically when we want
submit,
2.
Chrome
exceptions
WebDriverWait(driver, buttons,
selenium-chrome-driver
Browser: using throw links. 15); keyword. ;parent
driver.getWindowHandle();
some
2.
3. Definition
Submit: ofkeyword
the will
selenium-firefox-driver of apath
methods
wait page for completely
for
a new user// page
Saveto resides
override
to load with
;and
//Set
throws
1. the
@BeforeSuite driver
wait.until(ExpectedConditions.visibilityOfEleme
window :We tocan refer declare to chromemultiple driver
the
create
click:
4. userwill a creating
user
selenium-ie-driverimmediately
System.setProperty(""""webdriver.chrome.driv
exceptions (separated the
implementation framework
continue
by commas); based
Interface:
executing using on the
The
application
When annotated
ntLocated(By.xpath(xpath)))
"@AfterSuite
click(); we//click do underthe
not method
link
wanttest whichtowill expose be
opens runany only
multiple once
code""
Used
er"""",
throws
before tothe interact
""""chrome
keyword."" with
driver different
path""""); types of
2.
The
windows
2.Tests
methods
browsers""
//WebDriver
Boolean
annotated tocurrent
refer expression
the
- to method
the
user
Interface
suite
reusable
and to
will
,
have
check
alter
driver
run.
bemethods
run
the
-
if theonly
reference
element
once
from
2.
is
after
WebDriverWait
"""Oops @BeforeTest
present.(Taking
all tests in this
wait xpath suite
= new for example)
have run.
the
implementation
object
The
pages , concepts
annotated new so- ifkeyword,
if((driver.findElements(By.xpath(strxpath))).size
@BeforeSuite
WebDriverWait(driver,
the UI
method
changes
10); ChromeDriver
will // be
for the-page,
run
Timeout before
in Class
10s any
There
the
5.
1. tests
Abstact are
Automation 4
dont pillars
class: need Can
framework of toOops
createchange,
whereconcept.
object only
the of the
data classcode
to be
()driver
test
The
boolean
1.
within
thus !=0){ object
method
annotated is
with
theisChildWindowOpen
Encapsulation page
upcasted
method @Test
object tag
will
needs
to WebDriver.
be run
=to change only once
fed
WebDriver
3. tocan
@BeforeClass
have
scripts
driver
if(driver.findElement(By.xpath(strxpath)).isDispl
constructor
=arenew stored ; Interface
and
ChromeDriver(); read :from Cannot
before
2.
create
and Abstraction the
object""
external current
wait.until(ExpectedConditions.numberOfWindo file. suite have run.""
1.
//launch
The
ayed()){
"wsToBe(3)); Language
annotated url//3 and
using Frmework
method
here the refers get
willmethod used
be
to run before the
3.
Advantages:
2.
2. Inheritance
Major
Maintenance
driver.get(""""url"""");
Page
first
return Object
test advantage
true; method Model of in :is
Object
the when current we3 have
repository
windows
class. to test
and Test
changes
4.
1.
the Polymorphism
Code
same on
maintenance
flow case with basis is
different better sets of data ""
Data
""
1.
4. feed
Framework
@BeforeMethod
}2.(isChildWindowOpen)
if Page Factoryto thedesign tests
uses the pattern
{ concept of Pageto define the
3. Code
Utilities resusability
webelements
The
else
Object
1.
Set<String>
Encapsulation
3. annotated
Create Model
Encapsulated 7present
class referring
:method
defined
handles in =the
files
data"" infor toframework
will one
each be run page
page like
in
before
and one
screenshots,
class
each
return
define test
driver.getWindowHandles();false;
all data email
method(@test
""""org.openqa.selenium.support.PageFactory"
the objects , config method)
and methods file reader/ of that json
Yes
1.
file Wraps
reader etc and methods into a single unit
2.
5.
}page
"""
//
2. Definition
@Test
Switch
When in each
weto of
child
have a page
class completely
respectively
window
variables which resides
we do not with
WebDriver
4.
the Generation
user Interface
creating of logs the and
framework reports based on the
Where
else
2.
for Page
Based
(String our
Factory
on actual
the to
handle uses
flow tests a are
different
reference written method
{ the methods to
want
Synchronization
5.
application
6.
{method
initialize
to expose
Exception
@AfterMethod the Handling""
under
WebElements in:test
handles)
the
selenium:user instead
using
create a
@FindBy""
from
1. page
driver.switchTo().window(handle);
Getting tothe class
read in the
and
application write test data
underclass testfileto "" be in
2.Tests
The
return
""Have
if annotated refer
false
you ;
used
(!parentHandle.equals(handle))
3. Practically, to the
method
creating reusable
interface will
variable inbe methods
run
your { after
framework
with private from
each
sync
Listeners
the
test
}other with are
pages
method. the
so testing
used
if the to
UI tool
listen
changes - Selenium
to aforparticular
the page,
access
2. How thentoand selenium
System.out.println(driver.getTitle());
achievegetter-and Waitinterfaces?
setter
concept: method Using with
event
the
7.
3.
Using
1. tests and
@AfterClass
Combination
Runnable Alert behave
dont need
of
Interface
if(driver.getTitle().contains(""""TitleName""""))
public access which as
both"" to it- change,
will is defined.
Parallel
make only
Thread
sure In the
case
the code of
{
Implicit
any
within
The defined
thewait page and
events, explicit
object the wait
needslisteners to listens
change to
break; do not change its value by any the
annotated
org.openqa.selenium.WebDriver.TargetLocato
public
execution
variable String method
getcurrentdate(String will be run after all
the
test
r.alert()
dateFormat) event
:methods and in execute
-the current the defined
class.interface set of
2.
}Implicit
SQL
wrong ITestListener
instructions
Advantages:
8.
1. @AfterTest wait {defined
assignment.
driver.switchTo().alert().accept();
Test
for
NG
the
listener
event.
3. Define
} NosuchElementException
Connection
1. all con the methods=
driver.manage().timeouts().implicitlyWait(10, in interfaceAccept - and
There
1.
The
the
implement
}Question Code
Alert
DateTimeFormatter are
annotated many
maintenance
(clickin OK)
page
DriverManager.getConnection(dbUrl,username
Abstraction: listeners
method dtf
clas is = better
will
to in Java,
be
hide run
the but
after in all the
2. StaleElementException
TimeUnit.SECONDS);
perspective seems of incomplete,
Testing we have The user defined
test
2. Code methods
implementation"" resusability
driver.switchTo().alert().dismiss();
DateTimeFormatter.ofPattern(dateFormat);
driver.manage().window().maximize();
,password);
1. Hide the implementation details -
and Cancel
display
3.
2.
1. NoAlertPresentException
constructor
WebDriverWait
Primitive
WebDriver dataand the
wait
types:
Listeners main=new method
byte, short, int, long, definition is
3.
9.
the Encapsulated
@AfterSuite
Alert
}LocalDateTime (click data""
cancel)""
now
Class.forName(""""com.mysql.jdbc.Driver"""");
only essential features = LocalDateTime.now();
4.
not
float,
HashMap
2. NoSuchWindowException
defined.
WebDriverWait(driver,
TestNG double, Listeners""boolean, 50);
char ; run after all
The
return
2. Can annotated
parentHandle;
be achived method through //casewill
Returns be
Abstract parent class and
5.
1.Hash NoSuchFrameException
Considering table following
wait.until(ExpectedConditions.presenceOfEle
Non-primitive data
based types:
implementation based
String, Array,onofthe Java's
tests
Jenkins
return
window
MongoDB:
Interface in this
is an suite
dtf.format(now);
if need open to havesource
switch run. automation
back"" server.
6.
question TimeOutException""understood
mentLocated(By.xpath(xpath)));""
Interface,
Map interface Class :
It
1. is
The
mongoClient a server-based
POM contains
= new system
information
MongoClient(new that runs
about in
the
public
2.
10. Primitive
It
containers class
comprises
@BeforeSuite datatest
such of {Key
types:
as Apache =Java
Value predefined
pair,detail
Tomcat. where the
project
}""
1. xml fileand which
MongoClientURI(""""DBURL""""));
Inheritance: various is configuration
used toDeclared
configure and used
Non-primitive
key
The
Uses:
by is Itnon
annotated helps data
dupricatethemethod types:
user value will
to be run
automate by
only the
the once parts
organize AMaven
mydatabase
1.
""Annotation
public
user class abstract to
the build
=tests.
is allowed
used class the
in page project.
top{ inherit object themodel? features of
before
of
2.
another
@FindBy software
The
Controls all tests
configuration
class.
- the
mongoClient.getDatabase(""""DBName"""");""
Used in
development this
execution""
to and
initialize suite the have
related
the artifact run.
to building,
webelements""details
}testing,
Yes
11. we can
@AfterSuitedeploying, store the objects in
facilitating hashmap
continuous
are
2.
"1. Thedefinedsubclass in xml can formatadd itsislist
own fields and
String Collect is
hashmap.put(<key>,
The
integration
Uses: annotated nonall andthe
primitivelinks
method
continuous using
as
<value>);
will it be a runin
class.
delivery."" the
only web
Classonce
methods
test(){
page
comes
Based basedunder
on inthe addition
on non <a>
initial to the superclass
tag.
primitive
analysis category.
of the fields
application
after
1.
and Maven all
methods. tests in this
reads the pom.xml file and suite have run.
System.out.println(""""Constructor"""");
2.
with Iterate
Retrieve:
"" somethrough ofthe the list and
thelibrararies
parameters click on each
downloads
}3. It provides code reusability. in .m2 folder
link
1. Is
for(String
2. the
Configure application
key:hashmap.keySet())
toachieve automatable
run the runtime tests in sequence {by selenium or in
4.
3.
2. It
Find
Costis used out
of the to
whethertool the link is polymorphism.
valid or broken
parallel""
1. Get the
public
based
3. Will the 404webelement
static
system.out.println(key tool void
error main(String[]
displayed
provide
of the
return
+ """"="""" onbutton
args)
the
of { and ""
screen
+Investment
create
Polymorphism: a script
System.out.println(""""Main to validate it
method"""");
4. Will the the
hashmap.get(key);
2. Deploy toolscript satisfy in the scheduler exit criteriaor Bamboo of our
1. Perform
//click
}tests"" on the a singledropdown action in different ways.
or
2. Jenkins
}}"" We can perform for every
driver.findElement(By.id(dateFormat)).click();
Encapsulation : 5 mins
polymorphism in java by
3. If
method the
//Replace
1. button
Wrapsoverloading the xpath
data is present
and methods and
of themethodbuild success
into aoverriding
dropdown single withunit
Close
message is displayed""
3. Mainly
userinput(Create
The
2. When
New main to
methodimplement
we have variables
--> Assigned an
will xpath inheritance,
execute
--> Fixedwhich where .""
--> Retest helps
using
we do -->notin
code
contains reuse, function classes,
want to expose to the user instead create a
Close with methods
dummy written
string once,
and
tested
methodand
replace with
to read implemented.""
user and input)
write data
driver.findElement(By.xpath(dateFormat.repla
3. Practically,
Retest Failed creating variable with private
1. @BeforeSuite
The annotated method will be run only once
before the current suite have run.
2.
1. @BeforeTest
Develop a small script as POC to check if
The
the annotated method
application is in sync willand be can
run beforebe any
long
test lastHeight
method with = (long)
@Test ((JavascriptExecutor)
tag
automatable, what other
webDriver).executeScript(""""return
JavascriptExecutor tools are required
js = (JavascriptExecutor)
3.
other @BeforeClass
than Selenium,
document.body.scrollHeight"""");
driver;
The annotated method will be run before the
2. Maintenance
WebElement of Object
Element repository
= current and Test
Test
first
Data Strategy:
test
feed method
to{ the tests in the class.
while Test(true)
driver.findElement(By.xpath(xpath));
1.A Strategy document is an initial
4.
3. @BeforeMethod
Utilities
((JavascriptExecutor)
if(Element present
!= null){ in the framework like high
level
The
screenshots, document
annotated method will be run
email , config file reader/ json before
webDriver).executeScript(""""window.scrollTo(0
js.executeScript(""""arguments[0].scrollIntoVie
2.It
each sets testthe standards for
method(@test testing processes
method)
file
,5. reader etc
document.body.scrollHeight);"""");
w();"""", Element);""
and
4. activities
@Test
Generation of logs and reports
Thread.sleep(2000);
3.
5. Usually
Where Exception ourthere actual will
Handling"" testsbe one Test Strategy
are written
document
6. @AfterMethod and different number of Test Plans
long
The annotatednewHeightmethod = (long)will ((JavascriptExecutor)
be run after each
webDriver).executeScript(""""return
Close
Test
test method. Plan:
document.body.scrollHeight"""");
New
1.Describes
7. Using --> Assigned
@AfterClass whatcatch -->test,
to Fixed how -->toRetest
test, when --> to
1. Try and block
if
Close
test
The (newHeight
and
annotatedwho ==
will lastHeight)
methoddo whatwill { run after all the
test.
be
2.
Xpath Throw keyword
stands for XML path which consists of
break;
2. It be updated
test
3.
expression
Wait
}Retest
methods
Throws
in selenium forinaduring
keyword"" the
path
denotes thethe
current
along phases
class.
with
selenium to reflect
certain driver
any
8.
to @AfterTest
conditions
wait Failed
deviation
for a to from
locate
particular thea original
particular
time or a plan""
element.
particular
String
lastHeight
New --> s = """"Hello""""
= newHeight;
"condition
The
There
s
}"" = areAssigned
annotated two
is
s.toLowercase();
method
types
reached. -->of Fixed
will
XPath
This be
will-->allow
run Retest the-->
after all the
Retest
test
1. Failed
methods
Absolute st
application -->
Xpathto Assigned
be-identified
XPath
in sync --> Fixed
expression
with Selenium.-->
is
System.out.println(s);""
Webelements
Retest are using locators
9.
There @AfterSuite
created using
are 2 types the selection
of waits from the root
1.
The
node. ID:annotated
Syntax:
It starts driver.findElement(By.id(“Element
method
with will
a single be runused
slash after
‘/’ andto all
1.
ID”)) Implicit Wait - Implicit waits are
Deferred
tests
traverses
provide in this
aSyntax: suite
from the
default have run.
root totime
waiting thebetween
whole DOM eachto
2.
New
reach Name:--> to Assigned
the desired -->theDeferred""
element.
consecutive step
driver.findElement(By.name(“Element of script.The
10. @BeforeSuite
2. Relative
subsequent XPathtest -step
XPath expression
would only execute isName”))
3.
The Class
created Name:
annotated
from the Syntax:
method
middle will be
of the run
DOMonly once
structure.
when the 30 seconds
driver.findElement(By.className(“Element have elapsed after
before all
It is represented
executing tests
the previous in this suite
by a double have run.
slash ‘//’
test step/command.
className”))
11.
denoting @AfterSuitethe current node.""
driver.manage().timeouts().implicitlyWait(30,
Relative XPath -method
XPath expression
4.
The TagName
annotated
TimeUnit.SECONDS);
: Syntax: will be run is onlycreated
once
from the middle of
driver.findElement(By.tagName(“Element
after all tests in this the DOM
suite structure.
have run. It is
2. Explicit Waitby- Explicit
represented
TagName”)) a double waits
slash are ‘//’used
denoting to halt
""
Parallel
the execution
execution until can
the be
time performed
a particular based
the
5.
on current
LinkText
the need node.""
: Syntax:
andor type
condition is met
driver.findElement(By.linkText(“Link theof framework
maximum time used.
has
Text”))
1. TestNG
elapsed. - TestNG has inbuilt testng.xml file
6.
where Partial we LinkText
can : Syntax:
define the tests in parallel
WebDriverWait
There are 4 pillars waitof= Oopsnew concept.
driver.findElement(By.PartialLinkText(“PartialLin
<suite name=TestSuite
WebDriverWait(driver,30);
Encapsulation thread-count=6
1. Overloading:
kparallel=methods
Text”)) when > two or more methods in
wait.until(ExpectedConditions.visibilityOfEleme
2.
one Abstraction
class have the same method
Interface:
7.
2. XPath blueprint of- aMaven
: Syntax:
Cucumber/TestNG
ntLocated(By.xpath(""""xpath"""")));""
3. Inheritance
class. hasIt has aname public
inbuilt but
different
abstract
Gecko
plugin parameters;
methods.
driver.findElement(By.xpath(“Element
driver
called ismaven The
a connection interface
surefire between
plugin in Java toXPath
run is athe
4. Polymorphism
Overriding
mechanism
expression”))
Selenium :
testtwo
to methods
achieve
scripts with
abstraction.
and Firefoxthe same
browser
Wait
testsininselenium
parallel. denotes the selenium driver
method
Constructor:
8.
which
to
It CSS
wait
can is
be name
:for
Syntax:
developed Theandpurpose
a particular
configured parameters.
by Mozilla.
intime
pom.xml One
file. of the
isortoa""initialize
particular the
Encapsulation
methods
newly is
created in :object
the parent
driver.findElement(By.cssselector(“Element beforeclass it and
is the
used."" other
condition
<plugin>
1. Wraps is reached.
data and methods This will allow
into the unit
a single
is
css in the child
expression”))""
application st class.
to
<groupId>org.apache.maven.plugins</ be in sync with Selenium.
I2.guess
Whenthere
Method we haveare variables
overloading no limitations. which
: performed Allwe thedo
within suits
not
There
groupId>
can
wantbe are
toMethod2
defined types
exposeoverriding:in of waits
totestNG.xml
the useroccurs and can
instead be run
create a
class.;
1. Implicit Wait - and
Implicit
<artifactId>maven-surefire-plugin</artifactId> waits in
are used to two
at
All once.""
method
classes
the suits to
that read have
can be IS-Awrite data
relationship
defined in between
testNG.xml and
provide a default
<version>3.0.0-M4</version>
Practically, creatingwaiting time
variable with privateeach
3.
can Method
be
consecutive run
<configuration> overloading:
at once.
step ofand example
thesetter
script.The of compile
access
time and getter method > with
S1 - Ifpolymorphism
<suite
subsequent name=""""Test-class
in casetest
<parallel>classes</parallel> supposestep ; Method
would overriding:
the Suite""""
pop
only upexecute
appears
public
example
<test access
of30 run
name=""""Test-class which
time will make
polymorphism"" sure the
before
when the
the startseconds
<threadCount>2</threadCount> of the testtest""""
have or end>of after
elapsed the test
variable
<classes> do not change its value by any
we can use
executing the Test
<useUnlimitedThreads>true</ Listeners.
previous test step/command.
wrong
<class assignment.
S2 - Butname=""""test""""
in case if it can/>
driver.manage().timeouts().implicitlyWait(30,
useUnlimitedThreads> appear anytime
during execution, after each step there
TimeUnit.SECONDS);
testSourceDirectory>src/test/java/com/SC/
Abstraction:
"Write a be
Java program
</classes>
should
2.
1. Explicit
Hide the Wait
testcases</testSourceDirectory>- Explicitto
a validation
implementation
print
towaits
check 1234
are
details
forused
and
1234
multiple toin halt
display
two
</test>
handles
the rows.
execution and handle them accordingly (Not a
only essentialuntil
<useSystemClassLoader>false</
for(i=1;i<=2;i++){
</suite> features the time a particular
ideal
condition solution)is met orthrough
useSystemClassLoader> the maximum time has and
2. Can be achived
system.out.println(""1234"");
<suite name=""""Test-class Abstract
Suite2""""class >
elapsed.
<forkCount>10</forkCount>
Interface
}"
<test name=""""Test-class
WebDriverWait wait = new test2"""" >
<reuseForks>false</reuseForks>
Set:
1. We Set can is anuse interface.Cannot
the other types beof instantiated
locators toto
a
BDD is Behavior Driven Development,towhich
find concrete
the element implementation in order use it.is
You
2. If
derived
1. We can
therecan choose
from build
is TDDthe
single between
(Test xpath
set Driven
of the
using
data following
it canthe ancestor
Development). Set
be given
implementations
and
Here predessor
the tests areas in the
written Java Collections API:
in the
Tests
java.util.EnumSet
feature
can file
be managed in 2first
""""data"""" ways, and then the
3.
Eg:We
application
1. When can user
TestNG.xml build
code xpath
login is written from loginid
using the root""
later. As""""Name""""
the
Inner
java.util.HashSet Join: Returns only the rows that have
application
and
2.
matching password
Maven code
surefire
values adds
""""Pass""""
inplugin""
both on thethe tests
tables pass and
Wait in selenium
java.util.LinkedHashSet
thus theJoin: motive denotes
is achieved. the selenium driver
2.
2.
to If there
Outer
wait for are
a multiple
It includes
particular set
timethe oformatching
data,
a use rows
particular
java.util.TreeSet
Cucumber
Scenario is a testing framework iswhich
as
condition
2.
Wait well
Cannot asOutline
in selenium issome
reached.
contain
concept
of theThis
duplicate
denotes
-will
the
This
non-matching allow
elements.
selenium
used
therows to run
driver
supports
the
between same Behavior
scenario Driven
for 2 or Development""
more different sets
application
3.
to
1.
of Accessing
wait data forthe ast two
to be
and
particular
driver.navigate().back();
test
tables.
addingin synctime order
orwitha of Selenium.
each type
particular
There
of
condition Set are type 3
2 is
is typesdifferent
reached. of Outer
waits
This will Join: allow the
2.
Switch
Eg.
Left driver.navigate().forward();
Outer to new
Join: frame:
Returns all the rows from
1.
3. Implicit
application Wait
st
driver.navigate().refresh(); to- Implicit
be in syncwaits withare used
Selenium. to the
driver.switchTo().frame(""""frame
And
Using
LEFT
provide UserAlert
table enters
and
a default """"<username>""""
matching records id or
and name"""");
between
Map:
There
4.
Get are typeswaiting
to2 default
driver.navigate().to(String
back
""""<password>""""
org.openqa.selenium.WebDriver.TargetLocato offramewaitstime between each
: arg0);a single web
1.
both
1. FindElement:
consecutive the
MapMessage
Implicit tables.
is aWait step
collection Used of
-displayed
Implicit theto
of waitsaccess
script.The
key = value
are usedpair.to
5.
r.alert()
element
Right driver.navigate().to(URL
driver.switchTo().defaultContent()""
Then Outer on atest
Join:page Returns arg0);""
; FindElements:Login
all the Successfully
rows Returns
from the
subsequent
2.
provide A map a does
default not step
contain
waiting would only
duplicate
time between execute
keys. each
Examples:
1.
the
RIGHT
when driver.switchTo().alert().accept();
list of
table
the all
30 and matching
seconds matching elements.
have records
elapsed - Accept
between
after
Below
consecutive
|2. username are the stepmainofimplementations
| password the| script.The of Map
the
both
executing Alert
the (click
FindElement: tables.
the OK) It step
previous throws a step/command.
test
interfaces
subsequent
|NoSuchElementException
testuser1 | test
Test123 | would only execute
2.
Full driver.switchTo().alert().dismiss();
Outer Join: It
driver.manage().timeouts().implicitlyWait(30, combines exception
the result - Cancel
when
of theit
1.
when
|1. HashMap
Collect
testuser2 the 30
all| seconds
the
Test784 links | have
in the elapsed
web pageafter based
the
fails
Left Alert
to
Outer
TimeUnit.SECONDS);find (clickIf
Join thecancel)""
and element;
Right FindElements:
Outer Join.""
2.
on
There
"" LinkedHashedMap
executing<a> aretag. the previous
couple of solutionstest step/command.
Returns
2.
3. Explicit
TreeMap"" anWait empty - Explicit
driver.manage().timeouts().implicitlyWait(30, list when waitsthe areelementused to halt
2.
1.
doesn’tSend
As
Using Rahul HTTP
Robot
exist request
mentioned
on Class
the for
page.in the link Restand read
Assured
the execution
------------------
TimeUnit.SECONDS);
HTTP response until the time a particular
training,
public
Using
3. void
the we
FindElement:Syntax cancode. use
fileDownload()
scope tag the POJO { class - Sending
condition
2. Explicit is
Wait met- Explicit
or the maximum
waits are time or has
3.
a
Robot Find
string
<dependency>
WebElement out
with
robot whether
= a newlarge
elementName the
number
Robot(); link is
= of theused
valid to halt
broken
parameter
elapsed.
the
based execution
on HTTP until
response the time code.a particular
can become tedious and updating a string
robot.keyPress(KeyEvent.VK_TAB);
<groupId>commons-logging</groupId>
driver.findElement(By.LocatorStrategy(""""Loca
WebDriverWait
condition
String url metwait
=is""""""""; orofthe = new maximummay timebecome
has
having n number
robot.keyRelease(KeyEvent.VK_TAB);
<artifactId>commons-logging</artifactId>
torValue"""")); parameters
WebDriverWait(driver,30);
"If we
elapsed. understand
HttpURLConnection the internal structure of a
time-consuming.
robot.keyPress(KeyEvent.VK_ENTER);
<version>1.1.3</version>
FindElements: Syntax Hence,huc it is =always
null;
wait.until(ExpectedConditions.visibilityOfEleme
table
WebDriverWait
try in html page wait
{ robot.keyRelease(KeyEvent.VK_ENTER); we = can
new handle any
recommended
<scope>runtime</scope>
List<WebElement> to send an object in
elementName = body
ntLocated(By.xpath(""""xpath"""")));""
scenarios
WebDriverWait(driver,30);
huc related
= to the
(HttpURLConnection)(new data table
method.}
</dependency>
driver.findElements(By.LocatorStrategy(""""Loc
"URL(url).openConnection());
1.’table’ tag defines
wait.until(ExpectedConditions.visibilityOfEleme HTMLsetting table.
2.
"" We
Using can
atorValue""""));"" use
browser Hashmap profile for parameterizing ""
2.’tbody’ tag defines
ntLocated(By.xpath(""""xpath"""")));"" a container for rows and
"ChromeOptions
Many
columns. tools are available options =innew the market, Major
ChromeOptions();
ones are huc.setRequestMethod(""""HEAD"""");
There areGitHub,
3.’tr’Map<String,
defines many rows SVN,
tools in an Bitbucket""
available
HTML table. in the market,
Major
Static ones
Keyword: which Object>
I use prefs = new
4.’td’/’th’
HashMap<String, define the
huc.connect(); column of an HTML table.
Object>();
Tortise
Can
If thebe Git,
used
method Eclipse,
with
is declared IntelliJ
class, variable,
as staticmethod or finaland it
These
block.
cannot
Step
The 1: tools
If be
Get
Collection a will
member
overrided""
the highlight
xpath
in Java is declared
of the with HTML different
is a framework that can
as static,
table colors
forit
respCode
prefs.put(""""download.prompt_for_download"" = huc.getResponseCode();
and
be
which
provides show
accessed
we the
have
antags: user
without
to
architecture the
perform changes
creatingtoactions
store inobject
andefineandthe
Cucumber
"", false);
current version Cucumber
and the updatedtags version. the set
Final
Step
manipulate
of testsKeyword:
2: Get all
if(respCode
to be the
therun, group rows
whoch with
>=of400){ objects.
is tag name
defined Java at ‘tr’(usinf
the
Based
If a member on that is andthe user
declared can
as either
all final, keepofthe
value
findelements)
Collection
start ofhelps
the framework
scenario.
options.setExperimentalOption(""""prefs"""",
Hooks thebe user
store
System.out.println(url+"""" provides the
to run blocks
elements
many ofis a ain a
code
changes
variable
list of web
interfaces or
cannot discard
elements.
(Set, List, -Queue,it""
changed, method
Deque) cannot
and of
broken
Syntax:
prefs);
before link"""");
or@TestName
after each Defines
scenario, theThe name
tags to the
be
Background
be
Step
classesoverrided
3: Loop
(ArrayList,generally
and
through a class has
each
Vector, the
cannot
row instruction
LinkedList,andbe get theon
test
used driver
to } =
represent new ChromeDriver(options);
the block is @Before and
what
inherited""
list of setup HashSet,
elements
PriorityQueue, before
with tageach ‘th’.=scenario
‘rows.get(0)’
LinkedHashSet, runs.will
Eg. @SmokeTest,
WebElement
@After."" else{btnDownload @Regression
However,
1.
give Wefirst
TreeSet)."" canrow it gets
use and executed
the priority to run the tests after “Before” hook.
in
System.out.println(url+""""
driver.findElement(By.xpath("""".//a[text()='filena is a valid
It can
order be declared
‘findElements(By.tagName(“th”))’ using Background
Parallel
link"""");
After
me']""""));
keyword."" the definition in the feature file, these of
execution can be performed will give
based list
@Test(priority
columns
on for the =is
in1)arow.
43 the
Actions
tags are need}used
class and type
collection of framework
@CucumberOptions of individual used.
to run
2.
Step
1. We
TestNG
Action
the
build() set4:can
method in Actions class is used the
Iterate
that
of - use
TestNG
you
tests, the
using
want testng.xml
has ‘columns.getsize()’
to inbuilt
perform, to define
testng.xml
mostly toand
file
to
btnDownload.click();""
order
get
where
perform
Eg:
create the of
}we the
details
catch
mouse
@CucumberOptions{can tests""
chain of action of
define each
(IOException
actions thecell."
on tests
oraccess e)
an
operation { in
element. parallel
you want
1. FindElement: Used to a single web
<suite
There
to perform.
element name=TestSuite
are on many
features:
build
a page action
will returnthread-count=6
methods
""""feature"""",
; FindElements: an Action object
Returns
parallel=methods
1. build
for
the the ofe.printStackTrace();
list perform allglue:
matching >execute.
to""""glue"""", elements.
""Consider
2. Cucumber/TestNG u have checkbox- inMaven and I awant to click
2.
the
Click
perform() }""
FindElement:
checkbox this tags={""""@SmokeTest}
method
, how It throws
will u a has
Actions
find the Class inbuilt
element is use is
plugin
3. called
ClickandHold
}NoSuchElementException
to execute chainmaven of surefire
action whichplugin
exception aretobuild
run the
when it
present
tests
4. in
contextclick or
parallel.not at the same time should not
using
fails
get to
any Action
find If build
the method.
element; FindElements:
It
5. can beexceptions.(element
doubleclick
Cucumber
build().perform()
Returns anconfigured
Annotations:
empty = createlistinwhen pom.xml
Itchain
may or may not
theoffile.
is predefined actions
element text,
+
present).
<plugin>
6. draganddrop
which
execute""
doesn’t holds a specific
exist onCheckBoxSelection(String
the page. meaning based on the
public
7. keydown boolean
Gherkin
3. language
FindElement:Syntax standards.
strXPATH) {
<groupId>org.apache.maven.plugins</groupI
8. keyup
1. Scenario - Defines
WebElement elementName the name = of the
d>
9. Movebyoffset
scenario
driver.findElement(By.LocatorStrategy(""""Loca
It is a guide for penetration and security
testing. Do not have any more knowledge on
this
This is the basic program for reading the
property
1. GetWindowhandle file - returns String
public boolean
<address of thereadProperty()
window> {
2.
Fastest Properties
GetWindowHandles pro;
is using """"id"""""" - return Set<String>
File src = new
The axis is the first part of a location step, it
File(""""./Configuration/config.property"""");
String
determines parentHandle which =
<dependency>
FileInputStream
driver.getWindowHandle(); fisdirection
= new //to navigate with
Save parent
respect
1. to a
<groupId>org.apache.poi</groupId> particular
Import: Importing a class, is making it so
FileInputStream(src); node.
window
Forward Axis: Eg.
you
Imports: <artifactId>poi</artifactId>
pro
click(); can
= new use
When
//click that weChild,
Properties();
the class
import
link
descendant
without
which a class opens needing canto
wemultiple use
Reverse
qualify
the accessable Axis:
<version>4.1.2</version>
the full parent,
namemembers ancestor
in the from current class you
There
windows pro.load(fis); is an option to include or the exclude particular
are
class </dependency>
String writing.
Groups,
Wait
A double in Link
WebDriverWait Test
selenium colon
= pro.getProperty(""""URL"""");
Methods,
::wait
denotes
isare used = newClassestothe and Packages
selenium
separate driver
Extends:
using
WebDriverWait(driver,
to wait include
for Extending
Herea we
and
particular a
exclude class
creating
10);
time // is
tags
or a
Timeout
a IS-Ainthe
creating
particular a new
10s
axis
specifier
class <dependency> from
thatisChildWindowOpen the node test.""
relationship
}""
Eg:
condition
int[] boolean<methods>
elements isisreached.
<groupId>org.apache.poi</groupId>
a subclass
with
=ownnew
the parent Thisof
int[]
some
will class= other
allow
{2,5,0,4,2,7,0,0,1,9,4};
and thealsoclass.
2.Import:
user can
<include This
write
wait.until(ExpectedConditions.numberOfWindo
application will not
stname=""""t1""""
to be in sync /> change
implementation the
with Selenium. program.
of
String
Extends:
required str=""""hcl-tech""""
<artifactId>poi-scratchpad</artifactId>
<include This
methods."" will allow
name=""""t2"""" youto />to3add or change
wsToBe(3));
There are
int inputArray
lastIndex 2 //3
types here of refers
waits
= =elements.length-1; windows
Map<Character,Integer>
<version>4.1.2</version>
char[]
functionality <exclude of the
name=""""t3""""class map
str.toCharArray();
you = new
are extending.
changes
1. Implicit on
Wait case basis waits/>are used to
- Implicit
HashMap<Character,Integer>();
</dependency>
3. Eg. char[]
</methods>"" result = new { time between each
provide if (isChildWindowOpen)
// carray
loop a default backwards waiting looking for zeroes
char[]
<dependency>
char[inputArray.length];
Import
Yes we : import
can = str.toCharArray();
java.util.ArrayList;
overload the maini--) method ""
consecutive Set<String>
for(intpublic handles
step
i = lastIndex; of the = i script.The
>=0; {extends
Set
Extends: <Character>
<groupId>org.apache.poi</groupId> setChar
class = new
EmptyList
driver.getWindowHandles();
When aif(elements[i]
classtest is declared { with final keyword
subsequent
Set<Character>();
ArrayList <artifactId>poi-ooxml</artifactId>
// the Mark {30 spaces
step
//initialize
in
would
==result
0) the only setexecute
up here it
cannot
when
1. //Requirements
Switch be // to child
inherited(Inheritance
seconds window
Analysis. have In elapsed
this does
first not
after
phase
for (char
<version>4.1.2</version>
for (int
@Override c :found
i carray)
= 0; i <a inputArray.length;
zero, so loop forwards i++) {
work)""
executing
of forthe(String software the handle
previous
testing : handles) test
is life { by
step/command.
cycle, theSelenium
test
{Select
from public here
<exclusions> is
if a class
(inputArray[i]
boolean that
add(Object == provided
' ') { o){
team
to driver.switchTo().window(handle);
driver.manage().timeouts().implicitlyWait(30,
performreviews anyi;requirements
multiple documents
If the
if application for(int
(map.containsKey(c))
<exclusion>
return true;j ==involves
result[i]
if (!parentHandle.equals(handle))
TimeUnit.SECONDS); ' j';operations
< lastIndex; web on j++)
and DropDown
{
windows
{ lastIndex)
and
object
application,
Testing designs and to
Multiple
Using
{}<artifactId>xml-apis</artifactId>
} of Wait the determine
if(elements[j+1]
product Select
thirdis party objects.
==
planned 0 || j ==This
toolsinorparallel class
API's we
2.
can
{with System.out.println(driver.getTitle());
Explicit
Testbe Planning
found -
under Explicit
: it’s time
the waits to
Selenium’s planare used
the to
testing halt
}Webelements integrate
map.put(c,
<groupId>xml-apis</groupId>
} a corresponding into
arelevel selenium
map.get(c)
identified phase +1); and
of
using execute
development
locators { the
the
project if(driver.getTitle().contains(""""TitleName""""))
execution
Support.UI.Select at aAuto high until the time aendparticular
scripts.Eg:
in
4.
1. setChar.add(c);
</exclusion>
V-model.It
Extends:
ID: Syntax: //
is
When IT,package.The
either
also youwinnium
knownatextend
//just the
driver.findElement(By.id(“Element add etc.
as a dropdown
to of
setthe
Verification
class whenarray,
you a
and
are
condition
3.
values
or break;
Test
we've Case
are is
run met
selected
into or
Development: the
another based maximum zero Test
on the
near time
cases has
following:
the should
end
If
char
adding
ID”)) the // whole
already
</exclusions>
Validation Traverse model.
all instances motive
existsinputFor is to
every
string automate
(fields)holds single
from
and methods windows
phase
beginning in
of
It
elapsed.
be
1. is }written
predefined to guidetext, the which tester through abased
specific each
application
the
2. }selectByVisibleText
</dependency>""
development
//
extended
Name: and put
Syntax: break;
there is
cycle,
characters
class no
into -point
selected
there
your in using
is
result
own a Selenium.""
directly
from
class, on
end
that
meaning
Background
test
text } visible
WebDriverWait based on the
wait
−Background
} testing = new Gherkin generally language has the
associated
is else
you inthave j = result.length
driver.findElement(By.name(“Element accessphase to all - 1; of the fieldsName”)) and
4.Test
Yes
Select }
standards.
WebDriverWait(driver,30);
instruction itfor Execution:
willdrp work, on
=elsenew what
Unless it’s to setup
time to
it isclass.
{i < inputArray.length; before
run
preceeded the each
tests
by{
methods
3. {Class (int
Name:of i =
the 0; extended
Syntax: i++)
Given
Scenario driver.manage().window().maximize();
− As andper
wait.until(ExpectedConditions.visibilityOfEleme
scenario
6. Test runs.
Reporting:
Select(driver.findElement(By.id(""""id""""))); the
""
Given.
// bubble story
analysisThese up what theof
two is
defects
are
zero the prequisite
found,
mandatory
we found
Advantages:
Imports: map.put(c, Does not
driver.findElement(By.className(“Element 1); have to change anything in
for
and } the other test
ntLocated(By.xpath(""""xpath"""")));""
metrics such as
while
1.
the }There
className”))
When
"2. Simple
return
writing
drp.selectByVisibleText(""""text"""");
one element
program,−// is and
Ignoreinbuilt
parentHandle;
As per
a
at scenario
easy
once a time
function
spaces
the to use.
we
story
to
add
//
in
in pushto ithow
feature
input
Returns
on we
what
many
it string
reverseto
can file""
the
parent
end in
string
access
condition
passed/failed/skipped
}1.
String
2.
the selectByIndex
Testing class happens
if (inputArray[i]
accessable int -
temp
membersselected
well = test
elements[j+1];
!=to' be')before
{of cases""
based
thecoding. on
class"" index
4.
window
the Get
TagName the
validation Webelements
ifofneed : Syntax:
pointto switch
is ofback"" seven
arrived"" checkboxes
number
Eg, str.reverse(); the option
elements[j+1] = elements[j];
"using findelements
exception willfunction
driver.findElement(By.tagName(“Element
""what
drp.selectByIndex(4); elements[j]
programand
= temp;
throw store when it in i
return
2.
""
List Conventional
TagName”))
use setChar.size();""
findelements // ignore spaces
and it doinnot result.identify
3.
5. selectByValue
char
2. Get
LinkText thein :}aSyntax:
ch[]=str.toCharArray();
if size
(result[j] of the - selected
==List ' ') { andbased get the onlast value but
element web page
of the
String option }
one notrev="""""""";
checkbox
driver.findElement(By.linkText(“Link
Does throwj--; WebElement
any exception, but Text”)) instead
drp.selectByValue(""""2014"""");""
6. for(int
3. Click
Partial } the i=ch.length-1;i>=0;i--){
}LinkText
checkbox : Syntax:
returns null.""
}
rev+=ch[i];
List<WebElement> result[j] = inputArray[i];
driver.findElement(By.PartialLinkText(“PartialLin chk =
} j--;
driver.findElements(by.id(""""idofcheckbox""""));
k Text”))
System.out.println(rev);""
Generally } : Syntax:
chk.get(chk.size()-1).click();""
7. XPath Junit will be used in cucumber, may
System.out.println(Arrays.toString(elements));"
be }
TestNG is usedname
driver.findElement(By.xpath(“Element
String s= """"""""my for reporting.""is umesh""""""""; XPath
"expression”))
System.out.println(String.valueOf(result));
There are two catch blocks in first catch block
""
8.
return
have
""StringCSSexception:s.split(""""
Syntax:
s1= e"""").size();""
and second
""""""""hello""""""""; catch block
String
"s2=""""""""hello"""""""";
driver.findElement(By.cssselector(“Element
have arithmetic expections and will expect
""String s =""""""""hello"""""""";
css
arithmetic expression”))""
If(s1==s2) exception
then tell me in try
if it's block true then
or false. which
s.concate(""""""""world"""""""");
"The
catch answerblock will
is get
true. execute
This concept first? is called
What
TimeUnit is the is the output?""""
Enum used in implicit wait.
It will always
String
Output pool.
- hello JVMexecute recognizes
(String isthe first
immutable)"" matching
ifdefined
multiple string
Enum
Overriding
exception. contains is an set
example contants of runtime by the
has the
programmer."" same value and assigns a single
polymorphism.
""
So Fluent
memory as a good wait coding
location Overriding
andpractice is
creates always a feature
references that
declare of
allows
Fluent
TestNG
the specific a
Wait
is subclass
an command
open-source
exceptions
all the variables to the same memory pool"" or child
defines
first class
automated
and the to
the provide
maximum testing
generic a
specific
amount
framework.
exception implementation
of time
at thefor
TestNG end.""Selenium
is similar of a to method
WebDriver
JUnit but that itis
to wait
is
already
for a certain provided
much more powerful than JUnit condition by one to of
appear its super-classes
or parent
FluentWait
TestNG classes""
Annotations: is superclass of WebDriverWait. It
has
1. @BeforeSuite than WebDriverwait.
more options
Wait<WebDriver>
The annotated method wait = will newbe run only once
Close
New --> Assigned --> Fixed --> Retest -->
Close
Compatibility testing is a non-functional
testing
1. The software conducted on the application
development processtois
Retest
evaluate
divided Failed
into thedifferent
application's phases compatibility
in the Waterfall within
New
different --> Assigned
environments.
model while Agile methodology segregates --> Fixed
Eg --> Retest -->
Retest
1.
the Operating
project Failed --> Assigned
system
development Compatibility --> Fixed
lifecycle -->sprints
Testing
into
SELECT
Retest
2. DepartmentID,
Database Compatibility SUM(SALARY)
Testing
2.According
FROM EMPLOYEE to the Waterfall model, software
3. Browser Compatibility
development is to be Testing as one
completed
GROUP
Deferred
"""GetWindowHandles BYSystem DepartmentID""
4. Otherproject,
single
"New --> Assigned
Software""
which is- return
then divided Set<String> into
different phases, with each phase appearing --> Deferred""
String
only once parentHandleduring the=SDLC. However, the Agile
driver.getWindowHandle();
methodology
Jira is used forcan bugbetracking, considered // Save
issueas parent
a
tracking,
window
collection
and project ofmanagement.
many different The projects,
JIRA dashboard whichis
HP ALM
click(); (Application
//click the linkLifewhichCycle Management)
opens multiple
are
consists
a
(Basic nothing
web program, of
based tool but
many the
not useful
that iterations
to helps
be usedfunctions of the
organizationsanddifferent
in real time to
windows
phases
features which make handling of right
issues easy.
manage
projects)
WebDriverWait the application
wait you = new lifecycle from
3.In
Test
project
FileInputStreamWaterfall
cases and
planning,fis modeldefects
requirements
=to new have
are to
created be clear
gathering,
FileInputStream(new based withon
all
the intthe n=121;//number
WebDriverWait(driver,
story development
dashboard bethat
10); checked
requirements
so // Timeout
the for in 10s
completion
until Testing
File(""""WriteSheet.xlsx""""));
palindrome & deployment. =
ofboolean
public
beforehand
1. the
It voidisChildWindowOpen
testcases
enables switchwindow(int
as
all there
theand is
the nodefects
stakeholders scope window) of
could
to { be
changing.
interact
wait.until(ExpectedConditions.numberOfWindo
Set<String>
Polymorphism:
The
tracked. Agile handles
methodology = is quite flexible, and
and temp=n;
wsToBe(3)); coordinate,
XSSFWorkbook //3 to
here achieve
workbook refers the
=tonew 3 project
windows goals.
driver.getWindowHandles();
1.
allows
Testcases
2. Perform
API: Itfor
It provides a
is achanges
can single
software
be created
robust action
to be made
interface
tracking in different
directly in the
that
& reporting ways.
allows
from project
the
and two "WEB SERVICE: It only
XSSFWorkbook(fis);
while(n>0){
changes
Iterator on
<String> case itIfbasis
=polymorphism
handles.iterator();
2.
story
seamless We
development
applications
XSSFSheet can
dashboard. perform
torequirements
integration interact
spreadsheet there
of withare
various
= even
each
multiple in
after
other
project java the
test by supports the HTTP
methodifr=n%10;
int
initial
without
cases (isChildWindowOpen)
i = 0;
planning
to any //getting
overloading
be user has
uploaded remainder
and
been
intervention at { completed
method
one we overriding
can use the protocol.
related
Testng
workbook.getSheetAt(0);
sum=(sum*10)+r;
Set<String> tasks.handles =
3.
4.
Web while(ite.hasNext()){
Mainly
One of
service: to
the implement
major
It is a inheritance,
differences
collection of between
open helps in
Agile
xRay
3.
TestNGIterator
n=n/10;
plugin
It enables iswindow){
<an Row
Annotations:
driver.getWindowHandles();
if(int i !=
of Jira
detailed
open-source or
> rowIterator we
project can use
analysis
automated
= the testing API : It supports the
and
code
and
protocols
exposed
effective
framework. reuse,
Waterfall
spreadsheet.iterator(); and
API's classes,
development
standards
of
management.""
TestNG Jira. is similar to JUnit butonce,
methods which written
methodologyare widely it is
is HTTP protocol: URL,
1.
tested}// @BeforeSuite
Switch
ite.next(); and to child
implemented."" window
their
used individual
for exchanging approach data towards
between quality and
Defects
much
The
"""Automated
}else{ annotated
if(temp==sum)
for (String
can
more powerful be
handle
created
method
testing : than by
will
handles)
of be {run only once Request/Response
clicking
JUnit
web/windows
systems
on Issues
testing.
or
of applications In the
type(rowIterator.hasNext())
while Bug.current "" Waterfall model, the “Testing” Headers, caching,
before the
System.out.println(""""palindrome
driver.switchTo().window(handle);
application where
driver.switchTo().window(ite.next()); suite have{supports
application run. number
phase
2.
Sample Web
row comes
=service
xml:
(XSSFRow) after
is used the for REST, SOAP but,
“Build”
rowIterator.next(); phase, and in versioning, content
2.
"""");
localized
} if @BeforeTest
(!parentHandle.equals(handle))
content. {
the
XML-RPC
<?xml Agile
Iterator methodology,
for< communication
version=""""1.0""""
Cell > cellIterator testing while=is typically
encoding=""""UTF-8""""? API is used formats.
The
1. else
i++; annotated method
System.out.println(driver.getTitle());
using the window will
id while be run
declaring before theany
performed
for
> any
row.cellIterator(); style concurrently
of communication. with programming or WEB SERVICE: A Web
test
objects method
} System.out.println(""""not with @Test tagapplication
if(driver.getTitle().contains(""""TitleName""""))
from the windows palindrome""""); would { service uses only
at
3.
<!DOCTYPE least
Web in
service the same
supports
suite SYSTEM iteration only as HTTPprogramming
protocol
work
}"" 3."" break;
}whereas @BeforeClass
best.
5. While Waterfall
API supports
""""http://testng.org/testng-1.0.dtd"""">
while ( methodology
cellIterator.hasNext()) HTTP/HTTPS {is an internal three styles of use:
protocol.
The
2. } annotated
declare thedoes method
object with willthe be nextrun before
available the "@Test : To mark a
process
4.
<suite Web Cell and
service
name=""""Test-class
cell = supports not
cellIterator.next(); require
XML the
while
Suite"""" API SOAP, REST and XML-
first
and test method
} reliable property in thewhich current class.
is Caption method as a test
participation
supports
parallel=""""methods"""" XML ofandcustomers,
JSON."" the Agile
thread-count=""""2"""" software RPC for communication.
3. 4.} Generating
development
@BeforeMethod a unique key
approach focusesfor each on of the > method.
customer API: API may use any
The <test
objects switchname=""""Test-class
annotated (cell.getCellType())
method
driver.manage().window().maximize();
available in theinvolves will test""""
{
be run before
application >and used @BeforeMethod:
"""String
satisfaction str =and """"ALPHABET""""
thus, the style of before each
each
in
1. } <classes>
the
There
participation
case
test
automation Cell.CELL_TYPE_NUMERIC:
ismethod(@test
inbuilt
of framework.
function
customers
method)
to And using
reverse
throughout stringthe in Executes
the communication.
key 5.
return<class
@Test
to class name=""""t1""""
parentHandle;
identify the objects // />Returns
from the parent test (@Test) method.
String
development phase WEB SERVICE: It can
Where
window
application<class our name=""""t2""""
System.out.print(cell.getNumericCellValue()
if needactual
under to tests
switch
test. And />
are written
back""
theregarded
unique keys + @AfterMethod:
Eg,
6. Thestr.reverse();
Waterfall model can be as a only be hosted on IIS.
""""6.</classes>
\t\t
"stringently
are
2. used """");to refer to the original properties of Executes
@AfterMethod
Conventional after each
</test>
"""explain break;how sequential
did u achieve process, however,
polymorphism the API: It can
in test method. be hosted
The
the annotated
objects from method
the will be run after test.""
each
char
Agile
</suite>
your
ch[]=str.toCharArray();
methodology
project isapplication
a highly collaborative under within an application or
"test String
software
method. rev="""""""";
development process, thereby
@BeforeClass:
IIS.
Polymorphism:
7.for(int
"""What case
@AfterClassis Cell.CELL_TYPE_STRING:
@dataprovider Executes before the
leading toi=ch.length-1;i>=0;i--){
better team input and faster WEB SERVICE: All web
API
1.
The methods:
Perform
annotated
DataProviders System.out.print(
a single
method
pass action will
different in bedifferent
run
values after
to ways. all
the the first test method in the
problem
GET rev+=ch[i]; solving services are APIs.
2.
test
TestNG Mainlymethods cell.getStringCellValue()
to
Testtest implement
in
Case the in athe inheritance,
current
single class. +
execution """"
helps\t\t """");
and in current class.
in API : All APIs are not
"1.
7.
POST, }In
Deriving
Waterfall cases
model directly
product from cana be seen
code
8. @AfterTest
the formreuse,break;
of classes,
TestNG methods
Annotations. written
It is a once,
part of @AfterClass: Executes
System.out.println(rev);""
requirement
only after all specification
the phases has or black beenbox completed test web
PUT,
tested
The
the
"design
}
inbuilt and
annotated implemented.
TestNG method data-driven will be run
testing after for all the after services.
all the test
but in
"""Difference
DELETE,
We } can technique.
Agileperform after
between everyThe
polymorphism Techniques
sprint
TDD a working
(Test-Driven)
by include:
method and WEB SERVICE: It is not
test
which methods
TestNG is quite popular. DataProviders methods in a current
prototype
BDD(Behavior
PATCH"" will be
Driven) created Testing and at end of every open source but can
9. System.out.println();
overloading
help @AfterSuite
inapassing and method
the parameters overriding in different class."
Boundary
sprint
1.} Test-driven
Overloading: Value
feedback Analysis
is
development
when two taken (BVA)
from the
typically involves be used by any client
The
"""API
ways annotated
Framework method willorbe morerun methods
after all in
customer.""
writing
fis.close();""
one class a test
have for a
the certain
same piece
method of name but that understands XML.
tests
It
"" in this suite
is explained neatly have in run.
Rahul Shetty course""
Equivalence
functionality, Partitioning
running (EP) fail and API: It is open source
different
""How to open parameters; browserthe
----------------------------------------------- test to
in New see itWindow
Private
then
Overriding writing
10. @BeforeSuite
using script : twothe methods
------------------------------------- code to make with the same test pass. ; and it can be used by
Decision Table Testing
Behavior-driven
method
The
Chrome:
""syntax annotated name
to perform and development
method parameters.
parallelwill be typically
Oneonly
run
testing ofTestNG
in theonce any client that
involves
methods allis a developer,
inyouthe parent test engineer and a understands JSON or
before
DesiredCapabilities
and
State what
Transition
tests
do inwrite
this
Diagrams in class
suite
capabilities have and
= run. the other
XML."
product
is
11. in @AfterSuite
the manager
child
DesiredCapabilities.chrome();
<suite tag> also class.
what(anddo potentially
you mention other in
stakeholders).
2.
The
doubleMethod
annotated
ChromeOptions quotesoverloading The
method
options
like group
parallel: will meets
performed
= new be run
="""""""" to""""""""""""
come
within
only up
once
Use
with
class.; Case
concrete
Method Testing examples
overriding: of acceptance
occurs in two
after all
ChromeOptions();
<?xml tests in this suite
version=""""1.0"""" have run.""
encoding=""""UTF-8""""?
criteria
classes
" inthat a user have
options.addArguments(""""incognito"""");
> story. These examples are
IS-A relationship
"""What are all the drawbacks in Selenium?
Limitations: (Can be overcome using plugins
or
"""1.API's) Keep a switch variable in the config or
Selenium
excel file, does to change not support the file automation input
testing
Eg: Env for
= QA, desktop
the code applications.
should take needs all the
"In
It terms
does not ofhave reporting, built-in allObject
the bugs Repositorytolike
variables
be reported. for QA
But whichand same for
bugs to be fixed PROD
UTF/QTP
2. Dataprovider to maintain attribute objects/elements
to be configured in first for
and
"""
centralized In tested
Selenium, depends
location. how toHowever, on the
get text value business
we can from
QA
"text-box and Prod"""
overcomeif this gettext() limitation is notusing working Page Object
1. First
Model.testsuite executed with
"""One check to see if that if html error page during needs
to
Selenium does
night-hours be scrolled to
butnot the
now have element
same any and do
inbuilt getting
testsuite a
getText()
reportingcapability;
executed without any you error.haveWhat to rely willon beplug- your
public
ins likevoid
approach JUnit toscrollIntoView(WebElement
and TestNG
debug it? for test reports.
element)
It is not
The driver { and thetoapplication
possible perform testing mighton not be in
"""Why
images. is CSS
((JavascriptExecutor)
sync so adding waits to the script mightwith
We need locator to faster
integrate than SeleniumXpath?
Idriver).executeScript(""""arguments[0].scrollInt
Sikuli
resolve do not foragree image
the with
issue."" based thistesting. statement, both
behave
oView(true);"""",
"""Consider
Creating differently
test this
----------------------------------------------- element); in
snippet in Selenium
environment different browsers. takes For
Eg.
Web
more
-------- } Indriver
IE, xpath
time as driver=new takes more
compared to time
chrome vendor than
driver();tools CSSlike as
there
what
UFT, RFT,
""Two is
does no
priority(0)Silk native
the test, above
TestNG engine,
etc.all codemethods Based
snippet on the
willmean? give
"""write
factors athe code speed to put can be 0 at the end
determined and not
WebDriver
Selenium
compile if(!element.isDisplayed())
int lastIndex error -
does Interface
or notnot
= elements.length-1;provide , driver any - reference
test tool
"""Explain
generically""
scrollIntoView(element); difference between Method
object
integration
No""
Overriding , new &for - keyword,
Method Test Management."" OverloadingChromeDriver - Class
"""How
driver do you
-----------------------------------------------
element.getText();
object is select
upcasted multiple to values from
WebDriver.""
-----------------------------------------------
1. //down?
loop backwards
Overloading: looking for zeroes
drop
------------------------------
2. Sometimes
-----------------------------------------------
----------------------------------
-------------------------------
for(int i = this worksi >=0; i--) { methods in
when
lastIndex;
two or more
one
Select
""Even
"""Select
String class is is
though have
a class
a class CSS thethat issame
that is is
faster method
provided thanusing
provided by name
Xpath by Selenium but
,why
-----------------------
""3.How
""What
different if to execute
Windows
if(elements[i]
parameters; parallel
popup
== 0) { test
occurs during Test test
to
do
Selenium perform
95% of the
to multiple companies
perform
text1=driver.findElementByxpath(""""xpath"""").g
""where can """"""""Dynamic operations
multiple use on DropDown
XPath
operations
Polymorphism"""""""" ? on
NG?
execution
Overriding // and
found
:object due
two methods a to
zero, that so can't
with loop the execute
forwards
same
object
Explained
DropDown andabove,
etAttribute(""""innerText"""");""
in Selenium Multiple
WebDriver Using
and Select the
Multiple
be objects.
type
observed Select of This
locator class
objects.
1.
"//Basic
automated TestNG logic- TestNG
tests, ,under how hasuinbuilt testng.xml file
from
method
can
depends
This behere
class name
found on can the
-----------------------------------------------
Combination of
and
be developer
found
overloading the will
parameters. Selenium’s
under
resolve
and
and
One
the
the ofthis
type theof
Selenium’s
overriding is
where
//Window
error?""""
"""1.
methods Abstractwe 1can
for(int
is in define
class:j = i;
the package.The j
parentCan
< the
lastIndex; tests
achieve
class this in parallel
partial
j++)
and statement.{
the other or
Support.UI.Select
application.
Support.UI.Select Cannot
-----------------------------------------------
known as Polymorphism. generalize
package.The dropdown
dropdown
<suite
1.
complete
is in theare name=TestSuite
driver.findElement(By.xpath(_xpath1)).click();
Firstly if it is
abstraction(No
child not
if(elements[j+1]
class. based expected, thread-count=6 then
implementation
== a
0 || j ==following:defect
lastIndex) and
values
""
values
-------------
Overloading are selected
selected
(Complile based
time on
on the the:following:
polymorphism) :Eg.
parallel=methods
needs
Implemented
{1.
2.
"""Explain ArrayList<String>
Method to be raised
overloading
method Methods) >""tabs
overriding : ; = new
Interface
performed with the Can
withinsample
1.
""If selectByVisibleText
-----------------------------------------------
selectByVisibleText
we
Implicit are using
wait : correct
Implicit -wait
- selected
selected
locator we usebutbased
based still
different on
on
-----------------------------------------------
ArrayList<String>
2.
achieve
class.;
code If it is expected
complete
Method // overriding:
either (driver.getWindowHandles());
handle
abstraction(Only
at the the pop
end ofinthe
occurs up two array,
text
getting
time visible
-----------------------------------------------
text visible
stamps element such not as found
SECONDS, errornear thenthe
MINUTES, how u
---------------------------
String
Unimplemented
or
classes
1. driver.switchTo().window(tabs.get(0));
we've
OverridingparentHandle
run
that into
have
:between
Two Methods)
anotherIS-A
methods = zero
relationship with the same end
Select
-----
3:
Select
will
HOURS Difference
resolve drp
drp ==this
new
new error? assert n verify
""Pros
3.
method Method and
driver.getWindowHandle();
2. Abstract name cons
class:break;
overloading: and of NoImplicitrestriction
parameters. example wait
// Save andofparent
on
One Explicit
compile
of the
Select(driver.findElement(By.id(""""id"""")));
""What
Assert: areChecks the
Select(driver.findElement(By.id(""""id"""")));
1.
"""1:
2. Checkwhat ifis
driver.switchTo.frame xpathString Standard
if is
the specified
correct.
Pool. :Guidelines
we havecondition and
three rules
is
wait
window
declaration
time
methods //Windowpolymorphism is 2
} ;
in Interface
the ;
parent Method: Byclass default
overriding:
and public,
the other
drp.selectByVisibleText(""""text"""");
to
true
String
different be followed
and Pool false.
drp.selectByVisibleText(""""text"""");
2. Check if the
variantsis a for
If
elementthe
storage any
such automation
result is
area
as in isthe
frame intrue,frame
Java name,project
the heap. next
index
Wait click();inand selenium
//click the { denotes theopens selenium driver
static
example
is
2.
framework?
test
2.
3.
Each
and
in the
selectByIndex
step
selectByIndex
Check time
WebElement
offinal.
child
ifwill
else
the
run
aclass: be
string
time
class.
element --link
executed selected
selected
literal
which
polymorphism""
isishiddenelsebased
based
created,JVM the
multiple
on index
execution
on index
to
windows
"""How
3. wait
Abstact for
driver.close();
will you particular
//
-----------------------------------------------
2. Overriding: handle
occurs Does
bubble time
certificate
not
up
in two or
support
the a
zero
classes particular
using multiple
we that foundhave
number
1.
would
number
4. Develop
Check of
terminate.
of the
astring
the
ifdifferent small option
option ;time script
Verify :as POC
Verifies check
ifIfbe
the if
checks
Overriding(Run
condition
selenium?
Inheritance
one
"""Explain element the isthe
----------------------------------------
IS-A relationship
html
;reached. time
driver.switchTo().window(tabs.get(1));
driver.switchTo().window(parentHandle)"" Interface
at a page
literal
Polymorphism):
types This
to needs
pool
: Supports
push
of will first.
allow
it
exceptions to
to Multiple
thethe scrolled
endstring
in java
drp.selectByIndex(4);
the
specified application
drp.selectByIndex(4);
to the view"" condition is in sync
is true and
and can
false. be If the
"already
1.
application
1.
Inheritance
There
""write
3.
get: are
Overriding:
exists
method
program
selectByValue mainlystint to in
used
Example
the
be
driver.findElement(By.xpath(_xpath2)).click();
Firefox: temp
fortwo inin
method
string
= different
sync
types
of
pool,
with
elements[j+1];
run of a reference
browser
Selenium.
exceptions
overriding
time and in
automatable,
result
3.
drivers
There
ProfilesIni
4. theas
Abstact is true,
selectByValue
pool
are 2 what
-----------------------------------------------
to instance
types
profile
class: the=Can
elements[j+1] --next
of
selected
other
selected
new test
returns.
waits
create
tools
ProfilesIni();
=
based
step If are
based
object thewill
elements[j];
on
required
on
string
of
value
beclass
value
Java
method
polymorphism
of
"""1)How
other
executed.
of the
thecan option
than
optionfollows:
overloading
hash InSelenium,map
case ofworks false internally
condition, andthe how
------------------------------------
does
2.
1.
1. //Window
FirefoxProfile
thus Checked not
navigate:
Implicit exist
Wait
have method
3exception:-in
myprofile the
Implicit
constructor
elements[j] pool,
used =waits ina; different
new
=repository
checked temp; are
Interfaceby String
used the : toobject
browser
Cannot
OverLoading:
drp.selectByValue(""""2014"""");""
its
2.
"""""""1.
execution generate
Maintenance Suppose
drp.selectByValue(""""2014"""");"" would hash ofyou
still code?
Object come
continue. to office and
in the Test
""Why
initializes
drivers""
provide we prefer
and
aadd(int
ArrayList<String> default
profile.getProfile(""""default"""");
create
compiler object""""
during} the is the explicit
placedwaitingtabnew
compilation wait
in timethe =instead
pool.
between
new process of each
fluent
to
static
class
Data
morning,
"" int
A{
-----------------------------------------------
HashMap feed maintains
to
due tothe
"----------------------------------------------- a,
tests
any intan b) array
critical of the
reasonofyou bucket. have
wait?
String
consecutive
ArrayList<String> What
s1whether are
= “Test” step
myprofile.setAcceptUntrustedCertificates(true
confirm } the of disadvantages
the
exception script.The
(driver.getWindowHandles()); is handled fluent by
{to
-----------------------------------------------
When
3. Utilities
run we
teststore present
suites
----------------------------------------------- orstep retrieve
in the
but your any
framework key-value
IDE(eclipse, like pair,
IntelliJ,
wait?
JVM automatically
-----------------------------------------------
subsequent test
driver.switchTo().window(tabs.get(0));
);Abstract:When } we checks
want would some if the only
of same
the execute value
methods
-the
return
HashMap void
screenshots,
VScode programmer
------------------
Following
exists
---
a+b;
run(){System.out.println(""""A
inetc.) calculates
the are is email
the
string
or not:
crashing, , the
config
differences
constant index
also file of
you
between
pool the
reader/ class"""");}
ordon’t bucket
not. json
have
Fuent
when user
} the
driver.close();
ClassNotFoundException,
}""While to 30 seconds
myprofile.setAssumeUntrustedCertificateIssu
for override and have create elapsed
IOException a user after
for
file
Jenkins
5)
and
if
""What each
how
yes,reader
explicit
it performing
to and
build etc
click
occupies
isintthe waitevery
or on any
differenceand parallel
operation.
hyperlink
the other
I believe
already
between testing
external The
fluent
existing in
Key testng
test
wait object
is
value.
""""""""/""""""""
executing
er(true);
static the
add(int previous
driver.switchTo().window(tabs.get(1));
implementation.
2. Unchecked exception: a, int b,test step/command.
exceptions
int c)partiallinktext"" that
what
is
4.
runner
Using used
decommissioned
If
and do
Generation
no,usually the
itduring you
to
tool
creates calculate
in
locator
""""""""//"""""""" write
of
your logs
a innew in suite
the
and
organization
linktext
fromxpath? string index
and
selenium tag,
reportsbytheoflike the
to
3.2
itself what
run bucket.
jarand do
test.
driver.manage().timeouts().implicitlyWait(30,
WebDriver
We
occur
{What
class B extends driver
createthe =execution
A{ new
an abstract of class program:named
you
By
5. mention
using
Exception
will this
be in
key,
-----------------------------------------------
Fluent
adds
There it Wait
are to the
two command parallel=
Handling""
yourstring
types the
first hash
pool.""
of step?
defines""""""""
XPath value
How""""""""?
the is
will
maximum like
youwhat run
TimeUnit.SECONDS);
driver.findElement(By.xpath(_xpath3)).getText()
FirefoxDriver(myprofile);
""""Baseclass""""
System.out.println(Arrays.toString(elements));"
NullPointerException,
return a+b+c; to have all common
ArrayIndexOutofBound"" methods
do
calculatedyou mention using
-----------------------------------------------
test
amount suites/cases?
------------------------ofWait time in the """""""" hash(key)""""""""?"""" private
1.
2.
;"
}or
"method
""I Absolute
Explicit
Chrome:
variables
need
void to do Xpath
for -for
-----------------------------------------------
login
run(){System.out.println(""""B Explicit
every -Selenium
XPath
and page. waits
logout WebDriver
expression
Then are
forwhereused
each
100 ispae
class"""");
wait
to halt
TestNG
for a has
to
certain of handleinbuilt
HashMap.
-----------------------------------------
Using
6) How command condition
-----------------------------------------------
created using the prompt""
web testng.xml
The
selection based
to buckets
appear file
popup
from are
the root we
further
the
"""How execution
DesiredCapabilities
will inherit
testcases.
} "" this
How until
class
will the
capabilities
you and timeachieve a particular
if that =needs it? a
can
maintained
----
node. define
have
GetWindowhandle
FluentWait It starts the
as
you
is a tests
Linked
handled
-----------------------------------------------
1. superclass
with a in parallel
List
- returns
single downloading
of newslash String
WebDriverWait. ‘/’ and of It
condition is
DesiredCapabilities.chrome();
different
@Test(invocationCount
Overriding: met
implementation
-----------------------------------------------or the maximum
= or
100)"" time has
<suite
hashCode()
different
--------
<address
has
""2:
traverses more
what name=TestSuite
browser
is of method
options
from the
difference thewindow>drivers
than is
root usedthread-count=6
without
WebDriverwait.
between
to the to calculate
String
whole manual the
Builder
DOM to
elapsed.
capabilities.setCapability(""""chrome.switches"
imlementation the page class
""Can
class
----------
hash
intervention?
""What
2.
and
reach
constructor
Animal{
parallel=methods
value.
is the
GetWindowHandles
Wait<WebDriver>
String
WebDriverWait to the This
Buffer? difference
desiredwaithash be
>""
wait =
overloaded
= value
-notbetween
return
new
element.
new is would
used Explain
click()
Set<String>""
provide.
for
""",
"why?
""2. Arrays.asList(""""--ignore-certificate-
Interface:
void
storingWrite When
eat(){
the a program
Entry we do
as follows: want to expose
Using
function
2.
Yes!Relative WebDriverManager,
in
WebDriverWait(driver,30);
errors""""));
any methods
Java
webelement
XPath
supports
System.out.println(""""eating.""""); to -objects.
-----------------------------------------------
FluentWait<WebDriver>(driver)
Java provides three the XPath classes
user
constructor
Since
we
interface
expression
and
can
toalter
hashCode()
and
represent the
overloading.isclick() a
Input
functions
function -
automatically a[1,2,3]
in
--------------------------
.withTimeout(30,
sequence canActions be
download overrided
class?
SECONDS)
ofChromeDriver(capabilities);
characters: the and
driver’s can return
binary
created from the
wait.until(ExpectedConditions.visibilityOfEleme
driver =-new
implementation. middlewe
Interface ofString,
the DOM StringBuffer,
structure.
In
} constructor
Output b[2*3, loading,
1*3, 1*2] iscreate created multipleto design
Vinay Shubham
Priyanka Mestry
Sharma Sawant
"1.difference between
abstraction
2.What is Encapsulation? and interface.
1 Abstractabout
Encapsulation-
3.explain class
--------------
-encapsulation
synchronization
4.Difference between isinjava selenium.
throw
1)An
process
Synchronization
and abstract
throws of wrappingclass meaning: can code have
5
method .what are
body the exceptions
(non-abstract
and
when data twofaced.(howinto
or a single unit.
Throw-
you
6.
methods).
-we
have
method
can to more
create getapage fully
totitle
components
-Throw
resolve
getTitle() keyword
NoSuchElement involved is used to to
8.How
2)An
encapsulated
perform toany
abstract handle class
class
action, multiple can
wein javahave
throw
exception)
windows an exception
on browser.
9.explain
instance
by
expect
explicitly. making these about
variables.
all the page
components data object to
Imodel
We
3)An have can faced
and
abstract use advantagesclass can have
10.Difference
members
work
-driver.hetWindowHandles() together
only single exception is
NoSuchElementException, of the between
with class the same
Pom-
constructor
submit
private.
11.what
pace.
thrown The and
by are click.
usingthe selenium
co-ordination throw
TimeoutException,
to
-Page
4)An handle object
abstract multiple model
class windows
isof
can design
click()
-we
liabraries
between
Q12.Explain
StaleElementException. can should usethat
these the be
setter
you done
components
code and
have onhave
on
pattern
static
submit
getter
used
to browser.
runand to
methods.
button
methods
paralelly create
explain and to object
one.
istesting submit()
set
called and
launching
Example-
13.explain
NoSuchElementException browser.
about
repository
5)You
can
get
IPublic
Synchronization.
Code have be
the can
for done
used
voiddata for
extends
launching in web
anywhere
selenium-
operation1(){ elements.
one
chrome on
annotations.
This
14.difference
-under
abstract exception this class. model,for is thrown
between each
the
encapsulation
java
It
browser
Throw
@BeforeSuite-
when form
.selenium-chrome-
avoids WebDriver element.
exceptions
is and this doesn’t like find
annotated
@beforesuite
web page in this @aftersuite
application
-By
driver,selenium-firefox-providing
“ElementNotVisibleException
System.setProperty(""webdri
ArithmaticException(“arithmet
method
the web-element will beberun only setter
inbefore
the DOM. all
@AfterSuite-this
"1.OOPS
there
Interface should concept- annotated
”and
driver,
icor
We
method
getter
ver.chrome.driver"",""path
tests exception”);
can in the
resolve
will
method,
selenium-ie-driver,suite
be run have we run.
after
can
all of
Oops
corresponding
---------
2.What
make
selenium-support
“NoSuchElementException” concept-
the is class data page
driven
read and
testing
only
libraries.
chromedriver.exe"");
}
@BeforeTest
NoSuchElementException
tests
1.Inheritance-Inheritance
test
1)Interface in
class. the – this
suite
have have
only annotated run.in in.
Data
and
-selenium-chrome-driver
In
method
2 such
ways: driven
write only.
scenarios,
will testing
bethis run is
we
beforetest
use –
@BeforeSuite-
java
-This
abstract
automation ispage mechanism class
methods. framework. will annotated
in which
find When the In our project we have used
-encapsulation
used
Throws-
executing
1. By to
Synchronization/wait(implicit
IWebDriver have used
applying interact page
driver
first(any) provides
with
= object
new chrome
test us
method
child
web
2)An
some class
elements
interface
tests will be
acquires
needs run
of
cannot that before
to all
web
have
repeat all
control
browser
wait
-model
ChromeDriver();
Yes, Throws or
, i haveover
explicit
design keyword the
maintainedwait)
pattern data. is to by
used a to dataI driven testing POMframework
method
WebDriverWait,
tests
properties
page
instance
for
overcome
using
WebDriver
declare
in
and
different
java,
in
the
one
a of
also class.
suite
variables.
these data
selenium,
is an
or parentwebdriver
contains have
set
kinds
interface
more
If a
,
class
class.
data
of page Yes
run.
by using
have used
POM with Page
in my
classes
"has
object
Page
Here three wait
Factory
properties for @testevery
forisa method web
specific
aare class page.time The PageFactory Classevery
then framework to maintain in
methods
3)Interface
driven
exceptions.
testing
provided
exceptions, framework
, which
maven,
by cannot
selenium
separated perform
git, gets have
Jenkins used.
by factory.
Each
@BeforeTest
(in
Iprovided
variables, will web
second)
create by pageof will an
Selenium
separate
functions, hasrun
element abefore
etc. for page
Selenium
we can of the
create is web
an application.
extension
7 different to
classthe
operations
constructor.
In
and
webdriver.we
commas thisI have framework, oncan
followed those not web
data create We have maintained a page
separate
executing
its
WebDriver
classes
Yes
Inheritance visibility. for class
any
to each
provides of
support and the
page(7 that
three
Page
code Page Object
for 7 pages with webelements
No design pattern. It is
elements
4)Interface
parameters
driven
an
-multiple object approach. and
of cannot
in
exceptions by
test
interface,we using have
case can test
gets
be class for every page in our
class
@test
WebDriverWait
Object
pages),then holds
method.
Design the Itwaitfunctionality
does
patterns.
will create = not
new In used to initialize the elements
reusability.
class
static
Alert,
linked
1.Language-
create
thrown will
methods.
HasCapabilities,
to anby execute
database,
objectWhen
using In our of we
throwsourexcel,
projecttest defined
inherit Webdriver
application
of each isand an apage. page
For
test
and
matter
package
properties members
WebDriverWait(driver,
Page out
Factory, for of
fromall ofmethods
3testers
test that
existing web
10);
use of the
these Page
7 page Object
we or
need to
cases.
5)You
HasInputDevices,
csv,
Synchronization
we text can
areSeparateusing implement
files from there
meaning: multiple
Interactive, test interface
It is a mechanism ,Alert,Javascript which
chromedriver
Example-
page.
which one
wait.until(ExpectedCondition
@FindBy
cases,package
class,
Advantages- we getjava
annotation.
can
class.
reuseclasses
execute
for language.
Thefirst. class
for instantiate
create totest maintain
the
class Page test
forone for that
Objects
these 7
interfaces
FindsByClassName,
case
when
In
2.
Driver.get(“url
Public order
Type run
two
voidof to fororhandleall
more
framework- to
method2()throws defined
be the openedalert
we are Executor,TakesScreenshot
involves
We
pages. can more
use
e.g. alert
Product than maybelisting
every
@BeforeClass-
s.visibilityOf(link));
initElements
properties
methods individual and file methodThis
and
fields test. base is
of to used
parent itself.
pages that are related.
1.
components
pop Page
FindsByCssSelector,
parameter up, object
we infirst the pattern
involved havefile. says components to work parallel
using
in
IOException{
Listeners
annotated
2.
to
class,
class
operations
chrome”);
We behavioural-driven
can
initialize package
and are
method
handle
weweb
and
basically
can elements.
for
flows willto
test
add in
the It
be
data,
the
switchto().Alert
page,Add
is an inbuilt to cart and
interface used
page,Payment which is
FindsById,
perform
switch
framework
…code
ones who to any FindsByLinkText,
alert
by
have action,
window
using the wepage
ability using to with
accept() Each
page,Invoice
used to or
listenother.
dismiss()
generation
to certain page.
event
run
In
@FindBy:
reports
methods
user before
NoSuchElementException
order interface to An
and the
handle firstthe
annotation
fields
should test
also. alert
be usedThe Using alert we can handle
FindsByName,
expect
the
object
}import
listen below to these
model a particular components
design pattern
event. to
It driver.manage().timeouts().impli
We
and have
behave maintainedas it is separate
defined.We
method
through
pop
in
class
separated Pageup, which in
we
Factory the
try-catchfirst
from current
inherits have
to locate block toclass using
the driver.switchTo().alert().accept();
Simpledateformat class
FindsByTagName,
work
statement.
with
is definedtogether
page factory.
as an with interface the same citlyWait(10,
package
use annotations TimeUnit.SECONDS);
for dateFormat
page and page
@Listeners.
inside
switch
and invoked.
declare Generic
java.text.SimpleDateFormat;
Connection
properties
verification to alert
of web
con
.This method
window
other elements
=concept class using driver.switchTo().alert().dismiss()
DateFormat
is download jar file of Mysql new =
FindsByXPath,
pace.
that The
driver.switchTo().alert();
3. POM- modifies As co-ordination
per the page behavior object of test e.g.
@BeforeMethod-
public
the
using
import below
DriverManager.getConnectio
called
makes boolean
different
java.util.Date;
asour child
codeclass/derived this
locators.
cleaner ;
SimpleDateFormat(""MM/dd/yyy
connector
anda ElementNotVisibleException
WebDriverException(Excepti
JavascriptExecutor,
between
After
model,
the system. wethese
transferring have Listeners components
the
maintained control
allow com.companyName.page1
annotated
isElementPresent(By
statement.
public
n(""jdbc:mysql://""+
class.
easy to class
The method
class
understand. whose will
host by) be {
+"":"" y
UseHH:mm:ss"");
the following steps to
on):
SearchContext,
Main
to
class
customization run
alertmethodparalelly
for window, every will of is
webweget called
reports execute
can use
and NoSuchWindowException
Main method
com.companyName.pageTest1 will get executed
run
boolean
properties
2. portbefore
driver.switchTo().alert();
CurrentDateTimeExample2
+ second +""/dbName"", each
isPresent
are
benefit test
inherited is= true;
object is { connect
ErrorInResponseException(
TakesScreenshot,
first.
Synchronization.
the WebDriver, of a first StaleElementReferenceExcepti
Primitive data types a baseinclude
page.Each
logs.
method.
try
After
public
""username"",
called
repository {following
WebDriverException): transferring
static
as
web
parent
is
methods
void page
""password"");
independent the has
class/base control of
We also have
DriverManager.getConnection(U
on
page
It
Primitive
“Alert”
separate
Hashmap-
Listeners
@test- avoids
driver.findElement(by);
to alert Marks exceptions
datatypes-
interface.
window, class
mainly a and
class comprise
we{can like
Boolean,
that
or
canuse of int,float,long,char
class
It is a
use TimeoutException for
map common
collection functions
class
main(String[]
class/super
test cases
InvalidSwitchToTargetExcepti
“ElementNotVisibleException args)
class.
,basically
so we RL, """"userid"""",
short,
getText()
class
A
two
method
Jenkins
the HashMap
SimpleDateFormat types,
}on(WebDriverException):
catch int,
holds
following as
is → long,
an tothe
namely
a partget
open char,
methods of the
functionalitythefloat,
source
formattertext
of test Non
use
which
Jenkins primitive
by isall used
is an data
pages. for
automation type stores
storing the
tool
2.Polymorphism-
the
”and
double,
present or same byte
on objectthe alert When
repository window. one """"password""""
reference of the ) value
designates
1.
case.
automation
=“Alert”
Pom.xml members
WebDriver
(NoSuchElementException
new interface.
builds unique
tool of
listeners
the that
written keys web to
in e) POM We
key
which also
value
is is have
anbuilt pair.Yes
acronym library we
for continuous package
can
for Project store
task
for
accept()
page. isSeparate
different performed
NoSuchFrameException(Inval
“NoSuchElementException”
Non-primitive / dismiss()purpose
datatypes-
classes by → with
to click
for . reference
to maintain cancommon be functions
corresponding
2.
{TestNG.
Java
getText() TestNG
@AfterMethod-
environment with → listeners
pluginsto ofget values
this
our abuilt
the that
for
text
project the objects
integration in hashmap
purpose.It fileisthatused
SimpleDateFormat(""dd/MM/y
different
String,
on
every such
OK buttonxml
idSwitchToTargetException):
In ways
tools.
scenarios,
array
individual
file on is
is
For called
the
test. example
we alert use as , Object It Model.
is a configuration
class,interface
related to
The pom.
or array
xml file
can
TestNG
annotated
isPresent
Continuous
present
by
yyy be
downloading
configuration retrieved
provides
HH:mm:ss""); on = method
false;
Integration
the alert
file that at
the any
will be
window. given because
to implement
contains its object
information CI/CD provides
workflows
of project us
polymorphism.
we
@FindBy: can
NoSuchWindowException(Inv integrate
Synchronization/wait(implicit
window.
4.Packages-
point. Anannotation
annotation
We pom helps
have withused @FindBy helps
variable in organizing
annotation our
Selenium/waits/directory
the key is usedtests. in It
@Listeners
run
}in
purpose.
accept()
dependencies
Date after
date
organizing / each
Jenkins
dismiss()
=functional
new our test
and is
Date();
tests. method.
→used towhich
plug-ins. to
click called pipelines
and configuration information
Polymorphism
TestNG Page for
Factory
alidSwitchToTargetException
wait
String
separate or is explicit
non-primitive
packages in to
wait) java locate
to
for is Ita
testing allows
POM topair
creations
testersand
locate etc
to create
declare and web
HashMap
listens
@AfterClass
return
build
on
Normally, OK and to
isPresent
button
System.out.println(formatter.
allows testers class
every
test
in -a This
on your
Java
to implements
event
the annotated
create alert
project, that
software and value
for
handlethe maven
multiplefor storingto build
test the
classes,
concept
):at
and
overcome thedeclaresame by which
time
web with we
elements can elements dousing different
Step1-
datatype
Pages
}the
occurs
method
projects
window.
we Map
execute
format(date));
handle
find
andin will
multiple athese
interface all
Tests.
selenium
be
continuously
the the
run kinds
All
Selenium
test
links
which the
after of
code.
classes,
with
web We
all project
define
can
are using
information such
test
itinusing
as
suites
JAVA
memory <a>
as our
dependencies,
and
tag as
tests. It
perform
cucumber
using different
NoSuchElementException(W
exceptions.
I<a> tag single
using for action
acceptance
locators. in locators
we know all
page
the choose
allows
Listeners
making
scripts test related
}ebDriverException):
define us
it
by
test selenium
method to
are
easier
adding
suites
classes
store
activated
forin key
the
andthe come
because- and To
tests.
binding
Selenium
build
makesretrive
directory,
a thethe
language
supports
tester's data links
source
job we start
major use get
easier by
different
testing.
Syntax
findElements(),and
under
1. it is pair,
an of
Pages ways.
implicit
open package
source wait- findor andtotal
tool all @FindBy(id=""elementId"")
using
We are
languages <a> using tag
like standardized
value
either
current
Page
}developers
required
It makes beforeclass
loading
ajar where
to the
files[by
tester's is
integrate keys
test
invoked.
symbol job easier after and
What put
directory,
controllingdoes methods search
test
the source which
executionpage shows ofand
Types-
3.There
freely is
NoSuchAttributeException(W
driver.manage().timeouts().im
no. of links related
available a clean
using classes
on separation
size()internet WebElement
Store
maven all the
project
Java,Python,C#.When element;"
<a> for tag in Listwrite
we
should
the
1.check test
@AfterTest
changes
configuring
by controlling be case.
if to unique.

the this
displayed
the
build It
user
the is
project, If
an
annotated
path].can you
when
execution try
and
see hashmap
if
To you
check
directory,
tests enter
by ifsupports
thenothing
plugin
putting other
all in
the search
person
test is
1.Method
between
ebDriverException):
plicitlyWait(30,
function.
come
2. No under
project overloading
test Testcode
cost package.and
involved page then do
build,execution
script in the
any iteration
one & dependency
language, it
to
method
it's
makinginsert
interface
taking
screenshare
Maven
Or
of tests by it
will willthe
that
more
easier
takebe duplicate
putting modifies
run
than
option. for
care after
users
allof key,
the
default to it Convert
box
able and
to
WebDriverWait seeHashmap
hit enter
the wait or
screento MapSet
press
=runnewshared to
2.Method
specific code
StaleElementReferenceExce
TimeUnit.Seconds);
Step2.-using
5. Test overriding forsuch loop, asthe cases
while togetherclick
iterating andon eachit link
3.
will No
TestNG
obtain
2.check
adding
import
test
3.
replace
executing
time to
cases aBase
licence
Encapsulation-
locators
behavior.
load
thoseiffresh
ption(WebDriverException): and all
the theClass-Test
required
the
together element
build.
user
jars
layout.
For
test
result incan aand Base
page.
see
maven of
run
management.
will
get
finder
by convert
set
the of entries
icon?
user.
WebDriverWait(driver,
under one XML it into file. Selenium
in Map 5); with
//error
as it
perform
class
4.
the Can
example,
methods
2.
file Check
Project.sharing be
correspondingIt control+enter
(TestBase.java)
easily
when
belonging
if all
goes the
option customized
you
throughsearch
andkey.
are
to using
deals
the It
able
the is and
For
Check
To if
compatible
entryset()
check there
handling
if theif is
codes
method.: 404
data
search
there is or
driven
box 400
option iscases
or
java.time.format.DateTimeFor
it under
-encapsulation
4. Code one
becomes
InvalidElementStateExceptio
Steps: XML is file.java
less and gets enabled every 5 seconds
keyboard
with
to
easy
running
class
parameters
to all
integrate
share toisthe perform
aand functions(for
test
invoked.
files common
with
are case other
operations
used either
to Test the we iconwould
Easy
Set are
present =passing
to
stwith use be
map.entrySet();
orvalidnot. able data to to know
using that
java
pom.xml
matter;
process
optimized
n(WebDriverException):
1.
2. Get
oops
hitting the of
concept
url),then xpath downloads
wrapping
because weof with of code
droplist.
can the print we
Object
the can
URL isset
is a thename
bundle
broken. time of to 5start
data and
functions
Management
using
through
@AfterSuite-
fetch
3.check
jars into the
data used
key
selenium
ifyour shown
specific tools
this indexby or
annotated
on all
like
like
window the
ALM,
appium
the properties
Cross-browser
Get
Check the if iterator
the
the screen sharing. file/xls
search and
of file
this
box /csv
cross-
set:
lengthfile.
import
and
reusable
pages.
Bug
Bugzilla data
NoAlertPresentException(We
2. Send
program
text of itwill
broken
lifegrid.This
cycle
etc.into
page
to the
class amachine.
single
methods
links.
is constructor
also isor known
Itin
unit. will WebElement
its
For
1) behaviour
ordering
New:
device This
testing
button
also
istests
the known=
we are
first
support(Chrome, state as of
updation,
and
method
result
sharing
create suddenly a is
java.time.LocalDateTime; deletion,
be
working
folder: arun test etc.
aftercase
not. all Iterator
is
To as
checkper it the
= st.iterator();
while
wait.until(ExpectedConditions.especification.
sharing the
-we
the can
pom
bDriverException):
of
Oops 'Select'
responsible concept- create
classes
class. for a fully
. methods
as
5. It
fails.
tests
3. Defect
Thesupports
Weintotal the
“c:/users/userName/.m2.
public class life
need suite
number a loading
cycle.
differentscreenshot
have In run.
of the a using
defect
Firefox,
Get
Check
screen testng
Map.Entry
theis inthere
Safari, theframework.
length
lementToBeClickable(By.id(""btn Defect
Internet
fromthe ofthe the
chat Life
iterator:
query
box or
encapsulated
5.
3. Method
ElementNotVisibleException(I
Use
Software
software all
1.Inheritance-Inheritance
configurations get
the
Development
languages class
more
functions
from in java
realistic
the using in Ex
We
Cycle. are
Explorer) using
When log4j
any
(Android,iPhones.) new librarydefect to is
store
of
Under the
@BeforeGroups-
results objects
test
thisshould
CurrentDateTimeExample1 case
m2 in be hashmap-
folder,that
It is has
used
displayed
all the for
{ Map.Entry
to be
message
_ok""))); added entry
is into
displayed = it.next();
the search
in the
by
names
java making
process,
● Java is
properties which
nvalidElementStateException
'Object' of
mechanism the all
Select
files. the
bugcan data
be
class. in
Initializing
has easily
which
a life Object:
maintain
found,
WORK House
it
WITH logging
falls THE in a of
‘New’
VARIOUS our project.
state,
We
been can
the failed,
execution
in
downloaded
public result use
static ofto put(key,value)
achieve
grouped
grid.
jars
void present such window
test use
box. getKey()
button.click(); and getValue()
):members
mapped
For
child
the
cycle. example-
class
WebDriver,
The withofbug thethe
acquires class
Implicit
should operation all Waits,
go State:
We
and are Address,
using
validations all Color,
kinds
and Area
ofis toare

and C#
function
scenario,
cases.
4. Search
you
main(String[]
happening inargs)
private.
ElementNotSelectableExcept
to
canTestNGstore
criteria check
the user
the
provides
used{ objects.
that. for a OPERATING
methods
Does
To check the ifofSYSTEMS.Open
search
thethe alertboxtesting
Map.Entry box presents
Different annotations in @BeforeSuite. -- The
testing @BeforeSuite annotated
@BeforeSuite-
Introduction about myself this annotated method will run before the
method
1. Choose a programming will be run before all execution of all the test
tests
language in the suite have run. methods in the suite.
JavascriptExecutor
@BeforeTest js =
2. Choose a unit test driver; @BeforeTest.--The @BeforeTest
(JavascriptExecutor)
– this annotated
method
framework will be run before annotated method will be
1.
executing Measure the
first(any) number test of executed before the execution
3.
//
bugs Design
Launch found the
the per framework
application
release
Test
method
architecture plan in – a class. If a class of all the test methods of
driver.get(""url"");
2.
-has Number
Test three plan of
can
@test automated
be
method defined test
then as available classes belonging to
If
4. there
Build are 3
the SeleniumCore test cases with
case
a
@BeforeTest
method document created names for
willand a
as run executed
software before
‘banana’, that folder
component
//This
3.The’apples’ will
ratio scroll
of in bugs the web
being
project
executing
‘cat’,
•5. Analyzing
Build which
the any businessdefines
of
SeleniumTest the
respective the
three @BeforeClass.-- The
page
reported
approach,
@test till
method. end.
to bugs
scope, It does being
and not fixed @BeforeClass annotated
order
requirement
component
Ijs.executeScript(""window.sc have which done test
inover order call to will
(quality
intensity
matter outbugs on of the3 effort
methods ‘invalid’ of
execute
determine
6.
•rollTo(0,
bugs) TheChoose
Created field firstathe
size
and
and test
reporting why?
validation
enhanced strategy method will be executed
software
which
They one
willby testing.
get
execute execute in first. before the first method of the
•covered
mechanism
document.body.scrollHeight)
numerous
defect
-4. Constraints.
A Number
test management
plan test
of automation
bugs
can scripts
be found tools- to in current class is invoked.
@BeforeClass-
alphabetical order This (if their
•testing
7.
"");
handle
jira,
staging
Bug
changed.
Decide
Indexesbugzilla
life changes
vs.
cycle
how
are production to
done
is
implement
in
also or
the not
known (for
annotated
priority
•CI/CD Developing is same). method new testwill be @BeforeMethod.--The
performance-related
objects,
jira-
5.
as The JIRA
Defect severityin the
isfivea
life tested
commercial
of bugs
cycle. In issues)
"-run
There
•scripts
8. Test before
Integrate
Stored
plan
are happens
the
proceduresyour first
keywords test
framework @BeforeMethod annotated
application’s
product
found
Software
independently.
method
used to in and
inproduction
Development
handlethe GUI
helpscurrentand
exceptions to inclassthe in method will be executed
-xpath
•with Maintaining
The other
fieldis one tools
size ofdefined
existing the locator tests
testing
capture
6.
process,
-is
java:
in
Wait-
scripts/regression
Number
Test
invoked.
selenium plan
When
environment
andthe of organize
bugs
bug
describes
using
a page has sent
whichloads
suites ainlife
using
the
about back
we
the before each test method will
on
9.
application
Selenium.
team
for Script/Framework
issues,
clarification is matching
prioritizing
(waste versionof with
the
cycle.
the
@BeforeMethod-
1.
•identify
a try details.
browser,
Attending The objects bug
the
Agile should
orthis
various elements
meetings go
web run.
control
•that
issue Run inSmoke the
and DB.
updating test in the
them
-one’s
through
annotated
2.
on
elements
(Daily A test
catch
thescrum time)
web the
plan method
that life
is
page cycle
done
someone
meeting/Sprint will by tobe thebe @Test.-- @Test annotation
public
morning,
with
7.
closed.
test Number the class
Bug
administrator Analyze,
project.
of Conversion
bugs
life It
cycle Debug
is
or over a
test tool
varies { and
time
run
3.
and
wants
planning/Backlog before
finally
perform to each
interact specific test
with actions
may where we write code/business
public
send
"1.how
that
(not
depends
manager. directly
just static
report
do for we
upon onevoid
to the
identify
integrates
the main(String
build, whole
tools web
but with(QC,
method.
4.
to
load
refinement) throw
carry at{– out on
various automationtime
assigned intervals. logic. If something needs to be
args[])
team.
elements?
the
overall
Selenium
JIRA
-@test- A code
etc.,)
test plan development
shows
Webdriver
used is a broader
and
utilized works
the
5.
testing.
This
projects throws Marks
obviously a class
creates orat the automated, that particular code
String
•understanding
Find
environments
with
process
project Involved 4 S1
Element
basic = innew
followed
level. developing
command
making
of
components: mitigating
in the it atest needs to be inserted into the
method
-•Selenium
difficulty xpath isin
Executing as thea part
path of an
identifying
regression of the any
String(""HELLO"");
takes in the Automation
By object
perfect
issues
1.
organization.
-case.
driver.getUrl(“url”);
-//Convert
element
element.
suites A Selenium
test if
Verify fit
early
plan
in for
atothe
On Client
user has
top
developers
on) html
LowerCase
the
will
of beas
tree.
that, able
if
the
as test method.
an
Framework
parameter
well.
8. Time Due to andwith
its Java
returns
capability usingan to
Libraries/Language
New/open-assigned-
essential
@AfterMethod-
driver.findElement(By.xpath(“
•to
-System.out.println(S1.toLow
functional
element loginto
xpath
Providing with
are execute
objective
istype of
testing
not this
a 2valid
results types.
located
aof
ensures
test
Bindings:
to projectfixed-
howthen to @AfterMethod. -- The
Page
object
track
cycle
In
retest-
test,
annotated Selenium, Object
any
when of close kind
to Model
methodThereorWebElement.
of
test (POM)
issuesis
retest-open
andwill a and
it
client
who is
xpath
username
1)
all
the
managers/developers/manu
No
erCase());
TESTNG
By
Absolute
object
of
functionalitiesas
login
in
and
testxpath
turn
button”)).Click();
valid
runner. are be
can working @AfterMethod annotated
be
not
9.
library
Or
will
run
driver.findElement(By.xpath(“
password.
2) just
Turnaround
confirm
after
Relative each
retest-open.-not restricted
each it.
xpath time
supported
test to for
a the
method. fixing method will run after the
bug
as
“ElementNotVisibleException
al
•Application
used expected,
testers
Created with and while
stakeholders
architecture-web
automated
various locator script
software
issues
languages
@AfterClass
-xpath
1.Absolute Verifyof industry.
(quickness that
if aSelenium -
user
xpath This provides
cannot is
annotated
: occurs a
login execution of each test method.
Q.No 8 : regression
}”flexibility
based
for
Relative
strategies appears.
REST-API xpath testing
application,-used
such testing: as Wait
using
ID, Name,
necessary
Test
-method
username”)).SendKeys(“value
with strategy-
aaftervalid for
will tobe a keep
user
run the
to
after all an @AfterClass.--The @AfterClass
Relative xpath writing can be eclipse, only
}commands
Rest
-execute
Class
It refers
In Assured
AbsoluteName, a username
to
Jenkins, the
team
help path
framework.
xpath,
XPATH publishes
resolve
git, we
etc. sqlofand the
DBthis
write
project
-the
”);
invalid
element The test test moving
the
method
password.
right selenium
strategy fromforward)
in is
the
the a set
root of annotated method will be
started referring
we can easily the element a
perform
issue.
•10.
the
Below
commands
instructions
current
<suite
-driver.findElement(By.xpath(“
node
new
Discuss
Verifypath
Number to
build
is the
class
insyntax
ofsolution
the
of
with
name=""TestSuite""
the
the or
login
order
is element
regression
destination the
protocols
invoked.
page
when to fixright
of
user’s for invoked after the execution of
that we want and go are
from defects
Types
faced
from
FindElement the ofor
with wait-
root debug
data node
command software
related and in
parallel testing if we test
preferred
which
@AfterTest
Ithread-count=""3""
xpath
both,
element. have gaps explain
of
used
when programming
– page the test
the field is blank all the test methods of the
this annotated
object
their updates.
1.implicit
issues that’s wait coming from
using, it is always
testng. Using preferred
the hence,
Selenium
language.
design
method
parallel=""methods""
password”)).SendKeys(“value
model
and
-various
The
2.Explicit While Submit
Scrum
the
and
designwill
writingweb
wait
expression
The determine
be
button
divides
driver.
Client
run absolute
pattern
the is
the >Library
after byhow current class.
clicked.
for writing the xpath
parallel attribute in as we for
WebElement
gives
the
executing
”); absolute
test a Web
programming
shouldall Services
xpath
elementName
the be test is and = @AfterTest.-- The @AfterTest
using
-3.fluent
xpath,
project
Oops Verify java,
We the
backlog
concept- wait selenium,
use ‘Forgot single
into small
do need to file.
testng.xml startIt from the
also used also
lengthy.
driver.findElement(By.Locato
interface
performed.
methods
As
driver.findElement(By.xpath(“ the frequently
thread and
belonging within
countchanging those
tois thein annotated method will be
testing
Password’
forward
iterations
1.Inheritance-Inheritance
Method , maven,
slash functionality.
where
overloading-If (/) git, Jenkins
to traverse
each a
root and traverse
thread count. till the requirements.
-
rStrategy(""LocatorValue""));
interfaces,
-
class
3 In
test order
,three strategy
is to
invoked.there
webdriver reduce can’t is a the
be
instances executed after the execution of
-xpath
and
through
iteration
1.implicit
java
class Verify Iishaveof thesubmit”)).Click();
each
makes
mechanism
has followed
wait- messages
multiple immediate
an in data
methodswhichfor
required element. •can
constructor
length
Locator
programming
changed.
@AfterSuite- Worked run of with
the
Strategy
parallel this development
expression,
function can
annotated be that any we all the test methods of
driver.findElement(By.xpath(“
driven
invalid
child
improvement
-our
child
having
team main approach.
login.
element
class
to same intention
understandacquires in in
into
name the three
the to
buthtml
alluse
syntax : -A
go
of
The
supports
-method
different
xpath constructor
testfor
the main Relative
following
strategy
of purpose
willeach
browsers,
saving be in
xpath. Java
values.
selenese
is
run of
often
account after
test the is
founda
all available classes belonging to
-tree.
product
implicit
properties
different Verify the
wait which ‘Remember
ofin
parameters, can
selenium
parent be class.
ituseMe’
isis to that folder.
//tag(@attribute='value') -•technical
special
geckodriver
command.
as
implicit
tests
cases
link”)).Click();
functionality. InaRelative
ID partin method
wait-
can the design
of The
runaxpath,
is
suite to
test that
client and we
launch
plan.
have
parallel. is used
library
run.
delivered
instruct
Here
known properties
as to
webdriver
method customer are to (if// ),for
wait
•architecture
to
double
Firefox
takes Name
-driver.manage().timeouts().im
@BeforeGroups- initialize
test
Implicit forward
browser.
astrategy
Selenese
Wait for
objects. time test
slash
ItWithout The
command
describesistime applied
used
-specific
2.Relative
need
variables,
overloading. Verify be. if the
xpath
The
amount
functions, data :
iterationsof in etc. arefor @AfterSuite -- The @AfterSuite
•planning.
constructor
which
that,
and
about
to
execution
plicitlyWait(10,
Class
password
--method Class
all it
passes
In Absolute therepresents
is
the
A(){Name Worked
not general
elements
of
field
is called
possible
it to
grouped
xpath, the
isan
on
any in
either we
some
when
to
the
testwrite annotated method will run after
@BeforeSuite-
called
before
Inheritance sprints,
throwing provides
overloading this
the annotated
durationcode
•story
an
descendant.
execute
Selenium
methodologies.
script
cases. Tag object development
Name of
Selenium
Server a class for testalong
is
TimeUnit.SECONDS);
//method1
visible
the
method
is
exception.
There
reusability.
increases
with
created.
-syntax
•@AfterGroups- Link
path
typically isas
Automation
Text
ofasterisk
will
no
It
the
the
canlimit
When element
bereadability
1–4 run
beweeks.
of or
we
scripttest
used
bullet
before Theright
suit
inheritto of in the execution of all the test
all
-scripts
processing
//method2
signs.
from
tests
team
-implicit
testing.xml
properties It
In is
driver.findElement(By.xpath(“ done
Implicit
thein the
which in Firefox
root
wait by a
Wait,
suite
is
.It
from
specific
the
node
will It
cross
can we
is
be
browser
task
have
be
existing usedneed
and run
action
run. for as
not
at methods in the suite"
-all
program.
development.
set
1.
•//method3
well
or
manager.
specify
execution Partialbugs
initial
Using
test as Link should
values
Single
automate
against of Text
groupedthe forbe
attribute:
any closed.
objectweb
test
-xpath
hence,
@BeforeTest
functional
applicable
ones.
-class, Verify
It is
of
we
occur ifbalance
the acan user
expression
tries –multiple
throughout
within this
to
reuse ischeckable
annotated
make
the to
your
class.
-we
attributes
application Assigned
//tagname[@attribute
•login
application. XPATH
test
}""ExpectedConditions""
cases.
link”)).Click(); can have
strategy specific
This
under is is the
test
utilized suits
namemain
(AUT).
on at =in
for
method
incremental
script
-methods Method with
absolute and will a
and willnew
be
overloadingxpath run
improvement
work
fields passwordis
before
on
ofmay all
parent in
or
attributes
one
-the
'value1']
reason
The
the
@DataProvider- xml
constructor
client
association
element whyfile in
librarythe
and
we
tocan HTML
it
need can
name
also
Itlevel.
be located
ishas used so
be mustthat
run
for
only
lengthy.
executing
the
elements
class
may
Automation after
product
not and he/she
first(any)
in
we
require in
script
engineerseach once
add
inheritance.test
sprint.can you
all
match
2.
geckodriver
receives
"1.In
-changed est
It
parameterization
Class suits
Using
is a the
web
strategy at
recommended
B() ones.
class
Multiple
the page
extends to resultrun
has name,
attribute:
there
of test
the
Class of to
test thatand
are
use
A{ it
--reference
method
Backlog
specify
methods In
In order
this, in the
to
a class.
Grooming
implicit
and
methods
those password.
reduce wait.
fields must
elements the
Ifalso.
atypeclasshaveThe
cannot
//tagname[@attribute1
2.how
cases
command
several doeshave
Firefox and a
selenium return
browser.
passes =
work?
itdon’t
back
essential
when
cases.
//method4
--Syntax-
length Verify theof ifpop elements
the up,
objectives login but awe
page of
arethewhat
has
Product
class
same
easily.
For
(like
Selenium
to
when
approach
}located
"@BeforeTest your
three
example,
void). which
name
That
'value1'][@attribute2='value2']
the with
@test
backlog and
way
Webdriver
program.
pop
to Ifexpression,
inherits
pursue
the upwemethod
is want
different
Automation
timewill works
andappear
frame
then
to we
allows
go
prioritized for to
Relative
Driver.manage().timeouts().Im
properties logwork
of in
will xpath.
other run before
class is
-signature.
script
execute
3.
with
2.
in the
Using
JSON becomes
4constructor
basic three
contains
WIRE xml
components:
PROTOCOL stable
isfiles
method:called and
at
over a
which
specifiedInthis
simultaneously
-time.
executing Relative
items/userstories case
module
plicitlyWait(10,TimeUnit.SECO
called
-In
robust. methodThen as inany
child
we
how
implicit
xpath, to
of
overloading,
we
withcheck.
the we
that
class/derived
need
will
wait
to use
threeare
put
when
handle
explicit
Public the
//tagname[contains(@attribut
1.
HTTP SeleniumClient: the
wait-
static objectClient
popupvoid is created.
using
different
double
@test
needed
NDS);
class.
return
•selenium
Created method.
The
type tocredentials
forwardandbring
class
can It slash
does
the
or
enhancedwhose can innot
product a ),
( //
not
these
--All
e,'value1')]
JavaScript classes
Libraries/Language
Explicit
main(String[] three Wait xml
have
Object
webdriver. time
args){ file into
Bindings:
Notation
is applied
different
which
matter
in to
properties
be out
fruition.
betosame, browser.
represents of
are 3
It
but ismethods any
managed
inherited
we toisa
numerous
another
constructors
In
sends
only
B Selenium,
obj
-descendant.
Verify =toonethe
those
newif the
test
xmldata and
There
obj(); by
‘Enter’
scripts
then
between
elements ismust
default:
keyarun client
of
if
which
by
handle
the
you the
2.Explicit
called
have same
do product
as wait-
change
changes
not to get
parent achieve
create execute
owner
theclass/base
in a the our
class in first.
It
-we
whichstarts
library
server can
obj.method1();
the keyboard each
and
are with
use a
intended the
supported
client
testing
istested double
working on
by the
listener
us
-syntax
@BeforeClass-
collaboration
-used
class/super
parameter.
objects,
requirement. toslash inhaltthe the
class. This
with Scrum
execution
constructor
forward
languages
"-web.
In JSON
Explicit
obj.method2(); that
Wire yourself,
Wait, (//), which
provides
Protocol
we need Java atoa
is
correctly
1.
till Using
annotated
Master the time
2.Polymorphism-
application’s and on
Singlemethod
athe the
GUI login
attribute:
team.
particular andWhenwill in page.
be one
the
sample
creates
means
flexibility itxml
one
REST API that transfers the
specify
obj.method3(); can
for file
for
a search to
useryou. execute
to the
"1) Set is a collection that
cannot
2) We can contain build duplicate
the xpath from
values.
root It is
3) A cucumber is a tool basedan interface.
Hashset,treeset
onInBehavior
4) cucumber Driven we and can pass
LinkedHash
Development
data from cucumberframework set (BDD) are the feature
interface.
which
files to istestusedNo elements
cases to write
also are
known
5)
6)
storedtestng.xml
The INNER
in sequential is
JOIN the in file
SQLorder toselects
acceptance
as
manage
records cucumber test
that tests
data
execution
have for
driven
matching the web
7)
Map Implicit
->
application. It Wait
takes directs
values the
in the
testing.
hierarchy
values ofvalue
the xml filewait (after
Selenium
form
Behavior
For of in
example, key both
WebDriver
Driven let
tables.
us pair.
Developmentto
consider
foris
the
The
a xml
OUTER
certain
HashMap header):Suite:
JOIN
measure
allows returns
nullof timethe
keythe all and
"1)
an
that
highest Implicit
extension
you are
level Wait ->
ofthereTest
automating
in the directs Driven
hierarchy, the
Wait- When a page loads on records
before
values.
Selenium when
throwingWebDriver an is
exception.
to awaitmatch for
Driver.navigate().back()- takes 2) Development
login
everything
in left flow
(table1) ofthat and
someor itapplication.
happens
right is (table2)
used is to
a browser,
back the user the various
the web 3) Once
A
a Map
certain this
can't time
be
measure is set,
traversed,of WebDriver
time so
-Right click on to Webelement to
test
In
part
table
will
load/navigate
thisthe
wait case,
ofrecords.
the system
forto youelement
suite.
the
a new
rather
can pass web
than
beforeuser
elements
previous
you
In are trying
order that
towebpagehandle someone
to locate thein the and you
alert, before
page
testing
To
name
4)
Test:
the
need
handle
a andthrowing
the
test
exception frameconvert
particular
password
can be
occurs.
an
firstly
a
itas
exception.
logical
into
piece
we test Set
of
set
wants
web
if it shows to
browser’s interact
‘view with
history
frame to may using
Once keySet()
this time
driver.navigate().to(""www.googl
code.
need
data to
from identify
your or
is entrySet()
set,
the
feature WebDriver
frame file in
to
we first have to switch Alert
of
Once flowsis a
thefor message/notification
with
command relations between
is indifferentplace,
load
source’ at
driver.navigate().forward()- various
or ‘reload time frame’intervals. method.
will
that e.com"");
In wait
Cucumber
webpage
selenium the
using
code. there element
iframe are before
tags.
alert
findElement window () using
will returnthe only box
them.
5)
Implicit thatWait notifies stays thein user
place about
for
This
Navigates
means
below obviouslywe to are the creates
next
dealing webwith the
features
For
There
some
Class: exception
a browser
are which
information
the multiple
actual occurs.
to helpwork
types
or
class BDD
asks with
whereoffor
single
difficulty WebElement and if findElement
the entire duration for which
page
frame.
statement.
that withinreference
element
identifying
is not toany
located the Once permission
our browser
Returns
theelements
methods command
driver.navigate().forward();
framework
several
data that you
the to
to work.
can
perform
are
first in
pass
storedis
matching
in
iframes, place,
a default
certain
in.web it
element.
browser’s On top
history. of that, if an the
Implicit
this
Features method Wait like is
stays open.
enables
Feature in Its
place
the web for
-To
or switch
driver.switchTo().alert();
we use between
some the
wrongthen element is
kind
Methodcrucial
through
setting of operation.
(not
is for
feature the browser
files.
in this xml):
if0duration
multiple web the to
element
1.how
driver.navigate().refresh()
iframes
After transferring towe isfind not
have located
broken to the use links
control –in the browser
identify
For
It may
methods entire
Files,Scenario,Scenario
example,
be allto click
the
used
inside you on
iframes.
for
the canfor
the
warning
class which
passforward
we one
selector
the then it will throw elements are
driver.manage().timeouts().impli
the browser is discovered
open. Its by
default
web
This
driver’s
to alert window, we
NoSuchElement page
command using
switchTo.frame() letsexception.you
can use the "1)Use
button
For
or
purposes
are this
more
calling.
locator the
outline,Tags,Junit
2) in thefollowing
purpose,
string existing
values, we
asTimeUnit.SECONDS);
well stepsbrowser
neednumeric to
“ElementNotVisibleException
selenium(including
refresh frames) citlyWait(10,
setting
identify is 0
broken links inclass
Creating
command
//
the
findElements() Stepfollowing 1:the Payload
Create current
methods
will as
WebDriver web
returnPOJO of List We window
Runner,Cucumber
use
values
3)
The
While
Throws can
the
followingor
suite use the
SwitchTo().frame
complete
and methodsPOJO
test Report
data
are are tables
logical to
”and
2.
page
Classes
-We
“Alert” appears.
Collect
can
Add there all
use
Options
interface. Selenium
by links reloading in Wait
the weball driver.manage().timeouts().impli
Selenium
handle
method.
as
Auto
useful well.
entities, IT,to theThis
Robot
the dynamic
handle method
class,
class alerts
and payload.
enables
Browser in if to
method
Maven
of WebElements has its own – for thisthis NoSuchElementException
Explicit wait tells Webdriver the
commands
page
the
1.
switchTo().frame
HashMap<String,
getText() web
First, we elements.
→ help
will
to get resolve
create
command
Object>
the object
text in citlyWait(10,
Collect
the
To
Profile
selenium:
specifiedbrowser
search all
driver.navigate().back();inthe
for TimeUnit.SECONDS);
to
the links
some switch present
text
testng.xml between
on on
file,
repository
we
To need toand
extract where
giveverify it keeps
locator text in all element
wait until isa notcertain found condition
issue.
Find ourall the
Driver.navigate().to()
of
3
chromePrefs
present
plugins,
such
from ways- ana POJOway jars,links
on
image Class.
the
that= then
etc new on
alertincan
it the
–window.
common
we
Used
find a
this
1.
are
4) web
multiple
Google
Download
Void
Detects
occurs
method
the page frames.
search
dismiss():
ones
a
before Filebased
uniqueenables
we Inhomepage
Thisonthe
Selenium
actually
web
proceeding
the
method
element <a> is
web
call
with
Types
webpage
to
MyPojo
1.
HashMap<String,
accept() launch ofpojo
switchTo().frame(int wait-
and
arepository)
/ dismiss() new
= new place web them
MyPojo();
Object>();
→ to frame in Explicit
tag
browser
It
click WebDriver
used
when can
Scenario:and be
when
weusewait
save
to ->
click
implemented
Perform
run Using it
‘Cancel’
thetells
in List
on Webdriver
the
search
AutoIT
test. button inbackthe is
place(.m2
multiple
should use elements OCR and
(Optical will We
syntax
executingcan the the code. scope tag to
1.implicit
a list: wait to
Send wait HTTPuntil a
requestcertain for condition
each
browser
2.
number)-pass
-we
return
Character
2.Explicit
We will
chromePrefs.put(""profile.def
on OKcan button
you window
set
create
wait
value
Recognition) the
listonofmaven and of
frame
the alert user button
following
operation
clicked
If we putmaven
handle
WebElement
Setting
occurs
in
in the
ways:
on
WinWait(""[CLASS:#MozillaDialog
athe
Explicit
before
class existing
Google
alert name
elementName
Wait box.
deoendencies
proceeding
browser
Homepage
is in on our =link
with
at
List
navigate
using
index <WebElement>
setUser()
and
ault_content_settings.popup
window.for writing
project
webelements to the
driver specified
thenmethod.
will test links
switch
using = List -
GivenUsing
window
switchTo.frame(int
runtime I
Class]"","""",8) iterator
launch
driver.switchTo().alert().dismiss()
xml file, then
driver.findElement(By.Locator("" all and
Chrome
the click
frame
method browser all
technology.
3.fluent
driver.findElements(By.tahNa
URL. Forxyz.Im wait
ex. weworking important
executing
the links in
the casescode. where there
Myself
pojo.setUser(""James"");
to
s"",
scripts
we
1. that
0);
can
Download frame.
and
iterate canperform
and
""Asprise create as
OCR"" number):
When
Send(""!s"")
;inside
<dependency> Ithis
LocatorValue"")); open Defining
classGoogle theHomepage
will run.frame
me(“a”));
driver.navigate().to(“https://g are
Setting
Verify certain
the Explicit elements
HTTP
driver.navigate().refresh(); Wait
response is that code
software
3.
2.
Im
dependency
our
libraries Weworking will
switchTo().frame(String
chromePrefs.put(""download.
operation. test
set
, wait- onusing
depending engineer
value
xyz project. of rolein index
Then VoidInumber,
on theI <groupId>mysql</groupId>
POM.xml Sleep(10000)
2. search
accept(): the
for Driver
""weather
This method will is
1.implicit
Obtain
oogle.com”); Iterator to move naturally
important
Determine
this method take
in
if cases
the more link
refresh/reloads time
where
is valid to load
there
or
xyz
using
frame
have
default_directory"",
-A
-once
operating company.then
Source setRole()
usedname
dependency page
Code
system or method.
id)- object
Management
you explain
pass is set
are the in switch
tomorrow""
Send(""{ENTER}"")
used to to that
click
<artifactId>mysql-connector-
findElements on on specific
Google
the ‘OK’ frame
button
-our
through main intention toor use In
are order
certain to declare
elements explicit
that wait,
your
model
(SCM)
POM.xml,
The
using skill
pojo.setRole(""admin"");
frame process athe
is.Element
System.getProperty(""user.didesign set
software
maven list
and
to
ofabout
name
pattern
will
fix
links:
tool
merge by ID
used broken
the
Save
of current
the
Returns
one this
has
based
switchTo.frame(string
alert.
java</artifactId> a
tocode
listweb
use
on
of and the
page
multiple HTTP
in the
implicit
Iterator<WebElement>
project.
4.
and
using
r"")); Sincedriverjava,waitwill in selenium
selenium, switch toitis =jar
that to response
naturally
existing
frameNameOrId):
generate take
code.
browser
.exe
driver.switchTo().alert().accept();more
file windowtime
Defining
and execute to
the load
by
download
conflict:
2.
static programmers
Unzip is the
keyword all dependent
downloaded to
isto manage
used to <version>6.0.6</version>
matching
“ExpectedConditions”. web elements The
instruct
links.iterator();
resource_permissions
frame.
testing webdriver
,pull
maven, git, wait
Jenkins is for
an in In
frame
3. order
Repeat
java
String to
the
element
code declare
process
using
getText(): or Id, explicit
This for
the all
Driverwait,
links
the
files
1.
folder
define
We
specific
source
First,automatically
can and
the prevent
amount
codes.
add
classthethe latest
member
method
of
SCMs
and
time inare
from <scope>runtime</scope>
Returns
following
one has an
to empty
Expected
use list ifmethod
Conditions no
3:
array
3.
and
ChromeOptions
used
future Identify
I we
have
toif give anywill
switchTo().frame()-pass and
followed
updateValidate
first create
options data URLs
= an captured
will switch with
to
Runtime.getRuntime().exec().
is used toelement
capture the
that first
specific
the step
alert
the
aspriseOCR
that
overriding
before
-The
This
destination
can
Java
step be
throwingis injar
usedjava
Collections
about
branch
file anin to3comes
checking your
ways to </dependency>
matching
can be used
if “ExpectedConditions”. in Explicit is found Wait.
The
array
the
driven
new
versions/revisions
from
which
working frame of
selenium
you String.
approach.
ChromeOptions(); web
directory.want element
or to And
testingto
merge the and
explain or git frame
message.
Returns
alertIsPresent() a collection of
independently
i.e.
exception.
Framework
a certain URL istools of
a version any
collection
belongs object
to following
of switchTo.frame(WebElement Expected Conditions
cucumber
String[]
driver
project
options.setExperimentalOpti
program.
any
pull
3.
of
1.By Also
thatorigin will
external
making
details.
Copy
class. Each tags-
switch
develop the
Final
method
toand that
keyword
final is ain Download
matching File In Selenium
driver.switchTo().alert().getText()
elements
elementSelectionStateToBe()
-implicit
interfaces
third-party
We can
resource_permissions=
frame.
1.By wait
define and
domainwill each be
classes or if
scenario it is can be
;frameElement): used in Explicit
UsingDefining Robot Wait. the
on(""prefs"",
given
techniques
2. As using
""AspriseOCR.dll""
is
Base
applicable
which used a timestamp
you
class-
helpstoget properties
chromePrefs);
,it
declare,By
throughout
in
will
the file
specifying
storing
and
simply
latest a from file,from WebDriver
your
and
Syntax
elementToBeClickable()
alertIsPresent()
Class
empty/null.
with
{""Read"",
2.using
WebDriver
Cucumber
includes
update a useful
all ""Write""};
@dataProvider-
the driver
supports
the tag.
person
required= Later,
new hooks, Inin frame
You
4. Voidcan web run element,
sendKeys(Stringthe below the Driver
the
unzipped
constant
final
script
processing
The
destination,
keyword
code and downloaded
variable,
will
below the to
work now
the
data
will acan method
on folder List<WebElement>
resolve
all
retrieve elementToBeSelected()
elementSelectionStateToBe()
the
5.
TestNG
which
responsible
changes.
Background
the Thenrunner
ChromeDriver(options);
conflict are we
DataProvider file,
will
blocks for we
setthe
in overriding
manually Cucumber of value helps
code
change.
in IDE of will switch
Selenium
stringToSend):
is a "elementName to
testing that
= This specific
script
method to is
and
which
you
elements
efficiently.
the save
can
href can of itinnot
avoid under
the script be
anchor ""C:\
overridden
once tag you in frameToBeAvaliableAndSwitchT
elementToBeClickable()
decide
resource_permissions
us
that
Even to run send
variouswhichbefore multiple specific
or
versions after sets tag
using
each of frame
download
used to send files datausing to Selenium
the alert
-basically
used
by
we
and
subcalss.
specify
-The
and a to
deleting
Windows\System32""can class
collection
store dodefine
implicit we
it those
from
that
itSimilarlly
in
useawait.
the
step
can maven
extra
@Test
framework
URL onenot. can
or be
can to driver.findElements(By.Locator(
oIt()
elementToBeSelected()
(and
its
data
//
scenario.
be
reduce
series
characters. Step so
setter
from
compared 2:
of as our
You
dependency
steps the
method.
Download scenario(s))
excel
can
and that define
mergedsheet
the
areof file to with
box. Java through Robot class.
""LocatorValue""));
annotation
inherited.
1.
use
-Syntax-
contains
variable.
we Set final
want Preserve-Order
at
multiple
Cucumber -classyou can
level
interfaces
to add
In to a invisibilityOfTheElementLocated
frameToBeAvaliableAndSwitchT
pojo.setResource_permissio
a
them
with
external
common
3.
public test
driver.navigate().to(""url
Doother method.
aanywhere
git
class jars
toadd versions.
all First
inControl
to our
the in
ExtractImageadd yourcreate
project.
tests these ""); a
in { "driver.switchTo().alert().sendKe
()
invocationCount
Testng.xml
prevent
Driver.manage().timeouts().Im
<!DOCTYPE
where
url
execute. = find everycreating
Tag To
suite starts attribute
SYSTEM
interface with Class
islinks
“@”. oIt()
ns(resource_permissions);
method
-//We
project
the
edited Therefeature or to
are
files the read
step two
file.
to the excel
download
definition
types
It allows
git data
of
queue you ys(""Text"");
with
Execution
subclasses.
After
6.
and Since
List<WebElement>
layers,
version
the
plicitlyWait(10,TimeUnit.SECO
""http://testng.org/testng-
used tousing
it.next().getAttribute(""href"");
Actions “@”
return
number
store
class
you
control:
Sequence.
stringcan
the
of
a specific
is a times
collection
have
array.
list
methods
centralized any type invisibilityOfElementWithText()
invisibilityOfTheElementLocated
public void fileDownload() {
to
so
WebDriver
you
preserve-order
2.By
NDS);
1.0.dtd""> add
that
want
data. making some
itThe can
to driver;context
run beis
method
following commit
it. ItEmpty,
used to
would
static
are the
and
to thein ()Robot robot = new Robot();
If
of
relevant the
database_permissions
build()
-Create URL
individual method
=driver.findElements(By.cssS
@Before
and distributed. is
text
before
and null
Action
to in
@After. or
define
class Actions that andyouryou
is an
scenarios
push
come
control
Base to
out
class- the
the as for same a feature
those
execution
We can branch
manynot Initialize A Wait Object using
<suite
interfaces
skip
want
tag
array
class
after
elector(""css
-findElment()-
Cucumber
where
you
@BeforeTest
the
like
Version
are
towe name=""Parallel
steps
perform.
@SmokeTests
will
isit working
class use
is
present
Hooks
Control to
methods
defined.
after
first For
create
selector""));create
allows in
Software
on. A
this.
e.g.test
the
just
chain
which an invisibilityOfElementWithText()
we
us robot.keyPress(KeyEvent.VK_TA
tests
sequence
override
2.Explicit
suite""
framework.
if(url
may
above == run
want thein
wait- the
of||operation
parallel=""methods""
thenull to
scenarios all test
static report.eg.
url.isEmpty()){
perform methodsclasses
a
you like WebDriverWait Class.
array
-of
helps
to
Tools-
Background
4.
public Itaction
The
As returns
better ofin1)
Collection
git void String
addor
getting
manage WebElement
Git,2)SVN, is muchthe
in
done,
setUpDriver() the8)
Java you
browser
code
TFS,etc
like
do is
a {a a
git B);
@Test(invocationCount
in
-used test
amark.
derived
thread-count=""2"">
-List
mouse
to case.
to
Interface-List
System.out.println(""URL click halt
Then It’s
class
on the
to andefaultbecause
execution
target interface
element. = 10)
is
these WebDriverWait
Initialize A Wait wait Object = new using
String[]
-want
and
//Click
workflow
framework
scenario
commit
driver If the to
closing=the perform.
specified
to
new and last
that
containing
commit them one
helps
provides
FirefoxDriver();when
locator
the to us
a to isan robot.keyRelease(KeyEvent.VK_
public
value
static
till
<test
is
either
Methods
tagged the
the is void
methods
time true
name=""Regression
child
not for
scenarios testCount()
a which
interface
configured
performingare
particular means
linked
justand offor{..} all
1""> WebDriverWait(driver,30);
WebDriverWait Class.
database_permissions=
perform()
done.
downaload
matching
reduce
architecture
number
changes.
}Name,id,etc
//creating the
of this
with file
code
steps to
ainterface.
list method
:)store
multiple
of all in TAB);
test
with
condition
<classes>
Collection
anchor
Mouse
specify
{""Insert"",
Actions
-Create classes
theEvents: tagclass,
the
Class
a is or met
tags
""Update"",
data under
it
is not
isor
use
provider the
with
the It
empty"");
names to test
the
in WebDriverWait wait = new
WebElement
elements,It
redundancy.
manipulate
5.
checkboxs Now push the el
returns
the =
group
changes first of to robot.keyPress(KeyEvent.VK_EN
case
object.
class
maximum
<class
inhibits
continue;
•which
the click():
""Delete""};
execute are It
Count
CucumberOptions executed
means
aClickstime
list
chain
actually type has
at
of when
getsthe data
action in
elapsed.the
we
current
the asgit WebDriverWait(driver,30);
list.get(list.size()-1);
matching
objects.
your
@Test
List working
<WebElement> Javaelement. Collections
branch chb by = JVMcan TER);
{definition
call
}-unlike
which
-valuesThen
el.click();
If
a
the
static
implicit
name=""com.parallel.TestPara
structure
mouse
tags
7. = are
bywe sequence.
location.
specified in
{“@SmokeTests”}. method
will
build
readingwhich wait,
set
using
locatorwe
value
our then
explicit
can
Action
excel of
ids robot.keyRelease(KeyEvent.VK_
achieve
push
public
does
public
wait are origin
not void all
driver.findElements(By.xpath(
<?xml version=""1.0""
static pass
applied the
HEAD
start()
void operations
thisfor throws
main(String Fluent
llelOne""/>
store
If the
•Tagging
sheet.
//
that Step
matching you
IOException{
“xpath”));
the
URL
doubleClick():
database_permissions
build method.3: notordered
belongs
Check
with
perform just Performs
non The on
collection
to
specifically
of the
File
a the
data a
using
in ENTER);Wait -> defines the
encoding=""UTF-8""?>
reference
args[])
particular
</classes>
of
main objects.
double-click
works
its
-Create domain,
setter with to
instance
It
method.
atotal
Test it
can
at as
continue.
Scenarios, the
which it
have does
only.
current it If for
takes maximum amount of time for
it
also
Folder
elements,it
such
//check as</suite> searching, will no.of throw sorting,
<!DOCTYPE
all
{mouse non-static
-WebDriver
</test>
duplicate
belongs
works to suite
values.
location.
with
pojo.setDatabase_permissio
different a introduces
third
Features. SYSTEM
methods. party Means Selenium WebDriver to wait for
File folderparameters
NoSuchElementException.
insertion,
//Navigate
checkboxes =tonew
manipulation,url and getafterandthe }a certain condition to appear.
""http://testng.org/testng-
Therefore
String
classes
List
domain,
•-Add str
interface
contextClick()
you can also skip=
like run-timeWebDriverWait
theis implemented
steps
: Performs binding a
ns(database_permissions);
imagedataprovider Javatag
File(System.getProperty(""us
deletion. source
System.out.println(chb.size())
your
Collection
attribute name for
//specify path of file
Filehandle
To src = new the pop-ups File(""""); we
//create
use Robot fileinputstream
class, using this
object
weiscreate
ID the tofastest loadan instance the locatorfile of
FileInputStram
Robot Class in the fis =new
A
FileInputStram(src); double colon :: iscode usedsay to
Robot
separate robot the = new
axis Robot().
specifier
Apache
//create
Robot class POI
properties is present class in the
from
object the to node readof test.
properties file
AWT package JDK.
keywords
-Basically
•Properties To press import pro = new
down is
indicate
arrow used key toto
import
call
Properties();
-You
on thethe
can or
Keyboard call theand
classes
disable wefiles
or from
files,not
exclude
use
outsourse
to
pro.load(fis);
the
(robot.keyPress(KeyEvent.VK
Waits- use testthem, cases toBut our byextendsjava
using the
programe
indicate
//here
enable
_DOWN));attribute
1.implicit to
getproprty while
use
wait- to the thekeywordis parent
a @Test
extends
class
method
annotation
•class
-our To press in
main is
the
which used
the child
andTAB
intention will to
assign class.inherit
accept
keyto use False
of
the
-Importing class PushZero in ain the
class, particular isattribute.
making
key
value
keyboard
implicit and to wait will
the we return
enable
use
selenium value isfor to
{it
public
class. so you class
Basically can Main
use importthat class
the same
For
(robot.keyPress(KeyEvent.VK
instruct example- key
webdriver to wait for
//
{indicate
public
without Function class to call
needing which the topushes qualify all
classes
driver.findElement(By.xpath(
@Test(enable=false)
_TAB));
specific amount of time
zeros
static
ReverseStringPreserveSpace
and to
final
files,not end int of an
toMAX_CHARS
use array. =But
-the
•pro.getProperty(“email”))).sen
before
static If we
To fpress
ull want
void
name
throwing Enter to in keythem,
the
disable
an current
wetest, use
256;
{extends
class
dKeys(“xyz”);
Yes,
then main
we you indicate
need are writing.
method to add to use
canarr[], the the
be int
(robot.keyPress(KeyEvent.VK
exception.
pushZerosToEnd(int
static
parent
-Extending
driver.findElement(By.xpath(
overloaded.
<method>
_ENTER));
A
-implicit final class voidclasswait is tag a in
class
Overloaded
willin thexml
a classbe that child
is file main
n)
CountCharacters(String
reverseString(String
class.
creating a new class input)
that str1, is{
pro.getProperty(“password”))
method
which
•{
can't
applicable
Software be has has access
extended. to
throughout
Testing be called
Life to
Also allyour
Cycle the
int[]
a
).sendKeys(“123”);
from subclassctr)
inside of of
the some
aDemoClass
class.""public other static
public
methods
script
(STLC) isclass
and a=couldwill
sequence workbe declared on of ofall {
{Steps:
int
char[]
class.
void
<methods>
count inputArray
This
main(String
0;will // Count
allow = once
args[])"" you non-
as to
public
as
elements
different
1.
zero final
Get static
the
elements to indicate
in
activities
xpath void
script that
of performed
droplist. i+ you
No,
for
input.toCharArray();
add
this we
(int
or
is the ican =
change 0; not
i
entry < automate
str1.length();
functionality
point when
<exclude
main(String[]
cannot
specify
during
2. Send thebe name
implicit
it to args)
overridden
software
the =constructor
wait. ""Login""/>
throws by
testing
desktop
+)
The
char[]
of
the the V-model
class result
class appications
is =isnew
you
launched an are SDLC
</methods>
AWTException,
subclasses.
-Syntax-
process.
of
//
ctr[str1.charAt(i)]++;
model
char[inputArray.length];
-We 'Select'
Traversehave where class.
8 the
types array.
execution of Ifbyofthe
-extending.
JVM.
InterruptedException
The
Driver.manage().timeouts().Im
In
3.
element If we main
the initial
Use want purpose
allencountered
the to
stages add
functions oftest,
ofin{STLC,
using then
isausing a
}locators
processes
we need in
to happens
Selenium
add the using
System.setProperty(""webdri
class
plicitlyWait(10,TimeUnit.SECO
while
'Object' being
the software declared product as final
//
static
sequential
for
which
<method>
ver.chrome.driver"",
Given
is
NDS);
non-zero,
to (int − i of
void = 0;
findElement()
prevent
Select
tag i then
manner
<the in
class.
xml
replace
class inmethods
file
""path V- the
a from of
or
For
element
showDuplicates(String
shape.
inputArray.length; the application
example- It atis index
also known is
'count'
i++) being str1)
as
{class
identifies
which
chromedriver
•developed,
being
Background It describes has
subclassed. elements
access
thein exe”);
theCucumber
testing pre-to
Ifon a all the
team the is
//open
{//
Verification
if with this
(inputArray[i] yahoo element
and urlAValidation
==
1.ClassName
methods
WebDriver
requisite
is
2.Explicit
used
analyzes
Yes,you
Driver.get(“yahoo
for marked
(int to i = of
for
define
can as
wait-
and
0; iathe
driver<
–class.
final
give n;a
defines ='username
test
step
i++)
')new
ClassName
then
login
{ tono
or
the be
url”);
int
model.
result[i]
operator ctr[] = = new
'
uses '; int[MAX_CHARS];
a class
ChromeDriver();
executed.
class
-used
series
scope
AND can
to
of
password,it haltinherit
steps
testing, the that any
execution
entry are feature
and
//we
if
Json
}CountCharacters(str1,
The
attribute
<methods>
driver.get(""url"");
•from
till
(arr[i]
Example
the
have
the
!= to
report,extent
V-Modeltime
0)
final
select
− is
identify
a GIVEN anwill
class
particular
birthmonth
I an
am
work
report
extension ctr);
a
common
exit
from
arr[count++]
for
}public
of the criteria
dropdown.
(intwaterfall to all
and
i = name=""test3""/>
class = the also
arr[i];
0; i < MAX_CHARS; So
model tests
// the
get here
andthein
test i+
is
object.
<include
driver.manage().window().max
Facebook
Preventing
condition
the
cases. feature This isuserthemet
file.
helps class
Itor the
allows
in from
finding you
xpath
count
+)
ReverseStringPreserveSpace
based
-we
2.cssSelector needof
ison birthmonth
the
to findassociation
–The CSS isbe of
</methods>
imize();
When
being
maximum
to add −
subclassed time hasphase. could
elapsed.
bugs
WebElement
//
if(ctr[i]
{a
int
webElements
mainly
-returns
driver.findElement(By.linkText
incremented
testing
j = in>some the
1)null
result.length
used phase context
early
BirthMonth
to of for
7
provide - each
1;to the =
style
•particularly
-unlike
scenarios
Phases
driver.findElement(By.xpath(“
System.out.printf(""%c It defines implicit
of forthe
STLC: useful
a trigger
wait,
feature if you point
explicit
static
corresponding
checkboxes,then
rules
(""xyz"")).click();
Jenkins
for any void
for is
test the an web
open
scenario development
size
pagessource of and
write
wait
where
xpath
//
appears Now APIs
are of it
all or
applied
is
birthmonth”));
%d non-zero libraries
defined.
times\n"", for and
Aelements
i, ctr[i]);
reverseString(String
stage.
for
checkboxex
you
Robot
automation
execution. (intcan i
robot = use0; i <
tool itnewfor
=isAnalysis: written input)
identifying
Robot(); into {
want
particular
We
Background
Requirement
//will
}have usedto
introduce
been avoid instance
cucumber
shifted being
much
Select to only.
tool
like class a to
inputArray.length;
-make
one
Thread.sleep(4000);
Java
•Requirement
extended
-WebDriver Example or
with amore list plugins
to− of
WHEN
alter checkboxex
elements
introduces i++)
built
I
base enter {in
for the
implement
scenario
as
// constructor
front and bdd
containing'count' framework.
Analysis a is the
public
char[]
-if
-List
web Under
robot.keyPress(KeyEvent.VK_(inputArray[i] static
inputArray
theThe
<WebElement>
page. void
V-Model, !=
CSS '=') is set as
the
{selector
-Continuous
""<username>""
behaviour.
classes
number
first
Select
index
Since
main(String[] Cucumber step
of month
selenium like
of of
first Integration
stepsWebDriverWait
is a
Software
0. = newBehavior
supports Testing
input.toCharArray();
corresponding
if
checkbox
is
DOWN);
purpose.
and
Driven
(result[j]
always ExpectedContitions = args)
==
the
Jenkins
Development
' ')best{testing ispossible
used
(BDD) toas to
Life
Select(BirthMonth);
//
multiple
I{build
char[]
phase
j--; Make
have Cycle usedall
result
of the(STLC).
elements
languages page
=development
new In this
object 0
such from
driver.findElements(By.xpath(
way
robot.keyPress(KeyEvent.VK_
enforce
framework toand locate test
explicit tool complex
your wait
toetc, write software
into test test
phase
//Select quality
isby assurance
count
Java,
}String
model
char[inputArray.length];
phase
Data
“xpath”));
elements
TAB);
projects
scripts.
cases.Given
team
to
Python,
str1
design
Driven
understands
end.in=Visible
planned testing
continuouslythe

C#
""hcl-tech"";
pattern
When page. intext
can
the –
we by
parallel.
Thenbe can
month.selectByVisibleText(“A
while
develop
System.out.println(""The
using
So,
result[j]
achieved
Int
3.Id there
tot_chb (count
–Thisjava, =automation
are =the<
isselenium, n)
Verification
inputArray[i];
(Data checkbox.size();
most
public
Thread.sleep(4000);
making
-WebDriverWait
Approach
requirements class
itin easier WordCount
like for
by what default is{ to‘V’
pril”);
arr[count++]
scripts
duplicate
testing
for
phases
j--;
parameterisation
Checkbox.get(tot_chb-
common (int i , =on all
characters
maven,
0;
way i
one =
the
< 0;side
of supported
git, is
locating of and
Jenkins
possible the
static
It
calls
be will
System.out.println(""a"");
•developers Given: int
execute
expected
tested. wordcount(String
Some to
Iffollowed first
integrate
conditions
given
anything catch
context
is to
//select
}string)
languages.
counts
and
inputArray.length;
}False,
using
1).click();
elements IValidation
have
testng) bysince
are: value
This
""); phasesis i++)
ID's know data
are {on asthe
block
robot.keyPress(KeyEvent.VK_
changes
poll
(Preconditions).
missing
month.selectByValue(“5”);
language be which
s1 every
or to
and not
binding contain
the 500
s2 project,
are ms until and it
showDuplicates(str1);
driven
if
other
}different
{●
supposed
exception
TAB); (inputArray[i]
we can approach.
side. The
execute
eto be ==Coding ' or
unique')the { Client Phase
test forto
•making
returns
understandable
String
//select
}public
binding.
1.Language-
result[i] When: it
s=”hello”;
static=by
easier
successfully.
object
Some '; index
'batch void
In
for
and
Action
ourthenmain users
string
is
projectquality is
joins
System.out.println(input
scripts
each
int the
element.
count=0;
System.out.println(""b"");
obtain a in two
fresh sides
build (i.e of the+ V-
multiple ""
-syntax
immutable.
performed
assurance
s.concate(“world”)
month.selectByIndex(7);
}(String[]
2.
we Whenare args)
usingwe So,
(Actions).
team
execute
javas1 meets==.what
language.s2
thewith willwill
Model
-->
test
4.linkText ""scripts
+ String.valueOf(result));
robot.keyPress(KeyEvent.VK_ – You at one can go)identify
•WebDriverWait
be
the
//get
{●
selenium
TimeUnit
2.
}the Then: false
Type selected and
Particular
stakeholders
output code,
ofisalso an Enum.
framework- wait
s1.equals(s2)
option
requestto = new
better
from
It we are
char
TAB); we can
hyperlinks
ch[]=
WebDriverWait(driver,10);
will
outcome/consequencebe true. new execute
on a web after
understand
dropdown
int
goes
accepts
using
Method arr[] to = the
the
behavioural-driven
overriding the
Selenium
time detail is an
selected
page
char[string.length()]; usingstep
System.out.println(""c"");
Wait.untill(ExpectedCondition
the above test scripts
linkText. (Results). It based
can be
knowledge
Helloworld
System.out.println(month.get
={2,5,0,4,2,7,0,0,1,9,4}
Standalone
measurement
framework
int
public
example jpriority.
= result.length
static ofby of
Server
void
runtime requirement.
in the
using terms (also
- page
1;; of
on
determined
fluent
for(int
robot.mouseMove(30,100); wait- with
Fluent
i=0;i<string.length();i++)
s.elementToBeClickable(By.id Wait help in of
"FirstSelectedOption().getText(
int
known
SECONDS,
object
main(String[]
polymorphism n = arr.length;
as
model MINUTES, design
args) . In {
method pattern
{●
an
Selenium
-testng we anchor can
System.out.println(""d"");
(“some
-In
1. feature
Test is
id”)));
Planning:
execute
is tag used
testing
file (<a>).
we wrote to the In
tell
framework test
order
the
));
pushZerosToEnd(arr,
Selenium
MILISECOND,
with
for
overriding,
case
to
web (int
create page
reverseString(""java group
driveri = WebDriver
0;
the a
to MICROSECONDS,
factory.
i <
subclass
wisehyperlinks
wait or for is n);
Server),
module
a a on a
ch[i]=
which
driver.quit();
scenarios
In string.charAt(i);
this further is
all designed
using
testing gherlkin
plans to coverare
System.out.println(""Array
which
NANOSECONDS,
3.
overrides
wise
web
condition,
if( POM-
inputArray.length;
programming page,
((i>0)&&(ch[i]!=' As a per
asyoumethod process
well DAYS,
page
language"");
can asi++) object
with
use
')&&(ch[i-1]==' the { the
HOURS, the
all
")etc.
language
defined.
Another
after
request categories
pushing In have
way
based thiszeros ofphase
on test: the to unit
the
input
model,
if
}test,
same

anchor (inputArray[i]
generation
frequency
')) ||
)received ((ch[0]!=' we
signature
function tags with of !=
followed
')&&(i==0))
test, maintained
as' ')
Automatic
which {
that
end ) by
we of
to theina
-In
manager
//we
back:
class
if step
(result[j]are
"");
for defination,we
of
storing
from
every
== the
' the
') { testing
weballcondition
values team in
}end
its
HTML
linkText
want
count++;
"client superclass.
reports
to
test, checkintegration theDuring test,
maintained
calculates
List
for
page.Each(int i=0;
binding i<n;corresponding
estimated
web i++)
and perform effort
j--;
compile
● We can
5.name
before
}functionalities,
etc. –time,
throwing integrate
Locating thepage an check testng
elements has is a
and
List
separate
}
made cost
<WebElement>
System.out.print(arr[i]+""
specific onactions for
class
the thelogin testing
on
and theetc."");
that
with Maven asreference
well type.
Bug life cycle is also known
as Defect
Writing test lifecases cycle. In
Software
-Use
Compatibility Testing a Strong Development Title. ... is a
process,
-Include
type
Agile- of Software the bug
a Strongtesting has a life to
cycle.
Description.
-check It separates The
whether bug .. theshould
your project go
Currently
through the I am life working
cycle onbe
-xyz
software
development
XPath
Includeproject.
contains
Assumptions
is capable
I lifecycle
have the usedofto
path
and
intoof
closed.
Preconditions.
running
sprints. Bug
on life
different . cycle varies
page
the
SELECT
depends object
element department_id,
upon model
situatedthe tools design at the (QC,
-positive
hardware,
-SUM(salary)
pattern It follows by and annegative
operating
using incremental
java,
web
JIRA
conditions page.
etc.,) usedStandard and syntax
the
systems,
approach
selenium,
for creating applications,
testingXPath ,in maven,
is.
FROM
process
-Keep employees
the followed
Test Steps the
-network
git,
Xpath=//
GROUP Agile Jenkins BY
environments
methodology and I have
department_id; isClearor
organization.
and
mobile
known Concise. ...
devices.Compatibility
for its flexibility
followed
tagname[@attribute='value']
"New/open-assigned- data driven fixed-
-Include
I-Testing
approach. have
Agile used canisthe abe Expected
type
page of
considered objectNon- as
retest-
result.
functional
model
a collection close
...
design testing
of or retest-open
pattern
many by
jira-
-Analyzed JIRA is business a commercial
Or
-Make
Types retest-open.-not
itof Reusable.
Compatibility a bug
using
different
product
requirement
Yes.i java,
have selenium,
projects.
and worked helps
in order on totoTests
•capture
testing
-Ibugzilla.
determine Hardware:
Agile used is, and
maven,
quite
Yes.i the It checks
a git,
organize
test
know flexible Jenkins
hpthe
strategy ALM
have page object
software
and
method
team I have
issues, to
which be
followed compatible
allows
prioritizing data
covered
tool. HPsome
model
When designby automation
ALM (Application
tests pattern needs bythe Life
to
with
driven
changes
issue
testing
Cycle different
approach.
and
Management) behardware
toupdating madethem is inathe web
using
repeat java, selenium,
for different data set ,
configurations.
1.Language-
project
with
-Developed
based the development
tool project. new
that In our Ittest
helps isproject
ascripts
tool
testing
data
class
public driven , maven, framework
PalindromeExample{
void git, Jenkins gets
•organizations
we
requirements
that
-Maintained Operating
aredirectlyusing Systems:
java
even
integrates
existing
to manage language.
if It
the
tests with the
and
used.
public
switchToNewWindow(int I have
In this
static followed
framework,
void data
main(String
checks
Polymorphism-
2.
initial
the
scripts/regression
application Type code your
of
planning development software
framework-
lifecycle When
has been
suites
right to be
one
we are
driven
parameters
args[]){
windowNumber) approach. in test { case gets
compatible
task
using
completed.
API-
environments
-Attended
from is performed
project with
behavioural-driven
Agile making
planning, different
by
meetings it a
1.Language-
linked
int
Set to database,
r,sum=0,temp;
<APIsString In =our
>meeting/Sprint
sgathering, project
excel,
Operating
different
framework
-requirements
perfect
(Daily
1. Agile
All
Create scrum fit are
a Systems
ways
methodology, by
for
test not is
using called
web
developers
from like
page
a follow as as
until
we
csv,
int
driver.getWindowHandles(); aretext
n=454;//It using
files is java
from
the language.
there
number test
Windows,
polymorphism.
object
an
services.
well.
planning/Backlog
request.
Testing iterative
Due model to
...
&tofor Unix, its
deployment, Mac
design
developmentcapability OS patternetc.
which to
-testng
2.
case Type run <is
of testing
framework-
all defined framework we are
•variable
Iterator
-Polymorphism
with
approach
track
refinement)
2.
otherwise Software:
Responses
In page
any
the
be
StringIton
factory.
because
kind
requestis a
checked
checks
arein
of >issues
ite
java of=your
formatted
assigned
time- editor, is for
this ait is
which
using
@BeforeSuite
parameter
palindrome
s.iterator(); is designed
behavioural-driven
in the file. to cover
developed
concept
3.
planning,
using
not
projects
select
consuming POM- just Web As
Add by software
per which
development,
restrictedAPI's
This
task. page
Request we
to to
object
the canbeto
all
framework
@BeforeTest
int categories
i = 1; by of
using test: page unit
compatible
perform
model, we single with
have other
action
maintained in
prototyping
MediaTypeFormatter
software
-Executed
TestCase.
test,
object
@BeforeClass
Program
temp=n;
while function
model industry.
for
(ite.hasNext()
and
...regression
design
reading
other
test, end &&
into
pattern
data i < to10)a{
suites
software.
different
class
software
XML,
-Provided
3. Adding for
JSON, For
ways.
every
development
or
aresults example,
any
request web other
toto project aMS given
test
end
with
@BeforeMethod
from
while(n>0){
String test,
page
excel integration
popupHandle factory.
sheet- =test,
Word
Types-
page.Each
phases
format.
Adding
managers/developers/manu
case application
will may
test open web appear
cases thepage should
in has
more
Createjira- bea
etc.
3.
@Test
1.specify
r=n%10;
ite.next().toString(); POM- As the
//gettingperpath page object
ofthat
remainder excel
compatible
1.Method
separate
than
"-
-1.
al
TestSuite 1)
API
Create
testers once.
Delete
has class
adialog
and with
overloading
thethe
light-weight
“Test other
and
existing
Case”
stakeholders
box. -If a
run a
... Issue
-It
model,
@AfterMethod
file,
sum=(sum*10)+r;
driver.switchTo().window(pop overcomes
.file weextentionhave limitations
maintained
is
software
class
-of
configuration
architecture.

4. Test
and
After has
holds
plan
Keep like
clicking multiple
isIttheMS
reviewed
Open. Outlook,
OK, methods
functionality
But
you after
Jira
willMS
class
@AfterClass
mandatory
n=n/10;
upHandle); another for} every popular webtesting
Excel,
-having
and
each
When
issues
be
"1.How It asked
can etc.
members same
sprint
yoube
are
do to run
used
youmeant name
create of
the
write that
by to but
main
aayour
be web
client
test
framework
page.Each
@AfterTest
File
if(temp==sum)
System.out.println(""Window src =new called
web page
File(""c:\\ JUNIT. has a
•class
different
page.
-script
who
pushed
case. Network:
Agile Separate
asdevelopment
understands
...
in to""RunEvaluation
parameters,
done.
selenium as classes
...Java
JSON is of
itaisor for
separate
@AfterSuite""
users\\desktop\\
System.out.println(""palindro
title is : class
""+driver.getTitle()); and that
performance
known
every
process
Program"",
XML.
2.
5.
1. Tweak
Next,
To createas
individual
the in
a method
itwhich
User adds
dialog
your of a
test.
Story system
the
box Add
first default
to Be ina
Testing
class
demo.xlsx"");
Generally
me
if (i ==number holdsfeatures-
windowCount) API the
""); changesfunctionality break; occur
a
-overloading.
4.Packages-
requirements
classpath
Test
Request
Selenium network
API can
Case. be
to with
of We
the
used
TestCase
WebDriver varying
are have expected
project
for any
will as
-generate
and
2.load
every
else
i++; members
3file to automatic
4 of thatscript,
months. html
webcan
You
parameters
-method
separate
to
User
style
3.
appear.
first, change
Add entries
of
open a and such
overloading
packages
communication.
“Testing”
your into evolve.
Eclipseasfor
Run
Status to
IDE.
reports.
page.
FileInputStream
do Separate classes
fisALPHABET,
= the
new for
System.out.println(""not
}Pages
-Bandwidth,
"1:
increases
Configurations's
Your
2. In
It Iitprovides
faster
have
Agile
Create Jira and athe manually
Operating
string
Tests.
methodology,
Workflow.
a Java readability
support All
classpath
Project. ...
right?.
speed,
for webof "1) //tried using stream
the
Go
-supports
every
FileInputStream(src);
As
palindrome"");
}Capacity. a part individual
of multiple
integration test.
write
program.
page
testing
HTTP/s
4.
to Automate
File you a program
related
is
>workbook
New It also
performed
protocol: classes
Your
> Java checks
to
URL reverse
Testing Projectcome it public class Reversestring{
annotations
4.Packages-
3.load
testing,
}2)
When API which
We
automation
call this have makes
method can
-application
in
under
concurrently
Request/Response
Processes.
"1:
and
tester
separate
java.
It is
Check
How occur
write Pages
lifetofor in
within different
package
withmultiple
...missing
handle
“Selenium
easy.
packages the
software class.
and all
library
Headers,
for
public static void
XSSFWorkbook
help
}networks
just
public
-5.
the
development. Methodtestto
pass accelerate
class the
with
overloading
related wb
number
all =
the new
parameters
classes of
may or main(String[] args) {
If
etc.
endpoint
WebDriver
-By
Pages
XSSFWorkbook(fis); you
Integrate
the see
and helpinaProject”.
red
Your
SOAPUI?
Tests. ofwant exclamation
Tools.
testing,
Alltothe ...
test
web
testing
windows
mentioned
ReverseStringPreserveSpace
may
come
mark not
in and
under
your you
require increase
earlier.
Test
project inheritance.
package. means switch.
6.
cases
page
"hyderabad
4.load Use Traceability.
can
related
worksheet be grouped
classes
Servicenow comeand38
efficiency.
Say
•3.Browser:
{some
-Adding
5.
Waterfall In
Test for
this, of 5th
Base methodsAPI
It
model-
the window: testing
checks
Class-Test
libraries must the is
which the
have
Base
Web
Double-click
prioritized
under
38_S
XSSFSheet Create Servicedefects
Pages a more
sh on
Package.packagein
your
easily.jira Go WSDL
and to all
only
switchToNewWindow(5);
compatibility
static
same
class
are
-1.
interface
src Software
All
Go >
way
added
webtovoid
name toin
(TestBase.java)
services
Issues
Right-clickin and
the of=(only
provide
development
build your
different
Navigator
> path
are
New
truly
website
ifdeals
you
> is
APIs. System.out.println(reverse(""AL
-it
the
1. supports
wb.getSheet(""DemoSheet"");
secure,
1)What test
explain related
reliable
are yourparallel
framework classes
and
roles scalable
and
reverseString(String
signature.
with
process
either
-have different
all
It supports the
deleted
admin is common
divided browsers
XML. or moved into input) like
name PHABET""));;
to {
view
Package
execution
come
implemented
Syso(sh.getSheetName());
connections
responsibilities
on under the
and ofaccess)
left.
declare
test
Test Then
in Chrome,
between cases.
package.
project.
as manual aselect
Firefox,
-In
functions
distinct
other
-2.
the
“newProject”. You method
choose
secondneed Google
phases.
location. used overloading,
atab
subtasks SOAP by
Until
called all
you
protocol
in ourthe
left fix }
-we
5.
I5.print
platforms.
tester? Test
have can Base
used parameterize
username Class-Test
page
Testing object
fromprovides Base
excel
-Internet
char[]
return
pages.
"1.What
this
to
pane.
Service
selenium
class
model Waterfall
send issue, type Explorer
inputArray
This
are
ortest
Endpoints.
(TestBase.java)
design
can
class
test
methodology
your
receive or =etc.
design
project
scripts
pattern is can
and
Select using
deals
by
not is
will
data a public static String
sheet
these
•input.toCharArray();
be
responsible analyzing
Devices:
be benefits:
same, It users
checks
but
for we
loading stories
must reverse(String string) {
techniques
sequential
not
over
3.
the
4.
testing.
with
using Now compile
choose the
desired
all
syso(sh.getRow(0).getCell(0).
1. Access
network.
create
the
java, to
to
design
andadd
endpoint
common
selenium, a Java
application
no process.
class
Therefore
subtask (orthe
class. addis
and/use
compatibility
char[]
have
configurations
Test
-testing
created
issue
it Waterfall
does
first toresult
Design change
not
type.
via in the is
the is
have = of new your
the
from
acreating
structured
bin the
directory,
light-weight
""+""-symbol) atestset> return Stream.of(string)
"1.Difference
Go
-we
functions tocan
getStringCellValue());
without
cases/requirements package run
,user used
maven, between
only “newProject”
by
git,
interface failed
all
Jenkins
for TDD
the
software
char[inputArray.length];
parameter.
properties
of
hence
architecture.
4.
and
(Test-Driven)
Right-click inputs
add click when
a with
for
custom files.
development
Assign.
> given
you
and
New different
Initializing
run
name
>istosoftware
Class yourand and .map(word->new
cases
pages.
and
it
validity providesI haveasThis
and well class
followed
access using
feasibility data
devices
-2.Method
the
that
methodology
"Java
desc.
BDD(Behavior
declare It APIWebDriver,
can will
program,
and be like
aprovideused
add
class USB
overridingDeclaring
so aport
Implicit
most
Eclipse's
an
Driven)by
name set
icon any ofWaits,
times
similar
Testing StringBuilder(word).reverse())
testing.xml
responsible
driven
•"1)
application collaborate approach.
Framework file,
for
without no
closely loading need
users with to
the
Devices,
for
same
Extent
expected
it
classloader
client
to
TDD can (int
bug.
“FirstTestScript”. be i
who =
method Printers
reports 0; i
outputs.
quite <
will
understandsinand
rigid.
notand
child also
Thefind class to
ideathe
XML. .collect(Collectors.joini
run
configurations
1.Language-
API
actually
other full
testingteam testhaving is suite
a
members from
Intype our
to ininteract
case
the
project
of and of
Scanners,
inputArray.length;
which
create
-is
main
5. to
Software
Web
Definition-
then is
ensure
classthe
service
wetesting Other
alreadyobject
that
development
and
needTDD media
throw
uses is
to i++)
present
theof {
system
three
acreate anthis in
will ng("" ""));
failure.
properties
we
software
with
departments are using
a potentially files. java Initializing
thatlanguage.
disparate
devices
if
parent
be
error.
styles:
development
object (inputArray[i]
FileInputStream
is working
completed of and
class
REST,a good
class Blue
is ==
as
SOAP, known
hich tooth.
'one
enough
technique ')and
{ issingleas and
XML-
that }
testing
the
2.
involves
system. Type WebDriver,
execute XML
of testing
Thisall file-
framework-helps
levelsImplicit
applicationthe
of Waits,
we
testing are }
•focuses
result[i]
method
project.
RPC Mobile:
responsible
it can
FirefoxDriver be = Checking
' ';
overriding.
released
forbehavioural-driven
communication.
more for
by on pointingyour
the
taking with as
<?xml
Extent
using
programming
tester
(System, version=""1.0""
reports
to detect
Integration, and
interfaces
and also and to
software
}-the
-towards
few
To There
It solve main
problems
provides
implementation
WebDriver is is
thr
thisno compatible
advantage
file as
scope
problem
supports
reference. from
of possible
a of of
which
featurejust
In with
only this
encoding=""UTF-8""?>
create
framework
(APIs)
recognize
Regression) the
directly object
by
the using
and
errors ofas page
part
early, of 2) Use ""GET"" method to fetch
}mobile
method
the
for
changing
follow data
the
-Participants-
way,
<!DOCTYPE we platforms
overriding
below
HTTP should
average
can the
suite be
user. like
requirements
steps:
protocol.
Developer
implementSYSTEM isread.Android,
that all the
FileInputStream
object
integration
•instead
Design model
ofand testing
them design
develop hich
becoming to is
pattern
iOS
class
6.Utility
Equivalence
once
-Go
-methods etc.
to
Language can
the class- give
project
configure
of used
WebDriver its
Utility
partitioning, -own
build Written path in the response.
""http://testng.org/testng-
responsible
with
determine
larger
automation page issues factory.
if for
they
scriptsduringpointing
meet when GUI
•a
int Versions
j = result.length
specific
class(TestUtil.java)
Boundary
development
-Check ofsimilar
implementation
value the
starts. software:
analysis, - missing
1;theto
stores It Then will traverse through json
3. POM- which
language
interface.
1.0.dtd"">
towards
expectations
testing.
needed As thr per file JAR
for from
page isto which
object one
-is
used
6. verifying
inherited
and
Decision
All
-Remove
Open
<suite
the
model, handles
the
data for URL method
table,
project
them
feature
name=""Practice
we should
your
have of the and software
webpage without
developmentadd
bemalicious
maintained read.in a them using list or map and get the
•functionality,
2.Detect
Protection and reliability,
from
track software
"1)What are your roles and
responsibilities as manual
tester are your roles and
"1)What
• analyzing users
responsibilities asstories
manual
and/use
tester Malaysia Jabil 47 47
"Penang,
cases/requirements for
•1.analyzing Tell me aboutusers stories
yourself and
validity
and/use and feasibility
Roles
•cases/requirements and
collaborate closely for Responsibilities with of
previous
other team project?
validity andmembers feasibilityand
departments
"1.After you have
•Myself
• execute
collaborate xyx.Im allmembers fromrun
closely
levels xy
offind
a full
with
testing
regression
other
city,and team test,
I Integration,
work as an and and and
(System,
new
departments
"1. regression
In Selenium, bugs, to which
automation
Regression) testhow engineer getin
bugs
•xyza
text execute would
value
company. all
from you
levels prioritize.
text-box of testingif
•gettext()
Bugs
(System, Design that and
isIntegration,
not develop
working? and
Roles
automation and Responsibilities-
scripts when
suggest
Regression)
1.
•needed JavascriptExecutor
Analyzing that functionality
business js =
has
•requirement
(JavascriptExecutor)driver; regressed,
Design and in develop or
order bugs to that
•String
appear
automation Detect text and
in new track
=scripts features? software
when
determine
defects and the test
inconsistencies strategy
-needed
js.executeScript(“return
covered functionality by has
automation
•"1.
regressed,
•document.getElementById(‘s Provide
Why is
Detect andtimely
CSS track solutions
locator software faster
testing
"•ome_id’).innerHTML”).toString()
than
•defects
Apply
DevelopingXpath? quality
and inconsistencies engineering
new test the
principals
It
• Provide
;scripts combines throughout
timely the solutionselement
"2.Consider this snippet
Agile
selector
•• Apply
System.out.println(""Text product and
quality lifecycle
its valuetests
engineering that
Web driver
Maintaining driver=new
existing
•identifies
principals
""+text Provide ); support
the
throughout element and on the
chrome
scripts/regression
"This was driver();
first round suites
documentation
webpage.
Agile
2. product
WebElement Css selector
lifecycle
webl = is
what
•"1.
telephonic Attending does difference
Explain the
Agile
interview above
meetings code
•faster
driver.findElement(By.xpath(“
snippet
(Daily Provide than
scrum support
mean? xpath meeting/Sprintas
and it
a={2,3,0,0,5,0,8}
between
"1)What
traverses are Method
inyour forward Overriding
roles and &
documentation
xpath_expression”));
We
planning/Backlog are creating Object of0aat
1.
Method
responsibilities
direction.Xpath write a code
Overloading to put
asmore
is manual all
JavascriptExecutor
class
refinement)
the end ChromeDriver on assigned js
by=ataking
Method
2)what
tester
complex
"How
(JavascriptExecutor)driver; do areoverloading-If
than
you your get css roles
all selector.
the and
reference
projects
2.
class Usehas datamultiple of an
structure interface
methods to
•responsibilities
values
String
"Programming
(WebDriver). analyzing from
text users
drop-down
= regression
(String)
Inname
as
Question
this case, stories :box
we
•solve
having
Automation Executing thesame problem
test engineerbut
and/use
2)what
which
js.executeScript(“return
Test
can isare
scenarios
call defined your
implemented toroles
by be and
Select.
suites
3.
different
roles After and coding
parameters,
responsibility , dry run it isand
cases/requirements
responsibilities
Steps:
arguments[0].text;”,
covered
methods : of WebDriver as towebl); for
•known
"1.
calculate
•1. Providing
Why
Analyzing as do results
we
complexity
method
business implement project
of the
validity
2.
Automation
visit:
interface. Even
Get the and
though xpath feasibility
test CSS
engineer
of is faster
droplist.
managers/developers/manu
Abstract
code. & Interface class
•overloading.
requirement
than
roles
2.
https://www.sportsadda.co
As collaborate
Send
per Xpath
andthe itadid ,why in
responsibility
to abovethe order
closely do
constructor95%
statement,
to
with of
al
and
-1.
-method
determine
"1. testers
How
write
Explain and
code
overloading
the
method you stakeholders
testto implement
put
strategy
overriding all 0? at
•other
the
of
m/
we
it Analyzing
in'Select'
are
your
team
companiescreating members
business
class.
project?
use
anGive XPathand
instance meof a
the
increases
covered
with
departments
"1.What
it end
provide the isby
sample the
Web
variaty readability
automation code.
Container
of function
requirement
3.
Click
of
code Use
the on all got
WebDriver the in
it/Cookies order
functions interface to using
program.
testing
Method
•using execute overriding-Declaring
all
-A
determine
"1)
'Object'
2.
button(visible
and
2.What
-snippet!
class It
Ifweb
When
we
iscasting container
whichof
are
PushZero
occur
ypu the
Selectitulevels
using
all
within
can
test
decide
at
to
the is
class. of
correct
the the
create
strategy
totesting
bottom
FirefoxDriver
drawbacks
the
stop
class.
•"Java
same
(System,
component
unique
covered
the
For
locator
of Developing
the method
testing
example- Integration,
locators,
pagebut by of new in
a
automation
still
that child
web
eventest
getting
accepts andclass
server
in
Class
{in
-scripts Selenium?
Method overloading may
which
Regression)
that
case
testing
Software
//open
element
1:
cookies) what isyahoo
interacts
ofare is already
complex
nottesting
String found with
urlPool.present
can Java
xml.oferror be atheninor
doesn’t
"What
// Function support thewhich windows
challenges pushes all
•may
parent
servlets.
web
•"1.
stopped
Driver.get(“yahoo
how
String
One Design not
Maintaining
page.
Developing
u to
Ad class
will
Pool
pops
require
and
A
when web
resolve
in existing
is
develop
new
Java
up theinheritance.
known
container
whichtest tests
factors
login
this
is as
a pool url”);
error?
based
you
ABSTRACTION
zeros
-scripts/regression
method How
In this,faced applica􀆟on
willend
methods in
overriding.you web
of an directly.
services
handle array.
must
suites have
automation
manages
scripts
below
//we
-check
of
needs have
Strings are
toifObject the
xpath
be scripts
met:
select
which life
closed cycle when
birthmonth
isselenium?
is correct
stored
by of in
However,
and
certificate
In
static
"1.
same
•
-the Page rest
Explain
Attending void
name
main apithird
using using
different
and
Agile
advantage party
Model soapui
different
meetings tool
design
types
of (eg:
of
needed
servlets;
•//
from
-check
Java
automation
3.where Maintaining
100% Heap if it
requirements
dropdown. maps
element
can Memory. existing
""Dynamic Soa isURL
get
nottests
String to
the a
AutoIt)
tool
pattern,
pushZerosToEnd(int
framework.
signature.
"1.
(Daily
method Create
Riskscrumcan we object
inoverriding be
agile write oflocators
meeting/Sprint is arr[],
that int
the
•scripts/regression
particular
coverage
xpath
hidden
allocation,
IPolymorphism"" Detect
tried of
with and servlet
is
birthmonth
like track
achieved
Selenium all in software
while
suites
object but
Selenium andto
integrated
DesiredCapabilities
(such
n)
1.Data
-In
-Presenting
planning/Backlog
class methodasdriven
can id, with
givename, selenium
framework-
overloading,
progress its own class
xpath and
defects
•"1)How
ensuring
3.What
complied
WebElement
allocation,
have
WebDriver Attending no hash
areand
cluethat the
proves
be inconsistencies
Agile map the
BirthMonth
how works
Standardrequester
meetings
observed? to be
close a= it
automate
DesiredCapabilities
etc.,)
{has
when
return
Coverage insome
type windows
aimplementation
Page
to test
can
projectClass.needs
or based
can We to
not
•refinement)
specific
internally
Guidelines
(Daily

Move
METHOD Provide
Defects
driver.findElement(By.xpath(“
costly relevant
scrum
affair
ahead timely
and
of
OVERLOADING
on
and in assigned
how solutions
access-rights.
rules
meeting/Sprint
all
without sorts
both its
the to
are
login. beto
applica􀆟ons.
Challenges
cap=DesiredCapabilities.chro
utilize
int
repeat
be
management
projects
inherited count
be these
for
same, =hash Faced
0;any locators
different
method but//
is Count
we While
difficult data
withoutmustin
of non-
•followed
generate
-The
planning/Backlog
dealt
xpath
"1.
cases
RHS
We ApplyWhat web
with
of
Scores
use quality
for
all
ofimplicit container
timeproperly
birthmonth”));
will
widget: andengineering
code?
you
waitautomation
and
do
memory.
Click
in these toon
Using
me();
tests
zero
set,data
have
-Less
•optimize
even Executing toSoapUI
but
elementschange we
driven
predictability.
modifying can’t
regression framework
the
the see For
parent
principals
It stores the throughout
data in the
implements
project
refinement)
resolved
//will
The
very
Selenium.
"Coding
3.How
•locators
gets
parameter.
some
suites Mandatory framework?
introduce
JVM
first your
performs
toquestions
used.In
software inmatch onthe
Implicit
execute
the
web
assigned
Select
framework on pair
some
scorecard
certification
this tests. wait the
parallel
deliverables,
class
is anto
is
class.
Agile
of
component
•3.
projects

as
run
steps
Click
example Key
Handle
All product
tests and
constructor
Why them
on we
while scripts
Match
of in Value.
must aspect
prefer
parallellifecycle
initializing
info
overloading. and
be HashMap
of
passed
explicit
tabusing the
datastring at
Interview
test
required
"Coding
//
Literally
framework,parameters
Method
-•developers
contains
Java
separately.
Set using
Traverse
Providing
it is
Provide
in Bit
questions
ACCEPT_SSL_CERTS
we Test
SoapUI
hide
the
overriding-Declaring
performed
engineering support
an cannot
results
array
NG?the
array.
in and
to
on
to If inInthe
access
locators
quantify
two
of project
the
•Interview
least
Select
wait
Selenium
literals
Implicit
1. Executing
Find 95%month
instead to
wait
the Grid/ regression
increaseof =
weinlinked
middle new
fluent
Browser
use node wait?
different
<suite
web
variable
from
element
test
same
the
managers/developers/manu
classes
documentation
nodes,
architecture;
•suites Create the
case
full name=""TestSuite""
services
method to
extent
and with Bit true
tests.Abstraction
encountered
gets
libraries. the of child
inheritance
itand required
node
specifies to
is isofa is
class

Stack?
•performance
time
linked
thread-count=""3""
1. Deadline
Select(BirthMonth);
What In Findcaseare
stamps
cap.setCapability(CapabilityT
the
// list
the
methodology
non-zero, the
of of any
middle the
then project
disadvantages
such decrease
error, as
node
of
replace the
hiding ofisthe
database,
which
efforts.
al
relationship.
represented
run
•linked
met
//Select testers
Follow time
Providing is .. excel,
already
and
environment
coding
by resultsas
Visible csv,
present
stakeholders
a class.
standards.
to
text text
for
project It in
of
Selenium
memory
-SECONDS,
program fluent
parallel=""methods""
reason
ype.ACCEPT_SSL_CERTS,
the
element
files listis
implementation
from wait?
at Grid
overhead.
to MINUTES,
find
never
index
theretest is middle
a'count'
smart
To
HOURS
displayed. of>
case of run It
parent
-More
-proxy
2)what
"1.
uses
various
 While
All What an
•managers/developers/manu
Offer test class
time method
are
high
month.selectByVisibleText(“A
Explicit is
array
components
waits and
your
static is and
extensibility.
documents are known
overriding
roles
in java?
LinkedList
considered such
are as
and
decrease
program
true);
internal
//
for withall server
System.setProperty(""webdri
etc.,
linked
just showslist
this
defined the
tokeyword
details the
find
element that
number
fault
middle
and makesshowingof it
of inis
method
•commitment.
always
responsibilities
The
data
as
"1.
al
prepared,
pril”);
a
easy
String Less static
structure
security,
What
testers
better to
overriding.
needs
maintenance.
objects you and
reviewed
practice
run ...parameter
need
tests inheritance.
as
internally
concurrency,
stakeholders
created to
because
in in
and Java
test
parallelin for aof
the
ver.chrome.driver"",
METHOD
class
As
response
linked
for
the
-the the OVERRIDING
LinkedList
thread
list
functionality
(int
file.
main i = 0; leading
i <
advantage count
n; to
i++) to ""path
theis
aof
-Greater
-Automation
used
storing in
transaction,
•{JVM, this,
for
Script/Framework
webservice?
published
//select Keydemands
methods
bymemory test
andand Value. on
must
engineer version have
There
"1.
they
on
3
trouble
class
//
users.
if
2.Keyword
method
developers
3)what
same SetWhat
,three
(arr[i] don’t
multiple
the
chromedriver.exe"");
We use != a
foris
String
LinkedList
the 0) avalue
web
depend
driver
overriding
challenges
name
machines.
method
webdriver driven
and
Service?
class
non-technical
path onkeeps
which
instances
is
clients.
same you
the
This
that was
the
...can
isa
roles
management
are
deployment.
control.
Web
 four
Testing and
service
month.selectByValue(“5”);
Explain
specific
done
pool
WebDriver
already ofby fields
with responsibility
budget
browser
routing
strings. driver
implemented an mainly.
in
testing HashMap.
is
example?
driver
commands
= new We
helps
in in
{Node
can
person.
•-Lack
faced
-signature.
apply
run
Analyzing
First
head;
can
of
in
static
ofand
parallel
System.setProperty(""webdri
driver.findElement(By.xpath(“
arr[count++]
framework-As
class your
all, give
necessary //= Automation
business
keyword
the
head inown
arr[i];
aitsname
key
ofhere
three
// linked
with
object
testing
exhausted
//select
Web
(ChromeDriver,
to
Each
list
different service
remote
ChromeDriver();
another time
•//div[@class='btn']
NodeNo visual
head; by
class web
a
browsers,
ver.chrome.driver"",""Chrome
count
suggest,keyword is
identifying
upon
index
way
// is
string bya
head of completion
SafariDriver,
browser literal
changing
test
executing
of linked
"")).click();
is nothing is is
specific
documentation.
career
-requirement
While
variables,
checked in implementation
forthis,
methods, in
null. ...
return
order If the type
to
blocks key to
2)
etc.)
//
its
cases
tests
list
OSI
whether
3)what
of the
instances,
created,
visit:
driver
Model-
tests
month.selectByIndex(7);
standardizedwhich a particular
challenges
the
parameters.Declaring
INTERFACE
//
but
inherited a on can
path"");
incremented
code an may
where
run
which
method
JVM7medium
layers
implement
one
checks
parallel.
application, youto
represent
without
server a is
the
-Project
1.
must
he
 Generating
determine
and
null, Open
application
faced
Meetings
//get
propagate
Implicit be
nested
thein
selected easily
same
value
Systems
your the classes.
with is
communicates falls
useful
or
test stored
Automation
communication off
stakeholders
option test
co-variant.
strategy
The
from track.
in
acts
string
hence,
Basic
-some
even
Test
status
as itwaits
the
literal
https://www.sportsadda.co
method
/* Linked in
statement
action.In
modifying ischild
list
preparation
reports
hub. better.
pool
node
difficult thisThis
class
in
the
first.
*/
isfor hub
Selenium
parent
Ifthe
which
usually
the
"1.Tell me about past
experience
"1. Tell me about briefly past
Based on your
experience ? Testing
Experience,
Based
"1. Tell on meyour about youTesting can
yourself? answer
about:
Experience,
Myself xyz.Im you working can answer as
"1.
•about: YourDifference current between
roles and
software and
Scenario
"Different test
ways engineer
Scenario
to automate in
responsibilities
•outline
xyz Your current
company.then in the
roles and
explain Project
OTP
"1)
•your What
Testing usingis in Cucumber
selenium?
smoke,regression
responsibilities
framework
and skill Models,
sanity set testing and in aboutthe Project
•Methodologies
project.
Scenario Testing Models,
is one is
that
of athe
were
core
Solution
Smoke
used to
"How
Methodologies for 1:
Testing-
Testing
take a screenshot
that kind
were of of
Gherkin
Step
Software
•"1.Describe Yourfor 1: skillsstructures.
ConnectTesting and expertise the Every
performed
failed
used
scenario test scripts
Testing
starts how to
with inhandleTestNG
the
Phone/Dongle
after
related
•keyword Your softwareto
skills Test to
build the
Management
anddeliverablesexpertise to COM
the
"1.what
2.
Port What below
via is
are
USB. Aitems
“Scenario:”and
the using
AA WCAG(or
ascertain
tools
-public
related
selenium (used static
to that
Test forvoid the
Authoring
Management critical
standard
you
"Goomo
localized
Step
functionalities are2: responsible
IQs
Call one) the and
of code the is for,
for in
Test
captureScreenShot(ITestRes
tools
-iframe
WCAG
your Cases,
(used
2.0code
current Defect
for
guidelines role? Authoring Tracking
are
1st
followed
"1)
fetching
program Round
Write by
sms
are - Written
an for
via
working optional
whether
smslib.jarTestfine. It
and
ult
Test
-Right
categorized
-"What Software so
result)Cases, on)
click throws
on Defect
Testinginto Webelement
three Tracking
Plan levels
Set
scenario
some
Sample
is A
executed 30
text
will mins
Code title.
is
be toEach
highlighted
your
""before"" fetch nextfeature sms:
any and
•of
IOException
and
you
-Software The so
are actual
conformance on)trying Test Testing to in locate Process
order andto
1)
can
underlined
public
steps
detailed
"1. Automate
Is haveit void
if one
developer
functional
possible on Login
sendSMS() ora tomore
webpage?page
not
or
extend throwsw.r.t
•that
if(ITestResult.FAILURE
if
meet
Documentations-
Appium/Selenium
scenarios The
it you
shows actual
the followed
needs‘view
and Testing frame
of
every
todifferent
Test
with ==Java
Process
text
Exception{
accepting
regression
Final
effectively
"1.
result.getstatus()){
that is
Explain
you highlighted-
Class? the
followed tests
perform
Defect Bug? are Testing
Lifecycle
to "1)
source’
groups
Plan,Test
as
scenario a language or
and ‘reload
consists different
Scenario,Test and frame’
ofmentionone Casethat
or
-String
OutboundNotification
executed
final
•situations:
DEFECT Check
Some Classcolor the
LIFE on can =
project
the
CYCLE not software
be
is the
//creating
effectively
"Round
means
-Daily
all
more
driver.findElement(By.xpath(""
outboundNotification
specification
build.
extended. thesteps. Test1: are
we
tools,
The
ref perform
AStatus
purpose
of dealing
A(lowest),
libraries,
to very see
Testing
Reports
simple
is if AA with
type
=to
it new
is (mid
in of Defect
"Roundlife 1: cycle
•unique/interesting/show-
specific
takescreenshot
1.
frame.
range),
framework
example Some
Whatand set
isofSanity used of
AAA
scenario statesinterface
Testing?
(highest). canthat na 1)
be "There are New: Thistwo is the methods first state to run of
xpath"")).getCssValue(""color"
OutboundNotification();
fact
reject
stopper
Bug
type
unique/interesting/show- a
goes defect.
a
casting badly
kind through ofRetest
broken
bugs in thethat
its a defect in the Defect Life
Sanity
-To
Conformance switch testing- between at is aoverriding
kindthe of 1)
the
"1) failed test cases in
3.
"1
-SerialModemGateway

");
same
application
you
entire
let’s
Explain
page found
say
object
testcase,
life.
you
method
soof
(don't
The
model
thatifhigher
have
purpose utsthe
bluff get designon same
QAof Cycle.
TakesScreenshot
stopper
Software
iframes
levels
planned
and
pattern
Scenario
String
gateway
bug.
team
2. Is method
Send
it does
kind
we
indicates
by
backcolor
possible
Testing
for
=− itnew have
100
using
Verify
not to
bugs
overloading
waste
to
toperformed
testcase
java,
Help
=bluff use
override
that
time MethodWhen
SANITY
selenium TESTING
Overriding any new defect is
this)
the
=(TakesScreenshot)driver;
you
after
driver’s Defect
found
receiving life
(don't
switchTo.frame() cycle
a software is on to found,
It is a it
subset falls in aregression
of ‘New’ state,file
conformance
execution,
Method
selenium,
Functionality.
driver.findElement(By.xpath(“
SerialModemGateway(""mode
developer.Prove
installing
Static
•For Some method? and
challenges
for at
overloading-If
testng some
testing lower
to, maven, reason
the
you thealevels. git, 1)By using testng-failed.xml
easily
//cell
this)
build,
command
you
class example,
are coordinate
method
with
has not minor able
multiple to
bythis bug
capture
changes
conforming
to9600, execute
methods status in and
testing.
inchild validations
test-output and
folder. thetestingsame are
Jenkins
Given
xpath"")).getCssValue(""backg
m.com5"",
developer
software
No,
•faced
changes you user
during and
can application.
to
followed
navigates
""COM5"",
why notTesting
various override isand to atobug If
data
performed
class has
on this defect
scnsht
code,
-We
to
and
having
driven
Facebook.
round-color"");
""ZTE"",
and
Regression
static
Some can
AA,sprint
how
or in
aapproach.
Web
same use
""COM5"");
method it
terms
challenges
functionality,
end
is page
name date
supposed
Testing- in
of
Java,
FILE
you
meets
butisis a to
After
once weas
method receivingrefresh
declared the software
it weinwill thein ablethe
how
"1.
assignees
File
faced
ascertain What it was
during isAthat overcome
selendroid?
and Testing
themake bugs the
and bug later stages of the Defect Life
switchTo().frame
both
approaching.
different
Base.java
When
System.out.println(color);
gateway.setInbound(true);
work.
type
though
the
of the andHow
parameters,
testing
you user can
AA command
clicks
thatdeclare
could
is iton done ishave
you build,
in parent
to seesanitythe
class, testing
failed it istest known iscases as in
•conformance
Selendroid
fixing
Source=ts.getScreenshotAs(
how
been
3
handle Your
ways- it interaction
process
was
fixed this is
overcome
and type a test
no
levels. ofwith
systematic. further Levelthea A Cycle. performed
testng-failed.xml to ensure file that the
known
public
Help,
System.out.println(backcolor
gateway.setOutbound(true);
-If
to
method thethen
verify as
class
developer
that
with method
the Base
a Help
the code { page
still
same does
change method overriding in Java.
Client/Customer/BA/Project
automation framework which 2)
OutputType.FILE);
•overloading.
issues
1.
sets
situation?
opens.
);gateway.setSmscNumber(""+
not
in
signature
Your
the a
accept
interaction
are
switchTo().frame(int
minimum
software in
introduced
thata
level
this
does
subclass.
with
is of
not
the
a
due
frame
bug,
It
to The method must have theaare
code
2)ByAssigned:
changes
implementing In this
introduced stage,
TestNG
Manager
drives off - regarding
the UI of Androidyour ofis newly created
FileUtils.copyFile(Source,
Client/Customer/BA/Project
these
number)-pass
accessibility
Out
-method
public
Scenario
if(!color.equals(backcolor)){
91XXXXXXXXXX"");
you
impact
won't
ofshould
changes.
the
bestatic
the large
overloading
outline and the
WebDriver
speak
existing
overridden
The
numberdoesframe
basically
// to
goal
10-digit
in
not
the
working
IRetryAnalyzer.
"1)
same name as defect
as expected in the parent . is
Testing.
native
2.
new
Manager
to Differentiate
determine and hybrid
-variable/keywords
regarding that between theswitch your assigned to controller
the development
index
achieve
Test
increases
driver;
replaces
System.out.println(""Text
Mobile
someone
functionality
exact
applications
Validation
File(""./ScreenShots/""+result.
and
Cases, broad
Number
sense,
driver
the
higher
and
you of the
instead,
(apps)
will
accessibility
must
readability
upand
Verification. like
product. bethe
that theisofis "This
classtesting
Using
"There
team
while
is working
for
is
a powerful a checkpoint
on tool
the
wecalledcan
defect.
to
Testing.
proposed
to
for
able
program.
public
with that
many to
the frame.
prioritize
Properties
value functionality
situations. test
prop; Forcases determine
this htmlextrareport
retry
The method failed test if testing
must caseshaveinfor the
the
highlighted!"")
Service.getInstance().setOut
"1.Define
team
This
called
mobile
Validation-
getName()+"".png""));
works
2. is leader
to
method
web
roughly
switchTo().frame(String
STLC?
make orfrom project
sure
hiding.
as
the
the
expected.
table.
This
build iscanassignedproceed
which
by or thenot
gives
project
-reason,
as
public
Each
}product
boundMessageNotification(o
-manager
"1. It not
is
Software
call all
occur
row by
UC
WebDriver of
to
works in recommends
them
within
the
Testing
ask
reference table
for
fine will
the
Life
their
withand have
is class.
Cycle
newAA
call Jmeter
same
the
"1) best parameter
report andas in
we thecan
-frame
}-initializeDriver()
If
conformance
same
considered It is
sanity
Method anamedynamic
test
priority. overloading or
tobugfails,
forid)-
You
be mechanism
throws allthe
aIn pass
may Web- build
may
scenario. endthe is lead
or parent or the
class. manager of the
else{
utboundNotification);
(STLC)
opinion
functionality,
by
2. value
What identifies
on
istoand resolving
priority what fixes test
the
testng? or share
Call byPOSTMAN
Value API test reports
""1.
of
rejected
frame
based
up
may
IOException
How
testing
with not to
Element
information.
High minimize
require save validating
name
Priority, the the
inheritance. time
or
Medium ID the
and "1)
testing
2)
2)
parent team to
class vehiclea developer.
having
System.out.println(""Text
Service.getInstance().addGat
activities
issue.
any
call
3.
When
window?
2.
actual Ishow
How change
by value-
it possible
tests
do
product to you carry
in
are the
to
switch outexisting
overload
configured and
from is To
While
With
3) get
Open: thisthis
calling code
Here, firstly
athe we install
function, can minimize
developer nodejs
we
"1.
costs
and
-The
Priority,
{eway(gateway);
2. In driver
WCAG
this,
Background to
involved
and
methodsfind
will
documentLow anin
switch
keyword element
a more
Priority
must to
does that
set
have
in in "1)
SMOKE
First
run()
then makeTESTING,
method
install sure
newman email with
"not
when
feature.
-While
-main
parallel,
driver.manage().window().set
native
3.
a
rigorous ItHow
highlighted!"")
always
webpage to
method?
towill accomplish
Previously
calling
in which
webviewinvolves
youwhose a function,
priority
validate using those
executed
idipLevelkeeps we pass
the
starts
You values
window
can the use processof
relativevariables of xpath to it.
frame.
"2.
not
of
same
prop=
Cucumber.
}Service.getInstance().startSe
test How
Testrecommend
name
new
activities.totesting.
Cases. fetch and
Properties();
What’s the
that
different
the use of Is
"1) also
notification
child
command known
class related
bike
line ashaving“Buildplugins run()as are
pass
Yes,
tests
Position(new
appium?
executing
dynamic
on
3.
address cases
changing values
mainare
switchTo().frame()-pass are
method
executed?
the
response?
of a on of
link? re-executed
variables
Point(0,
code every can be
-1000)); to it. Such
analyzing
method
Verification
The functions
driver.get(""https://
const the
contains are
defect
Testing”,main
keyword or known
and
startsaim
works works
with
like is
AAA
signature.
FileInputStream
it?
rvice();
in order conformance to verify fis=new
the be impact installed
method
npm install (Manage
-g newman Jenkins-
Such
overloaded.
-If
public
-the
Just
refresh.
class It weuses functions
want
make
frame static
GFG methodsa
web
{ to Overloaded
void
JavaScript are
execute
element known
like the
Black main
and as www.google.com/"");
“Call
on
text Bykeyword.
fixing
ensuring
the let Values”.
it, if
that required.
the most If the
required
4.
-In
FileInputStream(""path
Background
Text
OutboundMessage
of Based
method
change.is as
Underlined aabove
onoverloading,ingeneral
Cucumber answer,
ormsg policy
not- of= is install >Manage
create objPlugins->Check
custom for bike reporter class and if
“Call
method
changeDriverContextToWeb(
Box
function
Option
2.
driver
public What By
Testing, 1:Values”.
will has
in
is
static Look our
replicating
Smoke
switch to
White
void be
order
for called
any Box
Testing?
to then
that
main(String other we In
For
But this
developer
eg
important
the method,
consider
const feels
functions the
keywordthevalue
that the
HTML
work. of
defect
creates
for
Sprint
return
properties
used
String
new entire toplanned
typedefine
cssValue= sites can
file""); because
aincompleted
orstep can or not it is email
call
npm the related
installrun() -g plugins
method.
newman- are
It will
-2.Difference
Sanity
from
need
2.
AppiumDriver
Testing,
dynamic
attribute
Smoke
frame.
args[]) InHow this {testing-
inside
to tomethod,
use
and take
value.
which
Testing- the between is
“priority”
the
driver)
non-functional
and
Is the
iswe anot
""public kind
ascreen{value
then
kind test of
static
of doof each //Minimize
is not
snippet:
The variable the
appropriate
result
block-scoped ofnot)thisin calling
current
variables thenwindow
testing it may
is
not
test
be
series
driver.findElement(By.xpath(""
OutboundMessage(ExcelCon
case
Software
"1.
each
void be possible
stories
same,
and of
Q.
variable
main(String steps
test
Testing
Write are to
but satisfy
carry
that
scenario.
ina performed
program
calling
args[])"" must
are all
as to installed
print the
reporter-htmlextra
function isor
valuecopied present into inwhose
run()
parameter.
shot
Set<String>
testing
karate
changing
Software
//
Level
forwarded The ofURL
AAA complete
matching. every
Testing
for
success
or allContext
which
moved time screen?
performedIP In
criteria
to = that to
get
used the
<input
values toset
transferred position
type=""submit""
decide
can’t be to
if a any
build
reassigned. of
id=""is the
have
prop.load(fis);
common
//a[text()='Hindi']"")).getCssVal
nect.strSMSTo,
test
after
merge to
case-
receiving
two change
to all
sorted the
ato the tests
software in method
after of bike
installing build class the
function
-this
"1.
*-Syntax-
public
driver.getContextHandles();
div
after
address
for
backlog? is
It checks
def node
some the
What
static
datetime
software is
like
needs copied
entry
content. kind
@Test(priority=
whethervoid
name,=build ofarrays?
point into
function()
be towhen
the
class etc. corresponding
driver.manage().window().setPo
below four
submit_334350""
stable
variables
Then Goenough
to states
created
Configure
dummy
to namely
proceed
by the const with
parameter.
String
the
ue(""text-decoration"");
ExcelConnect.strSMSText);
-Test
build,
Input:
corresponding
the feature
class cases
with
a[] = isminorfile.
contain
{1,3,5,7,9}
launched It allows
changes
dummy definite
by you in
the postman
variables collections
of the called function
framework
priorityValue)
captureScreenShot(ITestRes
for
software
"1.tell
{code_generating_Date_time}
Option
ascertain
-windows
fetched (String me 2: Weaboutyou
context
meets
thatcontext can have
the
yourself
use
the critical : sition(new
Duplicate,
value=""Subscribe"">
further testing.Point(-2000,
Deferred, 0));
Rejected,
moved
Method
browserName=prop.getProp
to
System.out.println(""value""+
Service.getInstance().sendM
test
code,
b[]={2,4,6,8}
variables
JVM.
worked?
Priority
ult add steps,
result) or to
some backlog
overriding-Declaring
data,
==functionality,
of
Experience
parameter
throws the expected
called intotothe keyword System(Manage
Method
Run
With collection
this
are immutable.
overloading
method, in CLI the changes
allContext)
requirements
Myself
Then
absolute
functionalities
"""1:
String
same matchxyz.Im
Limitations
s
method xpath {
""https:// and
working
datetimeof
in (full
of the
childusing xpath) == as
class or
In Not
other a
Jenkins->Configure
Class Bug-based
words,
having you
multiple upon
can’t
system)
methods the
erty(""browser"");
scenarios
cssValue);
essage(msg);
results
ascertain
Output:
function.
developing
priorityValue=value for for
that testing
C[]={1,2,3,4,5,6,7,8,9} a
framework? thefeature all
bugsof the
the have newman
made to run
the dummy variables
IOException
if
expectations
software
response.datetime
where
program you test
are do of a
engineer
notpresent
working customer
need intoin 2)
specific
This Subscribereason. button on the
Method
Appium?
www.google.com/"";
2.Why
which
System.out.println(browserN
where
Actions
System.out.println(msg);
features
been
import
call
Utilities
parameter(-ve,0,+ve)
if(ITestResult.FAILURE by
isName:
is
it
fixed used
accessibility
already
is
act of
java.util.*;
reference- defined.
and=bugs
an new
in application.
no
framework, A fine.
further ==
It reassign
3)
and
with
in
To the navigate
same
capture called
them
name
https://www.getpostman.com/ toto
function
screenshots
different
Extended
but different
have E- in
ofano the
(context.contains(""WEBVIEW
-getWindowHandles()
•xyz
give
is
try
testing
5.
parent It can
executed
Appium
How { find
company.then
any attribute
doesn’t
necessary
do
class you ""before""
is manage
known that explain
names
perform the
anyas In 4)
pageFixed:
Regression
values.
mail
parameters has When
Tryingan ID
Testing tothe
with developer
reassign a
ame);
Background
Actions(driver);
System.out.println(ExcelCon
-Test
issues
import
-calling
as
-Sequence in casesare
java.lang.*;
a
architecture? function,
of is
have
introduced much
execution defined
insteadlike due a
is a to
of
in "You
effect can on execute
collections/161a23965791d26
the values 100 of test
actual
result.getstatus()){
""))
verification
your
xpath.
detailed
Syntax:
testing
//
Accessibility
defect
method Fetch skill on
in Set
IP set
functional
alm? process
mobile
address
overriding. and about
Test or
devices
not by can only not constantentire
finishes
dynamically
Regression
Notification
By changingscreen
the task
variable
section using
changing
testing
number ofwill isselenium
fixing
and to number
result
of a in
ensure
provide
scenario
act.moveToElement(driver.fin
"1.Tell
nect.strSMSTo
step,
these
import
passing
5.
-getByName()
ascending
TakesScreenshot I
driver.context(context);
catch
project.
Option
regression
getWindowHandles()
support What
have me
changes.
3:
containing
pre-requisites,
java.io.*;
isthe
usedWe
about
Android ordervalues
difference
tests page
can
yourself
+ ""-""
Theof ts
use
are
Version
+a
ofgoal
object
value. starts- is cases 3a3e6
variables
web
defect
in
that
a it
in
-r two
driver
by
(‘334350’).
changes
TypeError.
htmlextra
in the different
scripts,
making have calling
the we
not
ways
--reporter-
can
required
affected
focuses
Step
-the
if(browserName.equals(""chr
number
dElement(By.xpath(""//
Stated #1:
main inisofon
Login verifying
advantage
steps. to etc. ALM ofto the depends arguments
htmlextra-title on framework ""Automated test
ExcelConnect.strSMSText);
expected
to
variables,
between
model
-‘0’
=(TakesScreenshot)driver;
}executed
-Example:
4.
with
lower
InetAddress
usability,
right
method
ome""))
determine
Target
What design
isfunction.
having
than
project isprevious
result,
we
get()
an that
serialization
on
but
overriding 4.2. pass
the
ipit
and
and
pattern
highest
actual
=
makes
question.
the address
software
go is to that
by
priority
product and
sure
the the
function.
make
changes
This
unchanged
const
SMTP
By
1)
use
keepsRATE ofon
then = AShot().
part.
0.1;
server-smtp.gmail.com
changing
TestNG the hedata
changing can type mark every the
a[text()='Hindi']""))).perform();
Service.getInstance().stopSe
Therefore,
proposed
class
of
}-navigate().to()
using
so
//creating it willMergeTwoSorted
variables(location
java, execute there
functionality
refselenium, in
of isfirst.
Selenium?
takscnshtnoof of reporting
AShot() is - Postman
a webdriver echo""
deserialization? With
//div[starts-with(@id,'post-
build.
driver.getWindowHandles();
•InetAddress.getByName(new
{that Doesn’t anThe the involvement
purpose
perform
application wellismain toon status
time you
Regression
RATE of
= -Use the
refresh
0.2;it // defect
testing
TypeError the
beisdoneaspage.
not ‘Fixed’.
“Defects”
class
3.Can
String
rvice();
{ambiguity
works
variables)
Get
-In
interface method
case
can
we
cssValue1=
roughly
,badly
tab
maven,
of n
give
overload
in
to –ve
type the
will
by
this its
as own
function
get
git,
priority,
casting acan
navigating
process.
expected.
a many
Jenkinspage
be
to Check
In
Calltestng
by
screenshot references SMTP
could
utility towith capture
testing
2.do
Serialization
body-')]/div[1]/form[1]/
reject
Purpose:
hybrid
URL(s).getHost());
used
from
specific
System.setProperty(""webdriyoua
by
the team
app have
Return
people
sidebar. is
testing
implementation validation
knowledge
a
broken mechanism
a
withTheset
and of
listsis
face
to of
of 5)
But
the Retest:
carriedit always
variable
Authentication
public
using out
class
groups At this
for
youstarts
Addition{ point,
specific
declare the
defect
using
method
-driver.findElement(By.xpath(""
2.Explain
Service.getInstance().remove
If
known
load
and
highest
File Test
sanity
// Merge
I or case
have as ?test
get Say
Sdlc
priority is
a[0..n1-1]
“Callpage
followed Class
and
mostly
fails,By willsource Aand
Stlc?
the data
be has
derived
build
–ve or is Running
While
entire thisscreenshot
calling
page command
a function, creates
and
executed
any
of
input[1]
application
window
difficulty
//
disabilities,
Defects
inherited Print
ver.chrome.driver"",
one performance
converting
main
//a[text()='Hindi']"")).getCssVal
Software
Gateway(gateway);
from test the under on
handles
in IP
method
method so
testingsoftware
the
including
Development
scenarios.
that
address
the testing.and
state
which
and the
project
without""path code.
visual,of
QAcan
Class
Multiple Life
an tester
submit.
fixes.
the
Provide
public const
folderint
starts
User keyword
add(int
of @Test(groups={""Regressionâ€_
a in the
the
name working
task
a,int must
(say of be is
your
b)values
rejected
b[0..n2-1]
References.
-get
driven
then
which
object
Option
team text
Source=ts.getScreenshotAs(
It comes 0 tool
doesinto
4: to to
that’s
approach.
then We save
after
you
a
not +ve.
byte
can all have
waste the
whereas
verification
stream.
use time
used
time and instead
natively
working
So
In you can
Regression of
on passing
supported
the
use retesting the
a relativefrom of
aXPaththe
be
switching
even used
System.out.println(""Public
auditory,
are
chromedriver.exe"");
}B has displayed
ue(""textdecoration"");
Cycle
Test
costs
-3.
navigate
-General
-there In// into
this modifying
another
(SDLC)
caseinvolved
is method,
will can
iterate
action
physical,
c[0..n1+n2-1]
Framework
no is
guide
need
in
main
a
beinthe of
the
over
asequencespeech,
list
derived
afor
parent
method.
more here.
address
through your
all IP immediately
gmail)and
{}
x009d_})
directory
of variables, and weintesting,
initialized
corresponding
with thetestng
pass name the
to
xml
address
test
we
OutputType.FILE);
Verification-
Apache
the
application
Address
cognitive,
Step
class. Explain
Deserialization
contains
installing open #2: JMeter
of: the
function
and
windows
Click (from
""
language, desired
on is
+testing
ip); the//cell
the
“New reverse
the
oflearning,
thisthe value
web Selenium
defect
as
cases given
password(
public tobelow
which
int 3 onwards.
verify
Email
add(int passed if address
to the
identify
a,int defect
earlier
b,int the
from is
c)the
driver=
How
rigorous
of
the
components:
priority public
actual to
System.out.println(""value
of
Step
from different3:
a
history new
call
Parse
single testing.
static
valuesvariables ChromeDriver();
Class
activities
like sms
Test void
refresh,
Properties
to A’s
be to
Scenario
in main
get
the back, can
of write
“newman”, <test
variables(location where you’ll of20 find
method
capabilities
-Webdriver
process
app
and
Defect”.
-//executeThe
}div[contains(@id,'post-
software it is to to
verifying
native
neurological where
Enter
performed capture
needed
application.
instance and process
the the scnsht
vice- to
byte
by
indisabilities
required
two invoke in It provides
fixed
web
can
const
where
{} be accurately
element:
included
person
email the will = following
{ by
to
age:
trigger the
check };
upon the
method
over""+cssValue1);
performed
OTP
calling
files, Itapp
consecutive. from
-forward.Forexample
helps
mergeArrays(int[] fromthe
function
configuration ininduring chrome
Class
fetched
exhaustive are the
a, ifdriver
Bcopied
int[]
files, listwe b, by
Data int name=â€_x009d_Regressionâ€
generated
variables) toreport."
the function
terms
a
includes
stream
passing
versa).
catch
details.
classes of
in
body-')]/div[1]/form[1]/ is
As FILE
appium?
checking
them
with used
you to to
can
inheritance recreate
see all features:
developer
functionality
person.age
completion
} as =
of per
which
30;build //the was
OK
Yes,
Identify
software
latest
testing
n1,
into main
the by
received
ofdummy method
development
an sms
application can
variables be _x009d_>
want
sheets,
-If
input[1]
3. priority to
FileUtils.copyFile(Source,
App,deviceName,platformNa
documents,
•4.what
the actual
Differentiate is
switchTo().WebDriver.Options
With
(MalformedURLException
the
relationship.
}overloaded. fields the
-getCssValue(“border-
process.
.testing?
A complete
move
Testbase=same,
dataJava
help
in red forward
design,conversion
object
between
Overloaded
class,
the
Appium.exe
emphasis are code, and
inmain
on e)of{ knownHelps
requirements
XPath
working
Note
<groups> -you
as
-capture “Callor
needentire
Bynot.
//input[starts-with(@id,
earlier.
console.log(person.age); References.
to turn screen
on// 30
2)What
the
do
execution
new
me
and
memory. called
some
Utilities program is collection?
This function.
functionality
Class, will Test
be
mechanism int
start n2,
cases, and
a/c int[] to
is In
and
6) thisweb
Reopen:
‘submit_’)] method,element
If any the issue address persists of
-Regression
.window()
client,
//
3.Why
else It
mandatory
While
method
bottom”)
Software
Solution
""what
difference
c)
"back
means
if you
are
to method
hasor
2: can
Testing
test"" theand
different
to
between to
sometime URL
enter
be
and
Retesting.
easily
overriding is
called
Life ""how
set
launch
invalid
Cycle and to allow
2)
<run>
actual option
variables for secure
inexample: app to
Reports,
alphanumeric.
It does
-Data to the
conversion
to nothome
Logs
File(""./ScreenShots/""+result.
-used persist involve the page
testing
object. this Beautify
in
is consider the defect screenshot
another then itthewillcalling
be
https://careerportal.ceipal.com/jobs/career/4b17d3264fd9070a5be706c853ccd720/a0d448ac4426dc3bdd609ed804e7af1a/NQ==
https://achieve3000.applicantstack.com/x/detail/a2jpi5dkj53z/aaac
https://doozer.com/jobs/?view=jobdetail&title=Sr.-QA-Tester&job_id=1084
https://www.wealthbox.com/careers/qa-analyst/
https://boards.greenhouse.io/virtualhealth/jobs/4921356002?gh_src=09ee677c2us
https://www.tesla.com/careers/job/localization-qaanalyst-69332
https://www.warnermediacareers.com/job/san-francisco/qa-tester-temp/1174/17730379
https://www.nisum.com/careers
https://mastercard.wd1.myworkdayjobs.com/en-US/CorporateCareers/job/Pune-India/Software-Development-Engineer-in-Test_R-113326-1
https://ibegin.tcs.com/iBegin/jobs/164056J
https://www.tcs.com/careers/TCSNinjaHiring?cq_ck=1601093916473
https://www.epam.com/careers/job-listings/job.53672.lead-test-automation-engineer-java_india
https://www.epam.com/careers/job-listings/job.53676.senior-test-automation-engineer-python_india
https://www.epam.com/careers/job-listings/job.53667.lead-test-automation-engineer-python_india
https://sapient.avature.net/careers/JobDetail?jobId=77920
https://jobs.smartrecruiters.com/Visa/743999717671575-sr-software-test-engineer-m-f-d-
https://jobs.smartrecruiters.com/Visa/743999718680823-staff-software-engineer
https://jobs.smartrecruiters.com/Visa/743999715484075-senior-test-engineer
https://globalcareers-goldmansachs.icims.com/jobs/search?ss=1&searchKeyword=qa&searchRelation=keyword_all
https://www.goldmansachs.com/careers/students/programs/index.html
https://ibegin.tcs.com/iBegin/jobs/161075J
https://ibegin.tcs.com/iBegin/jobs/161087J
https://ibegin.tcs.com/iBegin/jobs/162036J
https://ibegin.tcs.com/iBegin/jobs/162249J
https://ibegin.tcs.com/iBegin/jobs/161796J
https://sapient.avature.net/careers/JobDetail?jobId=78599
https://sapient.avature.net/careers/JobDetail?jobId=77132
https://sapient.avature.net/careers/JobDetail?jobId=78600
http://apps.exelare.com/ucbizjobs/jobs.aspx?cid=cbizl_variteusa&consintid=&consid=&contactid=&source=
http://apps.exelare.com/ucbizjobs/jobs.aspx?cid=cbizl_varitein&consintid=&consid=&contactid=&source=
https://www.vtestcorp.com/careers/
https://career.us.sogeti.com/jobs/faces/home
https://careers.peopleclick.eu.com/careerscp/client_vaisala/int1068393892/jobDetails/jobDetail.html?jobPostId=2228&localeCode=en-us
https://careers.peopleclick.eu.com/careerscp/client_vaisala/int1068393892/jobDetails/jobDetail.html?jobPostId=2273&localeCode=en-us
ttps://www.uk.sogeti.com/join-us/current-vacancies/
https://www.amazon.jobs/en/search?base_query=qa&loc_query=&latitude=&longitude=&loc_group_id=&invalid_location=false&country=&city=&region
https://ptc-software.referralrecruit.com/referral/jobapply?jobId=180820003314&xid=36149530b8yuhN
https://careers.activision.com/job/R002760/QA-Analyst-II-Temporary-Sledgehammer-Games?src=JB-10260
https://careers.downergroup.com/cw/en/job/572346/quality-assurance-officer?source=IND
https://recruit.hirebridge.com/v3/careercenter/v2/details.aspx?jid=517148&cid=7601&locvalue=1016&source=Indeed.com
https://hr.eclipx.com/ER21/VacancyDetails.aspx?vdtnumber=453
https://careers.cognizant.com/na/en/job/COGNGLOBAL00038776051/UAT-QA?utm_source=indeed&utm_medium=phenom-feeds
https://www.jobbank.gc.ca/jobsearch/jobposting/32814819
https://jobs.lever.co/athennian/ad965416-7fc0-48ce-9f3d-a83ca4ee7ad9
https://rakuten.openings.co/#!/job-view/senior-test-automation-engineer-bengaluru-karnataka-india-2020060215010218
https://careers.google.com/jobs/results/130019184248529606-test-engineer-automation/?src=Online%2FLinkedIn%2Flinkedin_us&utm_campaign=c
https://www.mindteck.com/career/job-openings-india.html#6
https://india.endurance.com/careers-detail/2230591/
https://india.endurance.com/careers-detail/2231613/
https://india.endurance.com/careers-detail/2230450/
https://www.zynga.com/jobs/job-openings/
https://career10.successfactors.com/career?company=C0002723615P&career%5fns=job%5flisting%5fsummary&navBarLevel=JOB%5fSEARCH&_s.crb=
https://varian.wd5.myworkdayjobs.com/en-US/varianexternal/job/Pune-India/SW-QA-Engineer--Apps-_R-4126
https://www.capgemini.com/careers/job-search/?search_term=qa
https://krb-sjobs.brassring.com/TGnewUI/Search/Home/Home?partnerid=30174&siteid=5116#keyWordSearch=qa&locationSearch=
https://www.amazon.jobs/en/jobs/1189103/quality-assurance-technician
https://jobs.lever.co/dreamsports/736eef18-30d4-44d4-afb0-d4c145fede85
https://jobs.lever.co/dreamsports/b23afe23-4eb3-45c4-bb19-0822ca4ca74f
https://jobs.lever.co/dreamsports/daa92fdb-cbb7-4200-b62d-303e7fce26fc
https://globalcareers-goldmansachs.icims.com/jobs/search?ss=1&searchKeyword=qa&searchRelation=keyword_all
https://www.zomato.com/careers/tech-and-engineering/senior-quality-assurance-engineer
https://www.globallogic.com/il/career-search-page/?keywords=qa&experience&locations&c
https://jobs.jobvite.com/magnitude/job/ovT9dfwu
https://jobs.jobvite.com/magnitude/job/oCT9dfwB
https://careers.hpe.com/jobs
https://www.mastercard.us/en-us/vision/who-we-are/careers/internships-college-hires.html
https://mastercard.jobs/jobs/?q=test&location=India
https://www.sebi.gov.in/sebiweb/other/careerdetail.jsp?careerId=147
https://amnex.com/opportunities.html#/studSlide
https://docs.google.com/spreadsheets/d/1c7-3udvs0mEQGaskYtvZ8l8ckblRplkiDhHT71zV62o/edit?usp=sharing
https://careers.cognizant.com/global/en/search-results?m=3&keywords=qa
http://www.quant-capital.co.uk/jobs/software-developer-in-test-fintech/
http://www.quant-capital.co.uk/jobs/automation-tester-fintech/
http://www.quant-capital.co.uk/jobs/qa-test-analyst-wimbledon/
http://www.quant-capital.co.uk/jobs/test-analyst-fintech-putney/
http://www.quant-capital.co.uk/jobs/manual-test-analyst-fintech/
http://www.quant-capital.co.uk/jobs/automation-test-analyst-putney-southwest-london/
http://www.quant-capital.co.uk/jobs/software-developer-in-test-fintech50/
http://www.quant-capital.co.uk/jobs/python-software-tester/
https://jobs.magna.com/job/St_-Thomas-Quality-Technician-ON/540384217/?feedId=297517&utm_source=Indeed&utm_campaign=Magna_Indeed&sT
https://jobs.jobvite.com/careers/carproof/job/o5V5cfw1?__jvst=Job+Board&__jvsd=Indeed
https://zensar.taleo.net/careersection/zen+ind+external+career+portal/jobdetail.ftl?job=0056292
https://zensar.offcampus.hiringtests.in/index.php?r=user/candidateIndex
https://paytm.com/careers/jobs.html?team=Engineering
https://www.rockstargames.com/careers/openings
https://www.globallogic.com/career-search-page/?keywords=qa&experience&locations&c=Quality+Assurance
https://www.ibm.com/employment/#jobs
https://opportunities.mindtree.com/#!/joblist
https://www.hcltech.com/jobs/delivery-transaction-associate-chennai
https://oracle.taleo.net/careersection/2/jobsearch.ftl?lang=en
https://careers.smartrecruiters.com/PublicisGroupe/epsilonindia
https://ms.taleo.net/careersection/2/jobsearch.ftl?lang=en
https://jobs.siemens.com/jobs?page=1&keywords=qa&sortBy=posted_date&descending=true
https://chu.tbe.taleo.net/chu03/ats/careers/searchResults.jsp?org=BETSLLC&cws=1
https://www.ge.com/in/careers/opportunities?keyword=qa&country=TG_SEARCH_ALL&state=TG_SEARCH_ALL&func=TG_SEARCH_ALL&business=TG_SEA
https://careers.nokia.com/jobs/search/24449779
https://jobs.iqvia.com/search-jobs/qa/24443/1
https://www.capgemini.com/in-en/careers/job-search/?search_term=test
https://www.globalhunt.in/current-openings.html?page=1
https://careers.vmware.com/main/jobs?keywords=Quality%20Engineer&page=1
https://www.tagitmobile.com/job-openings/chennai-office/
https://www.thoughtworks.com/careers/graduates
https://www.testingxperts.com/company/career/
https://abstracta.us/why-us/careers
https://www.randstadusa.com/jobs/search/q-qa/
https://careers.fisglobal.com/us/en/search-results?keywords=qa
https://avankiacareers.secure.force.com/?page=JobListPage&JobSite=Dbsync&p=Candidate&sessionId
https://opentextats.avature.net/careers/SearchJobs/quality?3_167_3=859
https://careers.vmware.com/main/jobs?keywords=Quality%20Engineer&page=1
https://www.testingxperts.com/company/career/
https://abstracta.us/why-us/careers
https://www.quantumvision.com/index.php/it-services-join-our-team/
https://www.randstadusa.com/jobs/search/q-qa/
https://www.freddiemac.jobs/job/11148864/automation-testing-senior-mclean-va/
https://www.roberthalf.ca/en/jobs/all-jobs/all-locations/all-types/technology
https://mantech.wd1.myworkdayjobs.com/External/job/USA-VA-Chantilly/Senior-Test-Engineer_R11081-1?source=ManTech_Website
https://www.careerbuilder.ca/job/J3N3DF6YML7ZQBWY4HX?ipath=CRKR3&utm_campaign=google_jobs_apply&utm_source=google_jobs_apply&utm_m
https://www.unisystechconsulting.com/
https://jobs.legatohealthtech.com/jobs/search/58999445
https://www.invariatech.com/content/careers
https://www.indiumsoftware.com/careers-qa/
um=jobposting&utm_source=linkedin

%2bfQuqsMFTHmiQ%2bKfEj52eRTMNiWg%3d
medium=Indeed

_segment=TG_SEARCH_ALL&experience_level=TG_SEARCH_ALL
Exercise#
Coding Exercise-01

Coding Exercise-02

Coding Exercise-03

Coding Exercise-04

Coding Exercise-05

Coding Exercise-06
Coding Exercise-07

Coding Exercise-08
Coding Exercise-09

Coding Exercise-10

Coding Exercise-11
Coding Exercise-12

Coding Exercise-13

Coding Exercise-14

Coding Exercise-15
Coding Exercise-16

Coding Exercise-17

Coding Exercise-18

Coding Exercise-19

Coding Exercise-20

Coding Exercise-21

Coding Exercise-22

Coding Exercise-23

Coding Exercise-24

Coding Exercise-25

Coding Exercise-26

Coding Exercise-27

Coding Exercise-28

Coding Exercise-29

Coding Exercise-30

Coding Exercise-31

Coding Exercise-32

Coding Exercise-33

Coding Exercise-34
Coding Exercise-35

Coding Exercise-36

Coding Exercise-37

Coding Exercise-38

Coding Exercise-39
Problem set
1: Print HELLO for the given string "AHCECLWLXO"
2: Print HELLO in CAPITAL letters for the given string "ahceclwlxo"
1: Print all the numbers between -15 to 10.
2: Ask user to enter a number and then print the multiplication table of the input number.
1: Print "Hello Programming" and then print "I don't like you" and then print "But I have to "LEARN", I am ready"
2: Ask user to input a number and then print the number.
3:Ask user to enter the starting number and ending number and Print all the prime numbers between starting a
4: Ask user to enter a number and then print the factorial of the input number. example if user input 5, then prin
5*4*3*2*1
1: what should be the output of following code
A: var i=1; while (i<=10){console.log(i);i +=2;}
B: var i=100;while (i<150){console.log(i+1);i--;}
2: Given array ["A";"B";"C";"D";"E";"F";"G"]
A: Add item "NOW I KNOW MY ABCs" at the end. Output should be ["A";"B";"C";"D";"E";"F";"G";"NOW I KNOW MY ABCs"]
B: Add item "123456" at the beginning. Output should be["123456";"A";"B";"C";"D";"E";"F";"G";"NOW I KNOW MY ABCs"]
C: Remove ["D";"E";"F";"G"] from the array; Output should be ["123456";"A";"B";"C";"NOW I KNOW MY ABCs"]
D: Remove ["123456"] from the array; Output should be ["A";"B";"C";"NOW I KNOW MY ABCs"]
NOTE : Make sure the original array ["A";"B";"C";"D";"E";"F";"G"]should be intact and not modified. you can create any
1: Write a SQL query that will return the maximum value from the “Numbers” column, without using a SQL aggreg
Numbers
30
70
-8
90
2: Generate a random number between 1 and 9 (including 1 and 9). Ask the user to guess the number, then tell
low,
Exp: too high, or
If random noexactly
is 6 andright
user input 5 (print "Low"), if user enter 8 (print High), if user input 6 then print ('Right Gu
Ask the user to input a character and check whether it is an alphabet or not, then display the output on the scr
If
1:input
Ask usercharacter is starting
to input an Alphabets,
day andprint
the"AN ALPHABET!
number of daysI can
in read yourFind
a month. mind" and
the if its aof
number number print "A
times every NUMBER!
day occurs
Ex: Input : Number of days in month = 30 , First day = Tuesday
Output : Monday=4, Tuesday=5, Wednesday=5, Thursday=4, Friday=4, Saturday=4, Sunday=4;
2: What’s wrong in the following query?
SELECT subject_code, AVG (marks)
FROM students
WHERE AVG(marks) > 75
GROUP BY subject_code;
3: If a client connects to a web service, how do we identify the user?
4: What HTTP Status Code 409 states in web-service, explain with example.
5: An apple costs 40 cents, a banana costs 60 cents, and a grapefruit costs 80 cents. How much does a pear c
6: Why are manhole covers round and not square?
7: Is it better to be perfect and late, or good and on time?
8: Describe a bad experience you had working with your ex-employer

1: Ask user to input single string and Reverse every word in a string and print. ex: Input : "Hello", Output : "olleH"
2: Ask user to input the electricity consumption and calculate the amount based on below parameters...
1 to 100 units – Rs. 10/unit
100 to 200 units – Rs. 15/unit
200 to 300 units – Rs. 20/unit
above 300 units – Rs. 25/unit
Examples 1:
Input: U = 250
Output: 3500
Explanation:
Charge for the first 100 units – 10*100 = 1000
Charge for the 100 to 200 units – 15*100 = 1500
Charge for the 200 to 250 units – 20*50 = 1000
Total Electricity Bill = 1000 + 1500 + 1000 = 3500

Examples 2:
Input: U = 95
Output: 950
Explanation:
Charge for the first 100 units – 10*95 = 950
Total Electricity Bill = 950
You are driving a little too fast, and a police officer stops you. Write code to compute the result.
0=no ticket,
1=small ticket,
2=big ticket.

- If speed is 60 or less, the result is 0.


- If speed is between 61 and 80 inclusive, the result is 1.
- If speed is 81 or more, the result is 2.
Special note : If it is your birthday -- on that day, your speed can be 5 higher in all cases.
Ask user to enter two number (int) a and b, return true if a:) either one is 6 b:) Or if their sum is 6 c:) or difference
Ex condition [a:] (6,10), (5,6), (9,6) - True
Ex condition [b:] (1,5), (3,3), (-4,10) - True
Ex condition [c:] (90,84), (18,12), (-14,20) - True

Given two strings,


a: First string has a fixed length of 4, such as "[[]]"
b: Second string is a word and can be of any length, such as "Yay", OR "WooHoo" OR "Word"
Write a program to return a new string where the second string is in the middle of the first string.
Ex1: ("<<>>", "Yay") → "<<Yay>>"
Ex2: ("<<>>", "WooHoo") → "<<WooHoo>>"
Ex3: ("[[]]", "word") → "[[word]]"
Given a non-empty string and an int n, return a new string where the char at index n has been removed.
Note : The value of n will be a valid index of a char in the original string (i.e. n will be in the range 0..str.length()-1
Ex : Input ("TESTER", 0) → Output "ESTER"
Ex : Input ("TESTER", 2) → "TETER"
Ex : Input ("TESTER", 5) → "TESTE"
Given a string of even length, return the first half. So the string "WooHoo" yields "Woo".
Ex : ("WooHoo") → "Woo"
Ex : ("HelloThere") → "Hello"
Ex : ("abcdef") → "abc"

Given 2 strings, return their concatenation, except omit the first char of each. The strings will be at least length
Ex : ("Hello", "There") → "ellohere"
Ex : ("java", "code") → "avaode"
Ex : ("shotl", "java") → "hotlava"
Two inputs i.e. (string, boolean value). Ask user to input string and check If boolean value set to TRUE, return a s
if its set to FALSE, return a string length 1 from its end.
Note : The string will be non-empty.
Ex1:("Hello", true) → "H"
Ex2:("Hello", false) → "o"
Ex3:("oh", true) → "o

Given a string, count the number of words ending in 'y' or 'z' --


Examples
string "heavy" → Output 1 : As it has 1 y at end, so output should be 1.
string "Yellow"→ Output 0 : As it has 1 y but its not at the end, its at the beginning, so output should be 0.
string "fez"→ Output 1 : As it has 1 z at end, so output should be 1.
string "fez day"→ Output 2 : As it has 1 z and 1 y at the end, so output should be 2.
string "day fez"→ Output 2 : As it has 1 z and 1 y at the end, so output should be 2.
string "day fyyyz"→ Output 2 : As it has 1 z and 1 y at the end, so output should be 2.
string "sunday"→ Output 1 : As it has 1 y at the end, so output should be 1.
string "zero"→ Output 0 : As it has 1 z but its not at the end, its at the beginning, so output should be 0
Ask user to input a string of odd length, return the string length 3 from its middle. The string length will be at lea
Ex1:("Candy") → "and"
Ex2:("and") → "and"
Ex3:("solving") → "lvi"
Ex4:("Happy") → "app"

Given 2 strings, a and b, return a new string made of the first char of a and the last char of b.
If either string is length 0, use '@' for its missing char.
Ex1:("last", "chars") → "ls"
Ex2:("yo", "java") → "ya"
Ex3:("hi", "") → "h@"
Ask user to input a string, return a new string made of 3 copies of the first 2 chars of the original string.
The string may be any length. If there are fewer than 2 chars, use whatever is there.
Given two strings, a and b, return the result of putting them together in the order abba
Ex1:("Hi", "Bye") → "HiByeByeHi"
Ask user to input a string and an int n, return a string made of the first and last n chars from the string. The strin
Ex1:("Hello", 2) → "Helo"
Given a string, return true if "bad" appears starting at index 0 or 1 in the string, The string may be any length, inc
Ex1:("badxx") → true
Ask user to input a string, return a new string where for every char in the original, there are two chars.
Ex1: ("The") → "TThhee"
Return the number of times that the string "code" appears anywhere in the given string
Ex1: ("aaacodebbb") → 1
For the given below strings, Return true if the string "cat" and "dog" appear the same number of times.
Ex1: ("catdog") → true
Given a string, compute a new string by moving the first char to come after the next two chars.
Repeat this process for each subsequent group of 3 chars.Ignore any group of fewer than 3 chars at the end.
Return the sum of the numbers in the array,
a: Return 0 for an empty array.
Given a number n, create and return a new int array of length n, containing the numbers 0, 1, 2, ... n-1.
The given n may be 0, in which case just return a length 0 array.
Given an array of integers, return true if the array contains either 3 even or 3 odd values.
The odd or even values must be occurring in a sequence i.e. next to each other.
Return an array that is "left shifted" by one. You may modify and return the given array, or return a new array.
Ex1:[6, 2, 5, 3] → [2, 5, 3, 6]
Ask user to input length of an array, for example start=1 and end=5
1: Construct an array of 4 elements i.e. 1,2,3,4
Given an array length 1 or more of ints, return the difference between the largest and smallest values in the ar
Ex1: [10, 3, 5, 6] → 7
Return the sum of the numbers in the array, except ignore sections of numbers starting with a 6 and extending
(every 6 will be followed by at least one 7). Return 0 for no numbers.
Given an array of ints, return true if every element is a 1 or a 4.
Ex1:only14([1, 4, 1, 4]) → true
Given an array of ints, return true if the array contains two 7's next to each other, or there are two 7's separate
Ex1: [1, 7, 7] → true
Return true if the array contains three increasing adjacent numbers like.
Ex1: [1, 2, 3] → true
Return an array where each zero value in the array is replaced by the largest odd value to the right of the zero
If there is no odd value to the right of the zero, leave the zero as a zero.
Given an array of ints, return true if the number of 1's is greater than the number of 4's
Ex1: [1, 4, 1] → true
Return an rearranged array, so that all the even numbers come before all the odd numbers.
Ex1:[1, 0, 1, 0, 0, 1, 1] → [0, 0, 0, 1, 1, 1, 1]
create an array with the pattern {1, 1, 2, 1, 2, 3, ... 1, 2, 3 .. n}
Note that the length of the array will be n*(n + 1)/2.
Return the number of clumps in the given arrays.
A "clump" in an array is a series of 2 or more adjacent elements of the same value.
Ask user to enter a positive integer and then display the Fibonacci series of numbers from 0 to user-specified
Ex1: Fib(5) → [0, 1, 1, 2, 3, 5]
Write a Java program to form the largest number from a given list of non negative integers.
Ex1: Input[1,2] → Output [21]
Find the sum of even and odd numbers in the given array.
Ex1: Input[1,2] → Output evenSum= 1, oddSum=2
Coding Exercise-01 1: Print HELLO for the given string
"AHCECLWLXO"
2: Print HELLO in CAPITAL letters for the given
Coding Exercise-02 string
1: Print"ahceclwlxo"
all the numbers between -15 to 10.
2: Ask user to enter a number and then print
Coding Exercise-03 the multiplication
1: Print table of the
"Hello Programming" andinput
then number.
print "I
don't like you" and then print "But I
2: Ask user to input a number and then printhave to
the
3:Asknumber.
user to enter the starting number and
ending
4: Ask usernumber and aPrint
to enter all the
number prime
and then print
Coding Exercise-04 the factorial of the input number.
1: what should be the output of followingexample if
code
A: var i=1; while (i<=10){console.log(i);i +=2;}
B: var i=100;while (i<150){console.log(i+1);i--;}
2: Given array ["A";"B";"C";"D";"E";"F";"G"]
Coding Exercise-05 A: Add item
1: Write a SQL "NOW I KNOW
query thatMY ABCs"
will at the
return the end.
maximum
2: Generate value from the
a random “Numbers”
number column,
between 1
Coding Exercise-06 and 9 (including 1 and 9). Ask the
Ask the user to input a character and checkuser to
Coding Exercise-07 whether
1: Ask userit istoan alphabet
input or day
starting not, and
thenthe
Coding Exercise-08 number
1: Ask user of days
to input in asingle
month. Find the
string and
Reverse
2: Ask user to input the electricity print. ex:
every word in a string and
Coding Exercise-09 consumption
You are drivingand calculate
a little theand
too fast, amount
a police
Coding Exercise-10 officer stops you. Write code to
Ask user to enter two number (int) a and b, compute
return
Given twotruestrings,
if a:) either one is 6 b:) Or if their
Coding Exercise-11 a: Firsta string
Given non-emptyhas a string
fixed length
and anofint
4, n,
such
Coding Exercise-12 return
Given aastring
new string
of even where thereturn
length, char at index
the first
half. So the string "WooHoo" yields
Given 2 strings, return their concatenation, "Woo".
Coding Exercise-13 except
Two inputsomiti.e.
the(string,
first char of each.
boolean TheAsk
value).
user to input string and check If boolean
Given a string, count the number of words
Coding Exercise-14 ending
Ask userinto
'y'input
or 'z' a--string of odd length,
return the string length 3 from its middle.
Given 2 strings, a and b, return a new string
Coding Exercise-15 made of the
Ask user first char
to input of a return
a string, and thea last
newchar
string made of 3 copies of the first 2 chars
Given two strings, a and b, return the result
of putting them together in the order abba
Coding Exercise-16 Ask user to input a string and an int n,
return a string made of the first and last n
Given a string, return true if "bad" appears
starting at index 0 or 1 in the string, The
Coding Exercise-17 Ask user to input a string, return a new
string where for every char in the original,
Return the number of times that the string
"code" appears anywhere in the given
Coding Exercise-18 For the given below strings, Return true if
the string "cat" and "dog" appear the same
Coding Exercise-19 Given a string, compute a new string by
moving the first char to come after the next

Coding Exercise-20 Return the sum of the numbers in the array,


a: Return 0 for an empty array.
Coding Exercise-21 Given a number n, create and return a new
int array of length n, containing the
Coding Exercise-22 Given an array of integers, return true if the
Coding Exercise-23 array
Returncontains
an arrayeither
that is3"left
even or 3 odd
shifted" by one.
You may modify and return the given array,
Coding Exercise-24 Ask user to input length of an array, for
example start=1 and end=5
Coding Exercise-25 Given an array length 1 or more of ints,
return the difference between the largest
Coding Exercise-26 Return the sum of the numbers in the array,
except ignore sections of numbers starting
Coding Exercise-27 Given an array of ints, return true if every
element is a 1 or a 4.
Coding Exercise-28 Given an array of ints, return true if the
array contains two 7's next to each other, or
Coding Exercise-29 Return true if the array contains three
increasing adjacent numbers like.
Coding Exercise-30 Return an array where each zero value in
the array is replaced by the largest odd
Coding Exercise-31 Given an array of ints, return true if the
number of 1's is greater than the number of
Coding Exercise-32 Return an rearranged array, so that all the
even numbers come before all the odd
Coding Exercise-33 create an array with the pattern {1, 1, 2, 1,
2, 3, ... 1, 2, 3 .. n}

Coding Exercise-34 Return the number of clumps in the given


arrays.
Coding Exercise-35 Ask user to enter a positive integer and
then display the Fibonacci series of
Coding Exercise-36 Write a Java program to form the largest
number from a given list of non negative
Coding Exercise-37 Find the sum of even and odd numbers in
the given array.
Java
String s = "AHCECLWLXO";
// Approach1
String s = "ahceclwlxo";
// Approach1
Scanner sc =new Scanner(system. In) ;
Syso("enter the multiplication number: ") ;

public class ExercisePrimeno {


public class ExerciseFactorialno {

} ORDER BY Num DESC))


WHERE SLNO=1;
package exercises;
Package Java;

import java.util.Scanner;
public class
import Program1{
java.util.Scanner;
public class
import Program2{
java.util.Scanner;
public class SpeedCheck {
import
} java.util.Scanner;
public
} class ex09pro2 {
package TelegramRahulSheety;
"import java.util.Scanner;
package TelegramRahulSheety;
import java.util.Scanner;
package Strings;
import java.util.Scanner;
public class Practice {
public static void main(String[] args) throws Exception {
public class Practice {
public
public static void main(String[]
class Practice { args) throws Exception {
public static void main(String[] args) throws Exception {
public class Practice {
public static void main(String[] args) throws Exception {
import java.util.Scanner;
public class practice0923 {
import java.util.Scanner;
public class practice20923 {
import java.util.Scanner;
public class practice10924 {
import java.util.Scanner;
public class practice20924 {
public class oPract {
public static void main(String[] args) {
import java.util.*;
import java.lang.*;

package exercises;
public class Codingexercise20 {
package exercises;
public class Codingexercise20 {
public class Practice22 {
public static
import void main(String[] args) {
java.util.Arrays;
public class Ex23 {
import java.util.ArrayList;
public class Ex24 {

import java.util.Arrays;
public static void main(String[] args) {
int a[] = { 1, 1, 6, 7, 2 };
import java.util.Arrays;

import java.util.Arrays;

package arrayprograms;

public static void main(String[] args)


{
package com.java.arraya;

import java.util.*;
public class Exc32{

public class ClumArray{


public static void main(String args[]) {

import java.util.*;
public class Largest {
int a[] = { 1, 2, 3, 0, 4, 6 };
System.out.println("Even Sum :" + Arrays.stream(a).filter(x -> x % 2 == 0).sum());
Python
str = "AHCECLWLXO"
print(str[1::2])
str1 = "ahceclwlxo"
print (str1[1::2]. upper ())
n = int(input( "Enter the value of n: "))
for i in range (1,11):

class Assessment3:

def my_function(x):
return
# x[::-1]to calculate the
Function
# electricity
from bill
else: datetime import date
def calculate_ticket(birthday,speed):
return False
Def middlestring(str,text)
return
def str[:2] + text +str[2:]
removeChar(text, index_value):
new_string
def = text.replace(text[index_value], "")
splitMyString():
text = " "

"def getMyChar(text, flag):


ifdef
flag == True:
middle(s):
#s=str(input('enter string of odd no'))
def fristlast(s1,s2):
if len(s1)>0 and len(s2)>0:
{

def practice1(s,n):
return s[:n]+s[-n:]
def practive2(s):
if s.index('bad')==0 or s.index('bad')==1:
def practice1(s):
j=""
def practice2(s):
return s.count("code")
def status(a):
if a.count("cat") == a.count("dog"):

def sum13(n):
Total=0
def array(n):
if n==0:

lst = [10, 3, 5, 6]
print(max(lst) - min(lst))
def sumofnos(nums):
total = 0
def oneorfour(l):
for i in l:
def check7(l):
for i in range(len(l)-1):
def checkincr(l):
for i in range(len(l)):
def fillzero(l):
maxodd=0
def onefours(lst):
if 1 in lst or 4 in lst:
def evenoddsegr(lst):
lst2=[]

def maxnum(a):
a.sort(reverse=True)
input = [1,2,3,0,4,6]
print(f'even_sum {sum(list(filter(lambda i:i%2==0,input)))}')
print(f'odd_sum {sum(list(filter(lambda i:i%2!=0,input)))}')

You might also like