STQA-Journal
STQA-Journal
ROLL NO: 18
PRACTICAL 1
AIM: - Install Selenium IDE and create a test suite containing a minimum of 4 test
cases for different web page formats (e.g., HTML, XML, JSON, etc.).
1
TY BSC CS
ROLL NO: 18
Now, create test cases for different web page formats like HTML, XML, JSON.
1. Test Case:
○ Click + next to Test Cases.
○ Name the test case (e.g., "test1").
○ Test cases to write in the selenium IDE
○ Write the below commands in selenium IDE
2
TY BSC CS
ROLL NO: 18
Open http://www.google.com
Click name=btnK
3
TY BSC CS
ROLL NO: 18
2. Test Case:
○ Click + next to Test Cases.
○ Name the test case (e.g., "test2").
○ Test cases to write in the selenium IDE
○ Write the below commands in selenium IDE
○ Run the test cases
Command Target Value
Open http://www.google.com
Click name=btnK
click partialLinkText=Wikipe
dia
4
TY BSC CS
ROLL NO: 18
3. Test Case:
○ Click + next to Test Cases.
○ Name the test case (e.g., "test3").
○ Test cases to write in the selenium IDE
○ Write the below commands in selenium IDE
○ Run the test cases
Command Target Value
Open https://www.google.com/
click name=btnK
click partialLinkText=python
click linkText=Downloads
click partialLinkText=Downlo
ad Python 3.12.7
5
TY BSC CS
ROLL NO: 18
4. Test Case:
○ Click + next to Test Cases.
○ Name the test case (e.g., "test4").
○ Test cases to write in the selenium IDE
○ Write the below commands in selenium IDE
○ Run the test cases
Command Target Value
Open https://
demo.guru99.com/test/
newtours/
click name=submit
6
TY BSC CS
ROLL NO: 18
PRACTICAL 2
AIM: - Conduct a test suite for two different websites using Selenium IDE. Perform
various actions like clicking links, filling forms, and verifying content
7
TY BSC CS
ROLL NO: 18
1.Test Case:
Open https://www.google.com/
click name=btnK
8
TY BSC CS
ROLL NO: 18
1.Test Case:
Open https://www.yahoo.com/
9
TY BSC CS
ROLL NO: 18
PRACTICAL 3
AIM: Install Selenium Server (Selenium RC) and demonstrate its usage by executing a
script in Java or PHP to automate browser actions.
STEPS:
Go to this website for download eclipse IDE:
https://eclipseide.org/
1. open eclipse
10
TY BSC CS
ROLL NO: 18
11
TY BSC CS
ROLL NO: 18
3. Click on install
4. Click on launch
5. Open eclipse idle and create new project
12
TY BSC CS
ROLL NO: 18
6. Click on finish
13
TY BSC CS
ROLL NO: 18
14
TY BSC CS
ROLL NO: 18
11. rename the filename as per the class name before debugging and
execute the code.
15
TY BSC CS
ROLL NO: 18
16
TY BSC CS
ROLL NO: 18
PRACTICAL 4
AIM: Write a program using Selenium WebDriver to automate the login process on a
specific web page. Verify successful login with appropriate assertions.
STEPS:
1. Open eclipse and select new java project and click finish.
2. Go to build path and in classpath add external jar files and click apply
and close.
17
TY BSC CS
ROLL NO: 18
3. add the code in the module java and refactor the file as loginpage.
4. Run the code and enter the admin and login password.
18
TY BSC CS
ROLL NO: 18
19
TY BSC CS
ROLL NO: 18
PRACTICAL 5
AIM: Write a program using Selenium WebDriver to update 10 student records
in an Excel file. Perform data manipulation and verification.
STEPS:
1. Open Eclipse select new java project entry name of the project.
2. Open src in that open module.java and copy L5 code from the
selenium folder and paste the code in the module.java file.
20
TY BSC CS
ROLL NO: 18
3. open build path in that open configure build path and add
External Jar file in class path.
4. go to build path and select Add libraries and in that select Junit
and click on Next and then Finish.
21
TY BSC CS
ROLL NO: 18
22
TY BSC CS
ROLL NO: 18
6. Click on Run.
23
TY BSC CS
ROLL NO: 18
PRACTICAL: 6
24
TY BSC CS
ROLL NO: 18
2. Open src in that open module.java and copy L6 code from the
selenium folder and paste the code in the module.java file.
25
TY BSC CS
ROLL NO: 18
3. open build path in that open configure build path and add
External Jar file in class path.
4. go to build path and select Add libraries and in that select Junit
and click on Next and then Finish.
26
TY BSC CS
ROLL NO: 18
27
TY BSC CS
ROLL NO: 18
6. Click on Run.
PRACTICAL 7
AIM: Write a program using Selenium WebDriver to provide the total number of
objects present or available on a web page. Perform object
identification and counting.
STEPS:
28
TY BSC CS
ROLL NO: 18
1. Open Eclipse and create new java project and click finish.
2. go to build path and in that click on class path and add external jar file.
29
TY BSC CS
ROLL NO: 18
3. Write the code in the module.java and refactor it and write class name of
the code i.e., nlinks.
30
TY BSC CS
ROLL NO: 18
PRACTICAL NO: 8
AIM: Write a program using Selenium WebDriver to get the number of items in a list
or combo box on a web page. Perform element identification and counting.
STEPS:
1. Create new Java project.
31
TY BSC CS
ROLL NO: 18
2. Write Code in the Module.java and Refactor it has the class name given
i.e ListCount
32
TY BSC CS
ROLL NO: 18
4. In Configuration Click Classpath and Add External Jar Files Required for
the Program.
5. Now Run the code and you will get the final output as follow:
33