1.23.0 • Published 1 year ago

aptos-atap-core v1.23.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year 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

1 year ago

1.23.0

1 year ago

1.22.0

1 year ago

1.2.0

1 year ago

1.14.0

1 year ago

1.12.0

1 year ago

1.18.0

1 year ago

1.8.0

1 year ago

1.6.0

1 year ago

1.4.0

1 year ago

1.0.62

1 year ago

1.0.61

1 year ago

1.0.60

1 year ago

1.0.64

1 year ago

1.0.63

1 year ago

1.11.0

1 year ago

1.15.0

1 year ago

1.1.0

1 year ago

1.13.0

1 year ago

1.19.0

1 year ago

1.17.0

1 year ago

1.9.0

1 year ago

1.7.0

1 year ago

1.5.0

1 year ago

1.3.0

1 year ago

1.20.0

1 year ago

1.0.55

1 year ago

1.0.54

1 year ago

1.0.53

1 year ago

1.0.52

1 year ago

1.0.59

1 year ago

1.10.0

1 year ago

1.0.57

1 year ago

1.0.56

1 year ago

1.0.44

1 year ago

1.0.43

1 year ago

1.0.41

1 year ago

1.0.48

1 year ago

1.0.47

1 year ago

1.0.46

1 year ago

1.0.45

1 year ago

1.0.49

1 year ago

1.0.51

1 year ago

1.0.50

1 year ago

1.0.39

1 year ago

1.0.38

1 year ago

1.0.40

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.33

1 year ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.37

1 year ago

1.0.36

1 year ago

1.0.35

1 year ago

1.0.34

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago