Sunday, July 12, 2015

Recording and Playing First Test Case using Selenium IDE (FireFox)

Steps to Record Actions using Selenium IDE (FireFox):
******************************************************
Step.1:
- Open FireFox Browser
- Click on "Tool" from Firefox Menu
- Click on Selenium IDE



Result: The below Selenium IDE window will get opened
Note: The mentioned Selenium IDE window facing front of Existing FireFox Browser


Step.2: Click on "Format" - Verify "HTML" selected by default as shown below in the screenshot


Verify: The Record button is started by default as highlighted below in the screenshot


Step.3: Recording the Steps (say First Test Case):
-  Let the above Selenium IDE started
-  Navigate the Cursor to the FireFox window opened behind the Seleium IDE
-  Type "www.Google.com" in the above browser
-  Hit Enter
-  Wait for Google Home gets loaded
-  Type "Selenium" in the search box
-   Hit Enter
-   Click on the link showing "Selenium.org" in the listed search results
-   Verify Selenium Home Page opened
-   Navigate to Selenium IDE window
-   Click on button to stop the recording


Step.4: Click on Play button to play the recorded steps:


Result: The entire steps mentioned above will get play via Selenium IDE automatically without any manual interruption

Step.5: We can save the steps as single Test Case (html) format in order to play via Selenium IDE


So we can record, play, save and play back  by opening the same saved the test cases using Selenium IDE easily :)


Thanks Much,
*** Bin ***

Setting up TestNG with Eclipse

Steps to Set Up TestNG with Eclipse :

************************************
Pre-requisites: Get Ready Eclipse after Downloading from Eclipse Home URL (Preferably Kepler) :

Step.1: Click to open Eclipse:


Step.2: Click on "Help" from Eclipse Menu and then Click on "Install New Software":


Result: The below window will get opened:


Step.3: Type the home URL to download TestNG in Eclipse:

Note:
For Eclipse 3.4 and above, enter location as "http://beust.com/eclipse"
For Eclipse 3.3 and below, enter location as "http://beust.com/eclipse1"

Add Name: TestNG and Location as "http://beust.com/eclipse" :

 

Result: Wait for TestNG to  load
Step.4: Select the TestNG check box and Click on "Next" button as shown below:


Step.5: Click on  "Next" button from below window:


Step.6: Select the "Accept" button and click on "Finish" button:


Result: Wait for Downloading gets complete:


Step.7: Click to restart Eclipse:


Result: Wait for Eclipse to Restart

Now verify TestNG gets added successfully into our Eclipse:

Click on "File" -> Click to "Other"


Now Click on "TestNG" Class:



Now TestNG has been installed successfully on the System.

Thanks Much,
** Bin **