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

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

Serving Software Downloads in 956 Categories, Downloaded 50.075.389 Times

FuncBrows 0.17

Company: Tom Wardill
Date Added: September 11, 2013  |  Visits: 517

FuncBrows

Report Broken Link
Printer Friendly Version


Product Homepage
Download (40 downloads)



FuncBrows is a relatively lightweight abstraction wrapper around various functional web testing utilities. It is intended to allow the creation of single unit tests that will run on multiple testing tools with a minimum of configuration. This will allow functional and system tests to be created in a single api.<br /><br />By necessity, the api will be fairly simple, and will not support the advanced features of certain tools. This is aimed to be a lowest common demoninator, although the selected tool is available, should more complex tests be required (at the cost of tool portability).<br /><br />Currently Supported<br /><br />There are two fully supported testing tools:<br /><br /> * Selenium RC (1.*)<br /> * zc.testbrowser<br /><br />It is intended that more will be added over time, but these are what were required to scratch my own itch.<br /><br />Running the Tests<br /><br />FuncBrows comes with a full test suite to exercise all the available methods. It uses twisted to create a local, known webserver which can be used to output the expected results. To run it, you will need: * twisted * twisted web * trial (twisted testing tool, usually included with a twisted distribution) To run the tests, execute:<br /><br />trial test_funcbrows<br /><br />API<br /><br />One of the main aims of FuncBrows is to have a simple and clean API. There are however one or two warts that cannot easily be worked around in the underlying tools. I will attempt to provide some examples of the API, and then explain any workarounds that have been implemented. For more complete examples of every method of the API, see test_funcbrows.py.<br /><br />Instantiation<br /><br />Instantiating FuncBrows is the main place where the underlying tools show through, as you have to make a selection as to which tool you would like to use.<br /><br />The basic method takes a browser type, and a URL to test:<br /><br />f = FuncBrows('testbrowser', 'http://localhost:80')<br /><br />This will instantiate a zc.testbrowser instance, with the pointing at localhost, on port 80<br /><br />A selenium instance requires extra parameters (the address and port for the selenium server):<br /><br />f = FuncBrows('\*firefox3', 'http://localhost', host = '127.0.0.1', port = 4444)<br /><br />Form Usage<br /><br />FuncBrows requires the name of the form to work on, before anything can be modified in a particular form. Failure to set this will result in a ValueError. This prevents ambiguous form controls. There is however a wart where zc.testbrowser is concerned, and forms without an id on the page. See the note below for how to workaround this.<br /><br />Set the value of a text box on a form:<br /><br />f = FuncBrows('testbrowser', 'http://localhost:80')<br />f.open('/')<br />f.form_name = 'test-form'<br />f.set_form_text_field('q', 'test')<br />f.submit_form()<br /><br />Page Content<br /><br />Currently there are only three available methods for getting meta-data and data from the page that is currently loaded:<br /><br />location<br /> Property for the current location of the page (the URL)<br />page_title<br /> Property for the title of the current page<br />page_content<br /> The HTML content of the page<br /><br />Warts<br /><br />Unfortunately, a completely clean abstraction isn't quite possible, so there are a few places where special care is needed.<br /><br /> 1. Selenium currently struggles with AJAX loaded pages as they don't fire a page load event. An attempt has been made to get round this, you can pass 'internal=True' into the click() method. This will set Selenium to not expect a page load, and to carry straight on.<br /> 2. Forms without an id or name can trip up zc.testbrowser. A workaround for this has been implemented, but is not entirely satisfactory. If you set the form_name = '*', it will use the first form on the page.<br /><br />#md5=780ee9df2c8759b140dedc988c7c6391

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Attempt Current Examples Funcbrows Method Methods Required Selenium Testing Tests Tools Twisted Underlying Workaround Zctestbrowser
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


FUNCBROWS RELATED
Network & Internet  -  django-selenium 0.8
Django-selenium is a toolset that provides seamless integration for Django framework with a Selenium testing tool. It allows to write and execute selenium tests just as usual ones.
10.24 KB  
Libraries  -  Yahoo::Marketing::BidInformationService 0.08
Yahoo::Marketing::BidInformationService is an object that provides operations that return the current bid and cutoff bid required for a keyword to make it to best rank. You can use this information to optimize your keyword bid in real-time....
67.58 KB  
Libraries  -  Free Finite Element Package 0.8.3
Free Finite Element Package is a modular collection of C libraries which contain numerical methods required when working with linear and quadratic finite elements in two dimensions. FFEP works on GNU/Linux and is portable to every system where...
337.92 KB  
Libraries  -  Test::WWW::Selenium 1.10
Test::WWW::Selenium is a Perl module to test applications using Selenium Remote Control. SYNOPSIS Test::WWW::Selenium is a subclass of WWW::Selenium that provides convenient testing functions. use Test::More tests => 5; use...
39.94 KB  
Network & Internet  -  Selenium Core 0.8.2
Selenium Core is a test tool for web applications. Selenium Core tests run directly in a browser, just as real users do. And they run in Internet Explorer, Mozilla and Firefox on Windows, Linux, and Macintosh. No other test tool covers such a wide...
522.24 KB  
Libraries  -  Class::Meta::Express 0.04
Class::Meta::Express is a Perl module for concise, expressive creation of Class::Meta classes. Synopsis package My::Contact; use Class::Meta::Express; class { meta contact => ( default_type => string ); has name; has contact => (...
9.22 KB  
Libraries  -  Class::Inner 0.1
Class::Inner is a perlish implementation of Java like inner classes. SYNOPSIS use Class::Inner; my $object = Class::Inner->new( parent => ParentClass, methods => { method => sub { ... } }, }, constructor => new, args =>...
3.07 KB  
Bug Trackers  -  Selenium Alternatives Reviewer 1.0
Selenium Alternatives Reviwer is a great platform to review and compare web testing tools in order to find out the best best selenium alternative for automated web app tests. There are four dimensions: Analyze Selenium Issues and...
1.19 MB  
Libraries  -  Geo::Ellipsoids 0.14
Geo::Ellipsoids is a package for standard Geo:: ellipsoid a, b, f and 1/f values. SYNOPSIS use Geo::Ellipsoids; my $obj = Geo::Ellipsoids->new(); $obj->set(WGS84); #default print "a=", $obj->a, "n"; print "b=", $obj->b, "n"; print "f=",...
7.17 KB  
Modules  -  Pagination (Node) 6.x-1.7
Pagination (Node) allows the main content of arbitrary node types (Page, Story, etc...) to be paginated according to one of three methods:Method 1: Content is paginated by a selectable "words per page" count.Method 2: Content is paginated by...
20.48 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, NETWORK & INTERNET
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 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  
Network & Internet  -  Free WiFi Hotspot 3.3.1
Free WiFi Hotspot is a super easy solution to turn your laptop or notebook into a portable Wi-Fi hotspot, wirelessly sharing your internet connections like DSL, Cable, Bluetooth, Mobile Broadband Card, Dial-Up, etc. through the built-in wireless...
1.04 MB  
Network & Internet  -  Easy Uploads 1.8
Easy uploads is a file storage media streaming application designed by Filestreamers that allows you to upload, store, and stream your files from their virtually unlimited file storage server. Easy Uploads can backup,share, and stream your files...
615.97 KB  
Network & Internet  -  PacketFence ZEN 3.1.0
PacketFence is a fully supported, trusted, Free and Open Source network access control (NAC) system. Boosting an impressive feature set including a captive-portal for registration and remediation, centralized wired and wireless management, 802.1X...
1024 MB  
Network & Internet  -  django-dbstorage 1.3
A Django file storage backend for files in the database.
10.24 KB  
Network & Internet  -  SQL Inject Me 0.4.5
SQL Inject Me is a Firefox extension used to test for SQL Injection vulnerabilities. The tool works by submitting your HTML forms and substituting the form value with strings that are representative of an SQL Injection attack.
133.12 KB