Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the ability to run afterRequestScript #105

Merged
merged 1 commit into from
Oct 28, 2021

Conversation

nofuture17
Copy link

@nofuture17 nofuture17 commented Oct 26, 2021

The solution for issue 103

README.md Outdated
Before running an HTTP request you can run a script using cmd interface.
When the test is ran, the first step is to load fixtures and run mocks. Next, the script is executed, then the test is ran.
Before and after running an HTTP request you can run a script using cmd interface.
When the test is run, the first step is to load fixtures and run mocks.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Кажется When the test is ran здесь всё же правильно было и переводилось как "Когда тест запущен".
Может в целом переписать это предложение так чтобы было наглядее видно порядок выполнения. Предлагаю такой вариант

When the test is ran, operations are performed in the following order:

  1. Fixtures load
  2. Mocks setup
  3. BeforeScript execute
  4. HTTP-request sent
  5. АfterRequestScript execute

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

У run 3я форма run. Ran это форма прошлого времени. Но я не очень англичанин, по этому не настаиваю.
Более наглядный вариант выгляди лучше. Реализую его.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

README.md Outdated
...
afterRequestScript:
path: './cli_scripts/cmd_recalculate.sh'
# the timeout will equal 10s
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wlll be equal

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ага. Копипастил невнимательно.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@nofuture17 nofuture17 force-pushed the add_after_request_script branch from 83332b3 to b7140ac Compare October 28, 2021 10:14
@fetinin fetinin added enhancement New feature or request minor release as minor labels Oct 28, 2021
@fetinin fetinin merged commit 5970488 into lamoda:master Oct 28, 2021
@github-actions
Copy link

🚀 PR was released in v1.7.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request minor release as minor released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants