qacore
v1.0.2
Published
Library for testing applications
Downloads
1
Readme
QACORE
Proyect generator and utilities for QA automatization.
Installation
npm install -g qacore
Usage CLI
qacore
DEMO
Usage API
// CommonJS
const qacore = require('qacore').default
// ES6
import qacore from 'qacore'
const utilities = await qacore('YOUR_SECRET_KEY')
utilities.setNote("Your note")
Methods
- setNote: Set a note in your project and view in the dashboard. (message: string) => string
- getLastElementFromArray: Get the last element of an array. (array: any[]) => any
- convertStringToNumber: Convert a string to number. (string: string) => number
- deleteDuplicateElementsFromArray: Delete duplicate elements from an array. (array: any[]) => any[]
- getDiffValue: Get the difference between two values. (() => Math.random(), 1)
- getRandomFromArray: Get a random element from an array. (array: any[]) => any
- createLocalStorage: Create a local storage in local directory. (directory: string) => clasic methods localStorage in browser but in nodejs
- getEnviroment: Get the enviroment declared in the .env file. (key: string) => string
Support Typescript and Javascript ✅