A gosub control plugin for Selenium-IDE
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
content/extensions
defaults
demos
locale
skin
test
.gitignore
CHANGELOG.md
README.md
build.properties
build.xml
chrome.manifest
chrome.manifest.production
install.rdf
is_test_passed.sh

README.md

Selenium IDE: Gosub Control

Adds "gosub", "sub" and "endsub" commands to Selenium IDE.

Lincense

Mozilla Public License - https://www.mozilla.org/MPL/

Requirements

  • Selenium IDE 2.4 - 2.8

To build on Windows you will need 7-Zip and Robocopy:

Installation

From AMO:

From source:

  • Run build.bat (or build.sh on Linux).
  • Open gosubcontrol.xpi in Firefox.

Documentation

Commands

  • gosub - goto subroutine
  • sub - subroutine start
  • endsub - subroutine end and return
  • gosubDebug - show list of the labels of "sub"
  • return - return
  • gosubInit - It is due to abolish

Examples

See also demos folder.

The extract of an actual test case.

gosub reset_failed_logins
gosub login_miss_pw
gosub get_failed_logins
verifyExpression ${FAILED_LOGINS} 1
  
sub login_miss_pw
open http://user-site//login
waitForPageToLoad
type name=username test_user
type name=password
clickAndWait id=btnLogin
assertLocation http://user-site//login
endsub
  
sub reset_failed_logins
#login admin site
#find test_user
#click security tab
#reset "failed logins"
#logout
endsub
  
sub get_failed_logins
#login admin site
#find test_user
#click security tab
#store "failed logins"
#logout
endsub

Credits

  • Aoki Makoto, Ninton G.K.

Reference

Selenium IDE: Flow Control
author: Author: Dave Hunt
https://github.com/davehunt/selenium-ide-flowcontrol
https://addons.mozilla.org/ja/firefox/addon/flow-control/