Skip to content

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

Notifications You must be signed in to change notification settings

depapp/pusakatest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pusakatest

pusakatest-1 pusakatest-2

👷 status

pusakatest-ci

⚙️ 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

💡 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"

🔥 contributors

All of amazing contributors

💪 support me

Nih buat jajan ko-fi

🔖 credits