- About
- How to execute the project
- QAx Directories
- Preparing the test environment
- Run tests with command line
- Used Technologies
- How to contribute
- Reduces the workload of regression testing. Many companies still perform tests manually.
- Automated JavaScript testing framework for web applications.
- Tests anything that runs in the browser.
- Popular among developers and QAs on frontend teams.
- Node.js, React, Vue, Backbone, Redux, Express, Angular.
- Clone the project from GitHub
https://github.com/felipeam10/QAx
- In your preference IDE, open the project from the directory it was cloned to. I sugest that you use VS Code.
- In your PC needs to node.js version 18.20.4 (stable and recommended version).
- Install Yarn too (in CMD open how administrator: type "corepack enable". After return to terminal and type "yarn --version"). If return the version, it's worked.
- You need too Windows Terminal. Windows Terminal opens with PowerShell by default.
- Too install Git for Windows + Bash.
- Creating the main folder:
- Create a folder called QAx in the
C:
directory with the command:mkdir QAx
- Creating subfolders:
- Create two subfolders inside QAx:
mkdir apps
--> "apps": To store the software targeted for training.mkdir projects
--> "projects": To store automation projects and others.
-
Create a Directory for the Project:
- In the terminal, create a directory for the project and navigate to it.
- Example:
mkdir Cypress-Express-Mark
&&cd Cypress-Express-Mark
.
-
Initialize the Node.js Project:
- Initialize the Node.js project with the
yarn init
command. - Answer the questions to configure package.json, if applicabe.
- Initialize the Node.js project with the
-
Install Cypress as a Development Dependency:
- Install Cypress with the
yarn add cypress -D command
.
- Install Cypress with the
-
Open Cypress:
- After installation, open Cypress with
yarn cypress open
.
- After installation, open Cypress with
-
Download and Extraction:
- Download the
mark-dev-build.zip
file that is already in theressources
folder of this project that you cloned. - Unzip the file and rename the folder to MarkL (capital L, representing 50 in Roman numerals).
- Download the
-
Moving Folders:
- Move the MarkL folder to the
C:\QAx\Apps
directory. - Delete the .zip file for your organization, if you find it necessary.
- Move the MarkL folder to the
-
Accessing the Terminal:
- Open the terminal and navigate to the MarkL folder using the command
cd /c/X/Apps/MarkL
. - Check the API and web subfolders.
- Open the terminal and navigate to the MarkL folder using the command
-
Installing API Dependencies:
- Navigate to the API folder with cd API.
- Install Node.js dependencies with
npm install
.
-
Initializing the Database:
- Run
npm run db:init
to initialize the SQLite database.
- Run
-
Running the API:
- Put the API online with
npm run dev
.
- Put the API online with
-
Configuring the Web Application:
- Open a new terminal window and navigate to the web folder with
cd /c/QAx/Apps/MarkL/web
. - Install web application dependencies with
npm install
. - Put the web application online with
npm run dev
.
- Open a new terminal window and navigate to the web folder with
-
Accessing the Application:
- Access the application in the browser at
localhost:3000
.
- Access the application in the browser at
- For run the regressive tests
yarn cypress run
. - For run in other navigator
yarn cypress run --browser chrome
.
- Before, in file cypress-express-mark/package.json add:
"@shelex/cypress-allure-plugin": "^2.40.2",
"allure-commandline": "^2.32.0",
- And in file cypress-express-mark/cypress.config.js add:
const allureWriter = require('@shelex/cypress-allure-plugin/writer');
module.exports = {
e2e: {
baseUrl: 'http://localhost:3000',
env: {
apiUrl: 'http://localhost:3333'
},
viewportWidth: 1920,
viewportHeight: 1080,
setupNodeEvents(on, config) {
// implement node event listeners here
allureWriter(on, config);
return config;
},
},
};
- For run the regressive tests
yarn cypress run --env allure=true
. - For build report
yarn allure serve
.
Before starting, make sure you have the Java environment correctly configured on your machine. Below you have a list of the technologies that were used in the project development process.
Technology | Version |
---|---|
Operating System | Windows 10 |
Programming Language | Javascript |
Database | SQLite |
IDE | VS Code 1.96 |
If you have a contribution that could improve this project, please open an issue or pull request by following the steps below.
- Fork the project
- Create a branch for your modification (
git checkout -b feature/yourFeatureName
) - Commit your changes (
git commit -m 'Add some yourFeatureName'
) - Push to the branch (
git push origin feature/yourFeatureName
) - Open a pull request