Automated testing of Label hub (under development application of Giga Tech Limited) functionality using Selenium in Java environment. Tests contain,
- Login Log out tests
- User creation tests with different roles
- Project creation tests
- Log in as Annotator tests and tests for annotator functionality
- Log in as validator tests and test for validator functionality
- Dashboard functionality tests
- Data page functionality test
To set up selenium and run these tests, follow the steps given below.
Setup Steps:
-
Download and Install Eclipse from https://www.eclipse.org/downloads/
-
To install Selenium, a. Go to the website of selenium from: https://www.selenium.dev/downloads/ b. Scroll down and look for previous releases c. Select version 3.141.59 d. Download Selenium-java-3.141.59.zip and extract it.
-
To install the Chrome driver, first check the current Chrome browser version from Chrome settings > About Chrome
-
After that, go to https://chromedriver.chromium.org/downloads website and download the driver version that matches the chrome browser version.
-
After these steps, open Eclipse and create a Java project.
-
Click Right click on the project file and select the properties
-
Now, select the libraries tab. On the right side of the tab, there is an option to Add
External JARs -
Select External JARs and import all the jar files that previously got extracted in step (2.d)
-
Select Appy and close. Now, selenium will run in eclipse.
If the JAR files are included yet showing errors,
- Right-click on the project and Select Properties
- Go to Java Compiler. Under JDK compliance, select compiler compliance level ‘Java SE-1.8’
- Select Apply and Close. This should fix the previous error.