Introduction to SequelizeSequealize follows the promise-based Node.js ORM for different servers like – Postgres, MySQL, MariaDB, SQLite, and Microsoft SQL Server.Following are some of the main features of NodeJS sequelize −Transaction SupportRelationsEager and Lazy LoadingRead Replication and more...Connecting to MySQL using SequelizeWe need to establish a connection between MySQL and Node.js using Sequelize.After creating a successful connection with sequelize, we would require the following three files for configuration. Please carefully create the following files in their respective folders only.SequelizeDemo > application.jsThis will be our root file which will hold the actual logic.SequelizeDemo>utils>database.jsThis will hold all the connection details to MySQL.SequelizeDemo>models>user.jsThis ... Read More
Introduction to mongodb.connectThis method is used to connect the Mongo DB server with our Node application. This is an asynchronous method from MongoDB module.Syntaxmongodb.connect(path[, callback])Parameters•path – The server path where the MongoDB server is actually running along with its port.•callback – This function will give a callback if any error occurs.Installing Mongo-DBBefore proceeding to try connect your application with Nodejs, we need to setup our MongoDB server first.Use the following query to install mongoDB from npm.npm install mongodb –saveRun the following command to set up your mongoDB on the specific localhost server. This will help in creating connection with the ... Read More
Introduction to Async copyThis method copies files or directories from one location to another location. The directory can have sub-directories and files.Syntaxcopy(src, dest[, options][, callback])Parameterssrc – This is a string paramter which will hold the source location of the file or directory that needs to be copies. If the location is a directory, it will copy everything inside of the directory instead of whole directory.dest – This will hold the destination location where the files/directories will be copies. If src is a files, dest cannot be a directory.options −overwrite – If set to true, existing files or directories will be ... Read More
Spike testing is a type of performance testing used to determine an application's behavior when exposed to extreme traffic variations. In spike tests, the app is revealed to sudden decrease and increase in load. The results are then analyzed based on factors like −Does the app crash?Does the app slow down?How long it takes the app to switch back to normal?Accumulating test results, the developers determine when and where the application fails and then take necessary actions for performance improvement.Example of Spike TestingLet's say X University is all set to upload the results on its official site at 1 −30 ... Read More
Soak testing is a non-functional performance testing under which an application is exposed to a continuous load for a pre-determined period. It is also known as Longevity testing and Endurance testing.The term 'soak' itself explained the test's purpose. Let's consider yourself pulling a rope on one end while your friend pulls it on the other end. Now, if you pull it for one hour, it won't affect the rope much. However, if both of you continue to pull it for days, the rope might eventually break.The same rules apply to software as well. When software faces a high load, it may ... Read More
A tester measures an app or site performance by collecting various data during a load or stress test. However, every test starts with sending a request to an application. Once a request is sent, the tester calculates the app's response time by estimating how much time it takes to respond to the specific request. Let's understand response time with real-life examples −Offline exampleLet's assume you are standing at the checkout counter of a grocery store. The cashier takes three minutes to process the products. Now, if you have a lot of customers waiting in front of you, that means you will ... Read More
The word 'reliable' means something that is 'dependable' and 'trustworthy.' In other words, a dependable product lives up to its expectation regardless of how much we use it. In software testing, Reliability testing is a process to know whether software can perform as expected under a given environment. Reliability Testing ExampleLet's say you are a graphics designer. So, you may need a PC to run for at least 7-8 hours per day with its full capability without crashing. Reliability testing is the process that can determine whether the PC you are about to purchase can works flawlessly for long hours or ... Read More
Benchmark is a specific standard of measurement used to measure a product or service. In short, it is a metric or point of reference to access the quality of a particular product or service. Likewise, benchmark testing is a process where testers compare the software and hardware aspect of an application or system against a stipulated standard. Besides testing the performance, benchmark testing can also test the security feature of a system or application.Benchmark testing is a part of the software development life cycle (SDLC), where both developers and database administrators (DBAs) determine the security and performance of software and ... Read More
There are many occasions where websites/applications have to run continuously for weeks/months without restarting the server. Since the number of users in such websites is exceedingly high, owners must ensure that users can access the website without facing any issues.The testers' role in such situations is to make sure these websites don't face any failure or memory leakage when exposed to high traffic. Under stability test, testers revealed these websites till their breakpoint and check how the system responds to such load. Systems can crash or slows down under heavy load. It can also act erratically in some cases. Therefore, stability ... Read More
Software Testing is a fast-growing field and if you are one of the thousands of aspirants looking to build a career in it, this Software Testing Career guide will help you understand what the testing job is all about and what salary testing jobs provide.What is Software Testing?Walk into any clothes showroom in a mall, and you will notice a room with "Testing" written on its door where you can check whether or not the clothes you like fit you, or look good on you.The word 'testing' is used to determine whether a product satisfies someone's requirement or not. The ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP