KIIT Deemed University provides a SAP Portal to its students for all the academics and college related stuffs.
Some facilities available in the SAP are :
- Student Attendance Details
- Fees Details
- Demand Letter
- Subject and Exam bookings
- Grade Reports
- Material/Resources
I recently came across Selenium. Selenium is an open-source tool that automates web browsers. I wanted to try that out. So this project was meant for practice only.
- Download the project. The project is inside the SAP Automation directory.
- Download the Drivers & Jars directory.
- Add all the JARs to the Build Path Configuartion.
- Give the path of Geckodriver in Action.java file line number 22.
- Save the file.
- Run Launcher.java
In this project, Java EE, Firefox and Selenium have been used along with Eclipse and Geckodriver.
- In the beginning, a window pops up asking for the user's roll number and password to login.
- When the Submit button is clicked, a new folder "SAP Extract" is created (if not exists) at the desktop.
- Mozilla Firefox opens up and navigates to SAP Portal.
- It then tries to log in. If the credentials are incorrect, "Invalid Credentials" will get printed in the window.
- Else, it will make a folder inside SAP Extract named by the roll name.
- It will then perform the following operations :
- Make a Downloads folder inside the roll number directory. This folder is used when something is downloaded. The files are renamed and moved to their respective directories.
- Fetch and extract the user's attendance details and place it in a folder called "Attendance Details". There will be an Excel sheet each for the semesters.
- Fetch and extract the user's information and place it in a folder called "Sudent Details". The details will be stored in a text file.
- Download the Demand letter and store it in a folder called "Demand Letter".
- Download the grade reports and store it in a folder called "Grade Report". The files will be in PDF formats and named according to the semester.
- At the end, the Downloads folder is deleted.
- The status of each of this functionality (worked succesfully or failed) gets printed in the window displayed.
This project is not meant for any monetized activites. Its for learning purposes only. Feel free to use the code if needed for academic benefits only.
The code was developed in September 2021. There maybe some changes in the portal after the development due to which the program may not work .