Tips and Tricks While Using Selenium IDE

Tips and Tricks While Using Selenium IDE

Selenium IDE is a Firefox Add-on developed originally by Shinya Kasatani as a way to use the original Selenium Core code without having to copy Selenium Core onto the server. Selenium Core is the key JavaScript modules that allow Selenium to drive the browser. It has been developed using JavaScript so that it can interact with DOM (Document Object Model) using native JavaScript calls. There are a few facts that one should keep in mind while creating any scenario based script using Selenium basics:

  • Tests should have a starting point.
  • Tests should not rely upon any other tests to run.
  • Test should only be testing one thing at a time.

Although these rules apply to any form of test automation but they need to be adhered specially when creating tests using a user interface. To start selenium IDE, start Mozilla Firefox > tools / web developer drop > selenium IDE. Once loaded the IDE is ready to record the testing event (make sure the record button is engaged). Following are the steps to be followed to create a script:

  • In record mode, navigate to starting point for example: www. Sample. com
  • Perform the action to be tested.
  • Stop recording and play the test, once successful, the  test may look like this:

Jmeter can be used to test and record the performance of any web application. While running any recorded Jmeter script, the components/ recorded files are loaded virtually and end user scenarios are not replicated. Hence to replicate user scenarios, one has to make use of Selenium Webdriver through Jmeter. Following are the steps required to configure Jmeter with Selenium Script:

  • Open Jmeter from command prompt.
  • Right click on the test plan > add > select thread group.
  • Right click on Thread Group > Add > Config Element > Select jp@gc- FirefoxDriver Config.
  • Right click on Thread Group > Add > Sampler > jp@gc- WebDriver Sampler.
  • In the Script section we need to define the selenium script in Java script format.
  • Add the listerner for reporting purpose, Right click on Thread Group > add > Listners > View Results Tree and Summary Report.
  • Now Save the Test Plan as .jmx file

Generatingselenium reports using TestNG-xslt through Ant is quite easy.TestNG-xslt relies upon apache ant to Generate selenium reports.Apache Ant is a Java library andcommand-line tool capable to drive processes described in build filesas targets and extension points dependent upon each other. Primaryuse of Ant is the build of Java applications. Ant supplies a numberof built-in tasks allowing to compile, assemble, test and run Javaapplications. Ant can also be used effectively to build.

blogverdict
About Author

Having more than 12 years of experience in the software industry, I have been working on various roles and responsibilities for Software development to Senior Project Manager. Currently I am working as a Senior Project Manager and have successfully delivered several web and desktop based projects. I am involved in System design and development, Client Interaction, Validating the requirements, planning and execution of Organization and Project level processes.

Related Topics
Seasia Infotech Recognized as the Best Web Development Company by  Tech Reviewer, a Prestigious Platform

Posted: Oct 18 2022

Seasia Infotech Recognized as the Best Web Development Company by Tech Reviewer, a Prestigious Platform

Seasia Infotech was listed as one of the best web development companies by the Tech Reviewer platform...

Shelly Singla

Shelly Singla

Detailed Guide on Flutter Web App and Its Benefits for Businesses

Posted: Oct 04 2022

Detailed Guide on Flutter Web App and Its Benefits for Businesses

A Brief Introduction to Flutter Web    Flutter web is an emerging framework used fo...

Sakshi Sharma

sakshi

React Native App Development – Steps for Initial Setup and Some Common Issues

Posted: Sep 13 2022

React Native App Development – Steps for Initial Setup and Some Common Issues

Choosing the correct platform to create an application is among the developers' first and most import...

Sakshi Sharma

sakshi