VictorAZ12 / web-request-forum

0 stars 0 forks source link

Project Group

Group Members:

Project Introduction

HabitNest is a web-based platform designed to enhance productivity and personal growth through habit tracking and community support. Users can create accounts to set personal goals, track their progress in developing new habits, and participate in community challenges. Habitat fosters a supportive network where users can share tips, celebrate achievements, and find motivation in a like-minded community.

Key features

-Project Setup: Navigate to the project directory Ensure you have the Flask application running. If not, start it:

flask run

Running the Tests Homepage Test: Navigate to the directory containing the test script. Run the homepage test script:

python test_Selenium_Homepage.py

Login Test: Ensure the Flask application is running and you are in the correct directory. Run the login test script:

python test_Selenium_Login.py

Dashboard Test: Ensure the Flask application is running and you are in the correct directory. Run the login test script:

python test_Selenium_Dashboard.py

Explanation of Tests Homepage Test (test_Selenium_Homepage.py): This test script checks the homepage title, clicks the login link, and verifies the presence of the username and password input fields. It also attempts to submit the login form and checks the page title after submission.

Registrer (test_Selenium_Register.py): This test script checks creation of new account.

Login Test (test_Selenium_Login.py): This test script verifies the login functionality by testing with both correct and incorrect credentials. For correct credentials, it checks if the user is redirected to the dashboard page. For incorrect credentials, it checks if the login fails as expected.

Dashboard Test (test_Selenium_Dashboard.py): This test script verifies the add habit and add challenge functionality. It also verifies edit habit and delete habit functions. It also verifies join/unjoin challenge.