Beruflich Dokumente
Kultur Dokumente
Development of a Test Suite and Test Script to validate Facebook Login page.
After the completion of this project, the student will be able to: -
4. ASSESSMENT SCHEME:
A PROJECT REPORT
on
Submitted by
R.ABINEHA (310117104001)
J.AISHWARIYA (310117104002)
of
SIXTH SEMESTER
in
COMPUTER SCIENCE AND ENGINEERING
Guided by
Certified that this project report “DEVELOPMENT OF A TEST SUITE AND TEST SCRIPT TO
VALIDATE FACEBOOK LOGIN PAGE” is the bonafide work of R.ABINEHA (310117104001) and
J.AISHWARIYA (310117104002) of Sixth Semester of B.E Computer Science and Engineering who
carried out the project work under my supervision during the course “SOFTWARE TESTING /
IT8076”.
SIGNATURE SIGNATURE
Kazhipattur, Chennai-603103
Date: 11-03-2020
ABSTRACT
A test suite is a collection of tests. Often one will run all the tests in a test suite as one
continuous batch-job. When using Selenium-IDE, test suites also can be defined using a
simple HTML file. The syntax again is simple. An HTML table defines a list of tests where
each row defines the filesystem path to each test. This project involves in the development
of a test suite containing minimum 4 test cases using Selenium IDE. And also a simple test
script is developed to validate each field of the registration page ( Eg: Face book Registration
Page) in order to reveal the understanding of Test automation.
1. INTRODUCTION
Actions are commands that generally manipulate the state of the application.
2. Selecting items
b. Accessors: Accessors examine the state of the application and store the
results in variables, e.g. "storeTitle".
• assert
• verify
• waitFor
These are probably the most commonly used commands for building test.
When Selenium-IDE is first opened, the record button is ON by default. During recording,
Selenium-IDE will automatically insert commands into your test case based on your
actions.
a. Remember Base URL MODE - Using Base URL to Run Test Cases in
Different Domains
b. Record Absolute recording mode – Run Test Cases in Particular
Domain.
Running Test Cases
Click the Run button to run the currently displayed test case. Run a Test Suite Click
the Run All button to run all the test cases in the currently loaded test suite.
The Pause button can be used to stop the test case while it is running. The icon of this
button then changes to indicate the Resume button. To continue click Resume.
We can set a breakpoint in the test case to cause it to stop on a particular command.
This is useful for debugging your test case. To set a breakpoint, select a command,
right-click, and from the context menu select Toggle Breakpoint.
we can tell the IDE to begin running from a specific command in the middle of the test
case. This also is used for debugging. To set a start point, select a command, right-
click, and from the context menu select Set/Clear Start Point.
Double-click any single command to run it by itself. This is useful when writing a
single command. It let us immediately test a command you are constructing, when you
are not sure if it is correct. we can double-click it to see if it runs correctly. This is also
Test Suite: A test suite is a collection of tests. Often one will run all the tests in a test
suite as one continuous batch-job. When using Selenium-IDE, test suites also can be
defined using a simple HTML file. The syntax again is simple. An HTML table defines
a list of tests where each row defines the filesystem path to each test.
2. REQUIREMENTS
• Google Chrome
<head>
<script type="text/javascript">
var n1,n2,r;
function add()
n1=document.myform.n1.value;
n2=document.myform.n2.value;
n1=parseFloat(n1);
n2=parseFloat(n2);
r=n1+n2;
document.myform.result.value=r;
function sub()
n1=document.myform.n1.value;
n2=document.myform.n2.value;
n1=parseFloat(n1);
n2=parseFloat(n2);
r=n1-n2;
document.myform.result.value=r;
function mul()
{
n1=document.myform.n1.value;
n2=document.myform.n2.value;
n1=parseFloat(n1);
n2=parseFloat(n2);
r=n1*n2;
document.myform.result.value=r;
function divide()
{
n1=document.myform.n1.value;
n2=document.myform.n2.value;
n1=parseFloat(n1);
n2=parseFloat(n2);
r=n1/n2;
document.myform.result.value=r;
</script>
</head>
<body>
<form name="myform">
</center>
</font>
</form>
</body>
</html>
Test case 1 Command Target Value
1 open /st/arithmetic.html
2 set window size 1050x708
3 click name =n1
4 type name=n1 4
5 click name =n2
6 type name=n2 2
7 click css=input:nth-child(10)
8 store value name=result sum
9 echo ‘Addition result is ${sum}’
10 close
OUTPUT:
4. Development of a test script to validate each field of the Face book
Registration Page
Procedure:-
• Type the html code in eclipse and save as registration.html
• Open Chrome browser→selenium IDE
• Enter project name and url of the arithmetic.html
• Click on Start recording →minimize the selenium window
• Run the Registration program and giving values in each text box press
submit button.
• Execution will be recorded in the Selinium IDE
• Click on the RUN TEST button in order to run the test suite.
<html>
<body>
<form tag="Create Logon">
<div align="center">
Username *: <input type="username"
name="username" /><br />
Password *: <input type="password" name="pwd"
/><br />
Surname *: <input type="surname" name="surname"
/><br />
Other Names *: <input type="other names"
name="names" /><br />
Date of Birth *: <input type="date of birth"
name="dob" /><br />
Email *: <input type="email" name="email" /><br />
Telephone: <input type="telephone" name="tel"
/><br />
Address *: <input type="address" name="add" /><br
/>
Post Code *: <input
type="postcode" name="ptc" /><br />
<input type="submit" value="Submit"
/> </div>
</form>
<p>Note: Please make sure your details are correct before submitting
form and that all fields marked with * are completed!.</p>
</body>
</html> TESTING LAB MANUAL
5. CONCLUSION
This project involves in the development of a test suite containing minimum 4
test cases using Selenium IDE. And also, a simple test script was developed to
validate each field of the Face book Registration Page in order to reveal the
understanding of Test automation. This will surely help us to work as a team to
solve any problem and make use of testing tools to test the project.