karimelkomy / lodgify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Todoist Test Automation Framework - Using TestCafe

This repository contains a test automation framework for automating tasks on the Todoist website using TestCafe and JavaScript.

Table of Contents

Prerequisites

To use this framework, you need to have the following software installed on your machine:

Installation

To install the necessary dependencies, follow these steps:

  1. Clone this repository: git clone https://github.com/karimelkomy/lodgify.git
  2. Navigate to the project directory: cd lodgify
  3. Install dependencies: npm install
  4. Create an account on https://todoist.com/app/settings/integrations/developer
  5. Change .env.at to .env and fill EMAIL, PASSWORD and API_TOKEN

Writing Tests

The tests are written using TestCafe's JavaScript API. The test files are located in the tests directory. To create a new test, you can add a new JavaScript file in this directory.

You can refer to the TestCafe documentation to learn more about writing tests with TestCafe.

Running Tests

To run the tests, use the following command:

yarn at

This command will execute all the test files located in the tests directory.

You can also specify a specific test to run by providing --customTest as an argument:

yarn at --customTest validate-create-project

Reporting

After running the tests, the framework generates an HTML Allure report that provides detailed information about the test results. The report is located in the allure directory. and it will open directly.

Video

Video Recording for the test scenarios can be found Here

About


Languages

Language:JavaScript 100.0%