This is a suite of automated tests which aims different technical functionalities of Babeș-Bolyai University student platform Academic Info.
This automation project was created to practice personal automation skills and to check basic technical aspects of Academic Info, one of the most used websites by me, as a student of BBU Cluj.
-
JavaScript as programming language
-
Node.js as runtime environment
-
WebdriverIO as automation framework for web applications
-
Google Chrome as test browser, with chromedriver
- The first time I created a remote repository on GitHub, then a local repository on my computer.
- In the project's local folder, I installed the WebdriverIO automatic testing framework from the Command Terminal, by executing the command: "npm init wdio .".
- Before the final installation of the drivers required for automated testing, I had to configure WebdriverIO by choosing certain options in the form in Terminal: selecting the base URL, using Google Chrome with chromedriver, setting the specific location where the files are located of the JavaScript test code ("./test/specs/**/*.js"), changing the command to run the test in the configuration file to "npm test".
- After I have finished installing the necessary files, I open a JS code file in the "test/specs" folder and add the unitary organized test suite with proper names for all the tests in it, following the documentation of the WebdriverIO framework.
- The automated test suite is executed by running the "npm test" command in the Command Terminal.
As support, I used the website https://academicinfo.ubbcluj.ro/Info/ for these automation test.
This project was thought as a way to:
- check if certain functions of the site can be automated,
- if it respects a Positive Flow for a normal user / student,
- to check certain static details (buttons, titles, text, etc.).
There are 2 versions of the test execution presented below in 2 short videos.
- The first version verifies that all the tests are working properly, with no coding errors. 👇
Test1_passed.mp4
- The second version contains a test that verifies the existence of Copyright for the current year (2022). It is observed in the video that the test fails for this reason, the Copyright of the web platform not being updated, which is a bug. 👇