Flexible Test Scripting

Go Beyond Record and Play

Powerful and Flexible Test Scripting
A MarathonITE Script

With MarathonITE, you can create automated tests for your applications. MarathonITE scripts are Ruby scripts. MarathonITE uses JRuby a ruby runtime implemented on Java Virtual Machine. The power of Ruby language gives your scripts great flexibility. You can go beyond the regular record and playback functions.

MarathonITE uses Marathon JavaDriver. JavaDriver provides Selenium/WebDriver bindings for Java applications. For complex cases, using WebDriver methods provide great flexibility.

Use Ruby Language

Ruby is a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write. MarathonITE scripts are normal JRuby scripts with added methods. You can use all the ruby language constructs in the test scripts to improve the flexibility and power of your scripts.

Ruby Programming Language
Ruby is a flexible language. Ruby allows its users to freely alter its parts. Essential parts of Ruby can be removed or redefined, at will. Existing parts can be added upon. Ruby tries not to restrict the coder.

A quick overview of Ruby programming language is provided in MarathonITE Documentation.

Access to External Systems

Accessing External Systems

You can use RubyGem package manager to install any Gem supported by JRuby into the MarathonITE runtime. Once installed you can access it from the test scripts. There are various Gems for accessing external systems like databases, web services and also 3rd party libraries that you may find useful in your testing projects.

Gems are packaged Ruby files that you can add to your MarathonITE project. They allow you to make use of various functions. Each Gem is self contained. Gems contain all the ruby scripts and resources required to implement the functionality.

Gems are very useful because you don’t need to reinvent the wheel. Various available gems are available from rubygems.org.

When you identify a gem to use, use the gem command to install the gem in to your runtime.

Selenium/WebDriver Bindings

MarathonITE enables access to WebDriver bindings to your scripts for Java testing. When you access a component in MarathonITE using get_component, the object you receive is a WebElement. You can perform any of the standard WebDriver operations on this WebElement.

Selenium/WebDriver - Browser Automation

You can use any Selenium/WebDriver calls and intersperse them with MarathonITE calls. This provides your scripts the power and flexibility for implementing complex scenarios.

You can learn more about the Java/Swing™ and Java/FX™ webdriver bindings in MarathonITE Documentation.

Close Menu