Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 31.340.168 Times

pyhistorian 0.6.5

Company: Hugo Lopes Tavares
Date Added: July 16, 2013  |  Visits: 176


Report Broken Link
Printer Friendly Version

Product Homepage
Download (16 downloads)

pyhistorian's goal is to write an internal Given-When-Then template using Python. The ideas come from JBehave, RBehave, Cucumber and others.<br /><br />It's possible to write your stories in English and Portuguese, choose your preferred.<br /><br />A good example of use [en-us, by default] follows (call this file<br /><br />from should_dsl import *<br />from pyhistorian import *<br /><br />class Calculator(object):<br /> def sum(self, n1, n2):<br /> return n1+n2<br /><br />class SumScenario(Scenario):<br /> @Given('I have a calculator')<br /> def set_my_calculator(self):<br /> self.calculator = Calculator()<br /><br /> @When('I enter with 1 + 1')<br /> def sum_one_to_one(self):<br /> self.sum = self.calculator.sum(1, 1)<br /><br /> @Then('I have 2 as result')<br /> def two_as_result(self):<br /> self.sum |should_be.equal_to| 2<br /><br />if __name__ == '__main__':<br /> calculator_story = Story(title='Specifying my new calculator',<br /> as_a='lazy mathematician',<br /> i_want_to='rest my mind',<br /> so_that="I don't waste my time thinking")<br /> sum_scenario = SumScenario('Sum of 1 and 1')<br /> (calculator_story.add_scenario(sum_scenario)<br /> .run())<br /><br />Running:<br /><br />$ python<br />Story: Specifying my new calculator<br />As a lazy mathematician<br />I want to rest my mind<br />So that I don't waste my time thinking<br /><br />Scenario 1: Sum of 1 and 1<br /> Given I have a calculator ... OK<br /> When I enter with 1 + 1 ... OK<br /> Then I have 2 as result ... OK

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Beequal Main Name Result Resultself Selfcalculator Selfcalculatorsum Selfsum Set Calculatorself Theni
Users rating: 0/10

License: Freeware Size: 30.72 KB
Teaching Tools  -  VexataQuaestio 1.0
VexataQuaestio is a test administration program with automated scoring and result evaluating, questions can be set in one of two modes, multiple choice or true/false. Questions and answers are in a simple text-file that is easy to edit, every...
1.1 MB  
Utilities  -  Express GSM 2.1.1
Express GSM configuration utility for iPhone. The main purpose of the application is to set up the device by using iPhone. It gives an opportunity to change the settings anywhere you are. Application send the messages with new or changed...
4.1 MB  
DNS Tools  -  DNS name parser 1.2.1
DNS name parser is a Java utility library for parsing dns names, ip and hw addresses. Synopsis import su.netdb.parser.*; Parser parser = new Parser(); Hashtable result = parser.parse(str); System.out.println("string:...
8.19 KB  
Programming  -  Tcl/Tk 8.4.15/8.5a6
Tcl provides a portable scripting environment for Unix, Windows, and Macintosh that supports string processing and pattern matching, native file system access, shell-like control over other programs, TCP/IP networking, timers, and event-driven...
3.1 MB  
Utilities  -  Random Name Generator FREE 2.0
Random Name Generator(Free version) -In this app, you may set any names or/and pictures that you want to randomize. _____________________________ How to use? 1. Enter the names that you want to randomize. or you may paste it...
16.5 MB  
Libraries  -  HTML::Template::Extension::DOC 0.25
HTML::Template::Extension::DOC are plugins for comments in template. SYNOPSIS use HTML::Template::Extension; my $text = qq | This is a template example... An example use of...
15.36 KB  
Libraries  -  Async::Group 0.3
Async::Group is a Perl class to deal with simultaneous asynchronous calls. SYNOPSIS use Async::Group ; use strict ; sub sub1 { print "Dummy subroutine n"; my $dummy = shift ; my $cb = shift ; &$cb(1); } sub allDone { print "All...
4.1 KB  
Libraries  -  Apache::CryptHash 3.03
Apache::CryptHash is a Perl module with encrypted tokens for cookies. Creates an encrypted cookie-like string with a MAC (checksum) from a hash of critical and non-critical values. The MAC is created on only the critical values. Decryption will...
13.31 KB  
Libraries  -  TbsSQL 2.0
TbsSQL is a PHP class for SQL abstraction. TbsSQLs goal of this tool is to reduce the code when working with SQL through PHP. The TbsSQL is available for the following databases: - MySQL - MySQLi - SQL-Server (via Ms-Odbc) - PostgreSQL...
12.29 KB  
Games  -  Dennis the Menace 1.0
Dennis The Menace is a Super Nintendo Entertainment System game based on the 1993 movie. A game was also released for the Game Boy The object is to defeat a burglar who managed to find Dennis' town via the local railroad connection. Stages include...
1.49 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB