100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Lecture notes

Web Programming: Testing and Deployment Lecture Notes

Rating
-
Sold
-
Pages
8
Uploaded on
05-01-2025
Written in
2024/2025

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.

Show more Read less









Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
January 5, 2025
Number of pages
8
Written in
2024/2025
Type
Lecture notes
Professor(s)
Paulo oliva
Contains
All classes

Content preview

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
£5.56
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
ileniamaiettabusiness

Also available in package deal

Thumbnail
Package deal
ECS639U Web Programming Complete Lecture Notes
-
10 2025
£ 61.70 More info

Get to know the seller

Seller avatar
ileniamaiettabusiness Queen Mary, University of London
View profile
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
11 months
Number of followers
0
Documents
10
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions