Selenium WebDriver is often used as a basis for testing web applications. Here is a simple example uisng Python's standard unittest library:
import unittest
class GoogleTestCase(unittest.TestCase):
def setUp(self):
self.browser = webdriver.Firefox()
self.addCleanup(self.browser.quit)
def testPageTitle(self):
self.browser.get('http://www.google.com')
self.assertIn('Google', self.browser.title)
if __name__ == '__main__':
unittest.main(verbosity=2)
selenium 2.42.1 : Python Package Index - 0 views
NoseJS 0.9.4 : Python Package Index - 0 views
-
A Nose plugin for integrating JavaScript tests into a Python test suite.
Python Tools for Visual Studio - Documentation - 0 views
-
Python Tools for Visual Studio includes support for discovering, executing and debugging unit tests. This allows you to author your tests and run them without having to switch to a command prompt.
25.3. unittest - Unit testing framework - Python v2.7.7 documentation - 0 views
-
Class and module level fixtures are implemented in TestSuite
Databases integration testing strategies with Python | Julien Danjou - 0 views
-
import unittestimport osimport sqlalchemy import myapp class TestDB(unittest.TestCase): def setUp(self): url = os.getenv("DB_TEST_URL") if not url: self.skipTest("No database URL set") self.engine = sqlalchemy.create_engine(url) def test_foobar(self): self.assertTrue(myapp.store_integer(self.engine, 42))
-
import unittestimport osimport sqlalchemy import myapp class TestDB(unittest.TestCase): def setUp(self): url = os.getenv("DB_TEST_URL") if not url: self.skipTest("No database URL set") self.engine = sqlalchemy.create_engine(url) def test_foobar(self): self.assertTrue(myapp.store_integer(self.engine, 42))
-
import unittestimport osimport sqlalchemy import myapp class TestDB(unittest.TestCase): def setUp(self): url = os.getenv("DB_TEST_URL") if not url: self.skipTest("No database URL set") self.engine = sqlalchemy.create_engine(url) def test_foobar(self): self.assertTrue(myapp.store_integer(self.engine, 42))
- ...3 more annotations...
tappy - TAP tools for Python - tappy 1.1 documentation - 0 views
-
tappy provides tools for working with the Test Anything Protocol (TAP) in Python. tappy generates TAP output for your unittest test cases. You can use the TAP output files with a tool like the Jenkins TAP plugin or any other TAP consumer
Publishing Python unit test results in Jenkins | Steve Trefethen - 0 views
Python-unittest-tutorial by cgoldberg - 0 views
unit testing - Python unittests in Jenkins? - Stack Overflow - 0 views
The python-nose Open Source Project on Ohloh - 0 views
-
nose provides an alternate test discovery and running process for unittest,
unittest introduction - Python Testing - 0 views
Data Engine API | Tableau Software - 0 views
-
Tableau 8 provides an application programming interface (API) to enable developers to directly create a Tableau Data Extract (TDE) file. The API works with C/C++, Java, and Python and can be used from Windows.
python - Ideal schema design for privacy settings in MongoDB and Meteor - Stack Overflow - 0 views
-
var projectSchema = new Schema({ access: { type: String, enum: ACCESS_MODES, required: true, default: 'public' }, owner: { type: Schema.Types.ObjectId, ref: 'User' }] });
zopyx.versioning - A MongoDB based versioning solution for Zope and Plone - ZOPYX Ltd. ... - 0 views
-
zopyx.versioning - A MongoDB based versioning solution for Zope and Plone
1 - 16 of 16
Showing 20▼ items per page