SlideShare ist ein Scribd-Unternehmen logo
1 von 10
Selenium RC Overview
• Internal architecture of RC
1
Selenium RC
•
Selenium Remote Control (RC) is a test tool
that allows testers to write automated Web
Application User Interface tests in many
programming languages against any HTTP
website using any mainstream JavaScript-
enabled browser.
• Selenium RC comes in two parts.
• A server which automatically launches and
kills browsers, and acts as a HTTP proxy for
web requests from them.
• Client libraries for computer languages. 2
Selenium RC Architecture
3
Selenium RC
Server
Your Test Suites
written in any
supported
programming
language
Point to any
supported browser
Platforms Supported by Selenium RC
• Browsers
• Firefox, IE, Safari and Opera
• Operating Systems
• Windows, OS X, Linux, and Solaris
• Programming Languages
• C#, Java, Perl, PHP, Python, and Ruby
• Testing Frameworks
• Bromine, JUnit & TenstNG (Java), NUnit (.Net),
RSpec & Test::Unit (Ruby), unittest (Python)
4
Selenium RC
• The Selenium RC Server is used for testing complex AJAX-
based web user interfaces under a Continuous Integration
system.
• Selenium RC is used with Selenium Core/Selenium IDE to
write tests in programming languages other than the
Selenese HTML table format.
• The RC server is bundled with Selenium Core and
automatically loads it into the browser.
• Without using special modes, using Selenium RC test script,
one cannot test domain changing web applications or
within the same domain to change from insecure (http)
page to secure (https) page. 5
RC Command Line Options
Usage: java -jar selenium-server.jar [-interactive] [-options]
• port <nnnn>:(default 4444)
• the port number the selenium server should use
• timeout <nnnn>: (eg: 180)
• an integer number of seconds
• interactive:
• Interactively enter the commands.
• multiWindow:
• Tests are executed in a separate window and supports web
pages with frames.
• forcedBrowserMode <browser>: (eg: *iehta)
• sets the forced default browser mode (e.g. "*iexplore“) for all
sessions, no matter what is passed in getNewBrowserSession
6
RC Command Line Options
• User Extensions <file>:
• indicates a JavaScript file that will be loaded into selenium
• Browser Session Reuse:
• stops re-initialization and spawning of the browser between tests
• Avoid Proxy:
• Uses by default proxy for browser request
• set this flag to make the browser use proxy only for URLs
containing '/selenium-server'
• Firefox Profile Template <dir>:
• By default generates a fresh empty Firefox profile for every test.
• Provide a directory to use your profile directory instead.
7
RC Command Line Options
• debug:
• Debug mode provides more trace information and used for
diagnostics purpose
• log:
• When enabled writes debug information out to a log file
• htmlSuite <browser> <startURL> <suiteFile> <resultFile>:
• Provide browser and URL to run a single HTML Selenese Test
suite and then exit immediately.
• Provide absolute path to the HTML test suite, and HTML results
file.
• proxyInjectionMode:
• A proxy injection mode is a mode where the selenium server acts as a proxy
server for all content going to the AUT. Under this mode, multiple domains
can be visited.
8
RC Command Line Options
• The following additional flags are supported for proxy injection mode
:
• Don’t Inject Regex <regex>: an optional regular expression that
proxy injection mode can use to know when to bypass injection
• User Js Injection <file>: specifies a JavaScript file which will then
be injected into all pages
• User Content Transformation <regex> <replacement>:
• A regular expression which is matched against all test HTML content; the
second is a string which will replace matches. These flags can be used any
number of times. A simple example of how this could be useful: if you add "-
user Content Transformation https http" then all "https" strings in the HTML
of the test application will be changed to be "http".
9
RC Command Line Options
• Java system properties:
• Dhttp.proxyHost and -Dhttp.proxyPort
• Normally Selenium RC overrides the proxy server configuration, using the
Selenium Server as a proxy. Use these options if you need to use your own
proxy together with the Selenium Server proxy.
• Use the proxy settings like this:
• java -Dhttp.proxyHost=myproxy.com -Dhttp.proxyPort=1234 -jar selenium-
server.jar
• HTTP proxy requires authentication, you will also need to set
-Dhttp.proxyUser and -Dhttp.proxyPassword, in addition to http.proxyHost
and http.proxyPort.
• java -Dhttp.proxyHost=myproxy.com -Dhttp.proxyPort=1234
-Dhttp.proxyUser=joe -Dhttp.proxyPassword=example -jar selenium-server.jar
10

Weitere ähnliche Inhalte

Was ist angesagt?

WEPA - Webdriver Enhanced Platform for Automation - WEPATest
WEPA - Webdriver Enhanced Platform for Automation - WEPATestWEPA - Webdriver Enhanced Platform for Automation - WEPATest
WEPA - Webdriver Enhanced Platform for Automation - WEPATest
Freddy Vega
 
Apache Tomcat 8 Application Server
Apache Tomcat 8 Application ServerApache Tomcat 8 Application Server
Apache Tomcat 8 Application Server
mohamedmoharam
 

Was ist angesagt? (20)

Java selenium web driver
Java selenium web driverJava selenium web driver
Java selenium web driver
 
CNIT 124: Ch 8: Exploitation
CNIT 124: Ch 8: ExploitationCNIT 124: Ch 8: Exploitation
CNIT 124: Ch 8: Exploitation
 
Auxiliary : Tomcat
Auxiliary : TomcatAuxiliary : Tomcat
Auxiliary : Tomcat
 
IIS request process
IIS request processIIS request process
IIS request process
 
WEPA - Webdriver Enhanced Platform for Automation - WEPATest
WEPA - Webdriver Enhanced Platform for Automation - WEPATestWEPA - Webdriver Enhanced Platform for Automation - WEPATest
WEPA - Webdriver Enhanced Platform for Automation - WEPATest
 
Tomcat Configuration (1)
Tomcat Configuration (1)Tomcat Configuration (1)
Tomcat Configuration (1)
 
Tuenti Release Workflow
Tuenti Release WorkflowTuenti Release Workflow
Tuenti Release Workflow
 
Why You Should Use Oracle SQL Developer
Why You Should Use Oracle SQL DeveloperWhy You Should Use Oracle SQL Developer
Why You Should Use Oracle SQL Developer
 
Debugging your Way through .NET with Visual Studio 2015
Debugging your Way through .NET with Visual Studio 2015Debugging your Way through .NET with Visual Studio 2015
Debugging your Way through .NET with Visual Studio 2015
 
Consume wsa
Consume wsaConsume wsa
Consume wsa
 
JS Fest 2019. Александр Хотемский. Способы распараллеливания тестов в JavaScript
JS Fest 2019. Александр Хотемский. Способы распараллеливания тестов в JavaScriptJS Fest 2019. Александр Хотемский. Способы распараллеливания тестов в JavaScript
JS Fest 2019. Александр Хотемский. Способы распараллеливания тестов в JavaScript
 
Apache Tomcat 8 Application Server
Apache Tomcat 8 Application ServerApache Tomcat 8 Application Server
Apache Tomcat 8 Application Server
 
Continuous Delivery with Docker
Continuous Delivery with DockerContinuous Delivery with Docker
Continuous Delivery with Docker
 
Keynote - Fluentd meetup v14
Keynote - Fluentd meetup v14Keynote - Fluentd meetup v14
Keynote - Fluentd meetup v14
 
MuleSoft ESB Sending email using hmailserver
MuleSoft ESB Sending email using hmailserverMuleSoft ESB Sending email using hmailserver
MuleSoft ESB Sending email using hmailserver
 
Treasure Data Summer Internship Final Report
Treasure Data Summer Internship Final ReportTreasure Data Summer Internship Final Report
Treasure Data Summer Internship Final Report
 
Introduction to node.js
Introduction to node.jsIntroduction to node.js
Introduction to node.js
 
Salt at school
Salt at schoolSalt at school
Salt at school
 
Async Scope With Mule ESB
Async Scope With Mule ESBAsync Scope With Mule ESB
Async Scope With Mule ESB
 
Jakarta EE 8 on JDK17
Jakarta EE 8 on JDK17Jakarta EE 8 on JDK17
Jakarta EE 8 on JDK17
 

Ähnlich wie Selenium RC Overview

Selenium Automation Using Ruby
Selenium Automation Using RubySelenium Automation Using Ruby
Selenium Automation Using Ruby
Kumari Warsha Goel
 
Selenium (1)
Selenium (1)Selenium (1)
Selenium (1)
onlinemindq
 
Java ScriptingJava Scripting: One VM, Many Languages
Java ScriptingJava Scripting: One VM, Many LanguagesJava ScriptingJava Scripting: One VM, Many Languages
Java ScriptingJava Scripting: One VM, Many Languages
elliando dias
 
Mastering selenium for automated acceptance tests
Mastering selenium for automated acceptance testsMastering selenium for automated acceptance tests
Mastering selenium for automated acceptance tests
Nick Belhomme
 
05.m3 cms list-ofwebserver
05.m3 cms list-ofwebserver05.m3 cms list-ofwebserver
05.m3 cms list-ofwebserver
tarensi
 

Ähnlich wie Selenium RC Overview (20)

Selenium Automation Using Ruby
Selenium Automation Using RubySelenium Automation Using Ruby
Selenium Automation Using Ruby
 
Selenium Introduction
Selenium IntroductionSelenium Introduction
Selenium Introduction
 
Selenium (1)
Selenium (1)Selenium (1)
Selenium (1)
 
Selenium Java for Beginners by Sujit Pathak
Selenium Java for Beginners by Sujit PathakSelenium Java for Beginners by Sujit Pathak
Selenium Java for Beginners by Sujit Pathak
 
Selenium
SeleniumSelenium
Selenium
 
Selenium.pptx
Selenium.pptxSelenium.pptx
Selenium.pptx
 
CNIT 129S - Ch 3: Web Application Technologies
CNIT 129S - Ch 3: Web Application TechnologiesCNIT 129S - Ch 3: Web Application Technologies
CNIT 129S - Ch 3: Web Application Technologies
 
Intro
IntroIntro
Intro
 
CNIT 129S: Ch 3: Web Application Technologies
CNIT 129S: Ch 3: Web Application TechnologiesCNIT 129S: Ch 3: Web Application Technologies
CNIT 129S: Ch 3: Web Application Technologies
 
Java ScriptingJava Scripting: One VM, Many Languages
Java ScriptingJava Scripting: One VM, Many LanguagesJava ScriptingJava Scripting: One VM, Many Languages
Java ScriptingJava Scripting: One VM, Many Languages
 
DEF CON 24 - workshop - Craig Young - brainwashing embedded systems
DEF CON 24 - workshop - Craig Young - brainwashing embedded systemsDEF CON 24 - workshop - Craig Young - brainwashing embedded systems
DEF CON 24 - workshop - Craig Young - brainwashing embedded systems
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
 
Building Awesome APIs with Lumen
Building Awesome APIs with LumenBuilding Awesome APIs with Lumen
Building Awesome APIs with Lumen
 
Session 01 - Introduction to Selenium - Part 2
Session 01 - Introduction to Selenium - Part 2Session 01 - Introduction to Selenium - Part 2
Session 01 - Introduction to Selenium - Part 2
 
Mastering selenium for automated acceptance tests
Mastering selenium for automated acceptance testsMastering selenium for automated acceptance tests
Mastering selenium for automated acceptance tests
 
Liberty Deep Dive
Liberty Deep DiveLiberty Deep Dive
Liberty Deep Dive
 
Selenium Concepts
Selenium ConceptsSelenium Concepts
Selenium Concepts
 
05.m3 cms list-ofwebserver
05.m3 cms list-ofwebserver05.m3 cms list-ofwebserver
05.m3 cms list-ofwebserver
 
Fluentd v1.0 in a nutshell
Fluentd v1.0 in a nutshellFluentd v1.0 in a nutshell
Fluentd v1.0 in a nutshell
 
QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
 

Kürzlich hochgeladen

An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
MateoGardella
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Kürzlich hochgeladen (20)

An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 

Selenium RC Overview

  • 1. Selenium RC Overview • Internal architecture of RC 1
  • 2. Selenium RC • Selenium Remote Control (RC) is a test tool that allows testers to write automated Web Application User Interface tests in many programming languages against any HTTP website using any mainstream JavaScript- enabled browser. • Selenium RC comes in two parts. • A server which automatically launches and kills browsers, and acts as a HTTP proxy for web requests from them. • Client libraries for computer languages. 2
  • 3. Selenium RC Architecture 3 Selenium RC Server Your Test Suites written in any supported programming language Point to any supported browser
  • 4. Platforms Supported by Selenium RC • Browsers • Firefox, IE, Safari and Opera • Operating Systems • Windows, OS X, Linux, and Solaris • Programming Languages • C#, Java, Perl, PHP, Python, and Ruby • Testing Frameworks • Bromine, JUnit & TenstNG (Java), NUnit (.Net), RSpec & Test::Unit (Ruby), unittest (Python) 4
  • 5. Selenium RC • The Selenium RC Server is used for testing complex AJAX- based web user interfaces under a Continuous Integration system. • Selenium RC is used with Selenium Core/Selenium IDE to write tests in programming languages other than the Selenese HTML table format. • The RC server is bundled with Selenium Core and automatically loads it into the browser. • Without using special modes, using Selenium RC test script, one cannot test domain changing web applications or within the same domain to change from insecure (http) page to secure (https) page. 5
  • 6. RC Command Line Options Usage: java -jar selenium-server.jar [-interactive] [-options] • port <nnnn>:(default 4444) • the port number the selenium server should use • timeout <nnnn>: (eg: 180) • an integer number of seconds • interactive: • Interactively enter the commands. • multiWindow: • Tests are executed in a separate window and supports web pages with frames. • forcedBrowserMode <browser>: (eg: *iehta) • sets the forced default browser mode (e.g. "*iexplore“) for all sessions, no matter what is passed in getNewBrowserSession 6
  • 7. RC Command Line Options • User Extensions <file>: • indicates a JavaScript file that will be loaded into selenium • Browser Session Reuse: • stops re-initialization and spawning of the browser between tests • Avoid Proxy: • Uses by default proxy for browser request • set this flag to make the browser use proxy only for URLs containing '/selenium-server' • Firefox Profile Template <dir>: • By default generates a fresh empty Firefox profile for every test. • Provide a directory to use your profile directory instead. 7
  • 8. RC Command Line Options • debug: • Debug mode provides more trace information and used for diagnostics purpose • log: • When enabled writes debug information out to a log file • htmlSuite <browser> <startURL> <suiteFile> <resultFile>: • Provide browser and URL to run a single HTML Selenese Test suite and then exit immediately. • Provide absolute path to the HTML test suite, and HTML results file. • proxyInjectionMode: • A proxy injection mode is a mode where the selenium server acts as a proxy server for all content going to the AUT. Under this mode, multiple domains can be visited. 8
  • 9. RC Command Line Options • The following additional flags are supported for proxy injection mode : • Don’t Inject Regex <regex>: an optional regular expression that proxy injection mode can use to know when to bypass injection • User Js Injection <file>: specifies a JavaScript file which will then be injected into all pages • User Content Transformation <regex> <replacement>: • A regular expression which is matched against all test HTML content; the second is a string which will replace matches. These flags can be used any number of times. A simple example of how this could be useful: if you add "- user Content Transformation https http" then all "https" strings in the HTML of the test application will be changed to be "http". 9
  • 10. RC Command Line Options • Java system properties: • Dhttp.proxyHost and -Dhttp.proxyPort • Normally Selenium RC overrides the proxy server configuration, using the Selenium Server as a proxy. Use these options if you need to use your own proxy together with the Selenium Server proxy. • Use the proxy settings like this: • java -Dhttp.proxyHost=myproxy.com -Dhttp.proxyPort=1234 -jar selenium- server.jar • HTTP proxy requires authentication, you will also need to set -Dhttp.proxyUser and -Dhttp.proxyPassword, in addition to http.proxyHost and http.proxyPort. • java -Dhttp.proxyHost=myproxy.com -Dhttp.proxyPort=1234 -Dhttp.proxyUser=joe -Dhttp.proxyPassword=example -jar selenium-server.jar 10