Creating Test Cases Manually in Selenium IDE

Last updated on Nov 29 2021
Swaminathan M

Table of Contents

Creating Test Cases Manually in Selenium IDE

In this blog, you’ll find out how to make a test suit manually using Selenium commands in Selenium IDE. In simple words, we’ll create test cases by inserting selenium commands rather than recording option.
For this test, we’ll search a text operation on any publicly available program (say “Google”). Subsequently, we’ll create a Login test suit within the same test suite.
To create a test suit manually, first you’ve got to travel through the foremost commonly used selenium commands which we’ve discussed within the previous section. Now, we’ll create our first test suit on search operation. we’ll search our text on Google program.

1. Insert Commands

• Launch Firefox browser.
• Click on the Selenium icon present on the highest right corner on your browser.
• It will launch the default interface of Selenium IDE.
• Enter the project name as “Manual Test”.
• Enter the test suit name as “Search Test”.
• Click on the command text box present on the Test Script Editor Box.

selenium
selenium

• Modify the properties of First command as:
• Command : open
• Target : https://www.google.co.in
• During execution of the test suit , this command will load the Google program website on your Firefox browser.

Now, we’ve to feature a command which will click on the Google program text box. For this, we’d like a singular identification element of the text box which can help the IDE to spot the target location.
The method for locating a singular identification element involves inspection of HTML codes.
• Open URL: https://www.google.co.inyour Firefox browser.
• Right click on the Google search text box and choose Inspect Element.

• It will launch a window containing all the precise codes involved within the development of the test box.

• Pick the input tag element that contains an ID name for the text box.

• Modify the properties of second command as:
• Command :click at
• Target : id=lst-ib
• During execution of the test suit , this command will click on the search text box present on the Google program website .

Note: The “Value” portion of the Test Script Editor box is optional for many of the commands.

Executing the Test Script

• Click on the “Run Current Test” button present on the tool bar menu of the IDE. it’ll execute all of your inserted commands on the browser and provides you an overall summary of the executed test script.

Now, we’ll create our test suit within an equivalent test suite.
We will generate a test suit supported login feature provided by one among the foremost popular website “Rediffmail”.
First you’ve got sign-up to urge the login credentials. For this test, we’ve already generated our login credentials.

1. Insert Commands

Click on the “Add new test” button at the highest of the test suit pane.

• Rename the test suit as “Login Test”.
• Click on the command text box present on the Test Script Editor Box.

• Modify the properties of First command as:
• Command : open
• Target : http://www.rediff.com/
• During execution of the test suit , this command will load the Rediff home page on your Firefox browser.

Now, we’ve to feature a command which will click on the “Sign-in” link present at the highest right corner of Rediff website. For this, we’d like a singular identification element of the “Sign-in” link which can help the IDE to spot the target location.
The method for locating a singular identification element involves inspection of HTML codes.

  •  Open URL:http://www.rediff.com/ on your Firefox browser.
  •  Right click on the “Sign-in” and choose Inspect Element.
  • It will launch a window containing all the precise codes involved within the development of the “Sign-in” link.
  • Pick the link element that contains the required name for the “Sign-in” link.
  • Modify the properties of second command as:
    Command : click at
    Target : link=Sign in
  • During execution of the test suit , this command will click on the “Sign in” link.The “Sign in” link will redirect you to the login page. Therefore, for the third command to be entered we’d like a singular identification for the “Username” text box which can help the IDE to spot the target location.
  • Right click on the “Username” text box and choose Inspect Element. It will launch a window containing all the precise codes involved within the development of the “Username” text box.o Pick the ID element that contains the precise ID for the “Username” text box.o Modify the properties of third command as:
    o Command : click at
    o Target : id=login1
    o During execution of the test suit , this command will click on the “Username” text box.We will use an equivalent ID element for our next command which involves typing the user-id as login credential.
    o Modify the properties of fourth command as:
    o Command : type.
    o Target : id=login1
    o Value : frea********* (User Login ID)
    o During execution of the test suit , this command will type the user id within the “Usename” text box.

    We will now add a command which will click on the “Password” text box. For this command, we’d like a singular identification for the “Password” field which can help the IDE to spot the target location.
    o Right click on the “Password” text box and choose Inspect Element.

    o It will launch a window containing all the precise codes involved within the development of the “Password” text box.

    o Pick the ID element that contains the precise ID for the “Password” text box.

    o Modify the properties of fifth command as:
    o Command : click at
    o Target : id=password
    o During execution of the test suit , this command will click on the “Username” text box.

    We will use an equivalent ID element for our next command which involves typing the password as login credential.
    o Modify the properties of sixth command as:
    o Command : type
    o arget : id=password
    o Value : **********(User Login Password)
    o During execution of the test suit , this command will type the user login password within the “Password” text box.

    At last, we’d like a singular identification element for the Login Submit button which can help the IDE to spot the target location.
    o Right click on the “Go” button and choose Inspect Element.

    o It will launch a window containing all the precise codes involved within the development of the “Go” submit button.
    o Pick the name element that contains the precise name for the “Go” submit button.

    o Modify the properties of seventh command as:
    o Command : click at
    o Target : name=proceed
    o During execution of the test suit , this command will click on the “Go” submit button.

    We are now able to execute our second test script.
    Executing the Test Script
    o Click on the “Run Current Test” button present on the tool bar menu of the IDE. it’ll execute all of your inserted commands on the browser and provides you an overall summary of the executed test script.

    o The Log pane displays the general summary of the executed test scripts.

    Saving the test suite
    o Click on the save button present on the acute right corner of the menu bar.

    o Save the whole test suite as “Manual Test”.

    o The test suite are often found at the situation provided within the above steps.
    So, this brings us to the end of blog. This Tecklearn ‘Creating Test Cases Manually in Selenium IDE’ blog helps you with commonly asked questions if you are looking out for a job in Selenium and Automation Testing. If you wish to learn Selenium and build a career in Automation Testing domain, then check out our interactive, Selenium Certification Training, that comes with 24*7 support to guide you throughout your learning period. Please find the link for course details:

    https://www.tecklearn.com/course/selenium-training-certification/

Selenium Certification Training

About the Course

Tecklearn’s Selenium Certification Training enables you to master the complete Selenium suite. The Selenium Training is designed to train developers and manual testers to learn how to automate web applications with a robust framework, and integrate it within the DevOps processes of an organization. This Selenium Certification Training will also help you master important concepts such as TestNG, Selenium IDE, Selenium Grid, Selenium WebDriver, etc. Get hands-on experience on widely used automation frameworks such as Data-Driven Framework, Keyword-Driven Framework, Hybrid Framework, and Behavior Driven Development (BDD) Framework. Throughout this online Instructor-led Selenium Certification Training, you will be working on real-life industry use cases.

Why Should you take Selenium Certification Training?

• The average salary of a Selenium Test Automation Engineer is $94k per year – Indeed.com.
• Automation Testing Market is expected to grow at a Compound Annual Growth Rate (CAGR) of 18.0% in the next three years.
• Global software testing market to reach $50 billion by 2020 – NASSCOM. Selenium tool supports more browsers and languages than any other testing tool.

What you will Learn in this Course?

Getting started with Selenium
• Introduction to Selenium testing
• Significance of automation testing
• Comparison of Manual and Automation Testing
• Installation of Java JDK, JRE and Eclipse
Setting the environment in Eclipse for Selenium
• Java Introduction
• Creating a Java function and executing
• Concepts of Java
• Properties File
• Reading Data from Excel File
• Database Connection
• Hands On
Advantages of Selenium automation testing
• Selenium Features
• Concept of Selenium Integrated Development Environment
• Understanding of the Selenium IDE features
• Addition of Script assertions and general commands
• Deploying the first Selenium Script
• Sample project IDE
• Recording Selenium test case
• Hands On
Selenium Web driver Automation
• Architecture of Selenium Web Driver
• Download and installation
• Creating a Java function using Selenium and execution
• Hands On
Deploying Web Drivers for scripting
• Getting the HTML source of Web Element
• Table and Form Elements
• Firebug extension and Fire Path installation
• Advance User Interactions and Cross Browser Testing
• Hands On
Deep dive into Selenium Web Driver
• Action Commands
• Web Table / Date Picker
• How to Implement Switching Commands in WebDriver
• Alerts
• Frames
• Hands On
Switching Operations in WebDriver using Window
• Selenium Webdriver Wait
• Implicit wait, Explicit wait
• Deploying searching elements using the link text, name, using XPath
• Calendar
• Hands On
Introduction to TestNG Framework
• Introduction to TestNG
• Advantages of TestNG
• Installing TestNG on Eclipse
• Rules to write TestNG
• TestNG Features
• Annotations
• Grouping
• Sequencing: Prioritization and Dependency
• Enable/Disable a test case
• Parameterization: Using Xml file and DataProvider
• Parallel Testing & Cross Browser Testing
• TestNG Report: HTML Report, Console Report, XML Report
JUnit Operations and Test Framework
• Annotations, Methods in JUnit
• Junit Test Suites, ANT Build and JUNIT reporting
• Types of Test Automation Framework
• Module Based Testing Framework
• Data Driven Testing Framework
• Keyword Driven Testing Framework
• Hybrid Driven Testing Framework
• How to implement Testing Framework in Project
Object Repository
• Understanding of Object Repository
• Learning sample scripts using object repository
• Page Object Modelling
• Page Factory
JavaScript Functions
• Autosuggestion
• Headless Browser
• Sikuli
• XPath

Got a question for us? Please mention it in the comments section and we will get back to you.

0 responses on "Creating Test Cases Manually in Selenium IDE"

Leave a Message

Your email address will not be published. Required fields are marked *