• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 8 páginas
Notas de lectura

Web Programming: Testing and Deployment Lecture Notes

Document preview thumbnail
Vista previa 2 fuera de 8 páginas

Lecture Notes about how to test an application through Python and Django's unit testing, including Selenium as a library. It then highlights the steps on how to prepare a Web application for deployment and the general guidelines to do so. It has a summary section on the left side of the page, following the Cornell note taking method, where the key points are summarised on the side of the noted.

Vista previa del contenido

8️⃣
Testing and Deployment
SUMMARY MAIN NOTES
When testing you test Contents
for: Testing
Unit Testing
Functionality
Django django.test
Usability SimpleTestCase
TransactionTestCase
Interface
TestCase
Compatibility Deploying Web Apps
Steps
Performance
Environment Variables
Security Set Up
Web Server Gateway Interface (WSGI)
Cron Jobs
Unit testing is Period Jobs
testing a specific Sending Emails
feature for a Internationalisation and Localisation

particular
behaviour or
assumption
Testing
You test for:
Automation allows
for tests to be Functionality: does it do what it is meant to do?
rerun after making Usability: is it easy and friendly to use?
changes
Interface: does it communicate well with other
Python has a systems?
unittest
Compatibility: does it work on all browsers and
module
devices?
Django has a
django.test Performance: good response time in adverse
scenarios?
module, and




Testing and Deployment 1

, can also use Security: is app data secure, and users
Selenium protected?

Deployment is
installing a web Unit Testing
application on a
server, can be Testing a specific feature of your
static or dynamic application for a particular behaviour
Cron jobs are or assumption
regular, scheduled
jobs used to Automation of unit tests allows for tests to be
backup data rerun once application has been modified
regularly, send (continuous testing)
emails, update DB, Runs in memory so it doesn’t change your
etc. database

Precedes integration (interface) testing



‼️ Python has a unittest module to run unit
tests
Django has a django.test module to run
tests, which extends the Python unittest




Testing and Deployment 2

Información del documento

Estudio
Desconocido
Subido en
5 de enero de 2025
Número de páginas
8
Escrito en
2024/2025
Tipo
Notas de lectura
Profesor(es)
Paulo oliva
Contiene
Todas las clases
$8.36

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Vendido
0
Seguidores
0
Artículos
10
Última venta
-




Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes