Skip to content

Latest commit

 

History

History
507 lines (341 loc) · 16.3 KB

TESTING.md

File metadata and controls

507 lines (341 loc) · 16.3 KB

Validator Testing

Minor errors found, resolved the issues and all tests passed.

  • Home Page:

    Home Page

  • About Page:

    About Page

  • Loppises Page:

    Loppises Page

  • Advert(add) Page:

    Add Page

  • Wishlist Page:

    Wishlist Page

  • Signup Page:

    Signup Page

  • Login Page:

    Login Page

  • Subscription Page:

    Subscription Page

  • Profile Page:

    Profile Page

  • Loppis Details Page:

    Loppis Details Page

No errors or warnings found.

CSS Validator

Version wrror found. Added '/* jshint esversion: 11, jquery: true */' at the top of js file and resolved the issues.

JSHint Validator

PEP8 Validator Testing

Passed all PEP8 Validator testing

About App
Python files PEP8 result
apps.py About app apps.py file
urls.py About app urls file
views.py About app views file
Advert App
Python files PEP8 result
apps.py Advert app apps.py file
forms.py Advert app urls file
models.py Advert app urls file
urls.py Advert app urls file
views.py Advert app views file
Home App
Python files PEP8 result
apps.py Home app apps.py file
urls.py Home app urls file
views.py Home app views file
Loppises App
Python files PEP8 result
apps.py Loppises app apps.py file
models.py Loppises app urls file
urls.py Loppises app urls file
views.py Loppises app views file
widgets.py Loppises app widgets file
Profiles App
Python files PEP8 result
apps.py Profiles app apps.py file
urls.py Profiles app urls file
views.py Profiles app views file
Questions App
Python files PEP8 result
admin.py Questions app admin.py file
apps.py Questions app apps.py file
models.py Questions app models file
forms.py Questions app forms file
Newsletter Subscription App
Python files PEP8 result
admin.py Subscription app admin.py file
apps.py Subscription app apps.py file
models.py Subscription app models file
forms.py Subscription app forms file
views.py Subscription app views file
urls.py Subscription app urls file
Sverige Loppis Main App
Python files PEP8 result
wsgi.py Main app wsgi.py file
urls.py Main app urls file
views.py Main app views file
Wishlist App
Python files PEP8 result
apps.py Wishlist app apps.py file
contexts.py Wishlist app contexts.py file
urls.py Wishlist app urls file
views.py Wishlist app views file

Lighthouse

  • Testing results for desktop:

    Lihghthouse Desktop

  • Testing results for mobile:

    Lihghthouse Desktop

User Story Testing

Please find all my defined user stories here

Member User:

  • As a member user I want to be able to login or logout so that I can access my personal account information.

    View Images

    Login

    Login Success

    Logout

    Logout Success


  • As a user I want to be able to easily recover my password in case I forget it so that I can recover access to my account.

    View Images

    Password Reset Password Reset Password Reset Password Reset Password Reset


  • As a user I want to be able to receive an email confirmation after registering so that I can verify that my account registration was successful.

    View Images

    Verify Email Registration Verify Email Registration Verify Email Registration Verify Email Registration Verify Email Registration


  • As a user I want to be able to have a personalised profile page so that I can manage my account, add/edit or delete loppises that I published.

    View Images

    Profile Page My loppises Page


  • As a member user I want to be able to ask question to the loppis owner if I want to have more information regarding their loppis.

    View Images

    Question Question


Seller:

  • As a seller I want to be able to add my own loppis announcement so that I can get buyers to come to my loppis and purchase.

    View Images

    Add


  • As a seller I want to be able to make payment with card so that my ad is successfully published in loppis list.

    View Images

    Add


  • As a seller I want to be able to view my loppis information I entered just before payment so that I can make sure all the information I have entered are correct.

  • As a seller I want to be able to adjust my loppis just before payment so that I can correct any mistakes before the payment.

  • As a seller I want to be able to easily enter my payment information so that I can checkout smoothly.

    View Images

    Add


  • As a seller I want to be able to see the amount of each announcement so that I can decide to proceed with payment or not.

    View Images

    Add Add


  • As a seller I want to be able to feel my personal and payment information is safe and secure so that I can confidently provide the information to make the payment.

    View Images

    Add About


  • As a seller I want to be able to view a success page (payment and ad confirmation) so that I can verify that I haven't made any mistakes.

    View Images

    Success


  • As a seller I want to be able to receive an email confirmation after checkout so that I can keep the confirmation of my payment and to keep a record of it if I want.

    View Images

    Success Email


  • As a seller I want to be able to edit any loppis announcement I have added so that I can update/add or change any important information.

    View Images

    Edit Edit Edit


  • As a seller I want to be able to delete any loppis announcement I have added so that I can be in control of my items posted.

    View Images

    Delete Delete


General Site visitor:

  • As a site user I want to be able to view all loppis announcments so that I can save and consider going to loppis.

    View Images

    Loppis List Loppis List


  • As a site user I want to be able to find the menu easily so that I can know what content is available on the site.

  • As a site user I want to be able to navigate through the site so that I can view the desired content.

    View Images

    Menu Menu


  • As a user I want to be able to easily register an account so that I can I can create and add my own loppis announcements.

    View Images

    Register


  • As a site user I want to be able to view the loppis details so that I can make an informed decision for my needs.

    View Images

    Loppis details


  • As a user I want to be able to filter loppis by County so that I can find the ones that are closer to me.

    View Images

    County

    County

    County

    County


  • As a user I want to be able to see the loppis date and time so that I can go to the flea markets(loppises) that are available during open hours.

    View Images

    Loppis details


  • As a user I want to be able to save the announcements so that I can view the details later.

    View Images

    Wishlist


  • As a user I want to be able to see the availability status of loppis so that I can know if it is expired.

    View Images

    Availability Status

    Availability Status

    Availability Status

    Availability Status


  • As a user I want to be able to search by title, description or county so that I can I can find easily to the one I want to go.

    View Images

    Search

    Search

    Search

    Search


  • As a user I want to be able to subscribe to newsletter so that I am informed about any loppises or announcements made.

    View Images

    Subscribe

    Subscribe

    Subscribe

    Subscribe


Admin

  • As an admin I want to be able to have a support email so that I can I can be in control of any kind of support needed.

    View Images

    Admin contact mail


  • As an admin I want to be able to in control of django admin panel so that I can I can take necessary actions for any misconduct or issue reported.

    View Images

    Admin contact mail


BUGS

  • There is no unsolved bug in my site (as far as I know).
  • Throughout the development process, I faced minor issues but resolved them after several tries.
  • I had one bug that I struggled with:
    • Problem Statement - "Whenever the payment is completed, django sends me emails from myself rather than the address of the user."
    • You can view my process with this bug in Github Projects
    • I did a deep search in Google, Stack Overflow and Django Documentations.
    • I first added the sending email function. At first the problem I faced was the sender email received the emails so it was never being sent to the user.
    • Then I tried getting the value of email from Django user model.
    • I used "User.email" for that, the email got sent successfully in the terminal however the users email was mentioned as "deferred attribute object".
    • I have talked to Code Institute tutors and my Mentor about this issue. If the email is not successfully sent it fails the stripe payment as it is placed in stripe webhook class, it needs successful email for stripe to complete it's function.
    • With Code Institute's Tutor Gemma and Mentor Tim suggestions I have created a separate function within advert/views, and called this inside advert_success function.
    • By removing the webhooks and adding a email function within the views solved the bug.
    • Now the user successfully recieves confirmation emails for their payment and loppis advertisement.

Browser Compatability

  • Checked and verified that the site works on different browsers.
    • Safari:

      Safari

    • Chrome:

      Chrome

Responsiveness Testing

  • Desktop - Large Screen sizes:

    Large screen size

  • Ipad - Medium Screen sizes:

    Medium Screen size

  • Mobile - Small Screen Sizes:

    Mobile Screen Size