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

Case Study of Selenium IDE

The document describes steps to create a test case in Selenium IDE for logging into an HDFC bank account. The steps include opening Firefox and Selenium IDE, creating a new test case, recording actions on the HDFC website including entering invalid login details and seeing an error, changing the test case format to JUnit, copying the test case code to an Eclipse project, running the Selenium server, and running the test case as a JUnit test where it passes. The test case automates entering invalid login details on the HDFC website and validates the resulting error message.

Uploaded by

yakub2indian9737
Copyright
© Attribution Non-Commercial (BY-NC)
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)
163 views18 pages

Case Study of Selenium IDE

The document describes steps to create a test case in Selenium IDE for logging into an HDFC bank account. The steps include opening Firefox and Selenium IDE, creating a new test case, recording actions on the HDFC website including entering invalid login details and seeing an error, changing the test case format to JUnit, copying the test case code to an Eclipse project, running the Selenium server, and running the test case as a JUnit test where it passes. The test case automates entering invalid login details on the HDFC website and validates the resulting error message.

Uploaded by

yakub2indian9737
Copyright
© Attribution Non-Commercial (BY-NC)
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

Case study of Selenium IDE

By

Anusha gunda(264277)
Scenario3:

Step1:

 Open firefox and type


http://www.hdfcbank.com/common/onlineservices/netbankingloginsafe.htm

url in address bar.


Step 2 :

 Select “Tools” from the menu bar.

 From the dropdown list select “Selenium IDE”


Step 3 :

 “Selenium IDE” home page is opened.

 Select new testcase in by following links.

 File->New TestCase
Step 4 :

 Right click on the testcase select “properties”.

 Edit the default name and enter testcase name then click “Ok”

Step 5 :

 select the HdfcTestCase1 then select source.

 Goto “options” from the menubar.

 Change the format of the source as HTML.


 The source is converted to HTML format then click record button

Step 6 :

 In address bar click enter button.

 Below HDFC bank page is opened.


 Click continue button

 Enetr any invalid customer ID.

 Click continue button.


 The below is opened with an error message

Step 7 :

 Goto selenium IDE and stop recording.


Step 8: Running the Script
 Click run button in seleniumIDE.

 If it is passed Green line is appeared.


Step 9 :

 Change the source format as Junit3.

 Save the sorce.

Step 10 :
 Open Eclipse IDE

 Go to package tab.

 Right click on “src”

 Select New->class
Step 11 :

 Give class name as HdfcTestCase1.

 Deselect inherited abstract methods checkbox

 Click “finish” button.

 Copy the source from the selenium IDE and paste it on the workspace of the
HdfcTestCase1.

Step 12 : Run the selenium server

 Go to command prompt.
 Enter into the selenium directory then run the selenium server jar file.
Step 13: Run HdfcTestCase1

 Go to “Run as” button.

 Select “Run as” option.

 From there select JUnit test


Step 14 :

 Green line appeared which means that the test is passed.

You might also like