SlideShare a Scribd company logo
1 of 33
Download to read offline
What is Automation TestingWhat is Automation Testing
Automation testing use software or automation tool to create and
execute test script which is written in scripting language for example java
script.
Automation testing Benefits :
 Automation tool save time when regression and Smoke test required.
 Automation tool run test case faster than human users.
 Automation tool help to address the load, stress and performance of
the product.
 Automation tool improve software quality.
 Automation tool required less time and fewer resources .
Automation ToolsAutomation Tools
There are lot of testing tools available in the market and each tool is
capable of doing specific testing such as functional and non functional
testing. The automation tools that are widely used in functional and non
functional testing.
Functional Testing tools
1)Quick Test Professional (Required licenses)
2)Selenium (Web Driver, Selenium RC) (Open Source)
Non Functional Tools
1) HP Loader( Required licenses)
2) Apache Jmeter (Open Source)
Selenium –Functional Testing ToolSelenium –Functional Testing Tool
Selenium is a functional testing tool that automates web and mobile
application with the help of web browsers like (Mozilla Firefox, Chrome,
Internet explorer, Opera and Safari).
It is open source tool (freely available in Internet market) and support many
language like HTML, Java/Script , Ruby, Python, C# etc.
Selenium provide record and play back feature and user can convert recorded
script in any language.
Component Used to Generate Manual Test ScriptComponent Used to Generate Manual Test Script
1.Selenium IDE is a Firefox add-on that provide record and
playback feature and you can export or convert the recorded script in
any languages like HTML, Java, .NET, Perl, Ruby and python You can run
and customize script in the eclipse by adding Selenium web driver.
2.Selenium Web Driver2.Selenium Web Driver is Application programming interface
and collection of libraries. Using selenium web driver we can customize
or edit script with the help of Eclipse frame-work .Each scripting
language use specific web driver to generate and customize script for
example C# language use Selenium .NET web driver and Visual studio
framework to run and customize the script.
3.Eclipse is an integrated development environment (IDE) is used to
develop test script. Eclipse framework support many languages like
Java, Java script, Ruby, Python, C, C+, PL/SQL, Vb.net script.
Steps to Add Selenium IDE Plug-in
Step 1: Open seleniumhq.org website in Mozilla Firefox ,Click on download tab
and Click Version 2.6.0 link to install plug-in.
Selenium ask you to install following items
Restart Mozilla Firefox Web Browser
Verify all language formatter Installed Properly
Click on Tool menu – Add-on
Open website in Mozilla Firefox
Open Mozilla Firefox enter web site URL in the URL Box of Mozilla
Steps to Record Test Script Using Selenium IDESteps to Record Test Script Using Selenium IDE
Step 1: Click on tools menu then click Selenium IDE option a pop will appear
as given below
Step:3: Enter base URL and minimize selenium IDE Pop
Visit Website to Record ScriptVisit Website to Record Script
Maximize Sel. IDE Pop Up & Stop RecordingMaximize Sel. IDE Pop Up & Stop Recording
Execution
Commands
Stop
Recording
Reference of the
currently selected
command
Change HTML Default Recording Mode To ScriptingChange HTML Default Recording Mode To Scripting
Click on option menu to select
scripting language option
Enable Scripting Language OptionEnable Scripting Language Option
You need to check
mark this option
Now Convert HTML to Java ScriptNow Convert HTML to Java Script
Click on web
driver
On Click J-Unit Web Driver a Pop Will AppearOn Click J-Unit Web Driver a Pop Will Appear
Click ok button
On Click Ok Button HTML Code Converted to Java ScriptOn Click Ok Button HTML Code Converted to Java Script
Copy this
Code
Open Eclipse to Run Java ScriptOpen Eclipse to Run Java Script
Steps: 1 Open adt (Eclipse) folder saved in your hard
disk.
Steps: 2 Click on Eclipse icon.
Steps: 3 Splash Screen will appear with Dialog box
To choose location to save your script
Steps:4 Click on Ok button eclipse will be open
Create Project in the EclipseCreate Project in the Eclipse
Steps Click on file menu . Click on new . Then click project
Give name to your projectGive name to your project
Steps : Give name to project then click next button
Define the Java Build SettingDefine the Java Build Setting
Add Selenium Web Driver to Click Library TabAdd Selenium Web Driver to Click Library Tab
Click on Add External JARS..Click on Add External JARS..
Verify Jars files will attached with Java BuildVerify Jars files will attached with Java Build
Open Project Explorer to See Java BuildOpen Project Explorer to See Java Build
Right Click On Project to Add Class fileRight Click On Project to Add Class file
Give Name To Class fileGive Name To Class file
Step 1:Give name to class file . Choose Method Click on Finish button
a class file will appear
Remove Code from class file and Past Sel. IDE ScriptRemove Code from class file and Past Sel. IDE Script
Edit and Run Recorded ScriptEdit and Run Recorded Script
Choose Launcher to Run ScriptChoose Launcher to Run Script
Save and Launch ResourceSave and Launch Resource
Output of Java ScriptOutput of Java Script
The EndThe End
Prepared byPrepared by
Rohit thakurRohit thakur

More Related Content

What's hot

Selenium test automation
Selenium test automationSelenium test automation
Selenium test automationSrikanth Vuriti
 
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using SeleniumNaresh Chintalcheru
 
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and SeleniumKarapet Sarkisyan
 
Automation Testing on Selenium by Quontra Solutions
Automation Testing on Selenium by Quontra SolutionsAutomation Testing on Selenium by Quontra Solutions
Automation Testing on Selenium by Quontra SolutionsQUONTRASOLUTIONS
 
Efficient Automated Test Creation With Selenium IDE Plugins
Efficient Automated Test Creation With Selenium IDE PluginsEfficient Automated Test Creation With Selenium IDE Plugins
Efficient Automated Test Creation With Selenium IDE PluginsSamit Badle
 
From IDE to Selenium 2
From IDE to Selenium 2From IDE to Selenium 2
From IDE to Selenium 2davehunt82
 
Automation - web testing with selenium
Automation - web testing with seleniumAutomation - web testing with selenium
Automation - web testing with seleniumTzirla Rozental
 
Selenium Ide Tutorial
Selenium Ide TutorialSelenium Ide Tutorial
Selenium Ide Tutorialmetapix
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesVijay Rangaiah
 
Selenium webdriver course content rakesh hansalia
Selenium webdriver course content rakesh hansaliaSelenium webdriver course content rakesh hansalia
Selenium webdriver course content rakesh hansaliaRakesh Hansalia
 

What's hot (20)

Selenium test automation
Selenium test automationSelenium test automation
Selenium test automation
 
Selenium IDE features
Selenium IDE featuresSelenium IDE features
Selenium IDE features
 
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using Selenium
 
Selenium (1)
Selenium (1)Selenium (1)
Selenium (1)
 
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and Selenium
 
Automation Testing on Selenium by Quontra Solutions
Automation Testing on Selenium by Quontra SolutionsAutomation Testing on Selenium by Quontra Solutions
Automation Testing on Selenium by Quontra Solutions
 
Efficient Automated Test Creation With Selenium IDE Plugins
Efficient Automated Test Creation With Selenium IDE PluginsEfficient Automated Test Creation With Selenium IDE Plugins
Efficient Automated Test Creation With Selenium IDE Plugins
 
Selenium Primer
Selenium PrimerSelenium Primer
Selenium Primer
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
 
From IDE to Selenium 2
From IDE to Selenium 2From IDE to Selenium 2
From IDE to Selenium 2
 
Selenium Automation
Selenium AutomationSelenium Automation
Selenium Automation
 
Automation - web testing with selenium
Automation - web testing with seleniumAutomation - web testing with selenium
Automation - web testing with selenium
 
Selenium Ide Tutorial
Selenium Ide TutorialSelenium Ide Tutorial
Selenium Ide Tutorial
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
 
Selenium
SeleniumSelenium
Selenium
 
Selenium topic 3 -Web Driver Basics
Selenium topic 3 -Web Driver BasicsSelenium topic 3 -Web Driver Basics
Selenium topic 3 -Web Driver Basics
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
 
Selenium webdriver course content rakesh hansalia
Selenium webdriver course content rakesh hansaliaSelenium webdriver course content rakesh hansalia
Selenium webdriver course content rakesh hansalia
 
QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
 

Viewers also liked

Sakai10 Selenium Workshop
Sakai10 Selenium WorkshopSakai10 Selenium Workshop
Sakai10 Selenium Workshopcoreyjack
 
Better Page Object Handling with Loadable Component Pattern - SQA Days 20, Be...
Better Page Object Handling with Loadable Component Pattern - SQA Days 20, Be...Better Page Object Handling with Loadable Component Pattern - SQA Days 20, Be...
Better Page Object Handling with Loadable Component Pattern - SQA Days 20, Be...Sargis Sargsyan
 
Selenium IDE and Extensions
Selenium IDE and ExtensionsSelenium IDE and Extensions
Selenium IDE and ExtensionsYana Altunyan
 
Automated User Tests with Apache Flex
Automated User Tests with Apache FlexAutomated User Tests with Apache Flex
Automated User Tests with Apache FlexGert Poppe
 
Selenium IDE and Beyond
Selenium IDE and BeyondSelenium IDE and Beyond
Selenium IDE and BeyondSamit Badle
 
Jmeter Performance Testing
Jmeter Performance TestingJmeter Performance Testing
Jmeter Performance TestingAtul Pant
 
BDD with JBehave and Selenium
BDD with JBehave and SeleniumBDD with JBehave and Selenium
BDD with JBehave and SeleniumNikolay Vasilev
 
Java Basics for selenium
Java Basics for seleniumJava Basics for selenium
Java Basics for seleniumapoorvams
 

Viewers also liked (12)

Sakai10 Selenium Workshop
Sakai10 Selenium WorkshopSakai10 Selenium Workshop
Sakai10 Selenium Workshop
 
Selenium WebDriver FAQ's
Selenium WebDriver FAQ'sSelenium WebDriver FAQ's
Selenium WebDriver FAQ's
 
Selenium Training
Selenium TrainingSelenium Training
Selenium Training
 
Selenium
SeleniumSelenium
Selenium
 
Better Page Object Handling with Loadable Component Pattern - SQA Days 20, Be...
Better Page Object Handling with Loadable Component Pattern - SQA Days 20, Be...Better Page Object Handling with Loadable Component Pattern - SQA Days 20, Be...
Better Page Object Handling with Loadable Component Pattern - SQA Days 20, Be...
 
Selenium IDE and Extensions
Selenium IDE and ExtensionsSelenium IDE and Extensions
Selenium IDE and Extensions
 
Automated User Tests with Apache Flex
Automated User Tests with Apache FlexAutomated User Tests with Apache Flex
Automated User Tests with Apache Flex
 
Selenium IDE and Beyond
Selenium IDE and BeyondSelenium IDE and Beyond
Selenium IDE and Beyond
 
Selenium
SeleniumSelenium
Selenium
 
Jmeter Performance Testing
Jmeter Performance TestingJmeter Performance Testing
Jmeter Performance Testing
 
BDD with JBehave and Selenium
BDD with JBehave and SeleniumBDD with JBehave and Selenium
BDD with JBehave and Selenium
 
Java Basics for selenium
Java Basics for seleniumJava Basics for selenium
Java Basics for selenium
 

Similar to Steps to write Selenium

Selenium with testng and eclipse ide
Selenium with testng and eclipse ideSelenium with testng and eclipse ide
Selenium with testng and eclipse ideTestertester Jaipur
 
Selenium by using JAVA
Selenium by using JAVASelenium by using JAVA
Selenium by using JAVAmahirayavarapu
 
Selenium Basics by Quontra Solutions
Selenium Basics by Quontra SolutionsSelenium Basics by Quontra Solutions
Selenium Basics by Quontra SolutionsQUONTRASOLUTIONS
 
Basics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote ControlBasics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote Controlusha kannappan
 
Selenium Tutorial
Selenium TutorialSelenium Tutorial
Selenium Tutorialprad_123
 
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01Aravindharamanan S
 
Software testing tools (free and open source)
Software testing tools (free and open source)Software testing tools (free and open source)
Software testing tools (free and open source)Wael Mansour
 
Selenium By Pravin Mishra
Selenium By Pravin MishraSelenium By Pravin Mishra
Selenium By Pravin MishraPravin Mishra
 
Automated Web Testing With Selenium
Automated Web Testing With SeleniumAutomated Web Testing With Selenium
Automated Web Testing With SeleniumJodie Miners
 
Automation Testing using Selenium Webdriver
Automation Testing using Selenium WebdriverAutomation Testing using Selenium Webdriver
Automation Testing using Selenium WebdriverPankaj Biswas
 
Siebel Open UI Debugging (Siebel Open UI Training, Part 7)
Siebel Open UI Debugging (Siebel Open UI Training, Part 7)Siebel Open UI Debugging (Siebel Open UI Training, Part 7)
Siebel Open UI Debugging (Siebel Open UI Training, Part 7)Tech OneStop
 

Similar to Steps to write Selenium (20)

Selenium
SeleniumSelenium
Selenium
 
BCS Selenium Workshop
BCS Selenium WorkshopBCS Selenium Workshop
BCS Selenium Workshop
 
Selenium with testng and eclipse ide
Selenium with testng and eclipse ideSelenium with testng and eclipse ide
Selenium with testng and eclipse ide
 
Selenium
SeleniumSelenium
Selenium
 
Selenium by using JAVA
Selenium by using JAVASelenium by using JAVA
Selenium by using JAVA
 
Selenium Testing
Selenium Testing Selenium Testing
Selenium Testing
 
Selenium Basics by Quontra Solutions
Selenium Basics by Quontra SolutionsSelenium Basics by Quontra Solutions
Selenium Basics by Quontra Solutions
 
Basics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote ControlBasics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote Control
 
Selenium
SeleniumSelenium
Selenium
 
Selenium Training in Chennai
Selenium Training in ChennaiSelenium Training in Chennai
Selenium Training in Chennai
 
Selenium Tutorial
Selenium TutorialSelenium Tutorial
Selenium Tutorial
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01
Softwaretestingtoolsfreeandopensourcefinal 150411221750-conversion-gate01
 
Software testing tools (free and open source)
Software testing tools (free and open source)Software testing tools (free and open source)
Software testing tools (free and open source)
 
Selenium By Pravin Mishra
Selenium By Pravin MishraSelenium By Pravin Mishra
Selenium By Pravin Mishra
 
What is selenium
What is seleniumWhat is selenium
What is selenium
 
Automated Web Testing With Selenium
Automated Web Testing With SeleniumAutomated Web Testing With Selenium
Automated Web Testing With Selenium
 
Automation Testing using Selenium Webdriver
Automation Testing using Selenium WebdriverAutomation Testing using Selenium Webdriver
Automation Testing using Selenium Webdriver
 
Siebel Open UI Debugging (Siebel Open UI Training, Part 7)
Siebel Open UI Debugging (Siebel Open UI Training, Part 7)Siebel Open UI Debugging (Siebel Open UI Training, Part 7)
Siebel Open UI Debugging (Siebel Open UI Training, Part 7)
 
Sel
SelSel
Sel
 

Recently uploaded

Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...DianaGray10
 
20230202 - Introduction to tis-py
20230202 - Introduction to tis-py20230202 - Introduction to tis-py
20230202 - Introduction to tis-pyJamie (Taka) Wang
 
Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1DianaGray10
 
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostKubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostMatt Ray
 
Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.YounusS2
 
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationUsing IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationIES VE
 
Computer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsComputer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsSeth Reyes
 
Artificial Intelligence & SEO Trends for 2024
Artificial Intelligence & SEO Trends for 2024Artificial Intelligence & SEO Trends for 2024
Artificial Intelligence & SEO Trends for 2024D Cloud Solutions
 
activity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdf
activity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdf
activity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdfJamie (Taka) Wang
 
Building AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptxBuilding AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptxUdaiappa Ramachandran
 
Nanopower In Semiconductor Industry.pdf
Nanopower  In Semiconductor Industry.pdfNanopower  In Semiconductor Industry.pdf
Nanopower In Semiconductor Industry.pdfPedro Manuel
 
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1DianaGray10
 
UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7DianaGray10
 
Crea il tuo assistente AI con lo Stregatto (open source python framework)
Crea il tuo assistente AI con lo Stregatto (open source python framework)Crea il tuo assistente AI con lo Stregatto (open source python framework)
Crea il tuo assistente AI con lo Stregatto (open source python framework)Commit University
 
COMPUTER 10: Lesson 7 - File Storage and Online Collaboration
COMPUTER 10: Lesson 7 - File Storage and Online CollaborationCOMPUTER 10: Lesson 7 - File Storage and Online Collaboration
COMPUTER 10: Lesson 7 - File Storage and Online Collaborationbruanjhuli
 
NIST Cybersecurity Framework (CSF) 2.0 Workshop
NIST Cybersecurity Framework (CSF) 2.0 WorkshopNIST Cybersecurity Framework (CSF) 2.0 Workshop
NIST Cybersecurity Framework (CSF) 2.0 WorkshopBachir Benyammi
 
Meet the new FSP 3000 M-Flex800™
Meet the new FSP 3000 M-Flex800™Meet the new FSP 3000 M-Flex800™
Meet the new FSP 3000 M-Flex800™Adtran
 
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdfUiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdfDianaGray10
 

Recently uploaded (20)

Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
 
20230202 - Introduction to tis-py
20230202 - Introduction to tis-py20230202 - Introduction to tis-py
20230202 - Introduction to tis-py
 
201610817 - edge part1
201610817 - edge part1201610817 - edge part1
201610817 - edge part1
 
Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1
 
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostKubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
 
Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.
 
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationUsing IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
 
20230104 - machine vision
20230104 - machine vision20230104 - machine vision
20230104 - machine vision
 
Computer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsComputer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and Hazards
 
Artificial Intelligence & SEO Trends for 2024
Artificial Intelligence & SEO Trends for 2024Artificial Intelligence & SEO Trends for 2024
Artificial Intelligence & SEO Trends for 2024
 
activity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdf
activity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdf
activity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdf
 
Building AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptxBuilding AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptx
 
Nanopower In Semiconductor Industry.pdf
Nanopower  In Semiconductor Industry.pdfNanopower  In Semiconductor Industry.pdf
Nanopower In Semiconductor Industry.pdf
 
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
 
UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7
 
Crea il tuo assistente AI con lo Stregatto (open source python framework)
Crea il tuo assistente AI con lo Stregatto (open source python framework)Crea il tuo assistente AI con lo Stregatto (open source python framework)
Crea il tuo assistente AI con lo Stregatto (open source python framework)
 
COMPUTER 10: Lesson 7 - File Storage and Online Collaboration
COMPUTER 10: Lesson 7 - File Storage and Online CollaborationCOMPUTER 10: Lesson 7 - File Storage and Online Collaboration
COMPUTER 10: Lesson 7 - File Storage and Online Collaboration
 
NIST Cybersecurity Framework (CSF) 2.0 Workshop
NIST Cybersecurity Framework (CSF) 2.0 WorkshopNIST Cybersecurity Framework (CSF) 2.0 Workshop
NIST Cybersecurity Framework (CSF) 2.0 Workshop
 
Meet the new FSP 3000 M-Flex800™
Meet the new FSP 3000 M-Flex800™Meet the new FSP 3000 M-Flex800™
Meet the new FSP 3000 M-Flex800™
 
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdfUiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
 

Steps to write Selenium

  • 1. What is Automation TestingWhat is Automation Testing Automation testing use software or automation tool to create and execute test script which is written in scripting language for example java script. Automation testing Benefits :  Automation tool save time when regression and Smoke test required.  Automation tool run test case faster than human users.  Automation tool help to address the load, stress and performance of the product.  Automation tool improve software quality.  Automation tool required less time and fewer resources .
  • 2. Automation ToolsAutomation Tools There are lot of testing tools available in the market and each tool is capable of doing specific testing such as functional and non functional testing. The automation tools that are widely used in functional and non functional testing. Functional Testing tools 1)Quick Test Professional (Required licenses) 2)Selenium (Web Driver, Selenium RC) (Open Source) Non Functional Tools 1) HP Loader( Required licenses) 2) Apache Jmeter (Open Source)
  • 3. Selenium –Functional Testing ToolSelenium –Functional Testing Tool Selenium is a functional testing tool that automates web and mobile application with the help of web browsers like (Mozilla Firefox, Chrome, Internet explorer, Opera and Safari). It is open source tool (freely available in Internet market) and support many language like HTML, Java/Script , Ruby, Python, C# etc. Selenium provide record and play back feature and user can convert recorded script in any language.
  • 4. Component Used to Generate Manual Test ScriptComponent Used to Generate Manual Test Script 1.Selenium IDE is a Firefox add-on that provide record and playback feature and you can export or convert the recorded script in any languages like HTML, Java, .NET, Perl, Ruby and python You can run and customize script in the eclipse by adding Selenium web driver. 2.Selenium Web Driver2.Selenium Web Driver is Application programming interface and collection of libraries. Using selenium web driver we can customize or edit script with the help of Eclipse frame-work .Each scripting language use specific web driver to generate and customize script for example C# language use Selenium .NET web driver and Visual studio framework to run and customize the script. 3.Eclipse is an integrated development environment (IDE) is used to develop test script. Eclipse framework support many languages like Java, Java script, Ruby, Python, C, C+, PL/SQL, Vb.net script.
  • 5. Steps to Add Selenium IDE Plug-in Step 1: Open seleniumhq.org website in Mozilla Firefox ,Click on download tab and Click Version 2.6.0 link to install plug-in.
  • 6. Selenium ask you to install following items
  • 8. Verify all language formatter Installed Properly Click on Tool menu – Add-on
  • 9. Open website in Mozilla Firefox Open Mozilla Firefox enter web site URL in the URL Box of Mozilla
  • 10. Steps to Record Test Script Using Selenium IDESteps to Record Test Script Using Selenium IDE Step 1: Click on tools menu then click Selenium IDE option a pop will appear as given below Step:3: Enter base URL and minimize selenium IDE Pop
  • 11. Visit Website to Record ScriptVisit Website to Record Script
  • 12. Maximize Sel. IDE Pop Up & Stop RecordingMaximize Sel. IDE Pop Up & Stop Recording Execution Commands Stop Recording Reference of the currently selected command
  • 13. Change HTML Default Recording Mode To ScriptingChange HTML Default Recording Mode To Scripting Click on option menu to select scripting language option
  • 14. Enable Scripting Language OptionEnable Scripting Language Option You need to check mark this option
  • 15. Now Convert HTML to Java ScriptNow Convert HTML to Java Script Click on web driver
  • 16. On Click J-Unit Web Driver a Pop Will AppearOn Click J-Unit Web Driver a Pop Will Appear Click ok button
  • 17. On Click Ok Button HTML Code Converted to Java ScriptOn Click Ok Button HTML Code Converted to Java Script Copy this Code
  • 18. Open Eclipse to Run Java ScriptOpen Eclipse to Run Java Script Steps: 1 Open adt (Eclipse) folder saved in your hard disk. Steps: 2 Click on Eclipse icon. Steps: 3 Splash Screen will appear with Dialog box To choose location to save your script Steps:4 Click on Ok button eclipse will be open
  • 19. Create Project in the EclipseCreate Project in the Eclipse Steps Click on file menu . Click on new . Then click project
  • 20. Give name to your projectGive name to your project Steps : Give name to project then click next button
  • 21. Define the Java Build SettingDefine the Java Build Setting
  • 22. Add Selenium Web Driver to Click Library TabAdd Selenium Web Driver to Click Library Tab
  • 23. Click on Add External JARS..Click on Add External JARS..
  • 24. Verify Jars files will attached with Java BuildVerify Jars files will attached with Java Build
  • 25. Open Project Explorer to See Java BuildOpen Project Explorer to See Java Build
  • 26. Right Click On Project to Add Class fileRight Click On Project to Add Class file
  • 27. Give Name To Class fileGive Name To Class file Step 1:Give name to class file . Choose Method Click on Finish button a class file will appear
  • 28. Remove Code from class file and Past Sel. IDE ScriptRemove Code from class file and Past Sel. IDE Script
  • 29. Edit and Run Recorded ScriptEdit and Run Recorded Script
  • 30. Choose Launcher to Run ScriptChoose Launcher to Run Script
  • 31. Save and Launch ResourceSave and Launch Resource
  • 32. Output of Java ScriptOutput of Java Script
  • 33. The EndThe End Prepared byPrepared by Rohit thakurRohit thakur