Selenium IDE Plug-in for InfoStretch Framework

For non technical testers Selenium IDE is the ideal environment for creating Selenium tests. Selenium IDE provides code formatter for different language and/or testing frameworks.

Choosing the right framework or scripting technique helps in maintaining lower costs. The approach of scripting used during test automation has effect on cost due to development and maintenance efforts.

Various scripting techniques are generally used when developing test automation scripts are:

  • Linear : Procedural code, possibly generated by tools like Selenium IDE
  • Structured: Uses control structures – for instance ‘if-else’, ‘switch’, ‘for’, ‘while’ conditions or flow control statements
  • Data-driven: Data is persisted outside of tests in a database, csv files, or other mechanism
  • Modularity-driven: Creation of small, independent scripts that represent modules, sections, and functions of the application-under-test
  • Hybrid: Two or more of the techniques above are used

Adding Functional programming capability to IDE

If you are using selenium IDE for developing your tests, then using InfoStretch Selenium IDE plug-in you can record scripts that turn out to be Structured, Data-driven, and Modularity-driven or Hybrid. Plug-in provides code formatter to export recoded steps in IDE to “InfoStretch Test Automation Framework (ISFW)” format. In addition to code formatter for ISFW, following functional programming capability added to IDE:

  • Defining reusable steps as modules
    • supports parameters
    • can return value
  • Call defined modules in tests
  • Conditional Flow control
  • Looping
  • Nested looping and conditional flow

Through InfoStretch plug-in you can apply different approaches while recording using selenium IDE, for instance

  • Scripts generated by Selenium IDE using record facility be the linear
  • By use of control structures commands – typically ‘if’, ‘else’, ‘elseif’, ‘while‘ conditions/ statements provided by InfoStretch plug-in will make scripts Structured
  • Creation of small, independent modules of the application-under-test using ‘defineModule‘ command provided by InfoStretch plug-in be useful in developing Modularity-driven test
  • Call command provided by InfoStretch plug-in be useful call defined modules in test
  • Define module with parameters and use of data-provider will make script Data-driven

Thus three steps for non technical users are:

  1. Record using Selenium IDE
  2. Edit as per requirements
  3. Export test case as “ISFW” format from IDE.

You can get more detail about plug-in usage in next blog “Using InfoStretch Selenium IDE Plug-in”

VN:D [1.9.10_1130]
Rating: 9.1/10 (12 votes cast)
Selenium IDE Plug-in for InfoStretch Framework, 9.1 out of 10 based on 12 ratings

  

{ 1 trackback }

A Smattering of Selenium #52 « Official Selenium Blog
July 1, 2011 at 5:13 pm

{ 1 comment… read it below or add one }

Deepak Vishwakarma March 30, 2012 at 3:56 am

Can you please provide the sample for asserting the “Data-driven”, Modularity-driven, or structured testing using the selenium IDE ISFW plugin. Also does the plugin support the webdriver latest versions. If we want to add the support for webdriver latest version for plugin how to we do it?

Leave a Comment