1 / 31

How to Write & Run a Test Case in Selenium | Selenium Tutorial | Selenium Training | Edureka

** Selenium Training: https://www.edureka.co/testing-with-selenium-webdriver ** <br>This Edureka Selenium tutorial (Selenium Blog Series: https://goo.gl/VGBJHx) on "How to Write & Run a Test Case in Selenium" will give you an introduction to automated software testing tool - Selenium. This selenium tutorial will help you in writing and running your first Test Case using Selenium.<br><br>Introduction to Selenium blog: https://goo.gl/b523IO <br>Check our complete Selenium playlist here: https://goo.gl/NmuzXE

EdurekaIN
Download Presentation

How to Write & Run a Test Case in Selenium | Selenium Tutorial | Selenium Training | Edureka

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  2. Topics for Today’s Selenium Training 1. Why Use Selenium? 2. What is Selenium? 3. Versions and Suite of Tools. 4. How to Set-up Selenium? 5. Hands-on! Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  3. Why Use Selenium? Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  4. Why Use Selenium? Beating the tedious challenges of manual testing is the obvious reason behind using automated tools. And, here’s why Selenium is the best choice: Being Open-Source, Selenium is available for free. Selenium works good with any Operating System. Selenium lets you perform tests on any Web Browser. Selenium supports multiple Programming Languages. Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  5. Selenium vs. its Counterparts Features HP QTP IBM RFT TestComplete Selenium License Required Required Required Open Source Cost High High High Free Customer support Yes Yes Yes Yes; Open source community Coding skills Low Low High Very High Windows only (7, Vista, Server 2008 or later OS) Environment support Only Windows Only Windows Windows, Linux, Mac VB Script, JS Script, Delphi Script, C++ & C# Java, C#, Ruby, Python, Perl & PHP Language support VB Script Java and C# There are several tools to test other types of applications, but testing of dynamic web applications is done best with Selenium. Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  6. What is Selenium? Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  7. What is Selenium? “ Selenium is an open-source tool that can automate almost any web browser. ” Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  8. What is Selenium? “ Selenium is an open-source tool that can automate almost any web browser. ” So many test cases, so much work..... So much stress !!!!!! Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  9. What is Selenium? “ Selenium is an open-source tool that can automate almost any web browser. ” So many test cases, so much work..... So much stress !!!!!! Testing with Selenium has made life so relaxing !! Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  10. What is Selenium? “ Selenium is an open-source tool that can automate almost any web browser. ” So many test cases, so much work..... So much stress !!!!!! Testing with Selenium has made life so relaxing !! ➢ Selenium can only be used to test web applications. ➢ Selenium is fast and easy to use even with large sets of data, and has a guaranteed accuracy. ➢ Selenium directly runs scripts for any web browser to automate the web application and test it. Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  11. Versions and Suite of Tools Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  12. Versions and Suite of Tools As of April – 2018, the latest release of the tool is Selenium Version 3.12.0. The Selenium suite comprised the following four components: Selenium RC, however, was merged with WebDriver and launched anew as Selenium WebDriver with better functionalities. Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  13. Versions and Suite of Tools Selenium Version 1 Selenium IDE Selenium Grid Selenium RC WebDriver MERGED Selenium Version 2 Selenium IDE Selenium Grid Selenium WebDriver IMPROVED Selenium Version 3 Selenium IDE Selenium Grid Selenium WebDriver Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  14. How to Set-up Selenium? Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  15. How to Set-up Selenium? The following three software are prerequisite to begin using Selenium. → → I. Java Programming Language to write scripts → → II. Eclipse Environment to compile and run scripts → → III. Selenium Framework for testing web applications Let’s get started on installing and setting them up → Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  16. How to Set-up Selenium? Step 1: Installing Java ✓ Download and install the latest release of the Java Platform, Standard Edition Development Kit from the following link:- http://www.oracle.com/technetwork/java/javase/downloads/index.html Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  17. How to Set-up Selenium? ✓ After Java is installed, we’ll need to set Environment Variables to use JDK with Eclipse. ✓ Right click on My PC →Go to Properties →Go to Advanced System Settings →System Properties window pops up →Click on Environment Variables under the Advanced tab. ✓ Environment Variables window pops up →Click on New under User variables. ✓ Under the Edit User Variable window that pops up, set the Variable name as Path and Variable value as the location of the bin folder inside the JDK folder on your system. Similarly, create another variable with the name JAVA_HOME and set its values as the location of the JDK folder. Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  18. How to Set-up Selenium? Step 2: Installing Eclipse ✓ Download and install the latest release for Eclipse from the following link: https://www.eclipse.org/downloads/ Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  19. How to Set-up Selenium? Step 3: Download Selenium JAR Files ✓ Open the link given below to download the JAR files for Selenium: http://selenium-release.storage.googleapis.com/index.html ✓ Select the version that you want to use. Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  20. How to Set-up Selenium? ✓ Download the JAR files (selenium-server-3.9.1.zip & selenium-server-standalone-3.9.1.jar for version 3.9) from the version that you have selected. Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  21. How to Set-up Selenium? Step 4: Configuring Eclipse for Selenium ✓ Open Eclipse and set a path for your workplace directory in the Eclipse Launcher window and click Launch. Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  22. How to Set-up Selenium? ✓ After Eclipse is launched, go to File →New →Java Project. Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  23. How to Set-up Selenium? ✓ Enter Project Name →Selenium Project. ✓ Click Finish. Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  24. How to Set-up Selenium? ✓ Under the Package Explorer tab, right click on the name of your project (Selenium Project), go to Build Path →Configure Build Path. Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  25. How to Set-up Selenium? ✓ Click on the Libraries tab, select Classpath then click on Add External JARs. Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  26. How to Set-up Selenium? ✓ Find all the JAR files that we downloaded, select them and click on Open. ✓ After you’re done adding all the JAR files, Click on Apply and Close. Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  27. Hands-on in Selenium! Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  28. Hands-on in Selenium Now that the prerequisites have all been installed and Selenium has been configured for the Eclipse IDE, how about we automate and test Gmail using Google Chrome? Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  29. Session In A Minute Why Use Selenium? What Is Selenium? Versions and Suite of Tools How to Set-up Selenium? Copyright © 2018, edureka and/or its affiliates. All rights reserved.

  30. WebDriver vs. IDE vs. RC ➢ Data Warehouse is like a relational database designed for analytical needs. ➢ It functions on the basis of OLAP (Online Analytical Processing). ➢ It is a central location where consolidated data from multiple locations (databases) are stored. Copyright © 2018, edureka and/or its affiliates. All rights reserved.

More Related