ST Lab PDF
ST Lab PDF
Using Selenium IDE, write a test suite containing minimum 4 test cases
<html>
<head>
<title> Arithmatic Operation </title>
<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">
<h1 align="center"> Arithmatic Operations</h1>
<hr color="red">
<center><u>Enter a number in each text box </u><br><br>
Number 1:<input type="text" name="n1" value=""> <br><br>
Number 2:<input type="text" name="n2" value=""> <br><br>
<input type="button" value="Add" onClick="add()">
<input type="button" value="Subtract" onClick="sub()">
<input type="button" value="Multiply" onClick="mul()" >
<input type="button" value="Divide" onClick="divide()"><br><br>
<input type="reset"value="reset"><br>
<font color="red">Result is:
<input type="text" name="result" value=""></center></font>
</form>
</body>
</html>
Procedure –
1. Open the Firefox Browser
2. Click on File -> Open File
3. Locate the file to be tested. [For our example myform.html is selected]
4. Click on the Tools in the Firefox Browser, select and click on Selenium IDE
5. Selenium IDE window appears on the screen
6. For the purpose of TEST SUITE – we have used HTML file “myForm.html” which
performs basic mathematical operations – addition, subtraction, multiplication and
division. Each operation here acts as a test case. There are two textboxes where user can
input values to perform mathematical operations.
7. Selenium will be in default Record mode whenever opened first time.
2. In Eclipse IDE need to create a new Java Project. Name the Java Project say – Labthree.
In Eclipse we can see “src” folder and “JRE System Library”. Since we need to write
Java Code where Selenium has to be recognised we need to include server and client
JAR file.
Procedure to include JAR file –
Right click on the Java Project created, select Build path. In that select Configure
Build Path. New window gets opened where we can see different tabs – Source,
Projects, Libraries, Order and Export. Select Tab “Libraries”. We can see only
JRE System Library.
Select Button “Add External JARs”. Browse and select Selenium Server Jar file
we can see a new entry along with JRE System Library.
Select Button “Add External JARs” again, browse and select selenium Java driver
Jar file.
We can see both Selenium server and Java driver JAR file.
3. Need to write script code in Java. In Eclipse IDE under “src” folder, right click and select
class – Give name to class say Google. In Eclipse we can see a new Google.java file
opened. Write below code –
import junit.framework.*;
import com.thoughtworks.selenium.DefaultSelenium;
selenium=new
DefaultSelenium("localhost",4444,"*iexplore","http://hexbytes.com");
selenium.start();
selenium.open("/");
selenium.click("css=input[type='submit'][value='Search']");
selenium.waitForPageToLoad("30000");
Assert.assertTrue(selenium.isTextPresent("selenium rc"));
}
}
(OR)
import com.thoughtworks.selenium.DefaultSelenium ;
public class Google {
public static void main(String[] args)
{
String sServerHost = "localhost" ;
int iServerport = 4444 ;
String sBrowserType = "*iexplore" ;
String sBaseUrl = "http://in.yahoo.com/?p=us" ;
// create new selenium server object
DefaultSelenium oDefaultSel = new DefaultSelenium(sServerHost,iServerport,
sBrowserType, sBaseUrl );
oDefaultSel.start() ;
oDefaultSel.windowMaximize();
oDefaultSel.setSpeed("3000") ;
oDefaultSel.open("/" ) ;
oDefaultSel.type("id=p_13838465-p", "selenium rc");
oDefaultSel.click("id=search-submit");
oDefaultSel.waitForPageToLoad("5000") ;
try {
Thread.sleep(3000) ;
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
oDefaultSel.stop() ;
System.out.println("Opened yahoo website") ;
}
}
4. In case we don’t add External JARs then selenium will not be recognized. This can be
checked once by removing external JARs.
5. Script code is ready, now need to start server. Go to command prompt; in command
prompt go to the folder where server JAR resides. In our case server is in
D: /Seleniumserver/ Go to that particular path and then start server by executing below
command
Java –jar selenium-server-standalone-2.28.0.jar 4444
Here 4444 refers to the port number where server listens to client request
6. In Eclipse IDE run the source code. We can see Mozilla Firefox getting opened and
displays yahoo page. Later in search box “selenium rc” gets displayed. Then a new page
gets loaded based on search element.
About :Selenium Remote Control (RC) is a test tool that allows writing automated web
application UI tests in any programming language against any HTTP website using any
mainstream JavaScript-enabled browser.
1. A server which automatically launches and kills browsers, and acts as a HTTP proxy for
web requests from them.
2. Client libraries for favorite computer language.
Here is a simplified architectural representation....
Selenium Remote Control is great for testing complex AJAX-based web user interfaces under a
Continuous Integration system.
Acharya
Command Target
open http://acharyaexports.com/
clickAndWait name=Image22
clickAndWait name=Image20
click [email protected]
Yahoo
http://in.yahoo.com/
Command Target
open /?p=us
assertTitle Yahoo! India
click //div[@id='u_2588582-y']/div/button
clickAndWait css=#pa-u_93109-bd > a > span.vital.small
clickAndWait css=a[title="Mutual Funds"] > span
clickAndWait link=BSE Sensex
Procedure –
1. Open the Firefox Browser
2. Type the following URL “http://acharyaexports.com/” in url edit box
3. Click on the Tools in the Firefox Browser, select and click on Selenium IDE
4. Selenium IDE window appears on the screen
5. Selenium will be in default Record mode whenever opened first time.
Actual value and expected value are compared to conclude that web page is functioning
as per the expectation.
5. Write and test a program to login a specific web page
1. In Eclipse IDE need to create a new Java Project. Name the Java Project say – Labfive.
In Eclipse we can see “src” folder and “JRE System Library”. Since we need to write
Java Code where Selenium has to be recognised we need to include server and client JAR
file.
Procedure to include JAR file –
Right click on the Java Project created, select Build path. In that select Configure
Build Path. New window gets opened where we can see different tabs – Source,
Projects, Libraries, Order and Export. Select Tab “Libraries”. We can see only
JRE System Library.
Select Button “Add External JARs”. Browse and select Selenium Server Jar file
we can see a new entry along with JRE System Library.
Select Button “Add External JARs” again, browse and select selenium Java driver
Jar file.
We can see both Selenium server and Java driver JAR file.
2. Need to write script code in Java. In Eclipse IDE under “src” folder, right click and select
class – Give name to class say Google. In Eclipse we can see a new Google.java file
opened. Write below code –
import com.thoughtworks.selenium.*;
public class Mail extends SeleneseTestCase {
public void setUp() throws Exception {
setUp("http://php.thedemosite.co.uk/","*iexplore");
}
public void testloginlogout(){
selenium.setSpeed("2000");
selenium.open("/login.php");
selenium.windowMaximize();
selenium.type("//input[@name='username']", "mytest");
selenium.type("//input[@name='password']", "mytest");
selenium.click("//input[@type='button']");
selenium.waitForPageToLoad("50000");
}
}
3. In case we don’t add External JARs then selenium will not be recognized. This can be
checked once by removing external JARs.
4. Script code is ready, now need to start server. Go to command prompt; in command
prompt go to the folder where server JAR resides. In our case server is in
D: /Seleniumserver/ Go to that particular path and then start server by executing below
command
Java –jar selenium-server-standalone-2.28.0.jar 4444
Here 4444 refers to the port number where server listens to client request
5. In Eclipse IDE run the source code. We can see Mozilla Firefox getting opened and
displays “http://php.thedemosite.co.uk/” page. Slowly in login page username and
password will be entered, if login and password are correct then user can view successful
login.
6. Write and test a program to get the number of list items in a list / combo box
1. In Eclipse IDE need to create a new Java Project. Name the Java Project say –
Labsix. In Eclipse we can see “src” folder and “JRE System Library”. Since we need
to write Java code where Selenium has to be recognised we need to include server
and client JAR file.
Procedure to include JAR file –
Right click on the Java Project created, select Build path. In that select Configure
Build Path. New window gets opened where we can see different tabs – Source,
Projects, Libraries, Order and Export. Select Tab “Libraries”. We can see only
JRE System Library.
Select Button “Add External JARs”. Browse and select Selenium Server Jar file
we can see a new entry along with JRE System Library.
Select Button “Add External JARs” again, browse and select selenium Java driver
Jar file.
We can see both Selenium server and Java driver JAR file.
2. We need to create an html file “Combocount.html” which will have a combo box and
write java program to read that html file to get the number of items present in the
combobox. Below is HTML code –
<html>
<body>
<select>
<option>Volvo</option>
<option>Express</option>
<option>Mercedes</option>
<option>RajaHamsa</option>
</select>
</body>
</html>
3. Need to write script code in Java. In Eclipse IDE under “src” folder, right click and select
class – Give name to class say ListItmCnt. In Eclipse we can see a new ListItmCnt.java
file opened. Write below code –
import com.thoughtworks.selenium.DefaultSelenium ;
}
4. Script code is ready, now need to start server. Go to command prompt; in command
prompt go to the folder where server JAR resides. In our case server is in
D: /Seleniumserver/ Go to that particular path and then start server by executing below
command
Java –jar selenium-server-standalone-2.28.0.jar 4444
Here 4444 refers to the port number where server listens to client request
5. In Eclipse IDE run the source code. We can see Mozilla Firefox getting opened and
displays “Combocount” HTML page. The number of “P” tags used in that webpage will
be displayed in Eclipse console window.
7. Write and test a program to count number of items present on a desktop
1. To get the number of items present on the desktop VB Script code has to be written.
Below is the code –
import java.io.*;
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
Runtime.getRuntime().exec("wscript C:/Selenium/count.vbs");
} catch (IOException e) {
System.exit(0);
}
}
}
4. Script code is ready. Need to execute code, on execution VB Script “count.vbs” gets
executed and the number of files and folders present on the desktop gets displayed as
window on eclipse IDE.
8. Write and test a program to update 10 student records into table into Excel
file
For this program we need to interact with Microsoft excel and hence jxl.jar file should be
downloaded from the net. After downloading jxl jar file. It should be included as a
external jar file in Eclipse IDE.
1. In Eclipse IDE need to create a new Java Project. Name the Java Project say – LabSix. In
Eclipse we can see “src” folder and “JRE System Library”.
Right click on the Java Project created, select Build path. In that select Configure
Build Path. New window gets opened where we can see different tabs – Source, Projects,
Libraries, Order and Export. Select Tab “Libraries”. We can see only JRE System
Library.
Select Button “Add External JARs”. Browse and select Jxl Jar file we can see a
new entry along with JRE System Library.
2. Need to create an excel file which acts as an input file for modification. Create an excel
file “STUD.xls” in C: folder under directory Selenium. Following data should be entered
in the excel file. There should be 10 rows in the file.
3. Need to write script code in Java. In Eclipse IDE under “src” folder, right click and select
class – Give name to class say sixth. In Eclipse we can see a new sixth.java file opened.
Write below code –
import java.io.*;
import jxl.Sheet;
import jxl.Workbook;
import jxl.read.biff.BiffException;
import jxl.write.*;
public class Lovely {
iNoOfRows = s.getRows() ;
iNoOfCols = s.getColumns() ;
}
for (int i = 1; i < iNoOfRows; i++) {
for (int j = 2; j < iNoOfCols; j++)
{
a[i][j] = s.getCell(j, i).getContents();
int x = Integer.parseInt(a[i][j]);
if(x > 35)
{
Label l1 = new Label(6, i, "pass");
ws.addCell(l1);
}
else
{
Label l1 = new Label(6, i, "fail");
ws.addCell(l1);
break;
}
}
}
wwb.write();
wwb.close();
}
}
1. Script code is ready; Program will read the input file and create a new output file
“Result.xls” to which the input file data are copied. New Column “result” is created.
Each student’s marks are checked, based on the marks scored result status “pass/fail” is
updated under result column.
2. In Eclipse IDE run the source code. We can see a file “Result” generated under C drive
inside folder Selenium.
Input file to be read –
1. In Eclipse IDE need to create a new Java Project. Name the Java Project say – LabSix. In
Eclipse we can see “src” folder and “JRE System Library”.
Right click on the Java Project created, select Build path. In that select Configure
Build Path. New window gets opened where we can see different tabs – Source, Projects,
Libraries, Order and Export. Select Tab “Libraries”. We can see only JRE System
Library.
Select Button “Add External JARs”. Browse and select Jxl Jar file we can see a
new entry along with JRE System Library.
2. Need to create an excel file which acts as an input file for modification. Create an excel
file “STUD.xls” in C: folder under directory Selenium. Following data should be entered
in the excel file. There should be 10 rows in the file.
3. Need to write script code in Java. In Eclipse IDE under “src” folder, right click and select
class – Give name to class say sixth. In Eclipse we can see a new sixth.java file opened.
Write below code –
import java.io.*;
import jxl.Sheet;
import jxl.Workbook;
import jxl.read.biff.BiffException;
import jxl.write.*;
public class Lovely {
iNoOfRows = s.getRows() ;
iNoOfCols = s.getColumns() ;
}
for (int i = 1; i < iNoOfRows; i++) {
for (int j = 2; j < iNoOfCols; j++)
{
a[i][j] = s.getCell(j, i).getContents();
int x = Integer.parseInt(a[i][j]);
if(x > 60)
{
Label l1 = new Label(6,i, "above 60");
ws.addCell(l1);
}
}
}
wwb.write();
wwb.close();
}
}
1. Script code is ready; Program will read the input file and create a new output file
“Result.xls” to which the input file data are copied. New Column “result” is created.
Each student’s marks are checked, based on the marks scored result status “above 60” is
updated under result column.
2. In Eclipse IDE run the source code. We can see a file “Result” generated under C drive
inside folder Selenium.
Output file
Make the 10 student record
10. Understanding Test Automation, Using selenium writ test script to validate each field of
registration page (Eg. Gmail/Yahoomail).
Procedure –
6. Copy URL from the Firefox URL and paste it in the base url edit box of Selenium IDE
7. Go to Create Account link & enter your personal details.
8. For every operation performed on the website there will be a command inserted in the
Selenium IDE.
9. Once recording is done, Record button should be stopped
10. Test case should be saved as registration.html.
11. Close all the tabs, reopen Mozilla browser , select tools, Selenium IDE. Open the saved test case
registration.html and click on play button on Selenium IDE.
11. Write and test a program to find out list of employees having salary
greater than Rs 50000 and age between 30 to 40 years.
For this program we need to interact with Microsoft excel and hence jxl.jar file
should be downloaded from the net. After downloading jxl jar file. It should be
included as a external jar file in Eclipse IDE.
1. In Eclipse IDE need to create a new Java Project. Name the Java Project say –
Labeleven. In Eclipse we can see “src” folder and “JRE System Library”.
Right click on the Java Project created, select Build path. In that select
Configure Build Path. New window gets opened where we can see different
tabs – Source, Projects, Libraries, Order and Export. Select Tab “Libraries”. We
can see only JRE System Library.
Select Button “Add External JARs”. Browse and select Jxl Jar file we
can see a new entry along with JRE System Library.
2. Need to create an excel file which acts as an input file for modification. Create
an excel file “employee.xls” in C: folder under directory Selenium. Following
data should be entered in the excel file. There should be 10 rows in the file.
3. Need to write script code in Java. In Eclipse IDE under “src” folder, right click
and select class – Give name to class say eleven. In Eclipse we can see a new
eleven.java file opened. Write below code –
4. Script code is ready; Program will read the input file and create a new output
file “Result.xls” to which the input file data are copied. New Column “result”
is created. Each employee age and salary are checked, based on the comparison
status “Matched/Not Matched” is updated under result column.
5. In Eclipse IDE run the source code. We can see a file “Result” generated under
C drive inside folder Selenium.
import java.io.*;
import jxl.Sheet;
import jxl.Workbook;
import jxl.read.biff.BiffException;
import jxl.write.*;
public class Shah {
1. In Eclipse IDE need to create a new Java Project. Name the Java Project say – LabEight.
In Eclipse we can see “src” folder and “JRE System Library”. Since we need to write
Java Code where Selenium has to be recognised we need to include server and client
JAR file.
Procedure to include JAR file –
Right click on the Java Project created, select Build path. In that select Configure
Build Path. New window gets opened where we can see different tabs – Source,
Projects, Libraries, Order and Export. Select Tab “Libraries”. We can see only
JRE System Library.
Select Button “Add External JARs”. Browse and select Selenium Server Jar file
we can see a new entry along with JRE System Library.
Select Button “Add External JARs” again, browse and select selenium Java driver
Jar file.
We can see both Selenium server and Java driver JAR file.
2. Need to write script code in Java. In Eclipse IDE under “src” folder, right click and select
class – Give name to class say ObjCnt. In Eclipse we can see a new ObjCnt.java file
opened. Write below code –
import com.thoughtworks.selenium.*;
sel.windowMaximize();
sel.setSpeed("1000");
sel.open("/") ;
sel.waitForPageToLoad("3000");
3. Script code is ready, now need to start server. Go to command prompt; in command
prompt go to the folder where server JAR resides. In our case server is in
D: /Seleniumserver/ Go to that particular path and then start server by executing below
command
Java –jar selenium-server-standalone-2.28.0.jar 4444
Here 4444 refers to the port number where server listens to client request
4. In Eclipse IDE run the source code. We can see Mozilla Firefox getting opened and
displays “Rediffmail” page. The number of “P” tags used in that webpage will be
displayed in Eclipse console window.
Output –
In software development process, getting and tracking bug, defect and error
is a very common process and then documenting those bugs with a proper
description in the word document is a general practice. What would happen
if the document is erased or data got corrupted? So, in order to get rid of all
this unwanted and unavoidable condition we use bug tracking tools for
tracking the bugs, defects and error found during the software development
process. Now a day there are many bug tracking tools are available in the
market like- Axosoft, Jira, Planio and much more. Maximum of the bug
trackers are available in paid versions and very few are free. Among all
these bug trackers, bug tracker Bugzilla, one of the tool which is absolutely
free and very user – friendly.
Bugzilla is a web-based general bug tracker and testing tool. It is a server
software which is designed to help in managing the software development
process. It was released as an open-source software by Netscape
Communications in 1998. Bugzilla is used as a bug tracking system for both
free and open-source software and proprietary projects and products.
Bugzilla is used among others, by Mozilla Foundation, Linux kernel, GNOME,
KDE, Apache, Redhat, FreeBSD, Eclipse, WebKit, and LibreOffice. Topics
covered in this Bugzilla Tutorial Series:
Features of Bugzilla
Bugzilla has many features for both User and Administrator. Bugzilla
features for users
Other than all these there are many other features of Bugzilla from the user
perspective.
1. Login/Registration
For Log in: The user just needs to enter the registered Email Address
and the Password and click on the Log in button. The user will be
directed to the Bugzilla- main Page.
For creating the new account, Click on New Account & Enter a valid
Email Address.
The user will receive an email to the entered email address and user
needs to click on the registration link for proceeding further for
registration.
After clicking on the registration link in the email, the user will be
directed to the registration page, where need to fill the Real Name,
Password and Confirm Password. After that user needs to click on
Create button.
Bugzilla also provides an option to cancel the account by providing a
Cancel button at the bottom left of the screen.
After successful registration is done, the user will be redirected to the
Bugzilla- Main Page. The user can view the logged in user name in the
Main Page.
For creating a new bug in Bugzilla, a user needs to click on the New
tab in the Main Page. The user can also report a bug from the File a
Bug option.
After that user needs to select the specific product category from the
listing for which the bug is to be created or reported. The product is to
be added by the administrator.
After selecting the desired category, the user will be redirected to the
bug reporting page which is referred as Bugzilla- Enter Bug Page. If
notice at the page label, then it can be seen that the product name is
also added, which signifies that the bug is reported for that specific
product.
In Bugzilla, enter Bug Page, the user can view the following bugs during
reporting bugs:
After entering all the details click on Submit Bug button. The bug will
get added to that project.
The fields marked with red asterisks (*) are the mandatory fields.All
the above-mentioned field may vary based on the customization done
on Bugzilla.
After the bug is created, a random Id (for example 44877 ) is assigned
to the bug.
A user can also add additional information to the bug which will be
helpful in giving more detailed information about the created bug. Few
of the extra information are- URL, WhiteBoard, Keywords, Personal
tags, Depends On, Large Text Box, Blocks, Date Time, Bug ID Field
and so on.
The user can also add the time estimation required for the bug to fix
and also the deadline for the bug. Also, can change the status of the
bug from Status drop down the list. Deadline in Bugzilla usually gives
the time-limit to resolve the bug in given time frame.
Exp 14: Open Ended Experiment- Mini Project (Not for Exam)
Test Cases for Software Applications (Websites)
Run through Selenium IDE
Run through Eclipse
Procedure:
1. Open the Firefox Browser.
2. Type the following URL “https://www.microsoft.com/en-in/” in url edit box.
3. Click on the Tools in the Firefox Browser, select and click on Selenium IDE.
4. Selenium IDE window appears on the screen.
5. Selenium will be in default Record mode whenever opened first time.
6. Copy URL from the Firefox URL and paste it in the base url edit box of Selenium IDE.
7. Select any functional link on Microsoft website and view that particular link.
8. For every operation performed on the website there will be a command inserted in the
Selenium IDE.
9. Right click on the web page and we can see all the supported selenium commands. There are
Assert commands where we can verify the title page opened.
10. Once recording is done, Record button should be stopped.
11. Test case should be saved as microsoft.html.
Run through Eclipse:
About Selenium Remote Control (RC) is a test tool that allows writing automated web
application UI tests in any programming language against any HTTP website using any
mainstream JavaScript-enabled browser.
Selenium RC comes in two parts.
1. A server which automatically launches and kills browsers, and acts as a HTTP proxy for web
requests from them.
2. Client libraries for favorite computer language.
Selenium Remote Control is great for testing complex AJAX-based web user interfaces under a
Continuous Integration system.
Eclipse has to be installed since we are going to write Java programs
http://Seleniumhq.org/download
We need to run server before writing any script code. Assume we have server under directory
C:\Seleniumserver\ then we need to go to command prompt and then go to respective folder where
Seleniumserver is located. Execute the following command to start server –
Here 4444 refers to the port number where the server is listening.
1. In Eclipse IDE need to create a new Java Project. Name the Java Project say – Myproject.
In Eclipse we can see “src” folder and “JRE System Library”. Since we need to write Java
Code where Selenium has to be recognised we need to include server and client JAR
file.
Procedure to include JAR file –
Right click on the Java Project created, select Build path. In that select Configure
Build Path. New window gets opened where we can see different tabs – Source,
Projects, Libraries, Order and Export. Select Tab “Libraries”. We can see only JRE
System Library.
Select Button “Add External JARs”. Browse and select Selenium Server Jar file we
can see a new entry along with JRE System Library.
Select Button “Add External JARs” again, browse and select selenium Java driver
Jar file.
We can see both Selenium server and Java driver JAR file.
2. Need to write script code in Java. In Eclipse IDE under “src” folder, right click and select
class – Give name to class say Google. In Eclipse we can see a new Demo.java file opened. Write
below code –
import junit.framework.*;
import com.thoughtworks.selenium.DefaultSelenium;
public class Demo extends TestCase
{
private DefaultSelenium selenium;
public void testing()
{
selenium=new
DefaultSelenium("localhost",4444,"*iexplore"," https://www.microsoft.com/en-in/” ");
selenium.start();
selenium.open("/");
selenium.waitForPageToLoad("30000");
}
}
2. In case we don’t add External JARs then selenium will not be recognized. This can be
checked once by removing external JARs.
3. Script code is ready, now need to start server. Go to command prompt; in command
prompt go to the folder where server JAR resides. In our case server is in
D: /Seleniumserver/ Go to that particular path and then start server by executing below
command
Here 4444 refers to the port number where server listens to client request