0% found this document useful (0 votes)
19 views18 pages

Sqe Phase 2

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

Sqe Phase 2

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

UNIVERSITY OF MANAGEMENT AND TECHNOLOGY

NAME: FAIZAN E MUHAMMAD


ID: S2018266056
SECTION: W1
SOFTWARE QUALITY ENGINEERING - PHASE 2

TOOL NAME: SELENIUM

DESCRIPTION:
Selenium is an open source umbrella testing
project for a variety of tools and libraries for
supporting web browser automation. It provides
tools for playback for authoring manual functional
tests without having the need to learn a test
scripting language.
WEBSITE: OLX.com

Description:
OLX.com is a Dutch-domiciled online market-
place with its consumer brand being
originated as OnLine eXchange. OLX is a
famous website in Pakistan to sale used and
new products. It now offers OLX motors and
OLX Mall as well.
 MANUAL TESTING.

 TEST CASES:
1- First download Selenium extension and then Open Selenium IDE
Chrome extension.

2- Select Create New project, name it. Here we name is as “olx”.


After that we are asked to enter the based url on which we are
supposed to do our testing, here we use www.olx.com.pk as our
base url.
*Test Case 1 Starts*
(Login)
3- Now we click on add new test button. And name it. We name it
“login”

4- Now we click on the recording button on the top right corner.


Our desired website opens. Now we perform our test steps. Our
first test is about login through mobile number, so we enter our
phone number and password then click login button.
5- When the test steps are completed then you close the opened
window and then click on the stop recording button. Once the
test is completed we click on the run / execute button and this
executes the test and gives us the result if test is success or not.

Her our case was a success.


 Test Case 2:
Our second case is for searching a product.
Now we start from the step of making new test case, for which we
click on the add new test button and then name our second test
which is search.

For this test, our steps are as following:


1- User clicks on record button.
2- Olx page opens,
3- We click on the Search bar
4- User enter search query (in our case “Honda City 2019”)
5- We click on search button, a page with search results appear.

6- We click on the stop recording button. Our test steps are saved
now we click on the run test button.

7- Our test is performed automatically, it is a success


 Test case 3
Our third test case is for adding to favorite
1- User clicks on new test case button; we name it “Add to fav”
2- We click record button. Olx page opens.
3- We open search the item and find the ad we want to save.
4- We click on the heart button to add the advertisement to our
favorites.

5- We click stop recording button. Test steps are saved, we click


execute button, our test is automatically performed. It is a
success.
 TEST SUITES:
 Suite 1
1- To make tests sites, we need to select test suites from the
dropdown menu from where we selected test cases, then
we need to click on the + button which means to create a
new test suite.

2- Now we name the suite as test suite 1.

3- Now we click on the 3 dots next to test suite case and select
the test cases we need to add in the test suites. We select
our test of login and search in it.
4- Once our tests have been added we only need to click on the
run / execute test button A series of tests consisting of our
added test case executes. And success report is shown.
 TEST SUITE 2:
1- For test suite 2 we repeat the initial steps of test suite 1 to
create a new test suite and add test cases. But this time we
add test cases of “Login” “Add to fav” and “chat”.

2- Now we again click on the execute button. This


automatically runs the test cases of “login” “Add to Fav” and
“Chat”.

It is a success .
 SCRIPT MODE
CASE: Going to OLX mall on Olx’s website and then browsing mobile
and tablets category.
For automation testing we must install other Libraries, dependencies and IDE
compilers.
SETUP:
1- For this we need to go to www.seleniumdev.com and download JAR
java files libraries and dependencies and Selenium standalone server
JAR file. Version 4.1.4
2- Now we need to install ECLIPSE compiler to script selenium in it.
3- Now we need to select JAVA as the default language for scripting
because we are using JAVA for selenium scripting.

STEPS:
1. Open eclipse IDE
2. Click -> File->New project->Java Empty Project -> Create.
3. Now create a JAVA class.
4- Now Import the downloaded JAR files and selenium server
JAR file in the project repositors by copying and pasting.
Now right click on project repositories pane and select the
batch up option and select the run together option

5- Write down the script of test case in code editor pane.


6- Click on run button or short command the selenium will
automate run the test.

Code runs successfully.

You might also like