1.23.0 • Published 7 months ago

aptos-atap-core v1.23.0

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

Test Automation Framework

This is a TypeScript-based test automation framework designed to facilitate BDD-style testing using Cucumber. The framework supports loading test data and configuration from external JSON files, allowing for flexible parallel test execution.

Features

  • Observer Pattern: Utilize the Observer Pattern to manage the status of test data and configurations.
  • Shared & Exclusive Access: Handle both shared and exclusive access to test data and configuration settings.
  • Dynamic Data Loading: Load test data and configurations from external JSON files.
  • Easy Integration: User-friendly command-line interface for creating new projects and initializing test setups.

Prerequisites

  • Node.js (v14 or later)
  • NPM (Node Package Manager)

Installation

To set up and use this framework, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/yourusername/your-repo-name.git
    cd your-repo-name
  2. Install Dependencies:

    npm install
  3. Build the Project:

    npm run build

Usage

Create Framework Command

You can create a new project directory and initialize the framework structure using the following command:

npx create-framework init <project-name>

This command creates a new directory called with all necessary folders and essential files for the test automation setup. To initialize the framework in the current directory, simply use:

npx create-framework init

Running the Tests

Once you've set up your project and populated the test data and configuration files, you can run your tests using Node.js:

node dist/index.js

Data Management

Test data and configuration data can be managed programmatically or by loading from JSON files located in the src/data/ directory. The framework is designed to read from these files and manage data in memory.

Running

Template Generator:

npx create-framework init projectname

Normal Run:

npm start -- --tags "@demo" ENV=qa npm start -- --tags "@demo" BROWSERS=chrome npm start -- --parallel 2 --tags "@demo" npm start -- --world-parameters \'{\"browserName\":\"safari\"}\' --tags "@demo" RUNNER=lambdatest LT_USERNAME=vishnu.nallaniaptos LT_ACCESSKEY=wmmvneB7fRCo3oy9VkhcoSVYrj6excNTr4Catf5PFA0Eikopfn npm start -- --tags "@demo"

Parallel:

npm run test:parallel --tags "@demo"
BROWSERS=chrome,safari npm run test:parallel -- --tags "@demo"

Devices:

    RUNNER=lambdatest LT_USERNAME=vishnu.nallaniaptos LT_ACCESSKEY=wmmvneB7fRCo3oy9VkhcoSVYrj6excNTr4Catf5PFA0Eikopfn OS=android npm start -- --tags "@mobile"

    RUNNER=lambdatest LT_USERNAME=vishnu.nallaniaptos LT_ACCESSKEY=wmmvneB7fRCo3oy9VkhcoSVYrj6excNTr4Catf5PFA0Eikopfn OS=android npm run test:parallel -- --tags "@mobile"
1.21.0

7 months ago

1.23.0

7 months ago

1.22.0

7 months ago

1.2.0

7 months ago

1.14.0

7 months ago

1.12.0

7 months ago

1.18.0

7 months ago

1.8.0

7 months ago

1.6.0

7 months ago

1.4.0

7 months ago

1.0.62

7 months ago

1.0.61

7 months ago

1.0.60

7 months ago

1.0.64

7 months ago

1.0.63

7 months ago

1.11.0

7 months ago

1.15.0

7 months ago

1.1.0

7 months ago

1.13.0

7 months ago

1.19.0

7 months ago

1.17.0

7 months ago

1.9.0

7 months ago

1.7.0

7 months ago

1.5.0

7 months ago

1.3.0

7 months ago

1.20.0

7 months ago

1.0.55

7 months ago

1.0.54

7 months ago

1.0.53

7 months ago

1.0.52

7 months ago

1.0.59

7 months ago

1.10.0

7 months ago

1.0.57

7 months ago

1.0.56

7 months ago

1.0.44

7 months ago

1.0.43

7 months ago

1.0.41

7 months ago

1.0.48

7 months ago

1.0.47

7 months ago

1.0.46

7 months ago

1.0.45

7 months ago

1.0.49

7 months ago

1.0.51

7 months ago

1.0.50

7 months ago

1.0.39

8 months ago

1.0.38

8 months ago

1.0.40

8 months ago

1.0.25

8 months ago

1.0.24

8 months ago

1.0.29

8 months ago

1.0.28

8 months ago

1.0.27

8 months ago

1.0.33

8 months ago

1.0.32

8 months ago

1.0.31

8 months ago

1.0.30

8 months ago

1.0.37

8 months ago

1.0.36

8 months ago

1.0.35

8 months ago

1.0.34

8 months ago

1.0.23

8 months ago

1.0.22

8 months ago

1.0.20

8 months ago

1.0.19

8 months ago

1.0.18

8 months ago

1.0.17

8 months ago

1.0.16

8 months ago

1.0.15

8 months ago

1.0.14

8 months ago

1.0.13

8 months ago

1.0.12

8 months ago

1.0.11

8 months ago

1.0.10

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago