| 1 |
''' |
|---|
| 2 |
Agent name: Untitled |
|---|
| 3 |
Created on: |
|---|
| 4 |
Created by: |
|---|
| 5 |
|
|---|
| 6 |
Note: This is a skeleton of a PushToTest(tm) TestMaker unit test |
|---|
| 7 |
Use this as a starting-point to build your unit test. Then run |
|---|
| 8 |
this test in a TestScenario as a load test, service monitor, and |
|---|
| 9 |
functional test. |
|---|
| 10 |
|
|---|
| 11 |
For details on PushToTest TestMaker see http://www.pushtotest.com |
|---|
| 12 |
''' |
|---|
| 13 |
|
|---|
| 14 |
from junit.framework import TestCase |
|---|
| 15 |
import sys, re, time |
|---|
| 16 |
from java.lang import Exception |
|---|
| 17 |
from com.pushtotest.tool.protocolhandler import ProtocolHandler |
|---|
| 18 |
|
|---|
| 19 |
class franktest: |
|---|
| 20 |
|
|---|
| 21 |
def __init__( self ): |
|---|
| 22 |
''' Initialize the test case ''' |
|---|
| 23 |
self.http = ProtocolHandler.getProtocol("http") |
|---|
| 24 |
|
|---|
| 25 |
def setUp( self ): |
|---|
| 26 |
''' Add any needed set-up code here. ''' |
|---|
| 27 |
pass |
|---|
| 28 |
|
|---|
| 29 |
def runTest( self ): |
|---|
| 30 |
''' Run the test ''' |
|---|
| 31 |
self.http.setUrl("http://examples.pushtotest.com") |
|---|
| 32 |
self.response = self.http.connect() |
|---|
| 33 |
|
|---|
| 34 |
def tearDown( self ): |
|---|
| 35 |
''' Add any needed code to end the test here. ''' |
|---|
| 36 |
pass |
|---|
| 37 |
|
|---|
| 38 |
def getfranktest(): |
|---|
| 39 |
test = franktest() |
|---|
| 40 |
return test |
|---|
| 41 |
|
|---|
| 42 |
''' |
|---|
| 43 |
test=franktest() |
|---|
| 44 |
test.runTest() |
|---|
| 45 |
print "done" |
|---|
| 46 |
''' |
|---|