Rasta

Ruby Spreadsheet Test Automation
Download

Rasta Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Publisher Name:
  • Hugh McGowan
  • Operating Systems:
  • Windows All
  • File Size:
  • 50 KB

Rasta Tags


Rasta Description

Rasta was developed to be a keyword-driven test framework using spreadsheets to drive testing. It’s loosely based on FIT, where data tables define parameters and expected results. The spreadsheet can then be parsed using your test fixtures. For the underlying test harness, Rasta uses RSpec so in addition to reporting results back to the spreadsheet you can take advantage of RSpec’s output formatters and simultaneously export into other formats such as HTML and plain text. You create the test fixture: The test fixture is a class that you define to interface between rasta and the application under test. Since you know the most about your application, this only makes sense and gives you the ability to do anything you like in your test; check a database value, run a watir script or perform a few simple math functions. All we are looking for is that our test fixture has attributes that allow us to set input variables and methods that we can call and compare the results with expected values. Spreadsheets define the tests: Spreadsheets are used to both define the test input parameters and expected results. You can have any number of worksheets in your spreadsheet and run tests against one or more test fixtures. As your tests run, the cells are colored green and red to indicate pass/fail. For test failures, the cell is commented with the details of that failure. Also, since we’re using spreadsheets we can take advantage of a lot of the functionality that exists. Dropdowns can be added to restrict input to a list of values or you can use named variables or calculated values . For example, you could easily have one of the cells show today’s date using Excel’s TODAY() function. Further, the rasta script provides workflow control allowing you to start your script where it last left off, start from a specific tab, run ‘n’ pages, etc. Tests are run from the commandline: From a commandline you specify both the spreadsheet and the directory tree that contains the test fixture class files (you’ll need to download the example zip). rasta examples\rasta_fixture.xls -f examples\fixtures


Rasta Related Software