0% found this document useful (0 votes)
34 views1 page

Selenium Assignments by Raghuveer

Books
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views1 page

Selenium Assignments by Raghuveer

Books
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Assignment Assignment Name Description/Steps WebSite URLs

Number
Assignment 1 Maven Project Creation 1. Create a Maven Project inside Eclipse https://mvnrepository.com/
2. Open maven repository website in any browser
3. Include "selenium java" and "TestNG" dependencies inside pom.xml
4. Notice/Observe the "Maven Dependencies" folder got created and jar files
are available as per the version.
Assignment 2 Push existing project to GitHub How to add existing project into GIT . https://github.com/signup?source=login
1. Create a repository in GIT with the name of your local project.
practise with git bash and eclipse 2. Open GIT bash and navigate to the folder where your local repository is saved
3. Navigate inside your repository name
4. git init (To initialize the git repository)
5. git add . (to add all the files to the index)
6. git add "file name" (to add each file individually)
7. git commit -m "commit message"
8. git branch -M main
9. git remote add origin "URL of the GIT repository" .
10. git push -u origin main
after this it will prompt to enter user name and password

Assignment 3 Launch any Ecommerce website 1.Use TestNg Annotations . https://www.flipkart.com/


like amazon, flipkart.etc) 2. Read the browser name from properties file https://www.amazon.in/
using any Browser 3. Create a method to launch the browser based on information provided in
properties file.
4. Validate the title of website using Hard Assertion.
Assignment 4 Use String Methods Launch the "gmopost" website : https://demo.borland.com/gmopost/
1.Validate "gmopost" title and click on "Enter Gmo OnLine" button
2.Enter Quantity for 1 or 2 Items/products and click on "Place An order"
3.Validate Place Order title
4.Calculate Total Price and Grand Total based on Quantity
Assignment 5 Handling Alerts Automate different types of Alerts : https://chercher.tech/practice/practice-pop-ups-selenium-webdriver
1.switch to the alert(s) https://demoqa.com/alerts
2.Ger Text out of alert using getText() and validate it.
https://demoqa.com/modal-dialogs
3.Use accept() , dismiss() and sendKeys(String) methods/functions when
ever they are necessary https://nxtgenaiacademy.com/alertandpopup/
Assignment 6 Handling frames Automate Web Elements present inside frames : https://chercher.tech/practice/frames-example-selenium-webdriver
1. Identify the frames present in given website using Frame number https://demoqa.com/frames
or ID/Name or Frame Web Element https://demoqa.com/nestedframes
2.Swith to Individual Frames and automate the Web Elements present https://www.hyrtutorials.com/p/frames-practice.html
inside frames
3. Come out of the Frame
Assignment 7 Page Object Model Frame Work Create a separate Pages for Various Web Sites that we are using : Do it for All Websites/Pages
1. Place the locators inside respective pages using By or @FindBy Annotation.
2. Try to create functions to interact with web elements available on that
particular page.
Assignment 8 Handling Mouse Operations Automate mouse Operations using Actions Class: https://demoqa.com/buttons
1. Automate Right Click Action https://the-internet.herokuapp.com/drag_and_drop
2. Automate Double Click Action https://tutorialshut.com/demo-website-for-selenium-automation-practice/
3. Automate Click Action http://swisnl.github.io/jQuery-contextMenu/demo.html
4. Automate Drag And Drop Operations https://api.jquery.com/dblclick/
https://jqueryui.com/droppable/
Assignment 9 Handling Windows Write code to handle different types windows : http://demo.guru99.com/popup.php
1.New Browser Window https://tutorialshut.com/demo-website-for-selenium-automation-practice/
2.New Message Window
https://nxtgenaiacademy.com/multiplewindows/
3.New Browser Tab
https://demoqa.com/browser-windows
Assignment 10 Handling Drop Downs Write a code to https://demoqa.com/automation-practice-form
1. Select Value from drop down. https://nxtgenaiacademy.com/demo-site/
2. Print All the drop down values https://tutorialshut.com/demo-website-for-selenium-automation-practice/
Assignment 11 Handling Web Table Write a code to handle Web Table: https://demo.guru99.com/test/web-table-element.php
1.Find Number Of Rows https://demo.guru99.com/test/write-xpath-table.html
2.Iterate through number of rows https://www.w3schools.com/html/html_tables.asp
3.find the necessary input that you are going take as input https://www.techlistic.com/p/demo-selenium-practice.html
4.Fetch the necessary column information based on the row https://testuserautomation.github.io/WebTable/
https://nxtgenaiacademy.com/webtable/
Assignment 12 Handling File Upload Write code to Perform File Upload Operation. http://demo.automationtesting.in/Register.html
https://blueimp.github.io/jQuery-File-Upload/
http://demo.guru99.com/test/upload/
Assignment 13 Handling File Download Write code to Perform File Download Operation https://chromedriver.storage.googleapis.com/index.html?path=79.0.3945.36/
https://file-examples.com/index.php/sample-documents-download/sample-doc-download./
Assignment 14 Data Driven Submit Form Please write code for Data Driven : https://nxtgenaiacademy.com/demo-site/
1.Read Test Data From Excel File https://demoqa.com/automation-practice-form
2.Use Hash Map to store and retrieve test data
3. prepare common functions
4. Write to Excel File
Assignment 15 API Testing using Postman Practise API calls using given websites using Postman tool
1. GET Call https://reqres.in/
2. POST Call
3. PUT Call https://gorest.co.in/
4. DELETE Call
Assignment 16 Rest Assured- API Automation Automate API calls using Rest Assured
1. GET Call
2. POST Call https://reqres.in/
3. PUT Call
4. DELETE Call https://gorest.co.in/
Assignment 17 TestNG Features Part1 Practise TestNg Features :
1. Order of Execution of TestNg Annotations
2. Assigning Priority to Test cases and execution order based on priority
3. Invocation Count , dependsOnMethods, Thread Pool Size
4. Hard and Soft Assertions
5. Parameterization via xml file
6. @Dataprovider and @Factory Annotations
Assignment 18 TestNG Features Part2 Practise TestNg Features :
7. Execution of Parallel Classes
8. Execution of Parallel Methods (Test cases)
9. Execution of Parallel Suite
10. Grouping Test Cases and executing them based on Group
11. Executing Test Cases, Test Classes and Test Suites from xml file
Assignment 19 Head Less Browser Execution Configure Remote Driver and execute the test cases in head less mode in HTML and
Chrome Browser https://www.toolsqa.com/selenium-webdriver/selenium-headless-browser-testing/
Assignment 20 Selenium Grid Con figure Slenium Grid in satandalone mode and execute the test cases in java -jar selenium-server-4.11.0.jar standalone
Selenium Grid https://www.selenium.dev/documentation/grid/components/
To open Jenkins : http://localhost:4444/ui
https://googlechromelabs.github.io/chrome-for-testing/#stable
Assignment 21 BDD Cucumber Create feature file, step definition and runner file and execute the test cases with
runner file
Assignment 22 Jenkins -> Download Jenkins war file and agent jar file https://www.jenkins.io/download/
-> Make project compatible with Jenkins execution. https://updates.jenkins.io/download/war/
-> Login to Jenkies with port 8080 and Configure a Node java -jar jenkins.war --enable-future-java --httpPort=8080
-> Build a pipe line (freeStyle project) and execute test cases in Jenkins http://localhost:8080/
Assignment 23 ->Install ChroPath plugin to the chrome browser
ChroPath exetension ->Use chropath extension to identify the web elements using xpath, tagName, CSS ..etc
Identify WebElements using xpath and practise the process of using chropath extension.

You might also like