Giter Site home page Giter Site logo

niraj-kamdar / question-paper-generator Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 18.0 16.78 MB

The Question Paper Generator has been made to allow professors to generate question papers with random but enough questions to cover most chapters of a subject with specified difficulty and cognitive level and mail paper directly to the examiner in PDF format.

Home Page: https://setnow.herokuapp.com/

License: MIT License

Python 13.93% CSS 16.54% JavaScript 23.62% HTML 45.82% Dockerfile 0.04% Mako 0.05%
flask html css js professor question-papers examiner

question-paper-generator's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

question-paper-generator's Issues

List questions selenium test

Describe the test

Add a test to getting list of questions of selected course using selenium webdriver.

What it covers

It will cover front-end test getting list of questions of selected course.

Testing

Some tests for the above testcase.

Description Input Output
Show list of subjective questions of course click on any course on courses page list of subjective questions
Show list of mcqs of course click on multiple choice question button in question page list of mcqs

Add course user selenium test

Describe the test

Add test to add new valid and unique course using selenium webdriver.

What it covers

It will cover front-end test for the adding of new valid and invalid course.

Testing

Some tests for the above testcase.

Description Input Output
Add course with valid course name Course name Course is added and redirected to add course page
Add course with existed course name Course name Error message display
Add course with Invalid course name No Input/Invalid Course name "This field is required "/Error message display

Course should not be displayed in side navigation if it has no units

Describe the bug
Right now courses with no units are displayed in side navigation.

To Reproduce
Steps to reproduce the behavior:

  1. Go to courses page
  2. Click on any subject which has units.Then click on any unit.
  3. On right side you can see courses with no units

Expected behavior
Ideally courses with no units should not be displayed.

Screenshots
image

Here "OS" should not be visible

Add login user selenium test

Describe the test

Add a test to login of a new user using selenium webdriver.

What it covers

It will cover front-end test for the login of new valid and invalid user.

Testing

Some tests for the above testcase.

Description Input Output
Login username with valid password Username and password Redirect to home page with sucessful log-in
Valid username and Invalid password Username and password Display "Login unsuccessful"

After deleting question we get empty screen

Describe the bug
When we delete question we get empty page with page no.

To Reproduce
Steps to reproduce the behavior:

  1. Go to question list page
  2. Click on delete question

Expected behavior
When we delete question we should get next question and if page was last page then we should get current last page.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Brave
  • Version: 1.8.95

When we update question difficulty level always shows "easy" value and cognitive level always shows "application" no matter what are the current values

Describe the bug
When we update question difficulty level and cognitive level always shows first value irrespective of actual value.If we submit form then these fields are also getting updated even if we do not change them.

To Reproduce
Steps to reproduce the behavior:

  1. Go to subjective questions page
  2. Click on edit question button

Expected behavior
Server should send correctly fill data when we request for updating form.
Screenshots
image
When we click on edit question button we get following
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Brave
  • Version:1.8.95

Smartphone (please complete the following information):

  • Device: vivo v5
  • OS: Funtouch OS
  • Browser: Chrome
  • Version : 79

Add any other context about the problem here.

Unittest for invalid question type

Describe the test

We currently only have tests for valid question types (mcq and sub). Please create tests for some invalid type like blanks, abc, etc. It should throw a 404 error.

What it covers

It covers check_valid_question_type decorator function.

Testing

Description Input Output
invalid abc 404
invalid blank 404

Add register user selenium test

Describe the test

Add a test to register a new user using selenium webdriver.

What it covers

It will cover front-end test for the registration of new valid and invalid user.

Testing

Some tests for the above testcase. (Implementer will add following fields to cover every tests)

Description Input Output
Add user with unique username and email with valid passsword username, email, password, confirm password redirect to login page with successful registration flash

update urllib3 to >=1.24.2 in requirements.txt

Bug:

product: urllib3
cve: CVE-2019-11324
severity: high
Vulnerable versions: < 1.24.2
Patched version: 1.24.2
description: The urllib3 library before 1.24.2 for Python mishandles certain cases where the desired set of CA certificates is different from the OS store of CA certificates, which results in SSL connections succeeding in situations where a verification failure is a correct outcome. This is related to the use of the ssl_context, ca_certs, or ca_certs_dir argument.

Fix:

Update urllib3 to version 1.24.2 or higher in requirements.txt and make sure it won't cause problems with other dependencies.

Set IMP flag to question selenium test

Describe the test

Add a test to set IMP flag to question using selenium webdriver.

What it covers

It will cover front-end test for setting IMP flag to the question.

Testing

Some tests for the above testcase.

Description Input Output
Set IMP flag to question of selected course Click on flag mark and tickmark on IMP IMP tag on question

Create wiki pages

Create wiki page for developers and users.

  • Wiki pages for developers should contain detailed documentation of code
  • Wiki pages for users should contain detailed user manual of how to use our website.

Update question selenium test

Describe the test

Add a test to updating of questions of selected course using selenium webdriver.

What it covers

It will cover front-end test of updating questions of selected course.

Testing

Some tests for the above testcase.

Description Input Output
Update question to selected course question or mark or difficulty question and it's parameters are updated to list of questions and also updated to database

List course user selenium test

Describe the test

Add a test to view list of course using selenium webdriver.

What it covers

It will cover front-end test for list-down courses of particular user.

Testing

Some tests for the above testcase.

Description Input Output
Show list of courses of user click on courses button on navbar redirect to add course page with list of courses

As an professor I want to add/remove courses so that professor can be allocated to the courses

  • add a webpage for admin where he can add course and professor for simplicity assume only one course allocated to only one professor at any time.
  • make a database model for course attr would be coursename, courseid, professor and it will get referenced in question db so change appropriately
  • do appropriate change in route
  • also make a webpage which displays every course and associated prof

Add questions selenium test

Describe the test

Add a test to adding of questions of selected course using selenium webdriver.

What it covers

It will cover front-end test of adding questions of selected course.

Testing

Some tests for the above testcase.

Description Input Output
Add question to selected course question , mark, difficulty question is added to list of questions and question is added to database

Forgot password selenium test

Describe the test

Add a test to a reset password using selenium webdriver.

What it covers

It will cover the front-end test for setting a new password for an existed user.

Testing

Some tests for the above testcase.

Description Input Output
Set new password via e-mail verification E-mail Redirect to login page and verification mail is send to given e-mail ID
Invalid email Error message display

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.