• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Start selling Create your account
Document preview thumbnail
Preview 2 out of 8 pages
Lecture notes

Web Programming: Testing and Deployment Lecture Notes

Document preview thumbnail
Preview 2 out of 8 pages

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.

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

Document information

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

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
10
Last sold
-




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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions