livetest

Software screenshot:
livetest
Dettagli del software:
Versione: 0.5
Data di caricamento: 12 May 15
Sviluppatore: Scott Torborg
Licenza: Libero
Popolarità: 2

Rating: nan/5 (Total Votes: 0)

Ispirato eccellente WebTest di Ian Bicking, & nbsp; livetest è un'estensione per consentire lo stesso tipo di semplice test divinatorio da usare contro i siti che funzionano. Molte prove scritte per WebTest saranno in grado di essere utilizzato direttamente su LiveTest.
In questo modo la piattaforma completa (app server, bilanciamento del carico, il routing, DNS, ecc) da testare e non solo l'applicazione WSGI interna.
Nota: upload dei file sono testati.
Utilizzo
Imposta un app per testare contro con un solo hostname:
>>> Livetest importazione
>>> App = livetest.TestApp ('www.google.com')
Fare domande proprio come WebTest:
>>> Resp = app.get ('/')
Forme di sostegno:
>>> resp.forms
{0: }
>>> forma = resp.forms [0]
>>> form.fields
{'BTNI': [],
& Nbsp; 'btnG': [],
& Nbsp; 'q': [],
& Nbsp; 'sorgente': [],
& Nbsp; 'hl': [],
& Nbsp; 'cioe': []}
Invia forme:
>>> Form ['q'] = 'testing python'
>>> Resp = form.submit ()
Roba di prova nella risposta:
>>> Resp.mustcontain ('Agile', 'unittest', 'PyUnit')
>>> Resp
 '/ 25498>
>>> Resp.status
'200 OK'

Requisiti

  • Python

Altri software di sviluppo Scott Torborg

seolint
seolint

11 May 15

Mai Tai
Mai Tai

20 Feb 15

github-plots
github-plots

11 May 15

Commenti a livetest

I commenti non trovato
Aggiungi commento
Accendere le immagini!