Selenium Server

Synopsis

Selenium is a portable software testing framework for web applications. Selenium provides a record/playback tool for authoring tests without learning a test scripting language (Selenium IDE). It also provides a test domain-specific language (Selenese)[1] to write tests in a number of popular programming languages, including Java, C#, Groovy, Perl, PHP, Python and Ruby. The tests can then be run against most modern web browsers. Selenium deploys on Windows, Linux, and Macintosh platforms

Let us see about how this module facilitates the users in installing selenium server.

Help Command

The help command guides the users regarding the purpose and as well as about the options that are included in the selenium server module. It lists out the alternative parameters of selenium server module. It also describes the syntax for installing it. The help command for selenium server module is shown as below.

ptconfigure seleniumserver help

The syntax for declaring the help command is not case sensitive which is an added advantage. The following screenshot visualize you about the help command under selenium server module.

kevell@corp:/# ptconfigure SeleniumServer help
******************************


 This command allows you to install Selenium Server.

 SeleniumServer, selenium-server, selenium, selenium-srv, seleniumserver

       - install
       Installs Selenium Server. Note, you'll also need Java installed
       as it is a prerequisite for Selenium
       example: ptconfigure selenium install
       example: ptconfigure selenium install --with-chrome-driver # will set the executor command to use default chrome driver


------------------------------
End Help
******************************

Installation

The command used for installing the Selenium server is simple as entering the command which is shown below.

ptconfigure seleniumserver install

The screenshot for the above command is listed below,

kevell@corp:/# ptconfigure selenium install

Install Selenium Server? (Y/N)
y
*******************************
*        Pharaoh Tools        *
*         Selenium Srv        *
*******************************
Enter Selenium Version
(0) 2.39
(1) 2.40
(2) 2.41
(3) 2.42
(4) 2.43
(5) 2.44
5
PHP Notice:  Undefined index: version in /opt/ptconfigure/ptconfigure/src/Modules/SeleniumServer/Model/SeleniumServerAllLinux.php on line 50
[Pharaoh Logging] Ensure module install is not checking versions
[Pharaoh Logging] Command 'git' found
[Pharaoh Logging] Command 'gitk' found
[Pharaoh Logging] Command 'git-cola' found
[Pharaoh Logging] Not installing as already installed
[Pharaoh Logging] Ensure module install is not checking versions
[Pharaoh Logging] Module Java reports itself as Installed
[Pharaoh Logging] Not installing as already installed
Creating /tmp/ptconfigure-temp-script-96670533394.sh
chmod 755 /tmp/ptconfigure-temp-script-96670533394.sh 2>/dev/null
Changing /tmp/ptconfigure-temp-script-96670533394.sh Permissions
Executing /tmp/ptconfigure-temp-script-96670533394.sh
--2015-02-12 15:31:34--  http://selenium-release.storage.googleapis.com//selenium-server-standalone-.0.jar
Resolving selenium-release.storage.googleapis.com (selenium-release.storage.googleapis.com)... 74.125.236.43, 74.125.236.42, 74.125.236.44, ...
Connecting to selenium-release.storage.googleapis.com (selenium-release.storage.googleapis.com)|74.125.236.43|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-02-12 15:31:35 ERROR 404: Not Found.

mv: cannot stat ‘/tmp/selenium/*’: No such file or directory
mv: cannot stat ‘selenium-server-standalone-.0.jar’: No such file or directory
Temp File /tmp/ptconfigure-temp-script-96670533394.sh Removed
Program Executor Deleted if existed
... All done!
*******************************
Thanks for installing , visit www.pharaohtools.com for more
******************************


Single App Installer:
--------------------------------------------
SeleniumServer: Success
------------------------------
Installer Finished
******************************

Option

After inputting the command above, the following operations occurs as shown in the tabular format.

Parameters Alternative Parameters Options Comments
Install Selenium Server? (Y/N) Instead of seleniumserver, we can use SeleniumServer, Selenium, selenium-srv , selenium-server also. Y(Yes) If the user wish to proceed the installation process they can input as Y.
Install Selenium Server? (Y/N) Instead of seleniumserver, we can use SeleniumServer, Selenium, selenium-srv , selenium-server also. N(No) If the user wish to quit the installation process they can input as N.|

Benefits

  • The parameters used in help and installation are not case sensitive which is an added advantage while compared to others.
  • It is well-to-do in both Ubuntu and as well as Cent OS.
  • You can develop automated tests in the programming language of your choice such as c#, java, python, php, perl and ruby as well as running those tests on different combination of browsers such as Chrome, Firefox or IE
comments powered by Disqus