Skip to content

RobertoTeresa/RocheTechnicalAssessment

Repository files navigation

Roche Technical assessment

This repository contains automated tests implemented with Cypress for Roche's technical assessment. These tests are designed to assess and validate the functionality of Roche's application according to the specified requirements.

Requisites

Before proceeding, make sure Node.js is installed on your system. To check, open a terminal or command prompt and enter the following commands:

node -v
npm -v

If Node.js is installed, you will see version numbers for Node.js and npm. If not, you'll receive an error message or an indication that the command is not recognized. If the command is not recognized please refer to the Node download page.

Installation

Clone this repository:

git clone <https://github.com/Edd1525/roche.git

While in the same directory as the project, use the following command to install all the necessary dependencies required to run the project:

npm install

Commands aviable

There are several commands available:

npm run startServer 

Start the web server on your computer. It should be available at http://192.168.2.64:8080 or http://127.0.0.1:8080 this allows testing the page manually. It's NOT necessary for the next commands because they start the server themselves.

npm run chromeTest 

Start the web server and run the tests on Google Chrome in headless mode.

npm run chromeHeadTest 

Start the web server and run the tests on Google Chrome in headed mode.

npm run firefoxTest 

Start the web server and run the tests on Mozilla Firefox in headless mode.

npm run edgeTest 

Start the web server and run the tests on Microsoft Edge in headless mode.

Reporting

After the tests finish running they will generate a folder called 'allure-results' which contains the result of the execution. To see this results we will need Allure, if we use the following command for the first time:

npm install -g allure-commandline --save-dev
npx allure-commandline serve

Node will promopt us to install the tool allure-commandline which will allow use to generete an allure report everytime we use the command and we are in the same directory as the folder allure-results.

Example of the execution in Allure:

results results

About

Repository containing the Roche Technical assessment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages