1.0.52 • Published 6 months ago

cjp-automation v1.0.52

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

CJP Automation Framework

README Documentation: Setting Up and Running Automation Tests This guide provides a detailed process for setting up your project and running automation tests using cjp-automation.

Description

This automation framework is built using Behavior-Driven Development (BDD) principles with Node.js, making it intuitive and collaborative for developers and testers. It supports testing across multiple platforms:

REST APIs: Automate API testing efficiently with comprehensive features. Mobile Applications: Conduct mobile app automation with seamless integration. Web Applications: Perform end-to-end testing of web applications.

Prerequisites

Before starting, ensure the following are installed on your computer:

Node.js: Download and install from Node.js official website. Visual Studio Code (VS Code): Download and install from VS Code official website.

Setup Instructions

  1. Project Initialization Create a new folder for your project and give it a suitable name. Open VS Code and load the created project folder. Open the integrated terminal in VS Code (Ctrl + or from the top menu:Terminal > New Terminal`).

  2. Initialize a Node.js Project In the terminal, run the following command:

npm init

Follow the prompts: Package name: Enter the project name (or press Enter to use the default). Version: Press Enter to accept the default (1.0.0). Description: Provide a brief project description (or press Enter to skip). Entry point: Press Enter to accept the default (index.js). Test command: Press Enter to skip. Git repository: Press Enter to skip. Keywords: Press Enter to skip. Author: Enter your name (or press Enter to skip). License: Press Enter to accept the default (ISC). When prompted, confirm by typing yes.

  1. Install Dependencies Run the following command in the terminal to install the cjp-automation package:

npm i cjp-automation

Project Configuration

Open the package.json file in your project directory. Locate the "scripts" section and replace it with the following:

"scripts": { "Test": "cucumber-js Features/Test.feature -f json:./Report/Report.json", "report": "node Report.js", "report_2": "node Report_Junit.js" }

Running Tests and Generating Reports

  1. Run the Test Script Execute the following command in the terminal:

npm run Test

  1. Generate Reports To create a test report, run:

npm run report

Notes

Replace Features/Test.feature with the path to your feature file if it differs. Ensure your test scripts and report generation scripts (Report.js and Report_Junit.js) are correctly implemented.

1.0.52

6 months ago

1.0.51

7 months ago

1.0.50

8 months ago

1.0.48

8 months ago

1.0.47

8 months ago

1.0.49

8 months ago

1.0.40

12 months ago

1.0.42

12 months ago

1.0.46

12 months ago

1.0.45

12 months ago

1.0.39

1 year ago

1.0.38

1 year ago

1.0.37

1 year ago

1.0.36

2 years ago

1.0.35

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.34

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.0

2 years ago