INSTALLATION OF SELENIUM AND FRAMEWORKS
Introduction to Framework:
Frameworks are structures with a particular context and help you create web applications within that context.
It is completely possible to build strong web applications without JavaScript frameworks, but frameworks provide a template that handles common programming patterns. Each time you have to build an application, you don’t need to write code for every single feature from scratch. Instead, you can build upon an existing feature set.
SELENIUM:
Selenium is one of the most widely used open source Web UI (User Interface) automation testing suite.It was originally developed by Jason Huggins in 2004 as an internal tool at Thought Works. Selenium supports automation across different browsers, platforms and programming languages.
Selenium can be easily deployed on platforms such as Windows, Linux, Solaris and Macintosh. Moreover, it supports OS (Operating System) for mobile applications like iOS, windows mobile and android.
Selenium supports a variety of programming languages through the use of drivers specific to each language.Languages supported by Selenium include C#, Java, Perl, PHP, Python and Ruby.Currently, Selenium Web driver is most popular with Java and C#.
Selenium test scripts can be coded in any of the supported programming languages and can be run directly in most modern web browsers. Browsers supported by Selenium include Internet Explorer, Mozilla Firefox, Google Chrome and Safari.
Selenium can be used to automate functional tests and can be integrated with automation test tools such as Maven, Jenkins, & Docker to achieve continuous testing. It can also be integrated with tools such as TestNG, & JUnit for managing test cases and generating reports.
Framework:
Support libraries for integration with natural or programming language test frameworks, like Selenium with Cucumber or Selenium with TestNG.
API:
Application Programming Interface. Ports test scripts you write in Ruby, Java, Python, or C# to Selenese (Selenium’s own scripting language), through bindings.
Library:
Houses the API and language-specific bindings. Although plenty of third-party bindings exist to support different programming languages, the core client-side bindings supported by the main project are: Selenium Java (as selenium jar files), Selenium Ruby, Selenium dotnet (or Selenium C#, available as .dll files), Selenium Python, and Selenium JavaScript (Node).
Driver:
Executable module that opens up a browser instance and runs the test script. Browser-specific—for instance, Google develops and maintains Chromedriver for Selenium to support automation on Chromium/Chrome.
Testers can enable ‘recording’ within the IDE and ‘play out’ the test scenario on the browser. The IDE can then replay those interactions and highlight any errors (during replay) in red.
Selenium Grid:
The Grid can minimize test runtime—by executing multiple test scripts on any number of remote devices at once. This is called parallel testing.
Selenium Grid is a smart server that routes test commands to browser instances on remote devices. The two main components needed for this (other than the test script from client-side/tester) are:
The ‘Hub’ (server):
Accepts access requests from WebDriver client. Routes JSON test commands to remote drivers on registered ‘nodes’.
‘Node’ (remote device):
Contains a native OS, browsers, and remoteWebDriver.
Installation of Selenium:
Selenium WebDriver installation process is completed in four basic steps:
⦁ Download and Install Java or higher version.
⦁ Download and configure Eclipse or any Java IDE of your choice.
⦁ Download Selenium WebDriver Java Client
⦁ Configure Selenium WebDriver.
1.jdk installation:
Install jdk file and setup the path,
2.Ecliepse:
Installation of Eclipse.
3.Selenium:
Installation of selenium
Comments