Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Setting Up & Reviewing our Application | Introduction to Automation Testing
Quizzes & Challenges
Quizzes
Challenges
/
Test Automation with Jest & Selenium

bookSetting Up & Reviewing our Application

Throughout this course, we will be practicing our testing concepts on a practical application. The application will be a much simplified version of the Twitter app.

The application file structure is summarized below:

  • controllers/userController.js contains functions that are used by - - routes/index.js. These functions define what happens when a user visits a specific route.
  • models folder contains classes for post and user, which provide utility methods for querying the database. It also contains the database.js script which initializes the database.
  • public folder contains all the static files that should be delivered to the user unchanged, without any modification.
  • The routes/index.js file defines the routes of our application.
  • The views folder contains all the Embedded JavaScript (EJS) templates that are used in our application.
  • app.js is the entry point of our application. It contains code for configuring and starting the Express server.

Following are some minimum feature requirements for our end product:

  • Ability to Like and Share posts;
  • Ability to Follow and View other profiles;
  • Profile Management Section;
  • Sorting posts by Popularity or Recency;

By the end of the course, all the above-mentioned features will be added to our application and we will have a sufficient amount of test cases for each of those features.

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 3

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

Suggested prompts:

Can you explain more about how EJS templates work in this application?

What is the purpose of the controllers and models folders?

How does the application handle user authentication and sessions?

Awesome!

Completion rate improved to 3.85

bookSetting Up & Reviewing our Application

Scorri per mostrare il menu

Throughout this course, we will be practicing our testing concepts on a practical application. The application will be a much simplified version of the Twitter app.

The application file structure is summarized below:

  • controllers/userController.js contains functions that are used by - - routes/index.js. These functions define what happens when a user visits a specific route.
  • models folder contains classes for post and user, which provide utility methods for querying the database. It also contains the database.js script which initializes the database.
  • public folder contains all the static files that should be delivered to the user unchanged, without any modification.
  • The routes/index.js file defines the routes of our application.
  • The views folder contains all the Embedded JavaScript (EJS) templates that are used in our application.
  • app.js is the entry point of our application. It contains code for configuring and starting the Express server.

Following are some minimum feature requirements for our end product:

  • Ability to Like and Share posts;
  • Ability to Follow and View other profiles;
  • Profile Management Section;
  • Sorting posts by Popularity or Recency;

By the end of the course, all the above-mentioned features will be added to our application and we will have a sufficient amount of test cases for each of those features.

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 3
some-alt