Automation Testing Uing Selenium & Katalon Studio

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 23

Automation Testing using Katalon Studio

Prerequisite
• You should have basic under standing of Oops concept.
• Knowledge of programming language Java is an advantage
• This course is not about selenium Webdriver
Tools Required
• Java Development Kit (jdk 1.8)
• Katalon Studio (verion 4.6)
• Bugzilla application.
Katalon Studio Mode
• Record and Playback Mode
• Manual Mode
• Script Mode
Record and Playback Mode
In “Record and Playback Mode” tester can use this mode to record the
test in one browser and then can run the same test in different browser. In
this mode, Katalon studio will take care of creating the Object repository
Manual Mode
This is the perfect mode for the tester, who are not from programing
background. Katalon studio provides all the function call in the form of
drag n drop component or can be selected from drop down list.
Script Mode
Katalon studio provide the way, by which tester can write the test script
directly. One can use Java/Groovy language for the writing the test script.
WebElement/Test Object
• Any component which is displayed on web page is web element
• Example :- Textbox, Link, Dropdown
• In order to work with web element , first we need to identify it and
locate it on web page
• You can identify the web element using id, CSS, Xpath...
Object Repository
• Centralize location for storing all the Test Object/Webelement
• Re-Usability
• Modification at one place , will applicable to all the script
• Easy to maintain
Browser Function
• Opening a Browser
• Closing the Browser
• Maximize
• Refresh
• Opening the url
Handling Textbox/Textarea
• Set Text
• SendKeys
TestObject
• In Katalon Studio Webelement are considered as TestObject
• TestObject contains the locator for the web element
• findTestObject is the method , which we need to use while working in
script mode
Click Action
• You can use the click action with
• Button
• Hyperlink
CheckBox Action
• Un-Check
• Check
DropDown/Combo Box
• Select Option By Index
• Select Option By Label
• Select Option By Value
• Select All Option
Variables Type
• Private
• Public
• Global
Webdriver - Wait
• Implicit Wait – Wait for fixed duration
• Explicit Wait – Conditional wait and wait for dynamic duration
Webdriver - Wait
• Wait For Element Clickable – Make your script to wait , untill you can
perform the click action on it
• Wait For Element Present – Make your script to wait, untill it is loaded in
the DOM
• Wait For Element Visible – Make your script to wait, untill it is loaded in
the DOM and visible in UI
• Wait For Page Load – Make your script to wait, untill the web page is
loaded in browser
Handling Multiple Browser Window
• Switch to Window Index
• Switch to Window Title
• Switch to Window Url
• Close Window Index
• Close Window Title
• Close Window Url
Handling Frames
• Frame :- HTML frames are used to divide your browser window into multiple
sections where each section can load a separate HTML document
• Switch to Frame
• Switch to Default Content
JavaScript Popup
• JavaScript Popup are use to inform the user
• Alert :- Inform the user about the action, about invalid information
• Confirmation Popup :- Requires user confirmation
• Prompt :- Requires user input
Data Base Connectivity

Query Db

MSSQL
Java, C# …
Oracle
Postgres Result Db

Data Base Connectivity
Get Driver

Load the
Close the
driver in
Connection
memory

Fire the
query and Create the
get the connection
result

You might also like