![]() |
![]() |
|---|
- make sure
nodejsandnpmis already installed. you can verify it using these commands
node -vnpm -v- you can create new folder/directory to setup
pusakatestand 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- if you want to publish the file report to Cucumber Reports, just use
npm run test-publish- to create new feature script, just add
.featurefile under/featuresfolder/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"



