Skip to content

Commit

Permalink
Add release notes for throttleNetwork
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur22 committed Nov 13, 2023
1 parent 0537b13 commit 8842042
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions release notes/v0.48.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,21 @@ Allows users to throttle the CPU from chrome/chromium's perspective, which helps
...
```
### Add support for browser module's `page.throttleNetwork` [browser#887](https://github.com/grafana/xk6-browser/issues/887)
Allows users to throttle the characteristics of the network from chrome/chromium's perspective, which helps emulate poor network connections when testing the website's frontend. The argument passed in is of type `NetworkProfile` which is mandatory. You can either define your own network profiles or use the ones we have defined by importing `networkProfiles` from the `browser` module.
```js
import { browser, networkProfiles } from 'k6/experimental/browser';
...
const context = browser.newContext();
const page = context.newPage();

try {
page.throttleNetwork(networkProfiles['Slow 3G']);
...
```
### Add `k6 new` subcommand [#3394](https://github.com/grafana/k6/pull/3394)
`k6` now has a `new` subcommand that can be used to generate a new test script. This is useful for new users who want to get started quickly, or for experienced users who want to save time when creating new test scripts. The subcommand can be used like this:
Expand Down

0 comments on commit 8842042

Please sign in to comment.