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:
- E-learning
- User management
- CRM
- Travel Booking
- E-commerce
- Hotel Management
- 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
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:
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:
- Login
- Registration
- Search course or academy
- Academy Selection
- Course Selection
- Academy Enrollment
- Academy-based Payment
- Course Enrollment
- Course-based Payment
- 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:
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:
- Open http://demo.itlearn360.com
- Click on the Login button.
- Provide a valid username and password
- Click on the login button.
- Enter the course name in the search input box.
- Click on the Search button
- 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