Selenium IDE- Login Test

In this section, you will learn how to create a Login Test case in Selenium IDE.

For our test purpose, we will be testing the login page provided by the Test and Quiz website, present under the URL:https://www.testandquiz.com/

Note
Note:you can sign-up and create a login test on any publically available website.

The following image shows the snapshot of the home page that will appear when we hit the above mentioned URL.

IDE-Login Test

First you have sign-up to get the login credentials. For this test, we have already generated our login credentials. Now, we will generate a test script to create a Login Test in Selenium IDE.

  • Launch Firefox browser.
  • Click on the Selenium icon present on the top right corner on your browser.
  • It will launch the default interface of Selenium IDE.
  • Go to your Firefox browser and open URL:https://www.testandquiz.com/
  • Enter the project name as "Login Test".
  • Enter the test case name as "Test Case 1".
  • Click on the "Start Recording" button to start the recording of the test case.
IDE-Login Test
  • Go to your Firefox browser and right click on any blank space within the page and select the Selenium IDE option.
  • Click on Selenium IDE > Assert Title. The Assert Title command makes sure that the page title is correct.
IDE-Login Test
  • Now, click on the login button located at the top corner of the website.
IDE-Login Test
  • Fill-in the login credentials and click on the login button. Meanwhile you will get the notifications of the actions performed by IDE at the extreme right corner of your browser.
IDE-Login Test
  • Once you get logged-in, click on the user name section to view your account details.
IDE-Login Test
  • It will redirect you to your account settings page, where you can edit your personal details.
IDE-Login Test
  • Click on the Logout button.
  • Now, go to the IDE and click on Stop Recording button to stop recording the test case.
IDE-Login Test

2. Playing Back

  • Click on the "Run Current Test" button present on the tool bar menu of the IDE. It will execute all of your interactions with the browser and gives you an overall summary of the executed test script.
IDE-Login Test
  • The Log pane displays the overall summary of the executed test scripts.
IDE-Login Test

3. Saving the test suite

  • Click on the save button present on the extreme right corner of the menu bar.
IDE-Login Test
  • Save the entire test suite as "Login Test".
IDE-Login Test
  • The test suite can be found at the location provided in the above steps.
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +