From Fedora Project Wiki

(Django smoketest)
 
(Closed some tags)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=Smoketest the Django package
|description=This test is designed to validate basic functionality of the {{package|Django}} package.  The test includes creating and hosting a new project.  This test case was taken from http://docs.djangoproject.com/en/dev/intro/tutorial01.
|setup=yum install Django
|setup=
# Install required packages: <pre>yum install Django</pre>
|actions=
|actions=
 
<ol>
# django-admin startproject mysite
<li>
# cd mysite
Create a new django project
# python manage.py runserver
<pre>django-admin startproject mysite</pre>
# curl http://localhost:8000/
</li>
<li>
Change to the project directory and start the django server
<pre>
cd mysite
python manage.py runserver</pre>
</li>
<li>
Access the default start page for the project
<pre>
curl http://localhost:8000</pre>
</li>
</ol>
|results=
|results=


Should get a sample web page coming from the Django project that you just created.
# The final step above should download a sample web page coming from the Django project that you just created.


}}
}}
[[Category:Package_Django_test_cases]]

Latest revision as of 17:32, 1 June 2011

Description

This test is designed to validate basic functionality of the Package-x-generic-16.pngDjango package. The test includes creating and hosting a new project. This test case was taken from http://docs.djangoproject.com/en/dev/intro/tutorial01.

Setup

  1. Install required packages:
    yum install Django

How to test

  1. Create a new django project
    django-admin startproject mysite
  2. Change to the project directory and start the django server
    cd mysite
    python manage.py runserver
  3. Access the default start page for the project
    curl http://localhost:8000

Expected Results

  1. The final step above should download a sample web page coming from the Django project that you just created.