Permalink
Browse files

Add documentation - performance testing.

  • Loading branch information...
tgorskievo committed Oct 24, 2017
1 parent 7510342 commit cc3f09d1f423d86f5bf2f87683003326f4a2f479
@@ -61,12 +61,6 @@ class Initializer {
})();
}
parse(value) {
return _asyncToGenerator(function* () {
parseInt((yield value));
})();
}
initConfig(advancedConfiguration = false) {
var _this = this;
@@ -227,7 +221,6 @@ class Initializer {
_this3.createProjectDirectory(config.emails[0]);
_this3.createTemplateFile(config.reports + '/.gitkeep', '');
_this3.createTemplateFile(config.performance + '/.gitkeep', '');
_this3.createTemplateFile(config.downloads + '/.gitkeep', '');
_this3.createTemplateFileWithContentFrom(config.features[0] + '/example.feature', 'example.feature');
_this3.createTemplateFileWithContentFrom(config.pages[0] + '/page.js', 'page.js');
@@ -0,0 +1,48 @@
Performance testing is possible thanks to `browsermob-proxy`.
It saves all data from network tab (Google Chrome console) which is generated during the test.
###What needs to be done?
#Get started
1. Download `browsermob-proxy` from `https://github.com/lightbody/browsermob-proxy`
2. Navigate in terminal to the catalog
3. Use following command to start the REST API
```
./browsermob-proxy -port 8887
```
#Configuration
1. Add `browsermob-proxy` configuration to `kakunin.conf.js`
You can use one of the following methods to configure browsermob-proxy:
- `npm run kakunin init -- --advanced` and go through the process
- or add it manually to the config file:
```javascript
"browserMob": {
"serverPort": 8887,
"port": 8888,
"host": "localhost"
}
```
#Run tests
1. `performance steps` must be used in the scenario where you are testing performance
2. Run tests with special parameter `performance`:
```
npm run kakunin -- --tags @wip --performance
```
#Results
1. `.har` files are saved in catalog `reports/performance/*.har`
View
@@ -549,3 +549,27 @@ Pauses tests execution and allows to continue manually by pressing combination o
###`I wait for ":seconds" seconds`
Waits with execution of next step for an amount provided by parameter `:seconds`.
###`I start performance monitor mode`
It starts performance monitor mode.
Keep in mind that REST API must be started on the port which must configured in `kakunin.conf.js` - `serverPort: 8887`.
More details can be found in documentation file `performance-testing.md`.
###`I save performance report file as "fileName"`
It saves `.har` file with a name `fileName` in `reports/performance` catalog.
Data is generated during the test - network tab in Chrome Chrome console.
Keep in mind:
* `I start performance monitor mode` must be used before this step
* `browserMob.port` must be configured in `kakunin.conf.js`
* `browserMob.host` must be configured in `kakunin.conf.js`
More details can be found in documentation file `performance-testing.md`.
View
@@ -268,6 +268,18 @@
<li class="md-nav__item">
<a href="/Kakunin/performance-testing/" title="Performance testing" class="md-nav__link">
Performance testing
</a>
</li>
<li class="md-nav__item">
<a href="/Kakunin/extending/" title="Extending Kakunin" class="md-nav__link">
Extending Kakunin
@@ -326,6 +326,18 @@
<li class="md-nav__item">
<a href="../performance-testing/" title="Performance testing" class="md-nav__link">
Performance testing
</a>
</li>
<li class="md-nav__item">
<a href="../extending/" title="Extending Kakunin" class="md-nav__link">
Extending Kakunin
View
@@ -279,6 +279,18 @@
<li class="md-nav__item">
<a href="../performance-testing/" title="Performance testing" class="md-nav__link">
Performance testing
</a>
</li>
@@ -902,7 +914,7 @@ <h3 id="email-checking-service">Email checking service</h3>
<div class="md-footer-nav">
<nav class="md-footer-nav__inner md-grid">
<a href="../transformers/" title="Transformers" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
<a href="../performance-testing/" title="Performance testing" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
<div class="md-flex__cell md-flex__cell--shrink">
<i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
</div>
@@ -911,7 +923,7 @@ <h3 id="email-checking-service">Email checking service</h3>
<span class="md-footer-nav__direction">
Previous
</span>
Transformers
Performance testing
</span>
</div>
</a>
@@ -332,6 +332,18 @@
<li class="md-nav__item">
<a href="../performance-testing/" title="Performance testing" class="md-nav__link">
Performance testing
</a>
</li>
<li class="md-nav__item">
<a href="../extending/" title="Extending Kakunin" class="md-nav__link">
Extending Kakunin
View
@@ -340,6 +340,18 @@
<li class="md-nav__item">
<a href="performance-testing/" title="Performance testing" class="md-nav__link">
Performance testing
</a>
</li>
<li class="md-nav__item">
<a href="extending/" title="Extending Kakunin" class="md-nav__link">
Extending Kakunin
View
@@ -361,6 +361,18 @@
<li class="md-nav__item">
<a href="../performance-testing/" title="Performance testing" class="md-nav__link">
Performance testing
</a>
</li>
<li class="md-nav__item">
<a href="../extending/" title="Extending Kakunin" class="md-nav__link">
Extending Kakunin

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit cc3f09d

Please sign in to comment.