Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

Support BDD test #90

Open
augustine-tran opened this issue Oct 31, 2018 · 5 comments
Open

Support BDD test #90

augustine-tran opened this issue Oct 31, 2018 · 5 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@augustine-tran
Copy link

Hi guys,

With Postman, I follow BDD style Given...When...Then for naming request in a flow. Example:

Given user has a balance 
When user topup +$10
Then user balance will be increased by $10

I suggest adding a new field to describe the above style.

If could, please let me know which is the fastest way to add a new field I can help to contribute a PR.

Thanks for your awesome efforts.

@jgroom33
Copy link
Collaborator

What would be all the expected behaviors of the new field?

@augustine-tran
Copy link
Author

@jgroom33 just for printing out on test result. Example:

[v] Given use has a banace
[v] When user topup +$10
[v] Then user balance will be increased by $10

@augustine-tran
Copy link
Author

I don't prefer the current request name field is because it will be too long for use as a value in later requests.

@jgroom33
Copy link
Collaborator

jgroom33 commented Nov 2, 2018

Implementation:

version: 1

requests:
  userRequest:
    description: This is a description of the request that will be printed during the output
    url: https://postman-echo.com/get
    method: GET

result:

[ Strest ] Found 1 test file(s)
[ Strest ] Schema validation: 1 of 1 file(s) passed

✔ Testing userRequest succeeded (0.1s)
     This is a description of the request that will be printed during the output

[ Strest ] ✨  Done in 0.62s

@jgroom33 jgroom33 added enhancement New feature or request good first issue Good for newcomers labels Nov 10, 2018
@augustine-tran
Copy link
Author

+1 thanks @jgroom33

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants