|

Selenium Training E-learning Project Tutorial – Part 1

Whenever we join Automation Selenium testing training. We always have questions in our minds, such as:
1. Will they cover live projects or not?

2. What types of projects will they cover in training?

If you are a beginner in Automation Selenium Testing, then you can start with easy-to-understand projects:

  1. E-learning
  2. User management
  3. CRM
  4. Travel Booking
  5. E-commerce
  6. Hotel Management
  7. Library Management and so on.

The above projects are easy to understand because the functionalities of these projects are ones that we perform in day-to-day life, like

keepersecurity.com
keepersecurity.com

1. We book reservations for travel.

2. We buy something online.

3. We book hotels whenever we travel to new places etc.

E-learning Project – ITlearn360

In considering the process, we are going to discuss our first project, an e-learning web application. Let us assume that your Team lead has asked you to test the functionality of a candidate.  Before moving further, let’s see the overall functionality flow of itlearn360 for students. There are 2 different flows:

GotPrint
GotPrint

 The Flow

Flow 1

Flow 2

Modularize Functionality

We will select the second flow because it is easy to understand and easy to implement the testing script. The first flow will be your homework. 😀

In order to evaluate the overall functionality of the student, we will divide the whole functionality into the following easy modules:

  1. Login
  2. Registration
  3. Search course or academy
  4. Academy Selection
  5. Course Selection
  6. Academy Enrollment
  7. Academy-based Payment
  8. Course Enrollment
  9. Course-based Payment
  10. and last is the Access course.

In this tutorial, we will test the login process for a student, and search the course. If you are new to Selenium WebDriver, then we recommend reading how to start with Selenium WebDriver. To access the tutorial, please click on the following link:

Edureka - Month End Offer-Flat 30% OFF ON Live Course
Edureka - Month End Offer-Flat 30% OFF ON Live Course

First Selenium WebDriver Test case – Selenium WebDriver Testing Free Training

Actions Tasks

Problem Statement

Consider a scenario where a candidate login to the itlearn360 portal, and searches for the course.

Now we need to write a test script to test this scenario. We need to perform the following tasks in the following order:

  1. Open http://demo.itlearn360.com
  2. Click on the Login button.
  3. Provide a valid username and password
  4. Click on the login button.
  5. Enter the course name in the search input box.
  6. Click on the Search button
  7. Close the browser.

Test Script

package testing.org;

import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.chrome.ChromeDriver;

public class LoginPage {
    public static void main(String[] args) throws InterruptedException {
        System.setProperty("webdriver.chrome.driver", "C:\\Users\\Jayant\\Pictures\\qatraininimages\\chromedriver_win32\\chromedriver.exe");
        ChromeDriver browserObject = new ChromeDriver();
        browserObject.get("http://demo.itlearn360.com/");
        browserObject.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
        browserObject.manage().window().maximize();
        browserObject.findElement(By.id("loginlabel")).click();
        browserObject.findElement(By.name("log")).sendKeys("yourusername");
        browserObject.findElement(By.id("user_pass")).sendKeys("yourpassword");
        browserObject.findElement(By.id("wp-submit")).click();

// Search Courses 
        browserObject.findElement(By.name("search_course")).sendKeys("Automation with Selenium WebDriver ");
        browserObject.findElement(By.xpath("//*[@id=\"primary_menu\"]/nav[1]/form/button")).click();
        Thread.sleep(6000);
// close driver 		
        browserObject.close();
    }
}

Instructor-led Training

Important note: we like to tell you that free tutorials are useful to get started but if you are interested in the best online LIVE Master of Automation Testing training program from the experts, please refer to the following link:

For Instructor-led training

Master of Functional Automation Testing

For Self-Driven training

Automation with Selenium WebDriver (Java)

 

Related Tutorials

Selenium Training E-learning Project Tutorial – Part 2

Similar Posts