Pusakatest

0

pusakatest is an automation testing tool based on pactumjs using bdd (cucumber) style with localization

Miscellaneous

api
cli
api-automation
automation-testing

pusakatest

pusakatest-1pusakatest-2

:construction_worker: status

pusakatest-ci

:gear: setup

  • make sure nodejs and npm is already installed. you can verify it using these commands
node -v
npm -v
  • you can create new folder/directory to setup pusakatest and don't forget to change the folder/directory location. for example
mkdir hello-pusakatest && cd hello-pusakatest
  • to setup pusakatest, you can simply run this command (and follow the instructions)
    • If you don't have a package.json in your file directory, it will be copied from one of the templates available at pusakatest when you run below command
    • If you already have a package.json file, add all the dependencies mentioned in pusakatest to your package.json (below command will not override or replace your package.json file)
npx pusakatest@latest
  • nothing else after that, just run it!
npm run test
npm run test-publish

:bulb: writing feature script

  • to create new feature script, just add .feature file under /features folder/directory
  • after that, just re-run it
npm run test
  • example:
Feature: API REQRES.IN

    Scenario: Get all users list on REQRES.IN API
        Given I make a "POST" request to "https://reqres.in/api/users"
        When I receive a response
        Then I expect response should have a status "200"

:fire: contributors

All of amazing contributors

:muscle: support me

Nih buat jajanko-fi

:bookmark: credits