# Intro
This project is a test runner for Ecomnova Testing framework.

This repository contains the files for test runner only, it does not contain the logic for tester.
If you are looking for the tester, it can be found in BitBucket at ecomnova/ecomnova-frontendtesting.

This project does depends and uses ecomnova/ecomnova-frontendtesting.

# Installation

## Prerequisites

The user needs to have the ssh key added to the bitbucket account. On the AWS server, user ubuntu has key generated
and has access to this adn ecomnova/ecomnova-frontendtesting repository.

## Steps

1. Clone the repository
2. Run the following command to install the dependencies
```bash
composer install
```

## Updating the tester

On the live server, to update the tester, run the following command form the root of the project
```bash
git pull
```

to update ecommerce-frontendtesting repository, run the following command
```bash
composer update
```

# Live server setup

* region London
* user with ssh access: ubuntu
* path to files /var/www/html/

## services:

* Apache
* chromedriver
* php8.3-fpm

To restart a service

```bash
sudo service apache2 restart
sudo service php8.3-fpm restart
sudo service chromedriver restart
```

To check status of a service

```bash
sudo service apache2 status
sudo service php8.3-fpm status
sudo service chromedriver status
```